[issue12152] Parser/asdl_c.py relies on mercurial repository revision

2011-05-23 Thread R. David Murray
R. David Murray added the comment: And like Benjamin said, it should be enough to touch those two files. You don't have to actually build a release tarball. -- ___ Python tracker

[issue12152] Parser/asdl_c.py relies on mercurial repository revision

2011-05-23 Thread Matthias Klose
Matthias Klose added the comment: ok, thanks. good enough -- resolution: -> invalid status: open -> closed ___ Python tracker ___ __

[issue12055] doctest not working on nested functions

2011-05-23 Thread Éric Araujo
Éric Araujo added the comment: New features don’t go in stable versions. -- type: -> feature request versions: +Python 3.3 -Python 2.6, Python 2.7 ___ Python tracker ___ __

[issue12160] codecs doc: what is StreamCodec?

2011-05-23 Thread STINNER Victor
New submission from STINNER Victor : Codec.encode() and Codec.decode() refer to StreamCode, but I cannot find this class in the doc nor in the code. I suppose that it should be replaced by IncrementalEncoder and IncrementalDecoder. If I'm correct, see attached patch. -- files: codecs_

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Closing the ticket again. We still need codecs.open() to support applications that target Python 2.x and 3.x. You can reopen it after Python 2.x has been end-of-life'd. -- resolution: -> postponed status: open -> closed

[issue6501] Fatal error on startup with invalid PYTHONIOENCODING

2011-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5783a55a2418 by Victor Stinner in branch 'default': Issue #6501: os.device_encoding() returns None on Windows if the application http://hg.python.org/cpython/rev/5783a55a2418 -- nosy: +python-dev ___ Pyt

[issue12140] Crash upon start up

2011-05-23 Thread Philip Drew
Philip Drew added the comment: Gave it a go: the prompt appears, but none of the functions work thereafter C:\Users\PWTD>c:\Python27\python -S Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 >>> print "hello" LookupError: no codec search functions register

[issue12055] doctest not working on nested functions

2011-05-23 Thread Baptiste Carvello
Baptiste Carvello added the comment: here is the patch for 2.7. Dave: I don't know if or when the patch will be accepted, as this is a new feature. In the meantime, you can easily patch your system. As the code changes are all in Python, you don't need to recompile. Going to your standard lib

[issue6501] Fatal error on startup with invalid PYTHONIOENCODING

2011-05-23 Thread STINNER Victor
STINNER Victor added the comment: @grahamd: Can you try the development version of Python 3.3, or try to patch your version using device_encoding.patch? You will not get cp0 encoding anymore. If the patch fixes your issue, I will backport it. I don't see anything interesting to do for this is

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-23 Thread STINNER Victor
STINNER Victor added the comment: Le lundi 23 mai 2011 à 16:11 +, Marc-Andre Lemburg a écrit : > We still need codecs.open() to support applications that target Python 2.x > and 3.x. io.TextIOWrapper exists in Python 2.6 and 2.7, and 2to3 can simply replace codecs.open() by open(). --

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Correcting the title: this ticket is about codecs.open(), not StreamRead and StreamWriter, both of which are essential parts of the Python codec machinery and are needed to be able to implement per-codec implementations of codecs which read from and write

[issue12055] doctest not working on nested functions

2011-05-23 Thread Dave Abrahams
Dave Abrahams added the comment: It's certainly much appreciated, but my tests have to run with a stock python, so I worked around the problem personally. I just reported this because I found (surprisingly, to me) that some of my tests had been silently not-running, which seems like a bad feat

[issue12140] Crash upon start up

2011-05-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: >From a Windows command prompt: - what is the output of "chcp"? - maybe an environment variable issue? Try "set PY" to display all variables starting with PY. -- nosy: +amaury.forgeotdarc ___ Python tracker <

[issue12160] codecs doc: what is StreamCodec?

2011-05-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > New submission from STINNER Victor : > > Codec.encode() and Codec.decode() refer to StreamCode, but I cannot find this > class in the doc nor in the code. > > I suppose that it should be replaced by IncrementalEncoder and > Inc

[issue12042] What's New multiprocessing example error

2011-05-23 Thread Davi Post
Davi Post added the comment: The What's New docs are the place to find information on changes between versions. Upgrading to 2.7 from 2.5, I needed to read the 2.6 and 2.7 What's New docs to learn what changes I should be aware of. I hope errors in these docs will be fixed, at least for a few

[issue12042] What's New multiprocessing example error

2011-05-23 Thread Jordan Stadler
Jordan Stadler added the comment: Alright, should it be closed if we aren't going to touch it? -- ___ Python tracker ___ ___ Python-b

[issue12158] platform: add linux_version()

2011-05-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > >> You can then use linux_version().split('.') in code that want >> to do version comparisons. > > It doesn't give the expected result: > ('2', '6', '9') < ('2', '6', '20') > False

[issue12158] platform: add linux_version()

2011-05-23 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12140] Crash upon start up

2011-05-23 Thread Philip Drew
Philip Drew added the comment: C:\Users\PWTD>set PY PYTHONHOME=c:\program files (x86)\steam\steamapps\common\alien swarm\swarm\..\sdktools\python\2.5 C:\Users\PWTD>chcp Active code page: 850 C:\Users\PWTD> -- ___ Python tracker

[issue12074] regrtest: display the current number of failures

2011-05-23 Thread R. David Murray
R. David Murray added the comment: How about instead changing [1/4], [2/4] etc to be [1/4/0], [2/4/0], etc? -- nosy: +r.david.murray ___ Python tracker ___ _

[issue12042] What's New multiprocessing example error

2011-05-23 Thread Éric Araujo
Éric Araujo added the comment: Let’s fix it in the open branches. -- versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___

[issue10801] zipfile.ZipFile().extractall() header mismatch for non-ASCII characters

2011-05-23 Thread Georg Brandl
Georg Brandl added the comment: Victor: you should have a look at . -- ___ Python tracker ___ __

[issue12125] test_sysconfig fails on OpenIndiana because of test_packaging

2011-05-23 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-23 Thread Charles-François Natali
Charles-François Natali added the comment: Antoine, do you think we can commit this as-is (i.e. without specific test)? If yes, to what branches (I'm not really sure of what kind of change is allowed for each branch, is there a document somewhere detailing the official policy?) ? -- _

[issue12125] test_sysconfig fails on OpenIndiana because of test_packaging

2011-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset f86fdca477e3 by Tarek Ziade in branch 'default': Issue #12125: fixed the failures under Solaris due to improper test cleanup. http://hg.python.org/cpython/rev/f86fdca477e3 -- nosy: +python-dev ___ Python

[issue12140] Crash upon start up

2011-05-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: hmm, I don't like this PYTHONHOME. Can you reset its value and run python again in the same terminal? C:\Users\PWTD>set PYTHONHOME= C:\Users\PWTD>c:\Python27\python -- ___ Python tracker

[issue12154] PyDoc Partial Functions

2011-05-23 Thread JJeffries
JJeffries added the comment: Tested this on 2.7.1. currently only covers the HTMLDoc class. The TextDoc class will also need updating with the docpartialfunc method. -- keywords: +patch Added file: http://bugs.python.org/file22086/partial.patch ___

[issue12055] doctest not working on nested functions

2011-05-23 Thread Baptiste Carvello
Baptiste Carvello added the comment: Eric: my bad, I guess I was living in the past, before 3.2 was released :-) Anyway, my 3.2 patch applies to default (6354b4ceba1d), with just a one-line offset for test_doctest.py. All tests pass. By the way, my 2.7 patch was based on 76e5fe8e21fd. --

[issue6560] socket sendmsg(), recvmsg() methods

2011-05-23 Thread David Watson
David Watson added the comment: On Mon 23 May 2011, Gergely Kálmán wrote: > It's been a while I had a look at that code. As far as I remember though > the code is fairly decent not > taking the missing unit tests into account. There are a few todos, and > also a pretty bad bug that I've fixed

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-05-23 Thread Nir Aides
Nir Aides added the comment: Hi, I attach a patch to Python 3.3 Lib/bz2.py with updated tests: cpython-bz2-streams.patch -- keywords: +needs review stage: needs patch -> patch review Added file: http://bugs.python.org/file22087/cpython-bz2-streams.patch

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-05-23 Thread Nadeem Vawda
Nadeem Vawda added the comment: Thanks for the patch. I'll review it tomorrow. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12134] json.dump much slower than dumps

2011-05-23 Thread poq
poq added the comment: Alright. I wouldn't mind a little note in the docs; I certainly did not expect that these two functions would perform so differently. Would it be very difficult though to add buffering support the C encoder? -- ___ Python tr

[issue12161] StringIO AttributeError instead of ValueError after close..

2011-05-23 Thread alejandro david weil
New submission from alejandro david weil : python 2.7 documentation: file:///usr/share/doc/python-doc/html/library/stringio.html#StringIO.StringIO.close (or: http://docs.python.org/library/stringio.html#StringIO.StringIO.close ) says: """StringIO.close() Free the memory buffer. Attempting to

[issue1813] Codec lookup failing under turkish locale

2011-05-23 Thread Gökçen Eraslan
Changes by Gökçen Eraslan : -- nosy: +Gökçen.Eraslan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12151] test_logging fails sometimes

2011-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7980838e2f55 by Vinay Sajip in branch 'default': Issue #12151: Added diagnostics to help diagnose intermittent socket errors. http://hg.python.org/cpython/rev/7980838e2f55 -- ___ Python tracker

[issue12151] test_logging fails sometimes

2011-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9ea03afc81f4 by Vinay Sajip in branch 'default': Issue #12151: Correction to diagnostic code. http://hg.python.org/cpython/rev/9ea03afc81f4 -- ___ Python tracker

[issue12074] regrtest: display the current number of failures

2011-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2da7577fa393 by Victor Stinner in branch '3.2': Issue #12074: regrtest displays also the current number of failures http://hg.python.org/cpython/rev/2da7577fa393 New changeset 60b0131fbea8 by Victor Stinner in branch 'default': (Merge 3.2) Issue #1

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-05-23 Thread Charles-François Natali
Charles-François Natali added the comment: @Victor Since linux_version() won't be added to the platform module, could you add it to test.support so that it can be used in the O_CLOEXEC test? -- ___ Python tracker

[issue12074] regrtest: display the current number of failures

2011-05-23 Thread STINNER Victor
STINNER Victor added the comment: > How about instead changing [1/4], [2/4] etc > to be [1/4/0], [2/4/0], etc? Great, I like it, and it's commited. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > TextIOWrapper() is conceptually something completely different. It's > more something like StreamReaderWriter(). That's a rather strange assertion. Can you expand? TextIOWrapper supports read-only, write-only, read-write, unseekable and seekable streams. ---

[issue12151] test_logging fails sometimes

2011-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1b1471d50b9e by Vinay Sajip in branch 'default': Issue #12151: Test now ignores datagram socket errors after server is closed. http://hg.python.org/cpython/rev/1b1471d50b9e -- ___ Python tracker

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> TextIOWrapper() is conceptually something completely different. It's >> more something like StreamReaderWriter(). > > That's a rather strange assertion. Can you expand? > TextIOWrapper supp

[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine, do you think we can commit this as-is (i.e. without specific > test)? Yes. > If yes, to what branches (I'm not really sure of what kind of change is > allowed for each branch, is there a document somewhere detailing the > official policy?) ? I thi

[issue12074] regrtest: display the current number of failures

2011-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 396f4ed61db7 by Ezio Melotti in branch '3.2': #12074: remove the /0 when there are no failures. http://hg.python.org/cpython/rev/396f4ed61db7 New changeset 9de2b1a5ee6b by Ezio Melotti in branch 'default': #12074: merge with 3.2. http://hg.python.o

[issue10994] implementation details in sys module

2011-05-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: The __sizeof__ special attribute shows up in dir(object) but appears not to be documented other than with >>> help(object.__sizeof__) Help on method_descriptor: __sizeof__(...) __sizeof__() -> size of object in memory, in bytes Should it have an entry in

[issue12074] regrtest: display the current number of failures

2011-05-23 Thread Ezio Melotti
Ezio Melotti added the comment: I removed the /0 when there are no failures after a short discussion on #python-dev. FWIW I'm -0 on the /N, but now that it's not displayed if there are no failures it won't bother me too much. -- nosy: +ezio.melotti stage: -> committed/rejected versi

[issue11377] Deprecate platform.popen()

2011-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset e44b851d0a2b by Victor Stinner in branch 'default': Issue #11377: platform.popen() emits a DeprecationWarning http://hg.python.org/cpython/rev/e44b851d0a2b -- nosy: +python-dev ___ Python tracker

[issue12158] platform: add linux_version()

2011-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset d585a6d548a3 by Victor Stinner in branch 'default': Issue #12158: Move linux_version() from test_socket to test.support http://hg.python.org/cpython/rev/d585a6d548a3 -- nosy: +python-dev ___ Python track

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9a16fa0c9548 by Victor Stinner in branch 'default': Issue #12105: test_posix skips test_oscloexec() on Linux < 2.6.23 http://hg.python.org/cpython/rev/9a16fa0c9548 -- ___ Python tracker

[issue12162] Documentation about re \number

2011-05-23 Thread Seth Troisi
New submission from Seth Troisi : It would be nice to clarify re documentation on how to use \number. current documentation lists three half examples: "(.+) \1 matches 'the the' or '55 55', but not 'the end' (note the space after the group)." This is rather confusing (at least to me) as it mig

[issue12162] Documentation about re \number

2011-05-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12162] Documentation about re \number

2011-05-23 Thread R. David Murray
R. David Murray added the comment: Read the description of strings and raw strings at the top of the re documentation for the answer to your question about \\. It would probably be better if the example regular expression was written r'(.+) \1' instead of as a bare expression as it is now.

[issue12155] queue example doesn't stop worker threads

2011-05-23 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue12155] queue example doesn't stop worker threads

2011-05-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: > It doesn't define do_work(), num_worker_threads or do_work() Is it unclear to you what those mean? They are placeholders for the user's actual task at hand. > my concern is that it doesn't stop worker threads. Stopping the threads wasn't the intent of

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-23 Thread Brian Curtin
Brian Curtin added the comment: Here's standalone patch which should cover this problem. The patch fails right now but succeeds if you apply it back to 652baf23c368 (the changeset before one of several changes around this code). I'll try to find the actual offending checkin and workout the di

[issue12029] ABC registration of Exceptions

2011-05-23 Thread Chris Rebert
Chris Rebert added the comment: Scouting around the CPython codebase a bit, I speculate that the cause of this behavior is that PyErr_GivenExceptionMatches() in errors.c uses PyType_IsSubtype() [which simply walks a class's __mro__ checking for pointer equality] rather than PyObject_IsSubclas

[issue12163] str.count

2011-05-23 Thread py.user
New submission from py.user : specification says [code] str.count(sub[, start[, end]]) Return the number of non-overlapping occurrences of substring sub in the range [start, end]. Optional arguments start and end are interpreted as in slice notation. [/code] [code] >>> ''.count('', None)

[issue11377] Deprecate platform.popen()

2011-05-23 Thread Chris Rebert
Chris Rebert added the comment: Slight tangent: Regarding os.popen()'s [documentation] status, there's a bug for that: http://bugs.python.org/issue9382 -- nosy: +cvrebert ___ Python tracker __

[issue12162] Documentation about re \number

2011-05-23 Thread Seth Troisi
Seth Troisi added the comment: Given David Murray's input I think the example would be best done as >>> re.search(r'(\w+) \1', "can you do the can can?") # Matches the duplicate >>> can <_sre.SRE_Match object at ...> I want to stress that the documentation is not wrong but confusing, especi

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-23 Thread Brian Curtin
Brian Curtin added the comment: Ok, so it's 893b098929e7 where that test stops working. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue12029] ABC registration of Exceptions

2011-05-23 Thread Chris Rebert
Chris Rebert added the comment: Surveying the docs, the current behavior *is* /technically/ correct (in a suspiciously precise way) according to the Language Reference: http://docs.python.org/dev/reference/compound_stmts.html#grammar-token-try_stmt : "For an except clause with an expression [.

[issue12163] str.count

2011-05-23 Thread R. David Murray
R. David Murray added the comment: For background on a similar issue, see #11828, especially msg133532. -- nosy: +r.david.murray ___ Python tracker ___ _

[issue5405] There is no way of determining which ABCs a class is registered against

2011-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: This topic came up again on python-ideas: http://mail.python.org/pipermail/python-ideas/2011-May/010293.html -- stage: -> needs patch ___ Python tracker

[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-05-23 Thread Mark Dickinson
New submission from Mark Dickinson : In Python 2.6 and 2.7, str.translate accepts None as a first argument. That's documented in the docs, but not in the str.translate docstring. -- assignee: docs@python components: Documentation messages: 136720 nosy: docs@python, mark.dickinson prior

[issue6560] socket sendmsg(), recvmsg() methods

2011-05-23 Thread Brian May
Brian May added the comment: Hello, Are there any problems applying the v5 version of the patch to 3.3? Also is there any remote chance for a backport to 2.7? Thanks -- ___ Python tracker ___

[issue12165] Does nonlocal include global?

2011-05-23 Thread Lukas Petru
New submission from Lukas Petru : Can "nonlocal x" declaration also reference global x? I would assume that global scope automatically encloses all other scopes. But the nonlocal keyword seems to exclude global scope. This seems counter-intuitive. (maybe bug in implementation?) For example:

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-05-23 Thread Nir Aides
Nir Aides added the comment: Wait, the tests seem wrong. I'll post an update later today. -- ___ Python tracker ___ ___ Python-bugs-li

[issue12136] test_logging fails when no ssl available

2011-05-23 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue12151] test_logging fails sometimes

2011-05-23 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: -> vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-23 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

<    1   2