This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alexandre.vassalotti
Recipients alexandre.vassalotti
Date 2008-05-16.06:10:35
SpamBayes Score 0.016327297
Marked as misclassified No
Message-id <1210918255.72.0.267363953828.issue2888@psf.upfronthosting.co.za>
In-reply-to
Content
The indent argument produces different output in Python 2.6 and 3.0: 

Python 3.0a5+ (py3k:63349:63350M, May 16 2008, 00:37:17) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pprint
>>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni']
>>> stuff.insert(0, stuff[:])
>>> pprint.pprint(stuff, indent=4) 
[   ['spam', 'eggs', 'lumberjack', 'knights', 'ni'],
    'spam',
    'eggs',
    'lumberjack',
    'knights',
    'ni']


Python 2.6a3+ (trunk:63323, May 15 2008, 16:09:01) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pprint
>>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni']
>>> stuff.insert(0, stuff[:])
>>> pprint.pprint(stuff, indent=4) 
[   [   'spam', 'eggs', 'lumberjack', 'knights', 'ni'],
    'spam',
    'eggs',
    'lumberjack',
    'knights',
    'ni']
History
Date User Action Args
2008-05-16 06:10:59alexandre.vassalottisetspambayes_score: 0.0163273 -> 0.016327297
recipients: + alexandre.vassalotti
2008-05-16 06:10:56alexandre.vassalottisetspambayes_score: 0.0163273 -> 0.0163273
messageid: <1210918255.72.0.267363953828.issue2888@psf.upfronthosting.co.za>
2008-05-16 06:10:52alexandre.vassalottilinkissue2888 messages
2008-05-16 06:10:50alexandre.vassalotticreate