Seattle Python Interest Group meeting 14 June 2007

2007-06-09 Thread jamesthiele . usenet
Thursday, June 14th, 2007 at 7 PM See details at www.seapig.org -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html

Version 1.2 of MMA is now available

2007-06-09 Thread Bob van der Poel
Version 1.2 of MMA - Musical MIDI Accompaniment - is now available for downloading. Included in this release: A new command set which lets MMA create and play MIDI files on-the- fly, Some additional synchronization options, Smoother volume changes with (De)Crescendos, Minor bug

Re: VIM editor question

2007-06-09 Thread Jerry VanBrimmer
In your vim configuration file enter: colorscheme name Example: colorscheme elflord Restart vim. On 6/8/07, David [EMAIL PROTECTED] wrote: Is anyone in the group familiar with the VIM editor? I rather like it but any time I right click on a file and select Edit with Vim It opens the

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread Gabriel Genellina
En Sat, 09 Jun 2007 02:49:03 -0300, WaterWalk [EMAIL PROTECTED] escribió: I've just read an article Building Robust System by Gerald Jay Sussman. The article is here: http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf In it there is a footprint which says:

Re: Case-Insensitive Sorting of Multi-Dimensional Lists

2007-06-09 Thread Hendrik van Rooyen
Joe [EMAIL PROTECTED] wrote: I am new to lambda and have searched for a few hours this morning, coming up empty handed. Is this possible? Seeing as it has happened, it must be. - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonS?

2007-06-09 Thread Paddy
On Jun 9, 3:51 am, Michel Claveau [EMAIL PROTECTED] wrote: Hi! Python, Iron-Python, Jython, StackLess-Python, Monty-Python, Movable-Python, etc. Shouldn't add a S to the end of Python? See:http://www.jfwilliam.com/Sites/1473/Python.jpg The fact of adding a S could constitute a PEP. for

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread Terry Reedy
WaterWalk [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | I've just read an article Building Robust System by Gerald Jay | Sussman. The article is here: | http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf | | In it there is a footprint which says: |

Re: interating over single element array

2007-06-09 Thread Terry Reedy
Basilisk96 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | On Jun 8, 11:54 am, T. Crane [EMAIL PROTECTED] wrote: | You can also do this (if tuples are okay in your case): | | a = 1, | | The comma turns 'a' into a tuple (1,) which is both iterable and has a | length of 1. | | I have

Re: Working with fixed format text db's

2007-06-09 Thread Frank Millman
On Jun 8, 5:50 pm, Neil Cerutti [EMAIL PROTECTED] wrote: Many of the file formats I have to work with are so-called fixed-format records, where every line in the file is a record, and every field in a record takes up a specific amount of space. For example, one of my older Python programs

Re: Working with fixed format text db's

2007-06-09 Thread John Machin
On Jun 9, 5:48 am, Mark Carter [EMAIL PROTECTED] wrote: Neil Cerutti wrote: The underlying problem, of course, is the archaic flat-file format with fixed-width data fields. Even the Department of Education has moved on to XML for most of it's data files, :( I'm writing a small app, and

Re: Case-Insensitive Sorting of Multi-Dimensional Lists

2007-06-09 Thread Peter Otten
Ben Finney wrote: mosscliffe [EMAIL PROTECTED] writes: I have tried the following, for a one dimensional list and it works, but I can not get my head around this lambda. How would this be written, without the lamda ? mylist = ['Fred','bill','PAUL','albert'] mylist.sort(key=lambda el:

Ang roskilde billet

2007-06-09 Thread andre lerche
Hej Jeg er interesseret i at købe din billet, jeg bor selv på amager, så vi kan gøre en hurtig handel. Mvh André -- http://mail.python.org/mailman/listinfo/python-list

Re: python-ldap for Python 2.5 on Windows?

2007-06-09 Thread Michael Ströder
Waldemar Osuch wrote: On Jun 8, 6:36 am, Benedict Verheyen [EMAIL PROTECTED] wrote: Hi, i found python-ldap for version Python 2.4. Is there i place i can find a version for 2.5? If not, how can i build it myself for Windows? I have managed to build it for myself using MinGW:

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread James Stroud
Terry Reedy wrote: In Python, you have a choice of recursion (normal or tail) Please explain this. I remember reading on this newsgroup that an advantage of ruby (wrt python) is that ruby has tail recursion, implying that python does not. Does python have fully optimized tail recursion as

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread Cousin Stanley
In scheme, I believe you just have recursion. Cousin TJR I'm a total scheme rookie starting only about 3 days ago and one of the mechanisms I went looking for was a technique for iteration Found in the scheme docs about iteration supplied via the reduce

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread Bjoern Schliessmann
Gabriel Genellina wrote: For what I can remember of my first love (Physics): if you have a small ball moving inside a spherical cup, it would be almost crazy to use cartesian orthogonal coordinates and Newton's laws to solve it - the obvious way would be to use spherical coordinates and the

Re: Working with fixed format text db's

2007-06-09 Thread Lloyd Zusman
Frank Millman [EMAIL PROTECTED] writes: On Jun 8, 5:50 pm, Neil Cerutti [EMAIL PROTECTED] wrote: Many of the file formats I have to work with are so-called fixed-format records, where every line in the file is a record, and every field in a record takes up a specific amount of space. [ ...

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread Kay Schluehr
On Jun 9, 12:16 pm, James Stroud [EMAIL PROTECTED] wrote: Terry Reedy wrote: In Python, you have a choice of recursion (normal or tail) Please explain this. I remember reading on this newsgroup that an advantage of ruby (wrt python) is that ruby has tail recursion, implying that python does

Re: The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations

2007-06-09 Thread Lew
Twisted wrote: On Jun 8, 7:30 pm, Jürgen Exner [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: [nothing relevant to Perl] Perl?? Perl is even less relevant to Java than the original post, which admittedly has some connection to pretty much all programming languages. (Perl, on the other

Re: how to convert a bitmap file to an array ?

2007-06-09 Thread Steve Holden
stef wrote: Stefan Sonnenberg-Carstens wrote: stef schrieb: hello I can find all kind of procedures to convert an array to a bitmap (wxPython, PIL), but I can't find the reverse, either - convert a bitmap to an array or - read a bitmap file to an array thanks, Stef Mientki

Re: interating over single element array

2007-06-09 Thread Basilisk96
Terry Reedy [EMAIL PROTECTED] wrote: Any what if 'filelist' is any iterable other than a string or list? Your code is broken, and unnecessarily so. So I would call the parameter 'files' and test for isinstance(files, str) #or basestring. And wrap if it is. Can you give an example of such

Re: Python for embedded systems with memory constraints

2007-06-09 Thread vishnu
Hi, Thanks Cameron for your suggestions. In fact I am using custom memory sub-allocator where I preallocate a pool of memory during initialization of my application and ensure that Python doesn't make any system mallocs later . With this arrangement, python seems to run out of preallocated memory

Re: VIM editor question

2007-06-09 Thread BartlebyScrivener
On Jun 9, 1:14 am, Jerry VanBrimmer [EMAIL PROTECTED] wrote: In your vim configuration file enter: colorscheme name Example: colorscheme elflord Restart vim. No! That's completely wrong. It should be: colorscheme moria set bg=dark http://www.vim.org/scripts/script.php?script_id=1464

Re: interating over single element array

2007-06-09 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Basilisk96 wrote: Terry Reedy [EMAIL PROTECTED] wrote: Any what if 'filelist' is any iterable other than a string or list? Your code is broken, and unnecessarily so. So I would call the parameter 'files' and test for isinstance(files, str) #or basestring. And wrap if

running python scripts via crontab

2007-06-09 Thread Mr SZ
Hello all, I wrote a simple python script to send mail via smtp to my gmail acc.I can run it as python /home/phil/Desktop/smtp.py but when I add the same to my crontab as * * * * * /usr/bin/python2.5 /home/phil/Desktop/smtp.py ,it doesn't run.I checked the process by using top

piping data stream through GPG

2007-06-09 Thread robert
I played around trying to encrypt/decrypt data through GPG on the fly (or worse - by using a file) (on Windows first - later to try on Linux too) Using os.popen3 like i,o,e=os.popen3('gpg -e -r Robert') # i.write('y\n') i.write('wefwef') i.close() # e.read(1) o.read(1) hangs on

Re: piping data stream through GPG

2007-06-09 Thread robert
robert wrote: I played around trying to encrypt/decrypt data through GPG on the fly (or worse - by using a file) (on Windows first - later to try on Linux too) Using os.popen3 like i,o,e=os.popen3('gpg -e -r Robert') # i.write('y\n') i.write('wefwef') i.close() # e.read(1)

Re: Where can I suggest an enchantment for Python Zip lib?

2007-06-09 Thread Aahz
In article [EMAIL PROTECTED], durumdara [EMAIL PROTECTED] wrote: [...] Click your heels together three times and say, Abracadabra! (Sorry, couldn't resist.) -- Aahz ([EMAIL PROTECTED]) * http://www.pythoncraft.com/ as long as we like the same operating system, things are

Tackling setup.py - A bug??

2007-06-09 Thread Alexander Petrov
Hi, I've successfully compiled p4python with modified setup.py the key to success was to split extra_compile_args's argument '-arch' into 2 args. below is fixed part: [code] ext_modules=[Extension(P4Client, [ P4Clientmodule.cc ], include_dirs=[

Re: VIM editor question

2007-06-09 Thread Joe Riopel
I use vim on both Windows and UNIX/Linux, and found this vimrc file. http://darksmile.net/software/.vimrc.html It's pretty good and has good comments. You might want to take a look at that and customize it. Plus this is great:

Re: Tkinter custom drawing

2007-06-09 Thread Xavier Bérard
Thank you this is nice code. I never thought of using the move_pending method.. Still it doesn't answer my question (which I ensure is very unclear). But do not worry, I found some way to get throught my dilemma and I can live easily with it. Thanks for your help. --

Re: VIM editor question

2007-06-09 Thread BartlebyScrivener
On Jun 9, 9:56 am, Joe Riopel [EMAIL PROTECTED] wrote: I use vim on both Windows and UNIX/Linux, and found this vimrc file.http://darksmile.net/software/.vimrc.html It's pretty good and has good comments. You might want to take a look at that and customize it. Plus this is

Re: Repository - file scanner

2007-06-09 Thread kyosohma
On Jun 8, 2:33 pm, HMS Surprise [EMAIL PROTECTED] wrote: Greetings, Could someone point my muddled head at a/the python repository. I know that one exists but cannot find it again. In particular I am looking for a standalone search tool that given a path searches files for a text string.

Re: Repository - file scanner

2007-06-09 Thread kyosohma
On Jun 8, 2:33 pm, HMS Surprise [EMAIL PROTECTED] wrote: Greetings, Could someone point my muddled head at a/the python repository. I know that one exists but cannot find it again. In particular I am looking for a standalone search tool that given a path searches files for a text string.

Re: How Can I Increase the Speed of a Large Number of Date Conversions

2007-06-09 Thread vdicarlo
Many thanks for the lucid and helpful suggestions. Since my date range was only a few years, I used Some Other Guy's suggestion above, which the forum is saying will be deleted in five days, to make a dictionary of the whole range of dates when the script starts. It was so fast it wasn't even

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread Terry Reedy
James Stroud [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | Terry Reedy wrote: | In Python, you have a choice of recursion (normal or tail) | | Please explain this. I am working on a paper for Python Papers that will. It was inspired by the question 'why doesn't Python do

Hooking exceptions outside of call stack

2007-06-09 Thread Warren Stringer
Here is what I would like to do: # a = Tr3() # implements domain specific language a.b = 1# this works, Tr3 overrides __getattr__ a.__dict__['b'] = 2# just so you know that b is local a[b] = 3

Re: piping data stream through GPG

2007-06-09 Thread robert
robert wrote: I played around trying to encrypt/decrypt data through GPG on the fly (or worse - by using a file) (on Windows first - later to try on Linux too) Using os.popen3 like i,o,e=os.popen3('gpg -e -r Robert') # i.write('y\n') i.write('wefwef') i.close() # e.read(1)

Re: DAO and Access97 WHERE clause fails

2007-06-09 Thread v.davis2
Hello all. Thanks for the help! John pointed out to me the flaw in my code: Change: sSQL3 = 'SELECT * FROM T_Index2DirName WHERE iIndex = hsDB' to: sSQL3 = 'SELECT * FROM T_Index2DirName WHERE iIndex = %ld' % hsDB That did the trick. I had looked at the statement so often that it was

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread Terry Reedy
Cousin Stanley [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | In scheme, I believe you just have recursion. I was referring to the original mimimalist core language developed by Guy and Sussman and as I remember it being used in the original edition of SICP (see Wikipedia). I

Re: launching default browser

2007-06-09 Thread alf
Laurent Pointal wrote: Via webbrowser module http://docs.python.org/lib/module-webbrowser.html thx a lot. Just again Python positively surprises me. (note: its in top five in google search for Python + launch + browser...) so now it will be in top four :-). --

Re: How Can I Increase the Speed of a Large Number of Date Conversions

2007-06-09 Thread Terry Reedy
vdicarlo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | Many thanks for the lucid and helpful suggestions. Since my date range | was only a few years, I used Some Other Guy's suggestion above, which | the forum is saying will be deleted in five days, to make a dictionary | of the

Re: Repository - file scanner

2007-06-09 Thread Gabriel Genellina
En Sat, 09 Jun 2007 12:30:49 -0300, [EMAIL PROTECTED] escribió: On Jun 8, 2:33 pm, HMS Surprise [EMAIL PROTECTED] wrote: Could someone point my muddled head at a/the python repository. I know that one exists but cannot find it again. In particular I am looking for a standalone search tool

Re: read xml file from compressed file using gzip

2007-06-09 Thread Stefan Behnel
flebber wrote: I was working at creating a simple program that would read the content of a playlist file( in this case *.k3b) and write it out . the compressed *.k3b file has two file and the one I was trying to read was maindata.xml The k3b format is a ZIP archive. Use the zipfile library:

Re: Gzip - gunzip using zlib

2007-06-09 Thread Stefan Behnel
flebber wrote: Hi Can anyone show me a working example of how to use gzip to decompress a file. I have read the docs at python.org and had many goes at it but just can't get it to work. According to your other post, you are trying to open a ZIP archive using gzip. Use the zipfile module

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread John Nagle
Bjoern Schliessmann wrote: Gabriel Genellina wrote: For what I can remember of my first love (Physics): if you have a small ball moving inside a spherical cup, it would be almost crazy to use cartesian orthogonal coordinates and Newton's laws to solve it - the obvious way would be to use

Re: VIM editor question

2007-06-09 Thread Jerry Van Brimmer
On 6/9/07, BartlebyScrivener [EMAIL PROTECTED] wrote: On Jun 9, 1:14 am, Jerry VanBrimmer [EMAIL PROTECTED] wrote: In your vim configuration file enter: colorscheme name Example: colorscheme elflord Restart vim. No! That's completely wrong. No, it's not *completely* wrong.

Re: Where can I suggest an enchantment for Python Zip lib?

2007-06-09 Thread Paul McGuire
Hogwarts. Sorry, I couldn't resist either. I'm sure you meant to say enhancement - an enchantment is a magic spell, often used to lull an unsuspecting victim into some sort of compliance or trance. Actually, if you have an *enchantment* for Python, I'm sure several people on this list would be

Re: The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations

2007-06-09 Thread Paul McGuire
On Jun 9, 6:49 am, Lew [EMAIL PROTECTED] wrote: In particular, Perl code looks more like line noise than like code from any known programming language. ;)) Hmm - I know of APL and SNOBOL. -- Lew TECO editor commands. I don't have direct experience with TECO, but I've heard that a common

Re: running python scripts via crontab

2007-06-09 Thread davelist
On Jun 9, 2007, at 9:10 AM, Mr SZ wrote: Hello all, I wrote a simple python script to send mail via smtp to my gmail acc.I can run it as python /home/phil/Desktop/smtp.py but when I add the same to my crontab as * * * * * /usr/bin/python2.5 /home/phil/Desktop/smtp.py ,it doesn't

Multiple python interpreters within the same process

2007-06-09 Thread Marcin Kalicinski
How do I use multiple Python interpreters within the same process? I know there's a function Py_NewInterpreter. However, how do I use functions like Py_RunString etc. with it? They don't take any arguments that would tell on which interpreter to run the string...? Marcin --

Re: Multiple python interpreters within the same process

2007-06-09 Thread André
On Jun 9, 5:00 pm, Marcin Kalicinski [EMAIL PROTECTED] wrote: How do I use multiple Python interpreters within the same process? I know there's a function Py_NewInterpreter. However, how do I use functions like Py_RunString etc. with it? They don't take any arguments that would tell on which

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread Josiah Carlson
James Stroud wrote: Terry Reedy wrote: In Python, you have a choice of recursion (normal or tail) Please explain this. I remember reading on this newsgroup that an advantage of ruby (wrt python) is that ruby has tail recursion, implying that python does not. Does python have fully

Re: Hooking exceptions outside of call stack

2007-06-09 Thread Josiah Carlson
Warren Stringer wrote: Here is what I would like to do: # a = Tr3() # implements domain specific language a.b = 1# this works, Tr3 overrides __getattr__ a.__dict__['b'] = 2# just so you know that b

Re: Where can I suggest an enchantment for Python Zip lib?

2007-06-09 Thread Larry Bates
durumdara wrote: Hi Larry! durumdara wrote: You can easily find out roughly how many bytes are in your .ZIP archive by using following: zipbytes=Zobj.fp.tell() The main problem is not this. I want to write a backup software, and I want to: - see the progress in the processing of the

RE: Hooking exceptions outside of call stack

2007-06-09 Thread Warren Stringer
Am still trying to hook a NameError exception and continue to run. After a few more hours of searching the web and pouring over Martelli's book, the closest I've come is: import sys def new_exit(arg=0): ... print 'new_exit called' ... #old_exit(arg) ... def hook(type, value, tb): ...

RE: Hooking exceptions outside of call stack

2007-06-09 Thread Jean-Paul Calderone
On Sat, 9 Jun 2007 13:52:19 -0700, Warren Stringer [EMAIL PROTECTED] wrote: Am still trying to hook a NameError exception and continue to run. After a few more hours of searching the web and pouring over Martelli's book, the closest I've come is: import sys def new_exit(arg=0): ... print

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread Alexander Schmolck
Josiah Carlson [EMAIL PROTECTED] writes: James Stroud wrote: Terry Reedy wrote: In Python, you have a choice of recursion (normal or tail) Please explain this. I remember reading on this newsgroup that an advantage of ruby (wrt python) is that ruby has tail recursion, implying that python

urllib2 - iteration over non-sequence

2007-06-09 Thread rplobue
im trying to get urllib2 to work on my server which runs python 2.2.1. When i run the following code: import urllib2 for line in urllib2.urlopen('www.google.com'): print line i will always get the error: Traceback (most recent call last): File stdin, line 1, in ? TypeError: iteration

RE: Hooking exceptions outside of call stack

2007-06-09 Thread Warren Stringer
Yes. Python doesn't have restartable exceptions. Perhaps you would like to take a look at CL or Smalltalk? Jean-Paul Hmmm, I wonder if anyone suggest to Philippe Petit, as stepped out 110 stories off the ground, that perhaps he would like to take a look at a different tightrope? Oddly

Re: urllib2 - iteration over non-sequence

2007-06-09 Thread Larry Bates
[EMAIL PROTECTED] wrote: im trying to get urllib2 to work on my server which runs python 2.2.1. When i run the following code: import urllib2 for line in urllib2.urlopen('www.google.com'): print line i will always get the error: Traceback (most recent call last): File

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread Josiah Carlson
Alexander Schmolck wrote: Josiah Carlson [EMAIL PROTECTED] writes: James Stroud wrote: Terry Reedy wrote: In Python, you have a choice of recursion (normal or tail) Please explain this. I remember reading on this newsgroup that an advantage of ruby (wrt python) is that ruby has tail

Re: urllib2 - iteration over non-sequence

2007-06-09 Thread rplobue
Thanks for the reply Larry but I am still having trouble. If i understand you correctly, your are just suggesting that i add an http:// in front of the address? However when i run this: import urllib2 site = urllib2.urlopen('http://www.google.com') for line in site: print line I am

Re: Python for embedded systems with memory constraints

2007-06-09 Thread MRAB
On Jun 9, 1:33 pm, vishnu [EMAIL PROTECTED] wrote: Hi, Thanks Cameron for your suggestions. In fact I am using custom memory sub-allocator where I preallocate a pool of memory during initialization of my application and ensure that Python doesn't make any system mallocs later . With this

Re: interating over single element array

2007-06-09 Thread Basilisk96
Thank you both for clearing that up. -Basilisk96 -- http://mail.python.org/mailman/listinfo/python-list

Re: Hooking exceptions outside of call stack

2007-06-09 Thread Josiah Carlson
Warren Stringer wrote: Am still trying to hook a NameError exception and continue to run. After a few more hours of searching the web and pouring over Martelli's book, the closest I've come is: [snip] Is there a way of intervening as `exec cmd in globals, locals` attempts to translate 'c'

Re: Multiple python interpreters within the same process

2007-06-09 Thread Josiah Carlson
André wrote: On Jun 9, 5:00 pm, Marcin Kalicinski [EMAIL PROTECTED] wrote: How do I use multiple Python interpreters within the same process? I know there's a function Py_NewInterpreter. However, how do I use functions like Py_RunString etc. with it? They don't take any arguments that would

Re: urllib2 - iteration over non-sequence

2007-06-09 Thread Gary Herron
[EMAIL PROTECTED] wrote: Thanks for the reply Larry but I am still having trouble. If i understand you correctly, your are just suggesting that i add an http:// in front of the address? However when i run this: import urllib2 site = urllib2.urlopen('http://www.google.com') for line in

Re: Multiple python interpreters within the same process

2007-06-09 Thread Graham Dumpleton
On Jun 10, 9:07 am, Josiah Carlson [EMAIL PROTECTED] wrote: André wrote: On Jun 9, 5:00 pm, Marcin Kalicinski [EMAIL PROTECTED] wrote: How do I use multiple Python interpreters within the same process? I know there's a function Py_NewInterpreter. However, how do I use functions like

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread Steven D'Aprano
On Sat, 09 Jun 2007 22:42:17 +0100, Alexander Schmolck wrote: As for why tail calls are not optimized out, it was decided that being able to have the stack traces (with variable information, etc.) was more useful than offering tail call optimization I don't buy this. Do you mean you don't

Ableton Live Python API is out!

2007-06-09 Thread Alia Khouri
I have been waiting for this ages and it's finally happened! Python meet Live, Live meet Python! There's now a wonderful (public) bridge between (arguably) the most exciting and innovative and easy-to-use realtime software sequencer and (arguably) the most exciting and innovative and easy-to-use

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread Steven D'Aprano
On Sat, 09 Jun 2007 22:52:32 +, Josiah Carlson wrote: the only thing that optimization currently does in Python at present is to discard docstrings Python, or at least CPython, does more optimizations than that. Aside from run-time optimizations like interned strings etc., there are a

Re: The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations

2007-06-09 Thread BCB
Paul McGuire [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Jun 9, 6:49 am, Lew [EMAIL PROTECTED] wrote: In particular, Perl code looks more like line noise than like code from any known programming language. ;)) Hmm - I know of APL and SNOBOL. -- Lew TECO editor

RE: Ableton Live Python API is out!

2007-06-09 Thread Warren Stringer
Alia Khouri Write I have been waiting for this ages and it's finally happened! Python meet Live, Live meet Python! Wow. This is very cool; thanks for the announcement! I rushed to update http://wiki.python.org/moin/PythonInMusic but lo Thanks for this link, as well. Very useful. --

pyexe format

2007-06-09 Thread hg
Hi, Is there a clean way to figure out that a .exe was actually generated by pyexe ? hg -- http://mail.python.org/mailman/listinfo/python-list

Re: pyexe format

2007-06-09 Thread hg
hg wrote: Hi, Is there a clean way to figure out that a .exe was actually generated by pyexe ? hg I should gave writtent definite instead of clean hg -- http://mail.python.org/mailman/listinfo/python-list

How to get existing frames in non-current thread?

2007-06-09 Thread Fabio Zadrozny
Hi, Is there some way to get all the frames for any given thread? -- in a way that does not require a compiled extension. Thanks, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's only one way to do it philosophy isn't good?

2007-06-09 Thread James Stroud
Kay Schluehr wrote: On Jun 9, 12:16 pm, James Stroud [EMAIL PROTECTED] wrote: Terry Reedy wrote: In Python, you have a choice of recursion (normal or tail) Please explain this. I remember reading on this newsgroup that an advantage of ruby (wrt python) is that ruby has tail recursion,

RE: Hooking exceptions outside of call stack

2007-06-09 Thread Warren Stringer
Josiah Carlson wrote: foo = type(foo)(foo.func_code, d, foo.func_name, foo.func_defaults, foo.func_closure) Wow! I've never seen that, before. Is there documentation for `type(n)(...)` somewhere? I did find a very useful Decorator for Binding Constants, by Raymond Hettinger, that uses this

Re: pyexe format

2007-06-09 Thread John Machin
On Jun 10, 10:38 am, hg [EMAIL PROTECTED] wrote: hg wrote: Hi, Is there a clean way to figure out that a .exe was actually generated by pyexe ? hg I should gave writtent definite instead of clean hg Reminds me of the story about a teacher trying to correct a student who was using

Re: pyexe format

2007-06-09 Thread John Machin
On Jun 10, 11:25 am, John Machin [EMAIL PROTECTED] wrote: On Jun 10, 10:38 am, hg [EMAIL PROTECTED] wrote: hg wrote: Hi, Is there a clean way to figure out that a .exe was actually generated by pyexe ? hg I should gave writtent definite instead of clean hg Reminds me of

Re: VIM editor question

2007-06-09 Thread BartlebyScrivener
On Jun 9, 1:23 pm, Jerry Van Brimmer [EMAIL PROTECTED] wrote: On 6/9/07, BartlebyScrivener [EMAIL PROTECTED] wrote: No! That's completely wrong. No, it's not *completely* wrong. Yes, I should have mentioned the bg=dark entry, but that doesn't make it *completely* wrong. you're just showing

Re: urllib2 - iteration over non-sequence

2007-06-09 Thread Erik Max Francis
Gary Herron wrote: So... You must explicitly read the contents of the file-like object yourself, and loop through the lines you self. However, fear not -- it's easy. The socket._fileobject object provides a method readlines that reads the *entire* contents of the object, and returns a list

Are there any python jobs worked at home from the internet?

2007-06-09 Thread boyeestudio
Hi,all buddies. Are there any python jobs worked at home from the internet? I want to find a part time job. Please give a clue to this for me. Thanks a lot! -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib2 - iteration over non-sequence

2007-06-09 Thread Paul Rubin
Erik Max Francis [EMAIL PROTECTED] writes: This is really wasteful, as there's no point in reading in the whole file before iterating over it. To get the same effect as file iteration in later versions, use the .xreadlines method:: for line in aFile.xreadlines(): ... Ehhh,

Re: How to get existing frames in non-current thread?

2007-06-09 Thread Gabriel Genellina
En Sat, 09 Jun 2007 21:40:40 -0300, Fabio Zadrozny [EMAIL PROTECTED] escribió: Is there some way to get all the frames for any given thread? -- in a way that does not require a compiled extension. For the current (calling) thread, you can use sys._getframe() For other threads, you can use

Re: Are there any python jobs worked at home from the internet?

2007-06-09 Thread Gabriel Genellina
En Sat, 09 Jun 2007 22:53:08 -0300, boyeestudio [EMAIL PROTECTED] escribió: Are there any python jobs worked at home from the internet? I want to find a part time job. Please give a clue to this for me. I know of http://www.rentacoder.com/ but I've never actually used it. -- Gabriel

Third-party libs in version control

2007-06-09 Thread Marcus
Good evening, I'm new to developing large subversion-controlled projects. This one will involve a few third-party libraries like wxWidgets, and perhaps Twisted. Ordinarily you could just install these into your system and they'll end up globally (in Python's Lib/site-packages directory). Is it

Seattle Python Interest Group meeting 7 PM Thursday

2007-06-09 Thread James Thiele
Seattle Python Interest Group meeting 7 PM Thursday 14 June 2007. See http://www,seapig.org for location and directions. -- http://mail.python.org/mailman/listinfo/python-list

Re: Seattle Python Interest Group meeting 7 PM Thursday

2007-06-09 Thread James Thiele
On Jun 9, 8:35 pm, James Thiele [EMAIL PROTECTED] wrote: Seattle Python Interest Group meeting 7 PM Thursday 14 June 2007. Seehttp://www,seapig.orgfor location and directions. Ooops! http://www.seapig.org -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib2 - iteration over non-sequence

2007-06-09 Thread Gary Herron
Paul Rubin wrote: Erik Max Francis [EMAIL PROTECTED] writes: This is really wasteful, as there's no point in reading in the whole file before iterating over it. To get the same effect as file iteration in later versions, use the .xreadlines method:: for line in aFile.xreadlines():

Re: The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations

2007-06-09 Thread Twisted
On Jun 9, 8:21 pm, BCB [EMAIL PROTECTED] wrote: Paul McGuire [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Jun 9, 6:49 am, Lew [EMAIL PROTECTED] wrote: In particular, Perl code looks more like line noise than like code from any known programming language. ;)) Hmm - I

Re: MI5 Persecution: Goldfish and Piranha 29/9/95 (5104)

2007-06-09 Thread Mike
And this is here because ??? [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] |I just thought I'd let you know what I've been reading into the | Crusader spam. I don't want to post this to usenet because somebody | might try to tie that in to my posts in some way (someone

Re: read xml file from compressed file using gzip

2007-06-09 Thread flebber
On Jun 10, 3:45 am, Stefan Behnel [EMAIL PROTECTED] wrote: flebber wrote: I was working at creating a simple program that would read the content of a playlist file( in this case *.k3b) and write it out . the compressed *.k3b file has two file and the one I was trying to read was

Re: urllib2 - iteration over non-sequence

2007-06-09 Thread Paul Rubin
Gary Herron [EMAIL PROTECTED] writes: For simplicity, I'd still suggest my original use of readlines. If and when you find you are downloading web pages with sizes that are putting a serious strain on your memory footprint, then one of the other suggestions might be indicated. If you know

Re: Bug/Weak Implementation? popen* routines can't handle simultaneous read/write?

2007-06-09 Thread Nick Craig-Wood
dmoore [EMAIL PROTECTED] wrote: On Jun 8, 12:30 pm, Nick Craig-Wood [EMAIL PROTECTED] wrote: Windows has a really strange idea of non-blocking IO - it uses something called overlapped io. You or in the FILE_FLAG_OVERLAPPED flag when you create the file/pipe. You then pass in overlap

Re: 4 byte integer

2007-06-09 Thread James T. Dennis
Paul D Ainsworth [EMAIL PROTECTED] wrote: Greetings everyone. I'm a relative newcomer to python and I have a technical problem. I want to split a 32 bit / 4 byte unsigned integer into 4 separate byte variables according to the following logic: - bit numbers 0..7 byte 1 bit numbers 8..15

Re: urllib2 - iteration over non-sequence

2007-06-09 Thread Erik Max Francis
Gary Herron wrote: Certainly there's are cases where xreadlines or read(bytecount) are reasonable, but only if the total pages size is *very* large. But for most web pages, you guys are just nit-picking (or showing off) to suggest that the full read implemented by readlines is wasteful.

[ python-Bugs-1732557 ] T_LONGLONG chokes on ints

2007-06-09 Thread SourceForge.net
Bugs item #1732557, was opened at 2007-06-06 23:23 Message generated for change (Comment added) made by rupole You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1732557group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1729277 ] SVNVERSION redefined during compilation

2007-06-09 Thread SourceForge.net
Bugs item #1729277, was opened at 2007-06-01 04:28 Message generated for change (Settings changed) made by loewis You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1729277group_id=5470 Please note that this message will contain a full copy of the comment

  1   2   >