[issue6519] Reorder 'with' statement for files in Python Tutorial

2010-08-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue4892] Sending Connection-objects over multiprocessing connections fails

2010-08-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker ___

[issue740495] API enhancement: poplib.MailReader()

2010-08-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue1744] readline module - set/get quote delimiters

2010-08-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9031] distutils uses invalid "-Wstrict-prototypes" flag when compiling C++ extension module

2010-08-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate status: open -> closed versions: +Python 3.2 -Python 2.6 ___ Python tracker ___ __

[issue7790] struct_time documentation entry should point to the table defining the tuple

2010-08-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9538] Replace confusing pseudoname 'object' in special methods section.

2010-08-07 Thread Éric Araujo
Éric Araujo added the comment: Good catch! Names listed under language reference section 3.3.1 actually all exist on object, e.g. object.__new__¹. It is section 3.3.2 that lists names that *can* be defined but don’t have a default implementation on object, so +1 on using “someclass” here to

[issue8722] Documentation for __getattr__

2010-08-07 Thread Éric Araujo
Éric Araujo added the comment: Old-style classes can’t have descriptors, hence no properties, static methods, class methods or super. -- nosy: +merwok ___ Python tracker ___ ___

[issue6105] json.dumps doesn't respect OrderedDict's iteration order

2010-08-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think we should close it. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___

[issue3871] cross and native build of python for mingw32 with distutils

2010-08-07 Thread Руслан Ижбулатов
Руслан Ижбулатов added the comment: New version of my patch. Addresses some issues i've found since the last one. Diff against a recent trunk is attached. Changes (relative to previous patch): Python/pythonrun.c: * Added a call to _set_abort_behavior(). That should fix http://bugs.python.org

[issue9431] 2to3 reapplies fix_dict

2010-08-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't experience this with the bleeding-edge version of 2to3. Can you try with that? -- resolution: -> out of date status: open -> closed ___ Python tracker

[issue7567] Messed up terminal after calling curses.initscr() twice.

2010-08-07 Thread Brian Harring
Brian Harring added the comment: This change isn't hugely friendly API wise- for code that invokes setupterm() multiple items (and does so knowing what it's doing), they're now silently locked into whatever the first term invocation was. Personally, an override here has major usage- especiall

[issue9539] python-2.6.4: test failure in test_distutils due to linking to system libpython2.6

2010-08-07 Thread Valeo de Vries
New submission from Valeo de Vries : I'm under the impression that this is issue is known about, however I couldn't find an existing bug, so I'm creating a new one for the following test failure: test_distutils /usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../../i686-pc-linux-gnu/bin/ld: cannot

[issue3871] cross and native build of python for mingw32 with distutils

2010-08-07 Thread Éric Araujo
Éric Araujo added the comment: FYI, distutils is frozen because even minor bug fixes have broken third-party tools in the past, that’s why new features and bug fixes land in distutils2. Only some bug fixes that are sure not to break things make their way into distutils. distutils2 will be rei

[issue9386] Bad indentation in urllib import fixer with multiple imports

2010-08-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r83798. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue8814] functools.WRAPPER_ASSIGNMENTS should include __annotations__

2010-08-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Backported to Py3.1 in r83807 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-li

[issue8387] use universal newline mode in csv module examples

2010-08-07 Thread R. David Murray
R. David Murray added the comment: "The doc has been fixed" refers to the fact that the lineterminator dialect option is now documented as applying only to writing, not to reading. The docs could certainly be improved to discuss using universal newline mode. I'm not clear on whether or not t

[issue4356] Add "key" argument to "bisect" module functions

2010-08-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Added a link to the a SortedCollections recipe, added example of how to do searches, and noted the O(n) performance of the insort() functions. See r83786 -- status: open -> closed ___ Python tracker

[issue6864] IDLE 2.6.1 locks up on Mac OS 10.6

2010-08-07 Thread Richard
Richard added the comment: I'm thinking that the Snow Leopard abort trap when invoking IDLE from the command line is a permissions problem somewhere because it works ok when invoked with sudo. The console displays an odd message "2010-08-07 20:38:23.375 Python[25858:170b] __CFServiceControlle

[issue724459] Add documentation about line endings in email messages.

2010-08-07 Thread R. David Murray
R. David Murray added the comment: These guidelines need to be revamped for Python3. The place it should go is the developer docs, which I believe will soon be moved into the main documentation tree. It's not actually clear what the guidelines should be at this point. We haven't really fin

[issue9507] namedtuple should not hardcode the class name in __repr__

2010-08-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Applied in r83808 for Python 3.2. Am not backporting because I don't consider it a bug and the documented subclassing technique is: class A(namedtuple('A', 'x y')): ... -- resolution: -> accepted stage: patch review -> committed/rejected

[issue7734] discuss mark-as-invalid trick in heapq docs

2010-08-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Applied in r83793 Thanks for the suggestion. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ __

[issue1210680] Split email headers near a space

2010-08-07 Thread R. David Murray
R. David Murray added the comment: Yes, if there's a bug here and it can be fixed without a major behavior change then it could be backported. I'm not clear on what the bug is, though, since there is no example given. If the Hebrew is encoded as encoded words, it can and will be split in the

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2010-08-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Applied in r79810 Thanks for the suggestion. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ __

[issue9540] argparse: combine subparsers with global positional args

2010-08-07 Thread Michael . Elsdörfer
New submission from Michael.Elsdörfer : >>> parser = argparse.ArgumentParser() >>> subparsers = parser.add_subparsers(title="commands") >>> subparser = subparsers.add_parser('make') >>> parser.add_argument('jobs', nargs='*') >>> parser.print_help() usage: [-h] {make} ... [jobs [jobs ...]] While

[issue4570] Bad example in set tutorial

2010-08-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed in r83809 and r83810. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue7796] No way to find out if an object is an instance of a namedtuple

2010-08-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue9025] Non-uniformity in randrange for large arguments.

2010-08-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue7871] Duplicate test method in test_heapq

2010-08-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-07 Thread Troy J. Farrell
Changes by Troy J. Farrell : Removed file: http://bugs.python.org/file18408/issue5027.trunk.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-07 Thread Troy J. Farrell
Changes by Troy J. Farrell : Removed file: http://bugs.python.org/file18409/issue5027.py3k.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-07 Thread Troy J. Farrell
Troy J. Farrell added the comment: I'm attaching new patches for 2.7 and 3.2, now with comments. :) -- Added file: http://bugs.python.org/file18429/issue5027.py27.diff ___ Python tracker ___

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-07 Thread Troy J. Farrell
Changes by Troy J. Farrell : Added file: http://bugs.python.org/file18430/issue5027.py3k.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue9511] CharacterEncoderError when reading from sys.stdin from piped input in cmd.exe

2010-08-07 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +loewis, merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9539] python-2.6.4: test failure in test_distutils due to linking to system libpython2.6

2010-08-07 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Can you reproduce with a more recent 2.6, or even the current stable version 2.7? -- assignee: -> tarek nosy: +merwok, tarek ___ Python tracker __

[issue9541] node.pre_order() does not do preorder traversal

2010-08-07 Thread Joe Amenta
New submission from Joe Amenta : In Lib/lib2to3/pytree.py, Node.pre_order() calls the post_order() method of its children, instead of pre_order(). As a result, the only difference between the two orderings is that pre_order() yields the original node first, whereas post_order() yields the ori

[issue9541] node.pre_order() does not do preorder traversal

2010-08-07 Thread Joe Amenta
Joe Amenta added the comment: Fixed in r83811. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue7450] document that os.chmod accepts an octal digit mode

2010-08-07 Thread Ezio Melotti
Ezio Melotti added the comment: I guess you mean 0o755. I think it would be better to mention explicitly octal literals, since they are not so common and, especially in 2.x, 0755 might be confused with a "normal" decimal number. -- ___ Python track

<    1   2