[issue13031] [PATCH] small speed-up for tarfile.py when unzipping tarballs

2011-09-22 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel nosy: +lars.gustaebel priority: normal -> low versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker ___

[issue12943] tokenize: add python -m tokenize support back

2011-09-22 Thread Georg Brandl
Georg Brandl added the comment: I would say this looks good now. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue13031] [PATCH] small speed-up for tarfile.py when unzipping tarballs

2011-09-22 Thread Justin Peel
Changes by Justin Peel : -- type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13031] [PATCH] small speed-up for tarfile.py when unzipping tarballs

2011-09-22 Thread Justin Peel
New submission from Justin Peel : Attached small diff speeds up extracting a gzipped tarball on my machine using python 3.2 by 3-5%. It will probably be a larger percentage on machines that have faster hard drives (mine is 5400rpm). Basically, the changes speed up calculating the checksums by

[issue12943] tokenize: add python -m tokenize support back

2011-09-22 Thread Meador Inge
Meador Inge added the comment: > I don't think the help option needs to be documented, it will document > itself. Normally I would document it anyway, but in this case there is only the one option. So, I dropped it. > An additional suggestion is to catch errors on tokenizing and exiting > w

[issue10141] SocketCan support

2011-09-22 Thread STINNER Victor
STINNER Victor added the comment: socketcan_v4.patch: - dummy question: why an address is a tuple with 1 string instead of just the string? Does AF_UNIX also uses a tuple of 1 string? - the example should also use struct.pack() to create the frame, I don't like hardcoded BLOB - in test_sock

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-09-22 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch for httplib encoding HTTP headers to ISO-8859-1, as done in Python 3 (see HTTPConnection.putheader() from http.client). urllib is not affected by this issue because it does already encode Unicode, but encode to ASCII instead of ISO-8859-1. Re

[issue12931] xmlrpclib confuses unicode and string

2011-09-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue12902] help("modules") executes module code

2011-09-22 Thread Ezio Melotti
Ezio Melotti added the comment: > A separate issue would be a feature request to not do that (assuming it > really does). I tried to verify this (the fact that modules get imported with help('modules')). Here are the results: * Lib/foobar.py: - help('modules'): foobar in the list, code

[issue12931] xmlrpclib confuses unicode and string

2011-09-22 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue12931] xmlrpclib confuses unicode and string

2011-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset c02e790c4535 by Victor Stinner in branch '2.7': Issue #12931: xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of http://hg.python.org/cpython/rev/c02e790c4535 New changeset 5ceab07bcd02 by Victor Stinner in branch '3.2': Issue #12931: Add

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-09-22 Thread Ezio Melotti
Ezio Melotti added the comment: Can the workaround be removed from Lib/pydoc.py:2001 ? I tried to remove it from 3.2 and help('modules spam') seems to work fine. -- nosy: +ezio.melotti ___ Python tracker __

[issue10254] unicodedata.normalize('NFC', s) regression

2011-09-22 Thread STINNER Victor
STINNER Victor added the comment: "This fix is part of Python 2.7.2, but not of 2.7.2." ... but not of 2.7.1. -- ___ Python tracker ___

[issue10254] unicodedata.normalize('NFC', s) regression

2011-09-22 Thread STINNER Victor
STINNER Victor added the comment: "This new data does not crash Python 2.7.2, so I assume the issue has been fixed." Yes, the bug was already fixed in branch 2.7 by the SVN commit r87541: changeset: 67185:54f1d5651555 branch: 2.7 parent: 67159:2d09af4c137c user:Alexander B

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-09-22 Thread Adam Cohen
Adam Cohen added the comment: I encountered this issue as well. "params" is simply a bytestring, with no encoding. Workaround/proper solution is to cast the string as a bytearray with bytearray(params). -- nosy: +Adam.Cohen ___ Python tracker

[issue10254] unicodedata.normalize('NFC', s) regression

2011-09-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This new data does not crash Python 2.7.2, so I assume the issue has been fixed. Re-closing. -- status: open -> closed ___ Python tracker _

[issue12902] help("modules") executes module code

2011-09-22 Thread Ezio Melotti
Ezio Melotti added the comment: Right, I missed that. If we change the way the list is created this bug will be probably get fixed too. If we don't, we should open another issue. -- ___ Python tracker __

[issue12902] help("modules") executes module code

2011-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I said in msg143786, the second time only c-coded modules are listed. -- ___ Python tracker ___

[issue6549] ttk.Style -- minor issues with element_names and configure

2011-09-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> patch review versions: +Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-

[issue13026] Dis module - documentation of MAKE_FUNCTION

2011-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Agreed -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10254] unicodedata.normalize('NFC', s) regression

2011-09-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue13030] Be more generic when identifying the Windows main dir in installation doc

2011-09-22 Thread Sandro Tosi
New submission from Sandro Tosi : Given I have no knowledge of the windows system, I'm just proxying http://mail.python.org/pipermail/docs/2011-September/005793.html : >>> Under: http://docs.python.org/install/index.html#inst-how-install-works It notes "Windows prefix\Lib\site-packages

[issue10254] unicodedata.normalize('NFC', s) regression

2011-09-22 Thread Victor Ruiz
Victor Ruiz added the comment: Hi, I think I've come across what seems to be another flavor of this issue. The following string will cause a crash in some interpreters. text = u"""\u062d\u064e\u064a\u0651\u064b\u0627\u060c\u0648\u064e\u064a\u064e\u062d\u0650\u0642\u0651\u064e \u0627\u0644\

[issue13029] test_strptime fails on Windows 7 french

2011-09-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Isn't this a duplicate of #10653? In any case, this looks like a windows only issue, so I cannot move it further. Would be interested in resolution, though. Thanks for making me nosy. -- nosy: +ocean-city

[issue10653] test_time test_strptime fails on windows

2011-09-22 Thread STINNER Victor
STINNER Victor added the comment: See also issue #13029. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue13029] test_strptime fails on Windows 7 french

2011-09-22 Thread STINNER Victor
STINNER Victor added the comment: See also issue #10653. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue13029] test_strptime fails on Windows 7 french

2011-09-22 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13029] test_strptime fails on Windows 7 french

2011-09-22 Thread STINNER Victor
New submission from STINNER Victor : Python 3 uses wcsftime() to format a timestamp and decodes tzname[0] and tzname[1] from UTF-8. The problem is that both methods format the quote differently: U+0092 for wcsftime("%Z") and U+2019 in tzname[1]. >>> time.strftime("%Z") 'Paris, Madrid (heure d

[issue10141] SocketCan support

2011-09-22 Thread Charles-François Natali
Charles-François Natali added the comment: Here's an updated patch, with more tests. Please review! -- keywords: +needs review nosy: +haypo stage: patch review -> commit review Added file: http://bugs.python.org/file23225/socketcan_v4.patch ___ Pytho

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

2011-09-22 Thread STINNER Victor
STINNER Victor added the comment: The list of file extensions is written in _PyImport_DynLoadFiletab constant. This list depends on the OS. For Linux, the list is defined in: Python/dynload_shlib.c. I don't understand because in Python 2.7, Python/dynload_shlib.c doesn't contain ".dylib". -

[issue12902] help("modules") executes module code

2011-09-22 Thread Ezio Melotti
Ezio Melotti added the comment: Since help("modules") just shows a list of modules without any description, maybe it could avoid importing them until further information about individual modules are requested. Also while trying to do help("modules") twice on py3k, I noticed that the second t

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

2011-09-22 Thread Roger
New submission from Roger : instead it should check for linux once, store that linux is used and not even once check for dylib strace extract [pid 23025] stat64("//lib/libreadline.dylib", 0xbfd27c1c) = -1 ENOENT (No such file or directory) [pid 23025] stat64("//lib/libreadline.so", 0xbfd27c1c

[issue13027] python 2.6.6 interpreter core dumps on modules command from help prompt

2011-09-22 Thread Ezio Melotti
Ezio Melotti added the comment: Doing "help('modules')" and "help(), help> modules" should be the same. My point is that the crash is not Python's fault, but it's caused by some extension module that gets imported by help('modules'). This module is probably not installed on the other machines

[issue13027] python 2.6.6 interpreter core dumps on modules command from help prompt

2011-09-22 Thread Balachandran Sivakumar
Balachandran Sivakumar added the comment: But this doesn't happen in other versions of python. Also what I did is something like this: bala@bala$ python ... ... >>> help() ... ... ... help > modules It is after this I see it dumping. And I see this only with 2.6.6. I have other versions in ot

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

2011-09-22 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

[issue13027] python 2.6.6 interpreter core dumps on modules command from help prompt

2011-09-22 Thread Ezio Melotti
Ezio Melotti added the comment: help("modules") imports all the modules, and you probably have some module that once imported makes the interpreter crash (maybe _keybinder? you could try importing that from the interpreter and see if it crashes). The deprecation warnings comes from deprecated

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2011-09-22 Thread Cherniavsky Beni
Changes by Cherniavsky Beni : -- nosy: +cben ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-09-22 Thread Meador Inge
Meador Inge added the comment: I agree that 'bytecode_instructions' is a long-winded. FWIW, I have worked on or with a fair amount instruction level things and "instruction" or "instr" seem to be the established domain terminology. Here are a few examples: * Java ASM - http://asm.ow2.org/asm3

[issue13027] python 2.6.6 interpreter core dumps on modules command from help prompt

2011-09-22 Thread Balachandran Sivakumar
New submission from Balachandran Sivakumar : >From the python 2.6.6 interpreter on Debian Lenny(Debian 5.0), on invoking >help(), and issuing the modules command, the interpreter seg faults, and dumps >core. Also, it throws a few Deprecated warnings for modules like md5. The gdb >backtrace on

[issue6549] ttk.Style -- minor issues with element_names and configure

2011-09-22 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue7133] test_ssl failure

2011-09-22 Thread Keith Briggs
Keith Briggs added the comment: I am still getting this error with SocketServer in Python 2.7.2, even though it looks the same as was fixed in Issue7133: File "/usr/local/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock self.process_request(request, client_address)

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

2011-09-22 Thread ozan caglayan
ozan caglayan added the comment: With the current tip everything works correctly. I think it's because of the complete rewrite of the bz2 module with python and the refactoring of _bz2.so. -- ___ Python tracker __

[issue12943] tokenize: add python -m tokenize support back

2011-09-22 Thread Georg Brandl
Georg Brandl added the comment: I don't think the help option needs to be documented, it will document itself. An additional suggestion is to catch errors on tokenizing and exiting with a non-zero exit status in these cases. -- ___ Python tracker

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

2011-09-22 Thread ozan caglayan
ozan caglayan added the comment: I ported the bz2ms.patch to Python 2.7.2 and it works correctly within the bz2 module. But when you open a multistream (tar)bz2 with the tarfile module, even the tarfile uses the BZ2File() class, there exists unextracted missing files. I'll now try with the c

[issue13026] Dis module - documentation of MAKE_FUNCTION

2011-09-22 Thread Arnaud Delobelle
Arnaud Delobelle added the comment: This reads a lot better. Perhaps change (with name and object in separate positions) to something like (with name just below object on the stack) -- ___ Python tracker

[issue13026] Dis module - documentation of MAKE_FUNCTION

2011-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Right. This opcode is the end of a sequence of opcodes that sets up the stack in the way expected. Perhaps something like Pushes a new function object on the stack. From bottom to top, the consumed stack must have have argc & 0xFF positional default parameter