collections use __next__() in python 2.6?

2010-02-26 Thread Gary Robinson
erits from Iterable, and it doesn't seem to work if I define __next__(); I am not seeing problems if I define next() instead. What am I missing? -- Gary Robinson CTO Emergent Music, LLC personal email: gary...@me.com work email: grobin...@flyfi.com Company: http://www.flyfi.co

python memory use

2009-09-30 Thread Gary Robinson
es) than in CPython? I find it hard to believe that that would be the case, but I'm quite curious. (I could test the particular case I mention, but I'm wondering if someone has some fundamental knowledge that would lead to a basic understanding.) -- Gary Robinson CTO Emergent Music, LL

Re: pickling question

2009-09-02 Thread Gary Robinson
ial classes should > usually be defined in a separate module anyway. But sometimes it > makes sense for a script to define a really simple, small class to > hold some data, and needing to create a separate module just to > contain such a class can be a little annoying. -- Gar

pickling question

2009-09-02 Thread Gary Robinson
ate a separate module just to contain such a class can be a little annoying. -- Gary Robinson CTO Emergent Music, LLC personal email: gary...@me.com work email: grobin...@flyfi.com Company: http://www.flyfi.com Blog:http://www.garyrobinson.net -- http://mail.python.org/mailman/listinfo/python-list

exit()

2008-09-08 Thread Gary Robinson
een able to find? Is there any reason to use sys.exit() given exit()'s availability? If there is an advantage to sys.exit() over exit(), then does sys.exit() have any advantage over "raise SystemExit, 'some error message'" in cases where a module has no other reason to

32-bit python memory limits?

2008-06-23 Thread Gary Robinson
g of a 2GB limit wrong? I guess so! But I'm pretty sure I saw it max out at 2GB on linux... Anybody have an explanation, or is it just that my understanding of a 2GB limit was wrong? Or was it perhaps right for earlier versions, or on linux...?? Thanks for any thoughts, Gary -- Gary Robins

re: getting the current function

2007-09-07 Thread Gary Robinson
isn't one of them, I just used that as a quick example of using thisfunc(). I've just never liked the fact that you have to name the function when accessing those attributes from within the function. And I thought there might be other uses for something like thisfunc(). -- G

getting the current function

2007-09-06 Thread Gary Robinson
ere since thisfunc() stores the references on the stack rather than the heap. But I'm not sure. Obviously, it would be easy to add a try/finally with appropriate del's, but I don't want to do it if it's not necessary. I welcome feedback of any type. Thanks, Gary -- Gary Ro

error: Error -5 while decompressing data from struct.unpack

2006-12-14 Thread Gary Robinson
n. There's a system exception EINTR which is 5 -- but that's 5, not -5. Any help on this would be most appreciated. -- Gary Robinson CTO Emergent Music, LLC [EMAIL PROTECTED] 207-942-3463 Company: http://www.goombah.com Blog:http://www.garyrobinson.net -- http://mail.python.org/mailman/listinfo/python-list

xml.sax.xmlreader and expat

2006-06-27 Thread Gary Robinson
advance for any input anyone can give. Gary -- Gary Robinson VP/Innovation Emergent Music, LLC [EMAIL PROTECTED] 207-942-3463 Company: http://www.goombah.com Blog:http://www.garyrobinson.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 31, Issue 94

2006-04-09 Thread Gary Robinson
ows, you can quickly figure out if it's "fast enough". The more speed I have, the better output I'll be able to get. This application is a case where there is no "fast enough". The more speed, the better, within financial constraints. Gary -- Gary Robinson VP/Innovat

32-bit python on Opteron, Solaris 10?

2006-04-06 Thread Gary Robinson
thon in "32-bit compatibility mode" and running it alongside the pre-installed Python that comes with Solaris 10. Any input or tips would be greatly appreciated. Thanks Gary -- Gary Robinson VP/Innovation Emergent Music, LLC [EMAIL PROTECTED] 207-942-3463 Company: http://www.goombah

Thread priorities?

2005-06-14 Thread Gary Robinson
tential to solve our problem. Or maybe there's another way to temporarily let one thread have priority over all the others? Gary -- Gary Robinson CTO Emergent Music, LLC [EMAIL PROTECTED] 207-942-3463 Company: http://www.goombah.com Blog:http://www.garyrobinson.net -- http://mail.py

dictionaries and threads

2005-06-01 Thread Gary Robinson
tell, if the Python bytecodes that cause dictionary modifications are atomic, then there should be no problem. But I don't know that they are because I haven't looked at the bytecodes. Any feedback on this would be appreciated. For various reasons, we're still using Python 2.3

Python consulting opportunity

2005-04-25 Thread Gary Robinson
ant. If this sounds like an opportunity you'd be interested in, or if you know of someone who might be a match, please let us know. Thanks, Gary -- Gary Robinson CTO Emergent Music, LLC [EMAIL PROTECTED] 207-942-3463 Company: http://www.goombah.com Blog:http://www.garyrobinson.