[issue13026] Dis module - documentation of MAKE_FUNCTION

2011-09-22 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

[issue13026] Dis module - documentation of MAKE_FUNCTION

2011-09-22 Thread Arnaud Delobelle
Arnaud Delobelle arno...@googlemail.com 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

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

2011-09-22 Thread ozan caglayan
ozan caglayan ozan...@gmail.com 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

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

2011-09-22 Thread Georg Brandl
Georg Brandl ge...@python.org 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. -- ___

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

2011-09-22 Thread ozan caglayan
ozan caglayan ozan...@gmail.com 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

[issue7133] test_ssl failure

2011-09-22 Thread Keith Briggs
Keith Briggs kbri...@users.sourceforge.net 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

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

2011-09-22 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6549 ___ ___ Python-bugs-list

[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 benignb...@gmail.com: 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

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

2011-09-22 Thread Meador Inge
Meador Inge mead...@gmail.com 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 -

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

2011-09-22 Thread Cherniavsky Beni
Changes by Cherniavsky Beni b...@google.com: -- nosy: +cben ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475 ___ ___ Python-bugs-list mailing

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

2011-09-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

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

2011-09-22 Thread Gökçen Eraslan
Changes by Gökçen Eraslan gok...@pardus.org.tr: -- nosy: +Gökçen.Eraslan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1625 ___ ___

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

2011-09-22 Thread Balachandran Sivakumar
Balachandran Sivakumar benignb...@gmail.com 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

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

2011-09-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

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

2011-09-22 Thread Roger
New submission from Roger fzvq...@v.mintemail.com: 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]

[issue12902] help(modules) executes module code

2011-09-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

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

2011-09-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue10141] SocketCan support

2011-09-22 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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

[issue13029] test_strptime fails on Windows 7 french

2011-09-22 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: 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)

[issue13029] test_strptime fails on Windows 7 french

2011-09-22 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13029 ___ ___

[issue13029] test_strptime fails on Windows 7 french

2011-09-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also issue #10653. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13029 ___

[issue10653] test_time test_strptime fails on windows

2011-09-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also issue #13029. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10653 ___

[issue13029] test_strptime fails on Windows 7 french

2011-09-22 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com 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

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

2011-09-22 Thread Victor Ruiz
Victor Ruiz vic...@ninibe.com 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

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

2011-09-22 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: 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

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

2011-09-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10254 ___

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

2011-09-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12729 ___ ___

[issue13026] Dis module - documentation of MAKE_FUNCTION

2011-09-22 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Agreed -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13026 ___ ___ Python-bugs-list mailing

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

2011-09-22 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - patch review versions: +Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6549 ___

[issue12902] help(modules) executes module code

2011-09-22 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: As I said in msg143786, the second time only c-coded modules are listed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12902 ___

[issue12902] help(modules) executes module code

2011-09-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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 rep...@bugs.python.org

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

2011-09-22 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com 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 rep...@bugs.python.org

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

2011-09-22 Thread Adam Cohen
Adam Cohen a...@seatgeek.com 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 ___

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

2011-09-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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:

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

2011-09-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 rep...@bugs.python.org http://bugs.python.org/issue10254

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

2011-09-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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 rep...@bugs.python.org

[issue12931] xmlrpclib confuses unicode and string

2011-09-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue12931] xmlrpclib confuses unicode and string

2011-09-22 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12931 ___

[issue12902] help(modules) executes module code

2011-09-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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'):

[issue12931] xmlrpclib confuses unicode and string

2011-09-22 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12931 ___ ___

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

2011-09-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue10141] SocketCan support

2011-09-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2011-09-22 Thread Meador Inge
Meador Inge mead...@gmail.com 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

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

2011-09-22 Thread Justin Peel
New submission from Justin Peel pee...@gmail.com: 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

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

2011-09-22 Thread Justin Peel
Changes by Justin Peel pee...@gmail.com: -- type: - performance ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13031 ___ ___ Python-bugs-list

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

2011-09-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I would say this looks good now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12943 ___ ___