Share

Python Interface to PostgreSQL

Tracker: Bugs

5 wrong indentation (aka unknown PEP 8) - ID: 1911732
Last Update: Tracker Item Submitted ( bpietro2 )

From PEP 8 - Style guide:

Indentation

Use 4 spaces per indentation level.

For really old code that you don't want to mess up, you can continue
to
use 8-space tabs.

Tabs or Spaces?

Never mix tabs and spaces.

The most popular way of indenting Python is with spaces only. The
second-most popular way is with tabs only. Code indented with a
mixture
of tabs and spaces should be converted to using spaces exclusively.


Once more:
Never mix tabs and spaces!

PgSQL.py (2.5.1) use:

tabs for even indentation levels and
zero o more tabs + four spaces for odd levels.

Seems good if you have 8 spaces tab setting in your editor, otherwise leads
in mess code.

Regards,
Pietro


Pietro Bernardi ( bpietro2 ) - 2008-03-11 09:37

5

Open

None

Nobody/Anonymous

None

None

Public


Comments

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.