[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-12-30 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Actually, it looks like PEP 3131 and the Language Reference [1] still disagree. The latter says: identifier ::= id_start id_continue* which should probably be identifier ::= xid_start xid_continue* instead. Interesting.

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Hearty +1. I have the hope of putting this in 3.3, and for that I'd like to see how the code matures, which is much easier when in version control. -- ___ Python tracker rep...@bugs.python.org

[issue3232] Wrong str-bytes conversion in Lib/encodings/idna.py

2010-12-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Arguably, it is not a bug if codec's decode method rejects unicode strings with a TypeError. Agreed, but it would be better if it did so deliberately and explicitly, rather than as a result of a bogus forward-port ;) --

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-12-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I think the proposal is that fixing this minefield can wait until Python 3.3 (or even 3.4, or later). That is what I was thinking. (Alex: You might not know that Martin was the main proponent of non-ASCII identifiers, so this assessment should

[issue10794] Infinite recursion while garbage collecting loops indefinitely

2010-12-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Normally you should never call __del__, OTOH the issue is the same with a class like:: class A: def close(self): self.close() def __del__(self): self.close() The problem is not with _infinite_ recursion,

[issue10794] Infinite recursion while garbage collecting loops indefinitely

2010-12-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Precision: with new-styles classes (or py3k) the limit is PyTrash_UNWIND_LEVEL-2. This does not change anything to the problem. -- ___ Python tracker rep...@bugs.python.org

[issue10796] readline completion flaw

2010-12-30 Thread rheise
New submission from rheise ralfhe...@freenet.de: Python's readline library generates out of the choices provided by a custom completion function the wrong terminal input. Say, the completion function suggests 'foobar' and 'foobaz' as matching completion strings, readline should produce the

[issue6210] Exception Chaining missing method for suppressing context

2010-12-30 Thread Patrick W.
Patrick W. p...@borntolaugh.de added the comment: Nick Coghlan (ncoghlan) at 2010-12-29 08:46 (UTC): No, the context must always be included unless explicitly suppressed. Then there should be some actually working way to suppress it, right? I think the standard behaviour that automatically

[issue10795] standard library do not use ssl as recommended

2010-12-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There are open issues for specific modules: #8808 for imaplib, #8809 for smtplib. In 3.2, poplib already has support for SSL contexts, as do ftplib, http.client and nntplib. If I'm missing a module please tell me. -- resolution: -

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2010-12-30 Thread Mark Roddy
Changes by Mark Roddy markro...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file20193/py27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10786 ___

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2010-12-30 Thread Mark Roddy
Changes by Mark Roddy markro...@gmail.com: Added file: http://bugs.python.org/file20194/py32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10786 ___

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2010-12-30 Thread Mark Roddy
Mark Roddy markro...@gmail.com added the comment: All patches change the default value of stream to None in the constructor, and set it to the current to sys.stderr if the argument is None. Unit tests included to check this behavior. Also, the patch against Python 3.1 adds the

[issue10794] Infinite recursion while garbage collecting loops indefinitely

2010-12-30 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: FWIW, the example pasted in the bug was the smallest one he could come up with. in reality we were never calling .__del__() explicitly. We ran into the problem due to a __del__ method triggering a __getattr__ call and the __getattr__ ending up

[issue10681] PySlice_GetIndices() signature changed

2010-12-30 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: For reference, this seems to affect SWIG, specifically, I'm seeing build failures using: /usr/share/swig/2.0.1/python/pycontainer.swg from swig-2.0.1 See downstream build failure report for znc, which uses swig to generate python 3

[issue6632] Include more fullwidth chars in the decimal codec

2010-12-30 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I wonder if the issues raised here can be neatly addressed by applying NFKC normalization before string to number conversion. This will convert full-width variants to ASCII and also eliminate digit/decimal differences.

[issue9893] Usefulness of the Misc/Vim/ files?

2010-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Alright, let me change my opinion: Let’s replace the Vim files by a README.vim file explaining where to get good helper files (like Misc/README.emacs added in r85927). Then I will learn how to manage my Vim configuration to keep it updated

[issue1816] sys.cmd_flags patch

2010-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ve recently remarked that -i maps to both sys.flags.inspect and sys.flags.interactive. Is this behavior useful? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue6210] Exception Chaining missing method for suppressing context

2010-12-30 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: using `None` as the cause of an exception would be the best solution in my opinion: +1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6210

[issue6210] Exception Chaining missing method for suppressing context

2010-12-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: using `None` as the cause of an exception would be the best solution in my opinion: +1 We are talking about context, not cause. -- ___ Python tracker rep...@bugs.python.org

[issue1284670] Allow to restrict ModuleFinder to get direct dependencies

2010-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The depth parameter idea sounds like YAGNI, so let’s stay with a recurse boolean :) -- assignee: - eric.araujo nosy: -BreamoreBoy, misc_from_metz stage: unit test needed - patch review versions: +Python 3.3 -Python 3.2

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-30 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: The project is now at: https://code.google.com/p/mrab-regex/ Unfortunately it doesn't have the revision history. I don't know why not. -- ___ Python tracker rep...@bugs.python.org

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2010-12-30 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Committed to py3k in revision 87582. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10786 ___

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-30 Thread Robert Xiao
Robert Xiao nneon...@gmail.com added the comment: Do you have it in any kind of repository at all? Even a private SVN repo or something like that? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636

[issue10787] [random.gammavariate] Add the expression of the distribution in a comprehensive form for random.gammavariate

2010-12-30 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: d...@python - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10787 ___

[issue10797] Wrong detection of lines in readlines() function

2010-12-30 Thread Miso.Kopera
New submission from Miso.Kopera miso.kop...@gmail.com: bug in file.readlines() function. It doesn't detect end of the line when line is ending only with 0x0D byte. In python3.1 it works fine (as I expect). File in attachment should has 6 lines not only 1 as python2.7 returns. --

[issue10798] test_concurrent_futures fails on FreeBSD

2010-12-30 Thread Martin v . Löwis
New submission from Martin v. Löwis mar...@v.loewis.de: This is similar to #10348, but has a different scope; the attached patch disables the ProcessPoolExecutor if the system has too few POSIX semaphores. To keep support for the ThreadPoolExecutor, I had the test cases stop using

[issue10797] Wrong detection of lines in readlines() function

2010-12-30 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Either use mode 'U' or the io module if you want to match 3.x. $ python Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01) [GCC 4.3.4 20090804 (release) 1] on cygwin Type help, copyright, credits or license for more information.

[issue1816] sys.cmd_flags patch

2010-12-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Maybe not, but note that there is both a Py_InteractiveFlag and Py_InspectFlag, and they enable different things (they are both set by -i, while setting the PYTHONINSPECT envvar only activates Py_InspectFlag). -- nosy: +georg.brandl

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-30 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: msg124904: It would, of course, be slower on first use, but I'm surprised that it's (that much) slower afterwards. msg124905, msg124906: I have those matching now. msg124931: The sources are in TortoiseBzr, but I couldn't upload,

[issue7962] Demo and Tools need to be tested and pruned

2010-12-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Removed Demo and some of the Tools in a series of commits starting with r87579. -- dependencies: -Allow larger programs to be frozen under Win32, Demo/classes/Dates.py does not work in 3.x, Demo/embed/demo.c use of PySys_SetArgv() is

[issue3194] Demo/loop.c passing char * instead of wchar_t *

2010-12-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Demo/embed has now been removed. -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3194

[issue10495] Demo/comparisons/sortingtest.py needs some usage information.

2010-12-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Demo/comparisons has now been removed. -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10495

[issue10494] Demo/comparisons/regextest.py needs some usage information.

2010-12-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Demo/comparisons has now been removed. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10494

[issue9153] Run tests and demos as part of the test suite

2010-12-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Closing; Demo/ is no more. -- nosy: +georg.brandl resolution: accepted - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9153

[issue2889] curses for windows (alternative patch)

2010-12-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2889 ___ ___

[issue6210] Exception Chaining missing method for suppressing context

2010-12-30 Thread Patrick W.
Patrick W. p...@borntolaugh.de added the comment: Antoine Pitrou (pitrou) at 2010-12-30 18:32 (UTC) We are talking about context, not cause. Yes, but - as said before - obviously the cause takes a higher precedence than context (otherwise it wouldn't show a context message when you

[issue10537] OS X IDLE 2.7 from 64-bit installer hangs when you paste something.

2010-12-30 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: OS X IDLE 2.7rc1 from 64-bit installer hangs when you paste something. - OS X IDLE 2.7 from 64-bit installer hangs when you paste something. ___ Python tracker rep...@bugs.python.org

[issue6864] IDLE 2.6.1 locks up on Mac OS 10.6

2010-12-30 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: According to Ronald (msg92914) and Ned (msg92923) this particular issue is 2.6 only (and fixed in 2.7 because of patches not backported). 2.6 is in security fix only mode. So unless someone claims that this is a security issue (and Barry

[issue1816] sys.cmd_flags patch

2010-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Okay, so having both flags makes sense. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1816 ___

[issue9771] add an optional default argument to tokenize.detect_encoding

2010-12-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9771 ___

[issue9153] Run tools and demos as part of the test suite

2010-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: It seems there is no easy way to test tools apart from human inspection. -- title: Run tests and demos as part of the test suite - Run tools and demos as part of the test suite ___ Python tracker

[issue4685] IDLE will not open (2.6.1 on WinXP pro)

2010-12-30 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 2.6 is now security fix only. -- nosy: +terry.reedy resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4685

[issue2708] IDLE subprocess error

2010-12-30 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 3.0 is closed to fixed and 2.6 is security fix only. This is otherwise a duplicate of similar issues. -- nosy: +terry.reedy resolution: - out of date status: open - closed ___ Python tracker

[issue5315] signal handler never gets called

2010-12-30 Thread s7v7nislands
Changes by s7v7nislands s7v7nisla...@gmail.com: -- nosy: +s7v7nislands ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5315 ___ ___ Python-bugs-list

[issue10799] Improve webbrowser.open doc (and, someday, behavior?)

2010-12-30 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: webbrowser.open (and two aliases): 1. document return value, which seems to be: True if a browser tab or window is opened, regardless of whether or not the url is found; False otherwise. 2. document that (on Windows, at least) the default

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-30 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: Even after much uninstalling and reinstalling (and reboots) I never got TortoiseSVN to work properly, so I switched to TortoiseHg. The sources are now at: https://code.google.com/p/mrab-regex-hg/ --

[issue6285] Silent abort on XP help document display

2010-12-30 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: webbrowser appears to be designed to return True/False if it does/or not open a browser window (regardless of site response). (I opened #10799 for a doc addition.) I believe an exception would likely indicate a bug therein. So I only wrapped

[issue2710] error: (10035, 'The socket operation could not complete without blocking')

2010-12-30 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: If there is no verification that there is a bug in 2.7/3.1,2, then I think this should be closed. -- nosy: +terry.reedy versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue10694] zipfile.py end of central directory detection not robust

2010-12-30 Thread Xuanji Li
Xuanji Li xua...@gmail.com added the comment: Ok, new patch that creates a zipfile (actually I used TESTFN2, all the other tests seem to also use it) -- Added file: http://bugs.python.org/file20200/Issue10694_2.diff ___ Python tracker

[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

2010-12-30 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Attached is a patch (the original one in patch form) against py3k with unit test. It seems to work well - tested on Linux FreeBSD. -- keywords: +patch nosy: +rosslagerwall Added file:

[issue10044] small int optimization

2010-12-30 Thread Xuanji Li
Xuanji Li xua...@gmail.com added the comment: fwiw I've always found this helpful for undefined behavior: http://blog.regehr.org/archives/213 and, just as it says x+1 x will be optimized to a nop, by the same logic v = array[0] v array[array_len] will also be optimized to a nop.

[issue10800] libffi build failure on HP-UX 11/PA

2010-12-30 Thread bugs-pyt...@vendor.thewrittenword.com
New submission from bugs-pyt...@vendor.thewrittenword.com bugs-pyt...@vendor.thewrittenword.com: Python 3.1.3 fails to build on HP-UX/PA: In file included from /opt/build/Python-3.1.3/Modules/_ctypes/libffi/src/dlmalloc.c:1156: