Ticket #5939 enhancement closed fixed

Opened 9 months ago

Last modified 8 months ago

Add Python 3 requirements to coding standard

Reported by: itamar Owned by: exarkun
Priority: normal Milestone: Python 3.3 Minimal
Component: core Keywords:
Cc: Branch: branches/coding-standard-py3-5939
Author: exarkun Launchpad Bug:

Description

All new code should be, at the very least, non-conflicting with Python 3. The coding standard should be updated appropriately. Some, but not all, items include:

  • All byte strings must start with b.
  • Exceptions must be caught except Exception as e.
  • Use of new functions and classes in twisted.python.compat, e.g. unicode.
  • All modules must have the division __future__.

Etc.

Change History

1

Changed 8 months ago by exarkun

  • branch set to branches/coding-standard-py3-5939
  • branch_author set to exarkun

(In [35889]) Branching to 'coding-standard-py3-5939'

2

Changed 8 months ago by exarkun

  • keywords review added
  • owner set to itamar

3

Changed 8 months ago by itamar

  • keywords review removed
  • owner changed from itamar to exarkun

We can live with that for now until we have a complete list, yeah. The buildbot should catch most egregious problems, hopefully. Merge, with news file.

4

Changed 8 months ago by exarkun

  • status changed from new to closed
  • resolution set to fixed

(In [35913]) Merge coding-standard-py3-5939

Author: exarkun Reviewer: itamar Fixes: #5939

Add a note to the coding standard about paying attention to Python 3 compatibility.

Note: See TracTickets for help on using tickets.