[New-bugs-announce] [issue26095] Update porting HOWTO to special-case Python 2 code, not Python 3

Brett Cannon report at bugs.python.org
Tue Jan 12 21:16:37 EST 2016


New submission from Brett Cannon:

As pointed out by http://astrofrog.github.io/blog/2016/01/12/stop-writing-python-4-incompatible-code/, special-casing Python 3 code instead of Python 2 code when writing Python 2/3 code will lead to breakage when Python 3 comes out. There should probably be a note in the porting HOWTO mentioning that you should always special-case Python 2 code and not Python 3 code.

----------
assignee: docs at python
components: Documentation
messages: 258126
nosy: brett.cannon, docs at python
priority: normal
severity: normal
status: open
title: Update porting HOWTO to special-case Python 2 code, not Python 3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26095>
_______________________________________


More information about the New-bugs-announce mailing list