[issue16090] but is needed somewhere in http://www.python.org/dev/peps/pep-3138/

2012-09-29 Thread Georg Brandl
Georg Brandl added the comment: I've gone through the PEP; I've found a few typos and fixed them, but no missing "but". Sorry, but without a more specific location I don't think it's sensible to keep this open. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed _

[issue16092] test_recursion_limit in test_threading fails on Mac OS X in 3.2

2012-09-29 Thread Chris Jerdonek
New submission from Chris Jerdonek: The test_threading.ThreadingExceptionTests.test_recursion_limit test fails on Mac OS X with the standard compilation command: $ ./configure --with-pydebug && make -j2 Python 3.2.3+ (3.2:247d3e3c08ca, Sep 29 2012, 23:45:43) [GCC 4.2.1 (Based on Apple Inc. bu

[issue16036] simplify int() signature docs

2012-09-29 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching patch updated for backport to 2.7. In cases where the 2.7 language was substantively different, I preserved the 2.7 language (e.g. I preserved the reference to plain and long integers). I also added the lone "0" prefix for octals, which is a differe

[issue15533] subprocess.Popen(cwd) documentation

2012-09-29 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- assignee: docs@python -> chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue15533] subprocess.Popen(cwd) documentation

2012-09-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Chris, please commit your patch. It's fine for me. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue15201] C argument errors and Python arguments error are different

2012-09-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is won't fix at least for now. The way arguments to C functions are parsed prevents them from ever really being the same. Specific improvements can be considered. -- nosy: +benjamin.peterson resolution: -> wont fix status: open -> closed

[issue16091] changing sidebar links in http://docs.python.org/

2012-09-29 Thread Ramchandra Apte
New submission from Ramchandra Apte: In http://docs.python.org/ the "Python 3.3 (in development)" link goes to the Python 3.4 docs. It should be renamed to "Python 3.3". A new link should be added for the Python 3.4 docs and the Python 3.2 link may be removed. -- assignee: docs@python

[issue16084] couple of code examples not highlighted in "What's new in Python 3"

2012-09-29 Thread Chris Jerdonek
Chris Jerdonek added the comment: Yes, I noticed that later, too. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue16090] but is needed somewhere in http://www.python.org/dev/peps/pep-3138/

2012-09-29 Thread Ramchandra Apte
New submission from Ramchandra Apte: subject I can't remember where the but is needed but I am sure a but is missing somewhere there. -- assignee: docs@python components: Documentation messages: 171607 nosy: docs@python, ramchandra.apte priority: normal severity: normal status: open tit

[issue15201] C argument errors and Python arguments error are different

2012-09-29 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue16084] couple of code examples not highlighted in "What's new in Python 3"

2012-09-29 Thread Ramchandra Apte
Ramchandra Apte added the comment: LOL the duplicate is my bug ;-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue16089] _elementtree causes segfault in GC

2012-09-29 Thread Christian Heimes
Christian Heimes added the comment: The issue could be related to #14007. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-09-29 Thread Christian Heimes
Christian Heimes added the comment: It seems like your changes have introduced a segfault: #16089 -- nosy: +christian.heimes ___ Python tracker ___ __

[issue16089] _elementtree causes segfault in GC

2012-09-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16089] _elementtree causes segfault in GC

2012-09-29 Thread Christian Heimes
New submission from Christian Heimes: The issue was reported by Arfrever on #python-dev. The test suite of simpletal [1] was segfaulting with Python 3.3. It doesn't segfault without the _elementtree C extension. I'm able to reproduce the issue. It may take a couple of runs with a debug build

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-29 Thread Nadeem Vawda
Nadeem Vawda added the comment: Thanks for the bug report, Victor, and thank you Serhiy for the patch! Serhiy, would you be OK with me also including this patch in the bz2file package? -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.4

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1a08f4887cff by Nadeem Vawda in branch '3.3': Issue #16034: Fix performance regressions in the new BZ2File implementation. http://hg.python.org/cpython/rev/1a08f4887cff New changeset cf50a352fe22 by Nadeem Vawda in branch 'default': Merge #16034: Fi

[issue8800] add threading.RWLock

2012-09-29 Thread Sebastian Noack
Sebastian Noack added the comment: I've added a new patch, that implements a shared/exclusive lock as described in my comments above, for the threading and multiprocessing module. -- Added file: http://bugs.python.org/file27350/Added-ShrdExclLock-to-threading-and-multiprocessing.patch

[issue8800] add threading.RWLock

2012-09-29 Thread Sebastian Noack
Sebastian Noack added the comment: Using a lock as context manager is the same as calling lock.acquire(blocking=True) and it will in fact block while waiting for an other thread to release the lock. In your code, the internal lock is indeed just hold for a very short period of time while acqui

[issue16088] http.server's send_error could set the content-length of the error body

2012-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file27349/http_error_content_length.patch ___ Python tracker ___ ___

[issue16088] http.server's send_error could set the content-length of the error body

2012-09-29 Thread Antoine Pitrou
New submission from Antoine Pitrou: BaseHTTPRequestHandler.send_error() sets "connection: close", so the client shouldn't need a content-length, but it can still be nicer to send it (e.g. it seems to solve an issue with wget, see issue15991). -- components: Library (Lib) messages: 1715

[issue16036] simplify int() signature docs

2012-09-29 Thread Chris Jerdonek
Chris Jerdonek added the comment: See the following comment to issue 16045 for a couple differences in the behavior of int() in 2.7: http://bugs.python.org/issue16045#msg171595 -- ___ Python tracker _

[issue12014] str.format parses replacement field incorrectly

2012-09-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue16045] add more unit tests for built-in int()

2012-09-29 Thread Chris Jerdonek
Chris Jerdonek added the comment: Adding patch modified for 2.7. Here are the differences I found from 3.3. Unlike 3.3-- (1) 2.7 does not accept bytearrays for x (though it accepts str/bytes). (2) 2.7 raises a TypeError if passed a string base without providing x. Is it acceptable to add tes

[issue2489] Patch for bugs in pty.py

2012-09-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: The test breaks on OpenIndiana (and possibly elsewhere): http://buildbot.python.org/all/builders/x86%20OpenIndiana%203.x/builds/4640 == FAIL: test_spawn_returns_status (test.test_pty.PtyTest) --

[issue2489] Patch for bugs in pty.py

2012-09-29 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2489] Patch for bugs in pty.py

2012-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset ec2921d4de37 by Gregory P. Smith in branch 'default': pty.spawn() now returns the child process status as returned by os.waitpid(). http://hg.python.org/cpython/rev/ec2921d4de37 -- ___ Python tracker

[issue9650] format codes in time.strptime docstrings

2012-09-29 Thread Mike Hoy
Mike Hoy added the comment: >If you like my idea we should discuss it on python-ideas and start a new >tracker entry. In the meantime I'd like to create a patch that incorporates Alexander's ideas. If any objections let me know. -- nosy: +mikehoy _

[issue12268] file readline, readlines & readall methods can lose data on EINTR

2012-09-29 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue16077] fix code example in docs for built-in reduce()

2012-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I thought and decided it wasn't worth it. Howtos for general cases, and not for corner cases. -- ___ Python tracker ___ _

[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

2012-09-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: This was fixed in April. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue15756] subprocess.poll() does not handle errno.ECHILD "No child processes"

2012-09-29 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15756] subprocess.poll() does not handle errno.ECHILD "No child processes"

2012-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 53e91fa35f8e by Gregory P. Smith in branch '2.7': Issue #15756: subprocess.poll() now properly handles errno.ECHILD to http://hg.python.org/cpython/rev/53e91fa35f8e -- ___ Python tracker

[issue15756] subprocess.poll() does not handle errno.ECHILD "No child processes"

2012-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 484c50bf445c by Gregory P. Smith in branch '3.2': Fixes issue #15756: subprocess.poll() now properly handles errno.ECHILD http://hg.python.org/cpython/rev/484c50bf445c New changeset ba8d85552e34 by Gregory P. Smith in branch '3.3': Fixes issue #1575

[issue16077] fix code example in docs for built-in reduce()

2012-09-29 Thread Chris Jerdonek
Chris Jerdonek added the comment: Serhiy, feel free to create a new issue for Doc/howto/functional.rst if you feel an addition there is warranted. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tra

[issue16077] fix code example in docs for built-in reduce()

2012-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset a6779524962c by Chris Jerdonek in branch '2.7': Close issue #16077: fix code example in documentation of reduce() built-in (from docs@). http://hg.python.org/cpython/rev/a6779524962c -- nosy: +python-dev ___

[issue16085] Minor config parser doc change

2012-09-29 Thread R. David Murray
R. David Murray added the comment: Fixed. Thanks, Mark. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue16085] Minor config parser doc change

2012-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 178e7183931e by R David Murray in branch '3.2': #16085: Don't promote shadowing builtins in the configparser example. http://hg.python.org/cpython/rev/178e7183931e New changeset 769247e6edbf by R David Murray in branch '3.3': Merge #16085: Don't pro

[issue16074] bad error message in os.rename

2012-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Same issue for os.link and os.symlink. >>> import os >>> os.link('non-existent-name', 'new-name') Traceback (most recent call last): File "", line 1, in FileNotFoundError: [Errno 2] No such file or directory: 'new-name' >>> os.symlink('long-name'*1000, 'new

[issue16077] fix code example in docs for built-in reduce()

2012-09-29 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- assignee: docs@python -> chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue14478] Decimal hashing very slow, could be cached

2012-09-29 Thread Mark Dickinson
Changes by Mark Dickinson : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16087] How to open a csv file in universal new line mode?

2012-09-29 Thread R. David Murray
R. David Murray added the comment: The bug tracker isn't a good place to get help on using Python. You are more likely to find people to answer this sort of question on the python-list mailing list. If you are using python3, the answer is to use newline='', as discussed in the documentation.

[issue14503] docs: "yield from" breaks Pygments syntax coloring in doc examples

2012-09-29 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- title: docs: 2 code examples not Pygmented (syntax color coded) -> docs: "yield from" breaks Pygments syntax coloring in doc examples ___ Python tracker _

[issue16084] couple of code examples not highlighted in "What's new in Python 3"

2012-09-29 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue16084] couple of code examples not highlighted in "What's new in Python 3"

2012-09-29 Thread Mark Dickinson
Changes by Mark Dickinson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue16084] couple of code examples not highlighted in "What's new in Python 3"

2012-09-29 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for the report. Closing though as this is a duplicate. -- resolution: -> duplicate superseder: -> docs: 2 code examples not Pygmented (syntax color coded) ___ Python tracker

[issue16087] How to open a csv file in universal new line mode?

2012-09-29 Thread Kason
New submission from Kason: I am trying to follow the tutorial at http://www.slideshare.net/niloyghosh1984/qgis-tutorial-1 and I got to slide 24 of 47 whereupon I tried to use the mmqgis plugin to open the csv file, but I got this error: Error: new-line character seen in unquoted field - do you

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-09-29 Thread Mark Dickinson
Mark Dickinson added the comment: Martin, some things I'm not clear on w.r.t. the stable ABI. (1) Do defined constants like Py_TPFLAGS_INT_SUBCLASS form part of the stable ABI? (2) Would changing the type of Py_TPFLAGS_INT_SUBCLASS from long to unsigned long break the stable ABI? --

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-09-29 Thread Mark Dickinson
Mark Dickinson added the comment: Actually, I think it'll be messy to make this work: PyType_GetFlags is part of the stable ABI, so that's got to continue to return a long rather than an unsigned long. And then we've got, in object.h: #ifdef Py_LIMITED_API #define PyType_HasFeature(t,f) ((P

[issue16048] Tutorial-classes-remarks: replace paragraph

2012-09-29 Thread Berker Peksag
Changes by Berker Peksag : -- title: Tutorial-classes-remarks: replace paragragh -> Tutorial-classes-remarks: replace paragraph ___ Python tracker ___ __

[issue16084] couple of code examples not highlighted in "What's new in Python 3"

2012-09-29 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- assignee: docs@python -> chris.jerdonek nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-li

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-09-29 Thread Mark Dickinson
Mark Dickinson added the comment: Victor: you missed one. :-) #define Py_TPFLAGS_HAVE_STACKLESS_EXTENSION (3L<<15) -- ___ Python tracker ___ ___

[issue16079] list duplicate test names with patchcheck

2012-09-29 Thread Chris Jerdonek
Chris Jerdonek added the comment: For informational purposes, here is where unittest defaults to the prefix "test" for finding test methods: http://hg.python.org/cpython/file/f11649b21603/Lib/unittest/loader.py#l48 sqlite3 is able to use "Check" because it manages its own test discovery. For

[issue16001] small ints: cache string representation

2012-09-29 Thread STINNER Victor
STINNER Victor added the comment: str(int) is less common than "%s" % int or "%i" % int, and str%args has now "fast path" in Python 3.3 for integers. So I agree that my patch adds useless complexity and I'm closing this idea, thanks. -- resolution: -> rejected status: open -> closed

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-09-29 Thread STINNER Victor
New submission from STINNER Victor: "1L << 31" is undefined if long is 32 bits long. We should use unsigned long for PyTypeObject.tp_flags. Attached patch implements this fix. I don't know if it breaks somehow the backward compatibility. See also issues #1621 and #7406. -- components

[issue16085] Minor config parser doc change

2012-09-29 Thread Mark Lawrence
New submission from Mark Lawrence: >From http://docs.python.org/library/configparser.html#examples float = config.getfloat('Section1', 'float') int = config.getint('Section1', 'int') print float + int It's not a good idea to have float or int used like this in examples. Maybe my_float and my_

[issue13028] python wastes linux users time by checking for dylib on each dynamic library load

2012-09-29 Thread Ron Hubbard
Ron Hubbard added the comment: i'll try to reproduce this later. looking at the below strace output, python's behaviour seems pretty stupid tho, for example if /lib is the only existing path out of /lib, /lib64, /usr/lib/, /usr/local/lib, etc etc, it should check for all these directories once

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2012-09-29 Thread Ron Hubbard
Ron Hubbard added the comment: this is a very ugly bug and should be fixed ASAP it's not only breaking python itself, but any package that uses this python installer, for example http://seclists.org/nmap-dev/2012/q3/1025 what is preventing a merge of the existing patch ? --

[issue16084] couple of code examples not highlighted in "What's new in Python 3"

2012-09-29 Thread Ramchandra Apte
New submission from Ramchandra Apte: A couple of code examples are not highlighted in http://docs.python.org/py3k/whatsnew/3.3.html#pep-380-syntax-for-delegating-to-a-subgenerator They should be highlighted with Python highlighting. -- assignee: docs@python components: Documentation me

[issue8800] add threading.RWLock

2012-09-29 Thread Christian Heimes
Changes by Christian Heimes : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue2771] Test issue

2012-09-29 Thread Ezio Melotti
Ezio Melotti added the comment: another test -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue8800] add threading.RWLock

2012-09-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Excellent points. For 3. however, I don't consider access to synchronized state to be "blocking". Blocking means to block while waiting for the lock. The internal lock is never held for any amount of time. Perhaps I'll cook up a new patch with these t

[issue8800] add threading.RWLock

2012-09-29 Thread Sebastian Noack
Sebastian Noack added the comment: I would love to see a reader/writer lock implementation shipped with Python's threading (and multiprocessing) module. But I have some issues with the patch: 1. I would avoid the terms 'read' and 'write' as those terms are referring just to one of many use cas

[issue2771] Test issue

2012-09-29 Thread Ezio Melotti
Ezio Melotti added the comment: ᚠᚡᚢᚣᚤᚥᚦᚧᚨᚩᚪᚫᚬᚭᚮᚯᚰᚱᚲᚳᚴᚵᚶᚷᚸᚹᚺᚻᚼᚽᚾᚿᛀᛁᛂᛃᛄ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue2771] Test issue

2012-09-29 Thread Ezio Melotti
Ezio Melotti added the comment: ᚠᚡᚢᚣᚤᚥᚦᚧᚨᚩᚪᚫᚬᚭᚮᚯᚰᚱᚲᚳᚴᚵᚶᚷᚸᚹᚺᚻᚼᚽᚾᚿᛀᛁᛂᛃᛄ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue7171] Add inet_ntop and inet_pton support for Windows

2012-09-29 Thread Christian Heimes
Christian Heimes added the comment: As it's a new feature it must go into 3.4. -- components: +Extension Modules -Library (Lib) nosy: +christian.heimes versions: +Python 3.4 -Python 3.3 ___ Python tracker __

[issue7171] Add inet_ntop and inet_pton support for Windows

2012-09-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7171] Add inet_ntop and inet_pton support for Windows

2012-09-29 Thread pystranger
pystranger added the comment: I can't do that but I think the stage of the bug should be changed to "patch review" instead of "needs patch". -- nosy: +pystranger ___ Python tracker _

[issue16079] list duplicate test names with patchcheck

2012-09-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Here are a couple examples of test method names that don't begin > with "test_": > > def testLoadTk(self): > def testLoadTkFailure(self): Also Lib/test/test_smtplib.py test method names start with 'test' instead of 'test_' although the 'Regression test

[issue16079] list duplicate test names with patchcheck

2012-09-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: > I'm not sure if there is ever a use case for duplicate method > names. Is there? property getter, setter, and deleter methods do have the same name. -- ___ Python tracker _

[issue9374] urlparse should parse query and fragment for arbitrary schemes

2012-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 950320c70fb4 by Georg Brandl in branch 'default': Add a versionchanged note for #9374 changes. http://hg.python.org/cpython/rev/950320c70fb4 -- ___ Python tracker _

[issue16060] Double decref and dereferencing after decref in int()

2012-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset d23eb81bd482 by Mark Dickinson in branch 'default': Issue #16060: Fix a double DECREF in int() implementation. Thanks Serhiy Storchaka. http://hg.python.org/cpython/rev/d23eb81bd482 -- ___ Python tracke

[issue16012] pyexpat: Argument for UseForeignDTD should be optional

2012-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset b907f99272c5 by Georg Brandl in branch 'default': Port #16012 fix: parameter parsing regression in pyexpat parser UseForeignDTD() method. http://hg.python.org/cpython/rev/b907f99272c5 -- ___ Python track

[issue16022] Mistake in "What's New in Python 3.3"

2012-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset f6155d9111a2 by Victor Stinner in branch 'default': Close #16022: What's New in Python 3.3 document is no more at beta stage http://hg.python.org/cpython/rev/f6155d9111a2 -- resolution: -> fixed ___ Pyth

[issue16046] python -O does not find *.pyo files

2012-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset ff50579241cd by Benjamin Peterson in branch 'default': don't depend on __debug__ because it's baked in at freeze time (issue #16046) http://hg.python.org/cpython/rev/ff50579241cd -- ___ Python tracker