[issue9575] os.listdir() crashes on some long and deep paths in Windows 7

2010-08-12 Thread Heejin
Heejin added the comment: Thank you for your answer. I cannot provide any error messages or stack traces because it really *crashed*. python.exe suddenly stops working and a windows pops up saying something like "python.exe had a problem and needed to be closed" I cannot say what the pop-up mes

[issue9581] PosixGroupsTester fails as root

2010-08-12 Thread George Yoshida
George Yoshida added the comment: > Under 2.6, there's another failure: As for 2.6/2.7 issues, changing 'assertListEqual' to 'assertEqual' should suffice. -- keywords: +patch nosy: +quiver Added file: http://bugs.python.org/file18496/2.6.diff ___ Py

[issue9581] PosixGroupsTester fails as root

2010-08-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: I won't have time to look at this until sunday. Alexander Belopolsky wrote these patch tests. Alexanders: do you have time to look into this? -- nosy: +belopolsky ___ Python tracker

[issue9577] html parser bug related with CDATA sections

2010-08-12 Thread Arman
Arman added the comment: Yes I agree. This is the same issue. On Fri, Aug 13, 2010 at 3:32 AM, R. David Murray wrote: > > R. David Murray added the comment: > > I believe this is a duplicate of Issue670664. If you disagree please > reopen with additional information. > > -- > nosy: +

[issue1508864] threading.Timer/timeouts break on change of win32 local time

2010-08-12 Thread Brian Curtin
Changes by Brian Curtin : -- components: +Windows versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker ___ _

[issue9528] Add pure Python implementation of time module to CPython

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: > 1. Datetime.py time source (time.time()) represents time as > a floating point number which leads to system dependent behavior > and introduces floating point operations where they are not needed. Why not introducing a new function in time module? Other peop

[issue9560] platform.py: use -b option for file command in _syscmd_file()

2010-08-12 Thread R. David Murray
R. David Murray added the comment: Guaranteed? No. -b is not required by posix/SUS. I bet it exists everywhere we care about, though. (cf. http://en.wikipedia.org/wiki/File_(command)) -- nosy: +r.david.murray ___ Python tracker

[issue9542] Create PyUnicode_FSDecoder() function

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: Lib/os.py may also be patched to add a Python implementation. Eg. def fsdecode(value): if isinstance(value, str): return value elif isinstance(value, bytes): encoding = sys.getfilesystemencoding() if encoding == 'mbcs':

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2010-08-12 Thread Eric Talevich
Eric Talevich added the comment: This bug seems to be still present in Python 3.1.2. (Unless I'm doing something wrong.) Was r78942 included in the 3.1.2 release? -- ___ Python tracker

[issue8648] The UTF-7 codec functions are undocumented

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: > Thanks, fixed in r83558. .. cfunction:: PyObject* PyUnicode_DecodeUTF8Stateful(...) UTF-7 or UTF-8? -- ___ Python tracker ___ _

[issue9403] cElementTree: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug mode

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: > Are there any tests that could be easily added to the test suite? I don't know an easy way to simulate malloc failure. There is the http://www.nongnu.org/failmalloc/ library but I never used it, and I don't think that it's widely used. You can just test tha

[issue5905] strptime fails in non-UTF locale

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: > I can't reproduce this on Windows ... This issue is (was?) maybe specific to Linux. -- ___ Python tracker ___ ___

[issue2944] asyncore doesn't handle connection refused correctly

2010-08-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Ok, no problem. Reverted in r83969. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue9198] Should repr() print unicode characters outside the BMP?

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: About issue9198.diff: - exit directly if !PyErr_ExceptionMatches(PyExc_UnicodeEncodeError) to avoid an useless level of indentation - why do you clear the exception before calling PyObject_Repr()? if you cannot execute code while an exception is active, you

[issue2944] asyncore doesn't handle connection refused correctly

2010-08-12 Thread R. David Murray
R. David Murray added the comment: The question isn't when it was released, but when it was tagged, and that happened at Aug 3 22:51:57 2010 UTC according to svn. Your commit was made Aug 4 08:58:38 2010 UTC. -- nosy: +r.david.murray ___ Python tr

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

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: > I thought you and...Ezio? were talking about some way to improve > the encoding situation when reading from/writing to a pipe. I don't want to change that. If you come with arguments in favor of changing that (and maybe some ideas to choose the encoding): p

[issue2066] Adding new CNS11643, a *huge* charset, support in cjkcodecs

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: Hyeshik Chang, who opened this issue, wrote (msg83672) "When I asked Taiwanese developers how often they use these character sets, it appeared that they are almost useless in the usual computing environment in Taiwan. This will only serve for a historical comp

[issue2944] asyncore doesn't handle connection refused correctly

2010-08-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: The commit was made on August 04, 11:05 AM, while rc1 was released at 06:09 PM. I don't think the patch is going to introduce any problem but if you think it's the case to revert it then I'll do it. -- ___ Python

[issue9560] platform.py: use -b option for file command in _syscmd_file()

2010-08-12 Thread Éric Araujo
Éric Araujo added the comment: Is it guaranteed that the -b option will be present in every version of file? -- nosy: +eric.araujo ___ Python tracker ___

[issue9560] platform.py: use -b option for file command in _syscmd_file()

2010-08-12 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file18470/_syscmd_file.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue9560] platform.py: use -b option for file command in _syscmd_file()

2010-08-12 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file18493/_syscmd_file-2.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue9560] platform.py: use -b option for file command in _syscmd_file()

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: Hey! I don't know why, but I posted a truncated patch. It doesn't remove the code removing the filename and so it breaks the code. New try: version 3 should be ok :-) -- Added file: http://bugs.python.org/file18494/_syscmd_file-3.patch __

[issue9560] platform.py: use -b option for file command in _syscmd_file()

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: > The patch looks good. Can it/should it be applied to 2.7 too? > Just one nit: could you please indent the doc-string > to match the original indentation ? Done. New patch attached. Is it ok like that? -- Added file: http://bugs.python.org/file18493

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: (About PyFile_FromFd) pitrou> Actually, I'm not sure there's much point since the "name" pitrou> attribute is currently read-only: (...) Oh, it remembers me #4762. I closed this issue with the message "The last problem occurs with imp.find_module(). But imp.f

[issue9561] distutils: set encoding to utf-8 for input and output files

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: > - PKG-INFO (METADATA in distutil2), that already uses a trick to support > Unicode, but your change would replace it in a better way; Which "trick"? > - MANIFEST, which with your fix would gain the ability to handle non-ASCII > paths, which is a feature or a

[issue9579] In 3.x, os.confstr() returns garbage if value is longer than 255 bytes

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: About confstr-long-result.diff: why do you use a loop to reallocate the buffer? confstr() result may change? -- ___ Python tracker ___

[issue9580] os.confstr() doesn't decode result according to PEP 383

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: Can you give me examples of configuration keys with undecodable values? PyUnicode_DecodeFSDefault(AndSize) encoding depends on the locale whereas PyUnicode_FromString uses utf-8. I don't know the encoding of confstr() values. You can decode an utf-8 value usi

[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-08-12 Thread Ned Deily
Ned Deily added the comment: For the record, after some discussion at EuroPython and on the Pythonmac-SIG mailing list (thread starting here: http://mail.python.org/pipermail/pythonmac-sig/2010-July/022467.html), the current plan is to make the "64-bit" installer variant support OS 10.6 (and

[issue9574] complex does not parse strings containing decimals

2010-08-12 Thread Jervis Whitley
Jervis Whitley added the comment: It hadn't occurred to me to try this without spaces. Thank you for pointing this out. Agreed that the enhancement is not essential. -- ___ Python tracker _

[issue8432] buildbot: test_send_signal of test_subprocess failure

2010-08-12 Thread Stefan Krah
Stefan Krah added the comment: Issue 8714 could be related as well: On OpenBSD, after a KeyboardInterrupt one has to hit before the traceback appears. This was introduced in (or exposed by) r68460. When Python is compiled without threads, the bug does not occur. -- nosy: +skrah _

[issue7467] The zipfile module does not check files' CRCs, including in ZipFile.testzip

2010-08-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: At Barry's request, here is a patch for potential backport to 2.6. -- Added file: http://bugs.python.org/file18492/zipcrc.patch ___ Python tracker _

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

2010-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: You're welcome :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9583] PYTHONOPTIMIZE = 0 is not honored

2010-08-12 Thread Buck Golemon
New submission from Buck Golemon : In our environment, we have a wrapper which enables optimization by default (-OO). Most commandline tools which have a mode-changing flag such as this, also have a flag to do the opposite ( see: ls -t -U, wget -nv -v, ). I'd like to implement one or both of:

[issue8433] buildbot: test_curses failure, getmouse() returned ERR

2010-08-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Since the patch only changes a test, and it looks innocent enough (i.e. no possibility of regression), and it only changes a test that is run with -u all, I will allow this for 2.6.6. Mark, please apply your test_curses_getmouse.patch. You can then close th

[issue2944] asyncore doesn't handle connection refused correctly

2010-08-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I agree w/mvl. Giampaolo, please revert this for 2.6.6. -- ___ Python tracker ___ ___ Python-bugs-

[issue1285086] urllib.quote is too slow

2010-08-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: flox reverted in r83967 for 2.6.6. -- priority: release blocker -> status: open -> closed ___ Python tracker ___ __

[issue9577] html parser bug related with CDATA sections

2010-08-12 Thread R. David Murray
R. David Murray added the comment: I believe this is a duplicate of Issue670664. If you disagree please reopen with additional information. -- nosy: +r.david.murray resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> HTMLParser.py - more robu

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

2010-08-12 Thread Joshua Bronson
Joshua Bronson added the comment: Thanks for the great additions. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue9582] documentation line needs rewording

2010-08-12 Thread Robert Mohr
New submission from Robert Mohr : The last line of http://docs.python.org/faq/programming.html#is-there-a-scanf-or-sscanf-equivalent is not proper English: For more complicated input parsing, regular expressions more powerful than C’s sscanf() and better suited for the task. This also shows

[issue2944] asyncore doesn't handle connection refused correctly

2010-08-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: The bug is not a regression since 2.6.5; AFAICT, it was in Python "forever". I recommend to revert the checkin, and postpone fixing it to 2.7.1. -- ___ Python tracker ___

[issue2944] asyncore doesn't handle connection refused correctly

2010-08-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: What date would the final release then be made? It would be best if it could be done before Aug 27. If necessary, I could also make a release on September 6 (but not any day before or after) -- ___ Python tracker

[issue1285086] urllib.quote is too slow

2010-08-12 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- priority: low -> release blocker status: closed -> open ___ Python tracker ___ ___ Python-bugs-list

[issue1285086] urllib.quote is too slow

2010-08-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Why was this merged to 2.6 after 2.6.6rc1 without approval? -- nosy: +barry ___ Python tracker ___ _

[issue2944] asyncore doesn't handle connection refused correctly

2010-08-12 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- priority: normal -> release blocker status: closed -> open ___ Python tracker ___ ___ Python-bugs-list

[issue2944] asyncore doesn't handle connection refused correctly

2010-08-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: The fix for this was applied after 2.6.6rc1, and it wasn't approved by me. Is it critical for 2.6? Is it a regression since 2.6.5? The way I see it, we either back this out or release an rc2. There may be other reasons to release an rc2, but I need to ve

[issue8433] buildbot: test_curses failure, getmouse() returned ERR

2010-08-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm putting this one in the same category as bug 7467. I think these two, plus the patches which were applied to release26-maint after rc1 (without approval ;) will require an rc2. If that can be worked out schedule-wise, I'll allow these patches to be app

[issue9581] PosixGroupsTester fails as root

2010-08-12 Thread Antoine Pitrou
New submission from Antoine Pitrou : I get the following test_posix failures when run as root (Mandriva Linux): == ERROR: test_initgroups (test.test_posix.PosixGroupsTester) --

[issue9569] Add tests for posix.mknod() and posix.mkfifo()

2010-08-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: The 3.x patches work fine for me under Mandriva Linux. -- nosy: +pitrou ___ Python tracker ___ ___ P

[issue9580] os.confstr() doesn't decode result according to PEP 383

2010-08-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9579] In 3.x, os.confstr() returns garbage if value is longer than 255 bytes

2010-08-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9569] Add tests for posix.mknod() and posix.mkfifo()

2010-08-12 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file18491/add-errno-check-3.x.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue9569] Add tests for posix.mknod() and posix.mkfifo()

2010-08-12 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file18490/add-errno-check-2.x.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue9569] Add tests for posix.mknod() and posix.mkfifo()

2010-08-12 Thread David Watson
David Watson added the comment: OK, these patches work on FreeBSD 5.3 (root and non-root) if you want to check the errno. I don't know what other systems might return though. I did also find that the 2.x tests were failing on cleanup because the test class used os.unlink rather than support

[issue9569] Add tests for posix.mknod() and posix.mkfifo()

2010-08-12 Thread David Watson
David Watson added the comment: I'm not quite sure what you mean, but the man page for FreeBSD 5.3 specifies EPERM for an unprivileged user and EINVAL for an attempt to create something other than a device node. POSIX requires creating a FIFO to work for any user, and just says that EINVAL i

[issue9579] In 3.x, os.confstr() returns garbage if value is longer than 255 bytes

2010-08-12 Thread David Watson
David Watson added the comment: The returned string should also be decoded with the file system encoding and surrogateescape error handler, as per PEP 383 - there's a patch at issue #9580 to do this. -- ___ Python tracker

[issue9580] os.confstr() doesn't decode result according to PEP 383

2010-08-12 Thread David Watson
New submission from David Watson : The attached patch applies on top of the patch from issue #9579 to make it use PyUnicode_DecodeFSDefaultAndSize(). (You could use it in the existing code, but until that issue is fixed, there is sometimes nothing to decode!) -- components: Extension Mo

[issue9579] In 3.x, os.confstr() returns garbage if value is longer than 255 bytes

2010-08-12 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file18487/confstr-long-result.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue9579] In 3.x, os.confstr() returns garbage if value is longer than 255 bytes

2010-08-12 Thread David Watson
New submission from David Watson : It may be hard to find a configuration string this long, but you can see the problem if you apply the attached confstr-reduce-bufsize.diff to reduce the size of the local array buffer that posix_confstr() uses. With it applied: >>> import os >>> print(ascii(os

[issue5996] abstract class instantiable when subclassing dict

2010-08-12 Thread Daniel Urban
Daniel Urban added the comment: I think, that the reason is that, object.__new__ checks, if the class is instantiable (object_new in Objects/typeobject.c ). dict.__new__ (and tuple.__new__, and I guess the __new__ method of other built-in types) doesn't call object.__new__, but user defined t

[issue5867] No way to create an abstract classmethod

2010-08-12 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue9553] test_argparse.py: 80 failures if COLUMNS env var set to a value other than 80

2010-08-12 Thread R. David Murray
R. David Murray added the comment: I don't think it is worthwhile to jump through hoops to avoid calling the special methods. Your patch also creates an unnecessary dependency on the internal implementation of EnvironmentVarGuard (ie: the fact that currently __enter__ happens to return self.

[issue8371] Add a command to download distributions

2010-08-12 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +alexis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue7710] Inconsistent Exception for int() conversion

2010-08-12 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +belopolsky stage: -> unit test needed type: -> behavior versions: +Python 2.7, Python 3.1 ___ Python tracker ___ _

[issue9578] int() raises UnicodeDecodeError when called on malformed string

2010-08-12 Thread Florent Xicluna
Florent Xicluna added the comment: a duplicate of #7710 -- nosy: +flox resolution: -> duplicate status: open -> closed superseder: -> Inconsistent Exception for int() conversion ___ Python tracker ___

[issue9424] Disable unittest.TestCase.assertEquals and assert_ during a regrtest run

2010-08-12 Thread Michael Foord
Michael Foord added the comment: Well, there is *some* value in stylistic consistency. If it didn't matter at all then Guido wouldn't have instigated the deprecation of assertEquals and assert_ and standardised on assertEqual (which he did during the sprints at PyCon 2009). Either we stick wi

[issue4221] inconsistent exception from int is confusing

2010-08-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7710] Inconsistent Exception for int() conversion

2010-08-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9578] int() raises UnicodeDecodeError when called on malformed string

2010-08-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Interpreter Core nosy: +ezio.melotti stage: -> unit test needed type: -> behavior versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue9578] int() raises UnicodeDecodeError when called on malformed string

2010-08-12 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : >>> int('\xA11') Traceback (most recent call last): File "", line 1, in UnicodeDecodeError: 'utf8' codec can't decode byte 0xa1 in position 0: invalid start byte This is inconsistent with other number types' behavior: >>> float(b'\xA1') Traceback (

[issue9574] complex does not parse strings containing decimals

2010-08-12 Thread Mark Dickinson
Mark Dickinson added the comment: I don't think determining *which* whitespace is allowed is a problem; just use whatever's already being used for the whitespace that's already allowed (around the whole complex input, for example, or between the optional parentheses and the number). Please o

[issue9574] complex does not parse strings containing decimals

2010-08-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I did some experimentation and found some inconsistency between int and complex: >>> int('\xA11') Traceback (most recent call last): File "", line 1, in UnicodeDecodeError: 'utf8' codec can't decode byte 0xa1 in position 0: invalid start byte but >>>

[issue7467] The zipfile module does not check files' CRCs, including in ZipFile.testzip

2010-08-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue7467] The zipfile module does not check files' CRCs, including in ZipFile.testzip

2010-08-12 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- priority: normal -> release blocker versions: +Python 2.6 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ __

[issue9543] 2.6.6 rc1 socket.py flush() calls del on unbound 'view' variable

2010-08-12 Thread Ezio Melotti
Ezio Melotti added the comment: Done in r83964. -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue9543] 2.6.6 rc1 socket.py flush() calls del on unbound 'view' variable

2010-08-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Patch accepted, please apply for 2.6.6. -- resolution: -> accepted ___ Python tracker ___ ___ Pyth

[issue9574] complex does not parse strings containing decimals

2010-08-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Current behavior is also consistent with that of fractions: >>> Fraction("1/2") Fraction(1, 2) >>> Fraction("1 / 2") Traceback (most recent call last): .. ValueError: Invalid literal for Fraction: '1 / 2' I am -1 on this RFE. At most, this can be clar

[issue9577] html parser bug related with CDATA sections

2010-08-12 Thread Arman
New submission from Arman : When HTMLParser reaches CDATA element it enters cdata mode by calling set_cdata_mode (file html/parser.py line 270). this method assigns self.interesting member new value r'<(/|\Z)'. But this is not correct. Consider following case