[issue10035] sgmllib fail to parse html containing

2010-10-05 Thread Georg Brandl
Georg Brandl added the comment: Is that URL really what you wanted to show me? Also, I'm not intimate with all of SGML's syntax, but ISTM that what you show here is invalid SGML, and as such SGMLParser is not required to parse it. -- ___ Python tra

[issue10035] sgmllib fail to parse html containing

2010-10-05 Thread halfjuice
halfjuice added the comment: well,

[issue10036] compiler warnings for various modules on Ubuntu x86

2010-10-05 Thread Jeffrey Finkelstein
New submission from Jeffrey Finkelstein : On Ubuntu 10.04.1, with "uname -a" outputting "Linux hostname 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686 GNU/Linux" "gcc --version" outputting "gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3" On hg revision 7965 of the py3k branch, I get the

[issue10026] xml.dom.pulldom strange behavior

2010-10-05 Thread Georg Brandl
Changes by Georg Brandl : -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10034] Readline doc issue

2010-10-05 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r85240. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10035] sgmllib fail to parse html containing

2010-10-05 Thread Georg Brandl
Georg Brandl added the comment: Are you sure you got the comment syntax right? e.g. SGMLParser should handle that. -- nosy: +georg.brandl resolution: -> works for me status: open -> pending ___ Python tracker _

[issue10035] sgmllib fail to parse html containing

2010-10-05 Thread halfjuice
New submission from halfjuice : When parsing html containing the following tag: ... ... SGMLParser will stop parse following content without any warning. When such tag is removed everything works fine. When looking into sgmllib.py, statement below found: if rawdata.startswith(""). I thin

[issue10032] os.setuid and os.setgid have unexpected influence on serial module

2010-10-05 Thread R. David Murray
R. David Murray added the comment: If you do want to pursue this further note that "[your] own crappy code" is a better reproducer to post than something that depends on a third party module. -- nosy: +r.david.murray ___ Python tracker

[issue10033] can't run unittest because of issubclass

2010-10-05 Thread Ned Deily
Ned Deily added the comment: The unittest module was substantially revised and enhanced for Python 2.7 and the upcoming 3.2. Your test case now works properly under both. $ python2.6 -m unittest -v simple_test -- Ran 0 tests

[issue10032] os.setuid and os.setgid have unexpected influence on serial module

2010-10-05 Thread Ned Deily
Ned Deily added the comment: While you did not specify what platform you are running this on, the issue here is almost certainly a misunderstanding of how permissions work. On UNIX-y systems, access to device files is normally governed by permissions like any other file or directory. On man

[issue10029] "Equivalent to" code for zip is wrong in Python 3

2010-10-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: -loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue4487] Add utf8 alias for email charsets

2010-10-05 Thread R. David Murray
R. David Murray added the comment: Yes. Benjamin merged this to py3k in r82292. If someone wants to explain to me how to cherry pick the changeset into 3.1 I'd be happy to do it, otherwise I think I'm done with this one :) -- stage: commit review -> committed/rejected status: open -

[issue2982] more tests for pyexpat

2010-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Adapted patch for py3k and applied in r85239. Maciek, if you have another tests for error handling, please open a new issue. -- nosy: +amaury.forgeotdarc resolution: -> fixed status: open -> closed ___ Python

[issue4487] Add utf8 alias for email charsets

2010-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: David, can this issue be closed? -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___ Pytho

[issue2892] improve cElementTree iterparse error handling

2010-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: If it's a regression, it should be fixed in some 2.7.x release Is there a patch somewhere? -- nosy: +amaury.forgeotdarc stage: -> needs patch ___ Python tracker ___

[issue10034] Readline doc issue

2010-10-05 Thread Jason Baker
New submission from Jason Baker : There's an error in the documentation for readline here: http://docs.python.org/library/readline.html#example The first example doesn't import readline. -- assignee: d...@python components: Documentation messages: 118040 nosy: Jason.Baker, d...@python

[issue10030] Patch for zip decryption speedup

2010-10-05 Thread R. David Murray
R. David Murray added the comment: It would be nice to retain the pure python version as a fallback for non CPython implementations, that will require tweaking the tests to make sure both are tested. -- nosy: +r.david.murray ___ Python tracker

[issue10031] Withdraw anti-recommendation of relative imports from documentation

2010-10-05 Thread R. David Murray
R. David Murray added the comment: Note that of the versions still getting doc updates, only 2.7 still supports the old style relative imports. -- nosy: +r.david.murray type: -> behavior versions: -Python 2.6, Python 3.3 ___ Python tracker

[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: There is already doctest.SKIP. Isn't it already what you want? -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___

[issue9060] Python/dup2.c doesn't compile on (at least) newlib

2010-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > but Python 2.x doesn't appear to actually bother > to compile dup2.c even if the system lacks dup2 Is it sure? The file configure.in has the same command in both versions: AC_REPLACE_FUNCS(dup2 getcwd strdup) Added the #include anyway in r85236, r

[issue10033] can't run unittest because of issubclass

2010-10-05 Thread danosaure
New submission from danosaure : I cannot run the simpliest test because issubclass() is always returning False in unittest.py If i follow the documentation, the following should work. python -m unittest simple_test It finds 0 tests because in unittest.py, in the following line:

[issue4872] Python will not co-exist with MFC (memory leak)

2010-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: - The "memory leaks" are reported in the IDE output window when the process exits; this lists all non deallocated blocks of memory. This feature is not enabled by default. Creating a CString probably initializes this feature. - Py_Finalize() doesn't f

[issue10032] os.setuid and os.setgid have unexpected influence on serial module

2010-10-05 Thread Tjeerd Pinkert
Changes by Tjeerd Pinkert : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10032] os.setuid and os.setgid have unexpected influence on serial module

2010-10-05 Thread Tjeerd Pinkert
New submission from Tjeerd Pinkert : If I use os.setgid and os.setuid to switch to an other user in some daemon code, I cannot open the serial port anymore. If I run the same code directly from the user I can open the serial port. Since the serial module is using the open() call to open the se

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2010-10-05 Thread Nick Coghlan
Nick Coghlan added the comment: On Wed, Oct 6, 2010 at 2:59 AM, Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > I am afraid, for ordinary scripts these modules effectively use option 3.  I > think these modules should remove its own scaffolding from "real" __main__

[issue10031] Withdraw anti-recommendation of relative imports from documentation

2010-10-05 Thread Darren Dale
New submission from Darren Dale : Old-style relative imports have been strongly discouraged in some sections of the python documentation. This was discussed on the python-dev mailing list. Executive summary: "The issue is implementing a PEP with nice support for relative imports, and then docu

[issue10030] Patch for zip decryption speedup

2010-10-05 Thread Shashank
New submission from Shashank : As promised in this thread http://mail.python.org/pipermail/python-dev/2009-August/091450.html (a year ago!), attached is a patch that replaces simple zip decryption logic written in pure python with that in C. As reported in the link above, this can result in s

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-10-05 Thread Brian Curtin
Brian Curtin added the comment: Overall I think this looks like a reasonable restructuring, and it works in a few manual tests of existing hardlinks on my system. Until #8879 goes in, we can't really add tests for this. Hirokazu, do you want to commit this since you came up with it?

[issue10029] "Equivalent to" code for zip is wrong in Python 3

2010-10-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Note that the following variant where maps are replaced with list comprehensions seems to work: def zip(*iterables): # zip('ABCD', 'xy') --> Ax By

[issue10029] "Equivalent to" code for zip is wrong in Python 3

2010-10-05 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: The code was taken from the itertools.izip documentation for Python 2, where it did work. In Python 2, next() raises StopIteration which is propagated up and causes the izip() to stop. In Python 3, map is itself a generator and the StopIteration terminate

[issue10029] bug in sample code in documentation

2010-10-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: d...@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue10029] bug in sample code in documentation

2010-10-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10029] bug in sample code in documentation

2010-10-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The relevant comment at Stack Overflow is: """ It looks like it's a bug in the documentation. The 'equivalent' code working in python2, but not in python3, where it has an infinite loop. And the latest version of the documentation has the same problem:

[issue10029] bug in sample code in documentation

2010-10-05 Thread Max
New submission from Max : The sample code explaining zip function is incorrect at http://docs.python.org/py3k/library/functions.html?highlight=zip#zip: def zip(*iterables): # zip('ABCD', 'xy') --> Ax By iterables = map(iter, iterables) while iterables: yield tuple(map(next,

[issue10028] test_concurrent_futures fails on Windows Server 2003

2010-10-05 Thread Brian Curtin
New submission from Brian Curtin : I haven't seen this on any of my machines except for Windows Server 2003 x64. For whatever reason, SetEvent is failing. == FAIL: test_zero_timeout (test.test_concurrent_futures.ProcessPoolAs

[issue7582] Use ISO timestamp in diff.py

2010-10-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Add aware local time support to datetime module ___ Python tracker ___ ___ Python-b

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

2010-10-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Aug 12, 2010 at 10:26 PM, STINNER Victor wrote: .. >> 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 ne

[issue9991] xmlrpc client ssl check faulty

2010-10-05 Thread Jonathan Niehof
Changes by Jonathan Niehof : -- nosy: +Jelly.Chen, lister171254 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9079] Make gettimeofday available in time module

2010-10-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7980] time.strptime not thread safe

2010-10-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: RDM> FYI there's been a proposal to create a time.py module anyway RDM> in order to add some pure python functions not worth writing in c. RDM> For reference, it's issue 7989. Issue #7989 was retargeted to deal with datetime module. The time.py issue is

[issue7980] time.strptime not thread safe

2010-10-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: MunSic, It looks like issue7980.patch is just a unit test. Do you have a patch to fix the issue? -- ___ Python tracker ___

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2010-10-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am afraid, for ordinary scripts these modules effectively use option 3. I think these modules should remove its own scaffolding from "real" __main__ before loading any traced code. I am not sure how this can be achieved, though. --

[issue9936] trace misreports "missing" lines

2010-10-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue845560] imaplib: traceback from _checkquote with empty string

2010-10-05 Thread R. David Murray
R. David Murray added the comment: The example works fine for me (server returns mailbox does not exist) in both 2.7 and py3k trunk, so I'm closing this as out of date. -- nosy: +r.david.murray -BreamoreBoy resolution: -> out of date stage: patch review -> committed/rejected status: o

[issue5672] Implement a way to change the python process name

2010-10-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'd rather not reopen this issue. It was too far-ranging, and has failed to get a specific solution. Please stop posting to this closed issue; if you want to contribute, please open a new one. I think the inclusion of the module should see a discussion on py

[issue8144] muliprocessing shutdown infinite loop

2010-10-05 Thread Ask Solem
Ask Solem added the comment: Did you finish the code to reproduce the problem? -- nosy: +asksol ___ Python tracker ___ ___ Python-bugs

[issue8094] Multiprocessing infinite loop

2010-10-05 Thread Ask Solem
Changes by Ask Solem : -- nosy: +asksol ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2010-10-05 Thread Ask Solem
Ask Solem added the comment: Could you please reduce this to the shorted possible example that reproduces the problem? -- nosy: +asksol ___ Python tracker ___ __

[issue7980] time.strptime not thread safe

2010-10-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +belopolsky stage: unit test needed -> needs patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue9800] Fast path for small int-indexing of lists and tuples

2010-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I did some spelunking. Guido committed the similar optimization in r8306. > The diff is at: > http://svn.python.org/view/python/trunk/Python/ceval.c?r1=8087&r2=8306 > > His commit message was: > > Huge speedup by inlining some common integer operati

[issue9800] Fast path for small int-indexing of lists and tuples

2010-10-05 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: I did some spelunking. Guido committed the similar optimization in r8306. The diff is at: http://svn.python.org/view/python/trunk/Python/ceval.c?r1=8087&r2=8306 His commit message was: Huge speedup by inlining some common integer operations: int

[issue8879] Implement os.link on Windows

2010-10-05 Thread Brian Curtin
Brian Curtin added the comment: I created #10027 for the st_nlink issue to handle it separately. -- dependencies: +os.lstat/os.stat don't set st_nlink on Windows ___ Python tracker _

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-10-05 Thread Brian Curtin
New submission from Brian Curtin : In msg117834 on #8879 it was noticed that os.lstat and os.stat don't set st_nlink on Windows, which is causing the patch on that issue to fail test_tarfile. Attached is a stripped down version of the patch Hirokazu Yamamoto proposed on #8879, containing just

[issue10021] Format parser is too permissive

2010-10-05 Thread Eric Smith
Eric Smith added the comment: I agree that it being an implementation detail is not a good thing. I think we should just document the current CPython behavior as the language standard: once parsed, any string after a dot is passed to getattr. I can't see why we should pay the penalty of valid

[issue9800] Fast path for small int-indexing of lists and tuples

2010-10-05 Thread Aahz
Aahz added the comment: Wasn't me! And I've spent too little time on python-dev lately to remember stuff like this. :-( -- nosy: +Aahz ___ Python tracker ___ __

[issue10021] Format parser is too permissive

2010-10-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: This should not be classified as an "implementation detail". Either we should document it and cause other implementations to support it or check it ourselves. -- ___ Python tracker

[issue9978] Better wait for slow machine in test_os (_kill_with_event)

2010-10-05 Thread Brian Curtin
Brian Curtin added the comment: In that case, the patch seems alright to me. -- versions: +Python 2.7 ___ Python tracker ___ ___ Pytho

[issue9899] tkinter test_font fails on OS X with Aqua Tk

2010-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks alright, thank you! -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue10026] xml.dom.pulldom strange behavior

2010-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Yes, sax parsers may split CHARACTER events. See also the discussion: http://www.mail-archive.com/xml-...@python.org/msg00234.html Again, the END_ELEMENT event is guaranteed to return the complete node. -- ___

[issue9012] Separate compilation of time and datetime modules

2010-10-05 Thread MunSic JEONG
Changes by MunSic JEONG : -- nosy: +ruseel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue7980] time.strptime not thread safe

2010-10-05 Thread MunSic JEONG
MunSic JEONG added the comment: Attribute error confirmed on OSX, and py3k. http://codereview.appspot.com/2371041 -- keywords: +patch Added file: http://bugs.python.org/file19133/issue7980.patch ___ Python tracker

[issue10026] xml.dom.pulldom strange behavior

2010-10-05 Thread Vojtěch Rylko
Vojtěch Rylko added the comment: Program below also splits two of 10 000 elements into two rows. Is it acceptable behavior? OUTPUT (ill part) = PROGRAM = for event, node in events: if event == pulldom.CHARACTERS: print node.data --

[issue9899] tkinter test_font fails on OS X with Aqua Tk

2010-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the patch in r85229. Let's see if this makes the buildbots happy. -- ___ Python tracker ___ _

[issue10026] xml.dom.pulldom strange behavior

2010-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Please read http://docs.python.org/library/xml.etree.elementtree.html?highlight=elementtree#xml.etree.ElementTree.iterparse At START_ELEMENT, the element is not guaranteed to be fully populated; you should handle the END_ELEMENT event instead. This should

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-10-05 Thread Nils Philippsen
Changes by Nils Philippsen : -- nosy: +nils ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9873] urllib.parse: Allow bytes in some APIs that use string literals internally

2010-10-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: I wonder if Option2 (ascii+surrogateescape vs latin1) is only about performance. How about escapes that might occur if the Option2 is adopted. That might take higher priority than performance. Do we know 'how tight' that approach is? -- __

[issue9873] urllib.parse: Allow bytes in some APIs that use string literals internally

2010-10-05 Thread Nick Coghlan
Nick Coghlan added the comment: On Tue, Oct 5, 2010 at 5:32 PM, STINNER Victor wrote: > > STINNER Victor added the comment: > >> If you were worried about performance, then surrogateescape is certainly >> much slower than latin1. > > If you were really worried about performance, the bytes type

[issue10026] xml.dom.pulldom strange behavior

2010-10-05 Thread Vojtěch Rylko
New submission from Vojtěch Rylko : Hi, I have file with 10 000 records of same element item (always same): $ head test.xml Twitter Twitter Twitter Twitter Twitter Twitter Twitter Twitter Twitter And run simply program for printing content of element section: $ python pulldom.py test.xml | h

[issue10024] Outdated advice in C-API tutorial?

2010-10-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: The advice is still necessary, AFAIK. The issue is Windows, in particular producing function pointers across DLL boundaries. In Python core, this is not an issue, since the references will all be inside pythonXY.dll. -- _

[issue7330] PyUnicode_FromFormat segfault

2010-10-05 Thread Ray.Allen
Ray.Allen added the comment: Oooops! Sorry for re-submit the request... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue7330] PyUnicode_FromFormat segfault

2010-10-05 Thread Ray.Allen
Ray.Allen added the comment: I update the patch. Hope somebody could do a review. -- Added file: http://bugs.python.org/file19132/issue_7330.diff ___ Python tracker ___ _

[issue7330] PyUnicode_FromFormat segfault

2010-10-05 Thread Ray.Allen
Ray.Allen added the comment: I update the patch. Hope somebody could do a review. -- Added file: http://bugs.python.org/file19131/issue_7330.diff ___ Python tracker ___ _

[issue8445] buildbot: test_ttk_guionly failures (test_traversal, test_tab_identifiers, test_identify, test_heading_callback)

2010-10-05 Thread Ned Deily
Ned Deily added the comment: The test_heading_callback failure appears to be another Tk 8.4 vs Tk 8.5 problem. Datapoints: the test fails using the Apple-supplied Tk 8.4 in OS X 10.6 and with a recent ActiveState Aqua Tk 8.4 on OS X 10.5; the test succeeds with the Apple-supplied Tk 8.5 in O

[issue9873] urllib.parse: Allow bytes in some APIs that use string literals internally

2010-10-05 Thread STINNER Victor
STINNER Victor added the comment: > If you were worried about performance, then surrogateescape is certainly > much slower than latin1. If you were really worried about performance, the bytes type is maybe faster than: decode bytes to str using latin-1, process str strings, encode str to byte

[issue9980] str(float) failure

2010-10-05 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue10021] Format parser is too permissive

2010-10-05 Thread Mark Dickinson
Mark Dickinson added the comment: > I seem to remember this having been discussed before, but I cannot find the right thread. It came up in the issue 7951 discussion, I think. -- ___ Python tracker __