Friday, December 5, 2008

Python 3.0 released

New release v 3.0 of Python was released on two days ago on 3rd of December. There are some significant changes in this release as stated on the top of the page:

Python 3.0 (a.k.a. "Python 3000" or "Py3k") is a new version of the language that is incompatible with the 2.x line of releases. The language is mostly the same, but many details, especially how built-in objects like dictionaries and strings work, have changed considerably, and a lot of deprecated features have finally been removed. Also, the standard library has been reorganized in a few prominent places.

 

Some of the big changes are

  • print is now a function
  • long is renamed to int
  • expression 1/2 will return a float
  • text and binary data are used instead of Unicode strings
  • changes in syntax for function argument and return value annotations

 

Of course there is a more on What’s new page. This may make things more interesting for ESRI. ArcGIS is using Python as one of languages supported for geoprocessing. This will not be a problem from installation point of view because ESRI provides installer for it but from support and migration of existing models. I don’t expect ESRI to make a utility (but that would be nice) that would convert Python 2.X to 3.0 scripts. Most likely they will include some documentation like on what’s new page on Python.org or they will write up a smaller more focused document.

Anyway it is good to see these changes and hopefully that won’t cause too much trouble for GIS script developers.

No comments:

Post a Comment