Update of /cvsroot/pure-data/externals/grill/py/pd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31341/pd
Modified Files: builtins-1.pd methods-1.pd methods-2.pd Log Message: corrected Python object propagation (attribute "py") and adjusted help files small fix enable module packages (module/__init__.py[co]), now also for Max enable compiled-only scripts (without .py)
Index: builtins-1.pd =================================================================== RCS file: /cvsroot/pure-data/externals/grill/py/pd/builtins-1.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** builtins-1.pd 20 Jul 2005 08:11:17 -0000 1.2 --- builtins-1.pd 23 Mar 2006 01:55:14 -0000 1.3 *************** *** 1,3 **** ! #N canvas 602 394 710 425 12; #X obj 36 241 py .range @py 1; #X floatatom 35 356 5 0 0 0 - - -; --- 1,3 ---- ! #N canvas 602 394 714 429 12; #X obj 36 241 py .range @py 1; #X floatatom 35 356 5 0 0 0 - - -; *************** *** 5,9 **** #X obj 16 13 cnv 15 650 40 empty empty py/pyext 10 22 0 24 -260818 -1 0; - #X text 235 16 Python script objects , (C)2003-2005 Thomas Grill; #X text 235 32 http://grrrr.org/ext; #X obj 36 159 nbx 5 14 -1e+037 1e+037 0 1 empty empty min 0 -6 0 10 --- 5,8 ---- *************** *** 40,44 **** #X connect 11 0 5 0; #X restore 36 190 pd pak3; ! #X text 115 240 construct a Python list; #X text 78 282 Python object pointer is propagated to next object; #X text 106 320 calculate sum over list elements; --- 39,43 ---- #X connect 11 0 5 0; #X restore 36 190 pd pak3; ! #X text 169 239 construct a Python list; #X text 78 282 Python object pointer is propagated to next object; #X text 106 320 calculate sum over list elements; *************** *** 46,53 **** #X text 21 97 A . preceding the function name searches for the function in either the pyext module or in __builtins__; #X connect 0 0 2 1; #X connect 2 0 1 0; ! #X connect 6 0 9 0; ! #X connect 7 0 9 1; ! #X connect 8 0 9 2; ! #X connect 9 0 0 1; --- 45,53 ---- #X text 21 97 A . preceding the function name searches for the function in either the pyext module or in __builtins__; + #X text 235 16 Python script objects , (C)2003-2006 Thomas Grill; #X connect 0 0 2 1; #X connect 2 0 1 0; ! #X connect 5 0 8 0; ! #X connect 6 0 8 1; ! #X connect 7 0 8 2; ! #X connect 8 0 0 1;
Index: methods-1.pd =================================================================== RCS file: /cvsroot/pure-data/externals/grill/py/pd/methods-1.pd,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** methods-1.pd 20 Jul 2005 08:11:17 -0000 1.3 --- methods-1.pd 23 Mar 2006 01:55:14 -0000 1.4 *************** *** 1,24 **** ! #N canvas 540 469 722 357 12; #X obj 16 13 cnv 15 650 40 empty empty py/pyext 10 22 0 24 -260818 -1 0; - #X text 235 16 Python script objects , (C)2003-2005 Thomas Grill; #X text 235 32 http://grrrr.org/ext; #X symbolatom 21 139 10 0 0 0 - - -; #X symbolatom 25 298 10 0 0 0 - - -; #X obj 22 179 py .str @py 1; ! #X text 93 167 convert the symbol to a Python string; #X text 35 216 pass it as a true Python object; #X symbolatom 364 295 10 0 0 0 - - -; #X text 462 269 use module function; #X text 23 119 enter some text; ! #X text 21 73 Py can act on Python objects in a object-oriented manner ! ; ! #X text 93 184 using the built-in str function; #X obj 25 252 pym swapcase; #X text 63 270 use swapcase method; #X obj 363 250 py string.swapcase; ! #X connect 3 0 5 1; ! #X connect 5 0 13 1; ! #X connect 5 0 15 1; ! #X connect 13 0 4 0; ! #X connect 15 0 8 0; --- 1,24 ---- ! #N canvas 540 469 734 369 12; #X obj 16 13 cnv 15 650 40 empty empty py/pyext 10 22 0 24 -260818 -1 0; #X text 235 32 http://grrrr.org/ext; #X symbolatom 21 139 10 0 0 0 - - -; #X symbolatom 25 298 10 0 0 0 - - -; #X obj 22 179 py .str @py 1; ! #X text 145 170 convert the symbol to a Python string; #X text 35 216 pass it as a true Python object; #X symbolatom 364 295 10 0 0 0 - - -; #X text 462 269 use module function; #X text 23 119 enter some text; ! #X text 145 187 using the built-in str function; #X obj 25 252 pym swapcase; #X text 63 270 use swapcase method; #X obj 363 250 py string.swapcase; ! #X text 235 16 Python script objects , (C)2003-2006 Thomas Grill; ! #X text 21 73 Py can act on Python objects in an object-oriented manner ! ; ! #X connect 2 0 4 1; ! #X connect 4 0 11 1; ! #X connect 4 0 13 1; ! #X connect 11 0 3 0; ! #X connect 13 0 7 0;
Index: methods-2.pd =================================================================== RCS file: /cvsroot/pure-data/externals/grill/py/pd/methods-2.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** methods-2.pd 20 Jul 2005 08:11:17 -0000 1.2 --- methods-2.pd 23 Mar 2006 01:55:14 -0000 1.3 *************** *** 1,11 **** ! #N canvas 540 469 738 343 12; #X obj 16 13 cnv 15 650 40 empty empty py/pyext 10 22 0 24 -260818 -1 0; - #X text 235 16 Python script objects , (C)2003-2005 Thomas Grill; #X text 235 32 http://grrrr.org/ext; #X symbolatom 21 139 10 0 0 0 - #0-t -; #X text 23 119 enter some text; - #X text 21 73 Py can act on Python objects in a object-oriented manner - ; #X obj 25 252 pym 2 *; #X obj 213 183 t b f; --- 1,8 ---- ! #N canvas 540 469 746 351 12; #X obj 16 13 cnv 15 650 40 empty empty py/pyext 10 22 0 24 -260818 -1 0; #X text 235 32 http://grrrr.org/ext; #X symbolatom 21 139 10 0 0 0 - #0-t -; #X text 23 119 enter some text; #X obj 25 252 pym 2 *; #X obj 213 183 t b f; *************** *** 14,19 **** #X symbolatom 25 283 80 0 0 0 - - -; #X obj 214 139 nbx 5 14 1 100 0 1 empty empty empty 0 -6 0 10 -262131 ! -1 -1 16 256; ! #N canvas 0 0 458 308 init 0; #X obj 61 116 s $0-t; #X obj 64 44 loadbang; --- 11,16 ---- #X symbolatom 25 283 80 0 0 0 - - -; #X obj 214 139 nbx 5 14 1 100 0 1 empty empty empty 0 -6 0 10 -262131 ! -1 -1 6 256; ! #N canvas 0 0 462 312 init 0; #X obj 61 116 s $0-t; #X obj 64 44 loadbang; *************** *** 23,30 **** #X restore 606 127 pd init; #X obj 213 159 int; ! #X connect 3 0 6 1; ! #X connect 6 0 10 0; ! #X connect 7 0 6 0; ! #X connect 7 1 6 2; ! #X connect 11 0 13 0; ! #X connect 13 0 7 0; --- 20,30 ---- #X restore 606 127 pd init; #X obj 213 159 int; ! #X text 235 16 Python script objects , (C)2003-2006 Thomas Grill; ! #X text 21 73 Py can act on Python objects in an object-oriented manner ! ; ! #X connect 2 0 4 1; ! #X connect 4 0 8 0; ! #X connect 5 0 4 0; ! #X connect 5 1 4 2; ! #X connect 9 0 11 0; ! #X connect 11 0 5 0;