Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76172 > unrolled thread

[Announce] Python-Future v0.13; cheatsheet for Python 2/3 compatible code

Started byEd Schofield <ed@pythoncharmers.com>
First post2014-08-13 13:28 +1000
Last post2014-08-13 08:31 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  [Announce] Python-Future v0.13; cheatsheet for Python 2/3 compatible code Ed Schofield <ed@pythoncharmers.com> - 2014-08-13 13:28 +1000
    Re: [Announce] Python-Future v0.13; cheatsheet for Python 2/3 compatible code Steven D'Aprano <steve@pearwood.info> - 2014-08-13 08:31 +0000

#76172 — [Announce] Python-Future v0.13; cheatsheet for Python 2/3 compatible code

FromEd Schofield <ed@pythoncharmers.com>
Date2014-08-13 13:28 +1000
Subject[Announce] Python-Future v0.13; cheatsheet for Python 2/3 compatible code
Message-ID<mailman.12910.1407911525.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hi all,

I am happy to announce an update to Python-Future for Python 2/3 compatibility and a new cheat-sheet for writing code compatible with both versions.

Here’s the "What’s New" page for v0.13:

    http://python-future.org/whatsnew.html

Here’s the Py2/3 compatibility cheat-sheet:

    http://python-future.org/compatible_idioms.html

or as a PDF:

    http://python-future.org/compatible_idioms.pdf

The cheat-sheet accompanies a talk I gave at PyCon AU 2014 last weekend called “Writing Python 2/3 compatible code”. I will add a link to the video and slides from the cheat-sheet page when they are online.

I would be happy to accept pull requests for additions or changes to the Py2/3 cheat-sheet. The source is here:

    https://github.com/PythonCharmers/python-future/blob/master/docs/notebooks/Writing%20Python%202-3%20compatible%20code.ipynb

Best wishes,
    Ed


--
Dr. Edward Schofield
Python Charmers
http://pythoncharmers.com

[toc] | [next] | [standalone]


#76175

FromSteven D'Aprano <steve@pearwood.info>
Date2014-08-13 08:31 +0000
Message-ID<53eb2270$0$11123$c3e8da3@news.astraweb.com>
In reply to#76172
On Wed, 13 Aug 2014 13:28:03 +1000, Ed Schofield wrote:

> Hi all,
> 
> I am happy to announce an update to Python-Future for Python 2/3
> compatibility and a new cheat-sheet for writing code compatible with
> both versions.

Nice! But are you aware that some of your Python 2 code only works in 
certain versions of Python 2? E.g. raising bare strings only works up to 
Python 2.5, in 2.6 and higher it is a syntax error.



-- 
Steven

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web