The Artima Developer Community
Sponsored Link

Python Buzz Forum
Python 0.9.1p1

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Andrew Dalke

Posts: 291
Nickname: dalke
Registered: Sep, 2003

Andrew Dalke is a consultant and software developer in computational chemistry and biology.
Python 0.9.1p1 Posted: Mar 26, 2009 7:12 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Andrew Dalke.
Original Post: Python 0.9.1p1
Feed Title: Andrew Dalke's writings
Feed URL: http://www.dalkescientific.com/writings/diary/diary-rss.xml
Feed Description: Writings from the software side of bioinformatics and chemical informatics, with a heaping of Python thrown in for good measure.
Latest Python Buzz Posts
Latest Python Buzz Posts by Andrew Dalke
Latest Posts From Andrew Dalke's writings

Advertisement

Someone on StackOverflow asked: Which version of python added the else clause for for loops?. While the online documentation only goes back to 1.4, I remembered that the original code was posted to the alt.sources newsgroup. A bit of a search and I found copies of the original 21 shar files. (20 shar files, because #2 was withdrawn, then 21 again because of patch #1).

The post series starts with "Python 0.9.1", for example, "Python 0.9.1 part 01/21, and the patch is titled Python 0.9 official patch #1".

I downloaded them, unshar'ed the archive, applied the patch, configured the Makefile correctly, fixed a few compilation problems, and the result was a running version of Python 0.9.1!

And very primitive it is too. No copyright message when it starts up. Bad error reporting. Class delaration requires a () even when there are no parents. There's no __init__ special method, so the convention is to call 'Create()' yourself. Uses 'self' and 'this' and other terms instead of only 'self'. Only understands 'single quote strings' and not "double quotes."

Still, it does work. I've put a copy of it at online for your enjoyment. The changes I made are documented in "README.reconstructed". I see that python.org only has Python releases to 1.0.1, so I'll let them know about my reconstruction.

Note: I am not taking any patches. :)

Have fun!

Read: Python 0.9.1p1

Topic: Patience sort and the Longest increasing subsequence Previous Topic   Next Topic Topic: From PyCON 2009, Chicago

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use