from __future__ import * 25.1.2004

2004-01-25

pickle those iterators

I made a small patch to the Stackless 2.3 branch today: iterator pickling. It now pickles/unpickles all of the private iterator types (that I know of) in Python's builtins: dictionary-iterator, listiterator, rangeiterator, tupleiterator. I'm sure it will be in CVS pretty soon.

Python 2.3.3 Stackless 3.0 040119 (#5, Jan 25 2004, 11:26:07) 
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pickle import loads, dumps
>>> a = iter(range(10))
>>> a
<stackless.listiterator object at 0x3d0d50>
>>> a.next()
0
>>> a.next()
1
>>> b = loads(dumps(a)) 
>>> a.next()
2
>>> b.next()
2
posted at 11:32:00    #    comment []    trackback []
 

Today in MacPython - snippets

Here's some links and snippets of interest from today on the MacPython Channel:

  • READ THE FAQ! PLEASE! :)

  • Squeak - when do we get GUI tools like this for MacPython?

  • unicodedata - u'\N{DEGREE SIGN}' is the same as unicodedata.lookup('DEGREE SIGN')

  • Zope - How is it different from Apache+PHP? The Plone installer is a good way to try it out on the Mac.

  • ZODB - It doesn't use ExtensionClass anymore! But you still have to subclass Persistent.

  • bundlebuilder - How do I make a pygame bundle? It's still hard (but I'm working on that). Python+pygame would be a great language to use for the iDevGames 21 Days Later contest, but the bundles are beyond the 2.1 MiB compressed limit! It's possible to make small bundles, but the means to do so are not currently available (but ask me in two weeks if you are participating!)

  • IDEs - Vim, Emacs, SubEthaEdit and Xcode do syntax highlighting, PyOXIDE is an up and coming Cocoa IDE.

  • Chemistry - PyQuante looks like a good way to learn some quantum chemistry.

  • PyObjC - it rocks, but you should already know that. A 1.1 release should be coming out Very Soon Now, but has been set back by sourceforge CVS issues.

  • wxPython still has bugs on the Mac

  • XUL and Renaissance are XML-based-GUIs

  • Enthought Python is a good way to get a scientific/engineering enabled version of Python. We don't have that yet for the Mac, but we should!

  • Opportunity landed, but NASA TV is only available via Real (yuck!)

  • New PackageWishList node on the wiki, use it!

posted at 03:04:16    #    comment []    trackback []
January
MoTuWeThFrSaSu
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
262728293031 
Dec Feb

Bob's Rants

XML-Image Letterimage

© 2004, Bob Ippolito