Re: what version python and wxPython comes with Mac OS X Leopard

2007-10-20 Thread Horace Enea
According to this Apple web page, Python 2.5 will be supported http://www.apple.com/macosx/technology/unix.html Horace In article [EMAIL PROTECTED], chewie54 [EMAIL PROTECTED] wrote: Hi All, Does anyone know what version of Python and wxPython comes with the new Mac OS X Leopard?

PyObjC and Xcode

2007-07-03 Thread Horace Enea
I'm trying to use Python on a Mac running OSX 10.4.9. I installed Python 2.5 along with Idle. My problem is that Xcode no longer works with PyObjC. It gives an error message: ImportError: No module named PyObjCTools. I've down-loaded PyObjC and re-installed it along with PyObjCTools, but still

copying generatrors

2007-06-05 Thread Horace Enea
Does anyone have code to copy a generator? Here is what I'd like to do: def foo(): yield 1 yield 2 yield 3 f = foo() g = copy(foo) print f.next() 1 print f.next() 2 print g.next() 1 Thanks, Horace -- http://mail.python.org/mailman/listinfo/python-list

Re: copying generatrors

2007-06-05 Thread Horace Enea
My example wasn't very good. Here's another try: def foo(): yield 1 yield 2 yield 3 f = foo() f.next() 1 g=copy(f) # copy the generator after an iteration f.next() 2 f.next() 3 g.next() 2 I want to copy the generator's state after one or more iterations. In article

Re: copying generatrors

2007-06-05 Thread Horace Enea
Steve, Hey, thanks. I'll try that. Horace In article [EMAIL PROTECTED], Steven Bethard [EMAIL PROTECTED] wrote: Horace Enea wrote: My example wasn't very good. Here's another try: def foo(): yield 1 yield 2 yield 3 f = foo() f.next() 1 g=copy(f) # copy