[issue3982] support .format for bytes

2012-04-15 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3982 ___ ___ Python-bugs-list

[issue12081] Remove distributed copy of libffi

2012-04-15 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: In any case, it should be OK to remove libffi_arm_wince? Is WinCE supported? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12081

[issue1508475] transparent gzip compression in urllib

2012-04-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +storchaka versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1508475 ___

[issue3493] No Backslash (\) in IDLE 1.2.2

2012-04-15 Thread Peter Nielsen
Peter Nielsen peter.ev...@gmail.com added the comment: Hello there Yes, I am afraid the problem persists. I have downloaded version 3.2.3 of python 32 bit. In terminal in OSX 10.7.3, you can use the keys ALT + SHIFT and 7 to get the \ but in the Idle application there is no way to do that.

[issue1508475] transparent gzip compression in urllib

2012-04-15 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: What if the gzip module is not available? I think, with transparent decompression should delete headers Content-Encoding (to free the user from re-decompression) and Content-Length (which is wrong). --

[issue3493] No Backslash (\) in IDLE 1.2.2

2012-04-15 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Peter: I'm sorry that I didn't make it clearer in my reply that you need to use the 64-bit/32-bit python.org installers (available for OS X 10.6 and above), not the 32-bit-only installers. The 32-bit-only-installers are linked with Tcl/Tk 8.4 since

[issue14507] Segfault with starmap and izip combo

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: You are creating a 10 level nested structure of iterators. It is no wonder that you exhaust the stack space of the interpreter. You would get the same with any iterator combination, nothing special with zip and starmap here.

[issue11750] Mutualize win32 functions

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: (fixed wsock32.lib in revision ab0aff639cfb) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11750 ___

[issue14574] SocketServer doesn't handle client disconnects properly

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I think this needs serious consideration. There needs to be an socket error case cleanup path that releases resources but ignores further socket errors. -- ___ Python tracker

[issue10576] Add a progress callback to gcmodule

2012-04-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 88f8ef5785d7 by Kristján Valur Jónsson in branch 'default': Issue #10576: Add a progress callback to gcmodule http://hg.python.org/cpython/rev/88f8ef5785d7 -- nosy: +python-dev

[issue10576] Add a progress callback to gcmodule

2012-04-15 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10576 ___

[issue14507] Segfault with starmap and izip combo

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Kristján, we already have provisions to avoid stack overflows, instead bailing out with a RuntimeError. So this is a bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14507

[issue13889] str(float) and round(float) issues with FPU precision

2012-04-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Slightly reworked patch. I plan to apply this shortly. - Use ~(_MCW_PC | _MCW_RC) rather than (_MCW_DN | ...), since this seems more future proof: there's a possibility that more flags could be added later. - Put the usual do { ... }

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-04-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you please re-upload this as a unified diff? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4130 ___

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-04-15 Thread Alex Leach
Changes by Alex Leach beamesle...@gmail.com: Added file: http://bugs.python.org/file25221/ffi64.c.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4130 ___

[issue8212] A tp_dealloc of a subclassed class cannot resurrect an object

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Here is a patch that rectifies this situation, albeit in a somewhat 'hacky' manner. It works by injecting a monitoring 'tp_free' call into the type during the basedealloc call, which sets a flag if it was called with the object,

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2012-04-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: needs patch - patch review versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9303 ___

[issue12081] Remove distributed copy of libffi

2012-04-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12081 ___ ___ Python-bugs-list

[issue12081] Remove distributed copy of libffi

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't think we have ever supported WinCE (which is apparently named Windows Embedded Compact 7 nowadays). It only provides a subset of the Win32 API so the current tree may not even compile. -- nosy: +brian.curtin, loewis, pitrou

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: The RuntimeError: maximum recursion depth exceeded message is normally only triggered by pure Python recursion, so I would not have expected it here, but there should be some sort of graceful MemoryError or somesuch rather than a

[issue11750] Mutualize win32 functions

2012-04-15 Thread sbt
sbt shibt...@gmail.com added the comment: New patch. Compared to the previous one: * socket functions have been moved from _windows to _multiprocessing * _windows.vcpoj has been removed (so _windows is part of pythoncore.vcproj) * no changes to pcbuild.sln needed * removed reference to

[issue8212] A tp_dealloc of a subclassed class cannot resurrect an object

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Another, less hacky but more intrusive, way would be to change the signature of tp_dealloc in a backwards compatible way: typedef void (*destructor)(PyObject *, int *destroyed); The destructor can then set the flag pointed to by

[issue11750] Mutualize win32 functions

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: New patch. Compared to the previous one: * socket functions have been moved from _windows to _multiprocessing * _windows.vcpoj has been removed (so _windows is part of pythoncore.vcproj) * no changes to pcbuild.sln needed * removed

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Hmm, substituting PyIter_Next() didn't help. There isn't much else being done in starmap.next, just a call to: result = PyObject_Call(lz-func, args, NULL); I'm now wondering if starmap() is tickling a bug in PyObject_Call,

[issue13889] str(float) and round(float) issues with FPU precision

2012-04-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset dfc9a98a5fef by Mark Dickinson in branch '3.2': Issue #13889: On MSVC builds, set FPU control word at runtime for all string - float conversions. Patch by Samuel Iseli and Stefan Krah.

[issue13889] str(float) and round(float) issues with FPU precision

2012-04-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bf3b77722c9f by Mark Dickinson in branch '2.7': Issue #13889: On MSVC builds, set FPU control word at runtime for all string - float conversions. Patch by Samuel Iseli and Stefan Krah.

[issue14573] json iterencode can not handle general iterators

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That's more of a feature request than a bug. By definition JSON can only represent a small subset of Python's types. Also, if you encode an iterator as a JSON list, you will get back a Python list when decoding the JSON representation, so it

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü -- Ü

2012-04-15 Thread Christian Clauss
New submission from Christian Clauss ccla...@bluewin.ch: BUGS: certain diacritical marks can and should be capitalized... str.upper() does not .replace('à', 'À').replace('ä', 'Ä').replace('è', 'È').replace('é', 'É').replace('ö', 'Ö').replace('ü', 'Ü'), etc. str.lower() does not

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm now wondering if starmap() is tickling a bug in PyObject_Call, perhaps memory being allocated but not checked for NULL or somesuch. The issue is that the code paths involved here circumvent recursion checking, so the stack blows up.

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü -- Ü

2012-04-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It works fine if you use unicode. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: a = map(add, a, b) also crashes this. a = chain(a, b) also. If, by provisions you speak of sys.max_recursion_depth, that is only invoked when executing python code. What's happening here is just simple c recursion trough

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: a = map(add, a, b) also crashes this. a = chain(a, b) also. If, by provisions you speak of sys.max_recursion_depth, that is only invoked when executing python code. There's nothing that prevents it from protecting C code. --

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü -- Ü

2012-04-15 Thread Christian Clauss
Christian Clauss ccla...@bluewin.ch added the comment: On Apr 15, 2012, at 4:43 PM, R. David Murray wrote: R. David Murray rdmur...@bitdance.com added the comment: It works fine if you use unicode. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected

[issue13496] bisect module: Overflow at index computation

2012-04-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 35a3a7e0d66d by Mark Dickinson in branch '3.2': Issue 13496: Fix bisect.bisect overflow bug for large collections. http://hg.python.org/cpython/rev/35a3a7e0d66d New changeset 1a9252280f07 by Mark Dickinson in branch

[issue13496] bisect module: Overflow at index computation

2012-04-15 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13496 ___

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü -- Ü

2012-04-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: In addition to R. David's remark, it also works fine in a German locale. In general, you cannot know whether the byte '\xe4' denotes 'ä' or some other letter. For example, in KOI8-R, it denotes Д, instead, which already is an upper-case

[issue13889] str(float) and round(float) issues with FPU precision

2012-04-15 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13889 ___

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14507 ___ ___ Python-bugs-list

[issue8212] A tp_dealloc of a subclassed class cannot resurrect an object

2012-04-15 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8212 ___ ___ Python-bugs-list

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-04-15 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4130 ___ ___ Python-bugs-list

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: [Kristján] a = map(add, a, b) also crashes this. ... What's happening here is just simple c recursion trough function pointers, ending in stack overflow, ... Thanks for the analysis. ISTM, this bug report is getting less and

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The existing sys.max_recursion_depth was put in as a defense against the relatively common mistake of users writing a recursive function and getting the termination code wrong. I don't think that logic would apply to intentionally deeply

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü -- Ü

2012-04-15 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Or you can port your program to Python 3 to avoid such issues :-) -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14587

[issue11750] Mutualize win32 functions

2012-04-15 Thread sbt
sbt shibt...@gmail.com added the comment: I think the module would be better named _win32, since that's the name of the API (like POSIX under Unix). Changed in new patch. Also, it seems there are a couple of naming inconsistencies renaming (e.g. the overlapped wrapper is named

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü -- Ü

2012-04-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Indeed, this type of confusion is a large part of the motivation behind Python3. You might try posting to the python-list mailing list asking for help if for some reason you are required to use python2 for your program. --

[issue14585] Have test_import run more importlib tests

2012-04-15 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: This also means that the importlib.test.import_.util.importlib_only decorators are probably all useless. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14585

[issue8900] IDLE crashes if Preference set to At Startup - Open Edit Window

2012-04-15 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Implicit relative imports are not related to this issue. Can someone please review the given patch? -- stage: - patch review ___ Python tracker rep...@bugs.python.org

[issue11750] Mutualize win32 functions

2012-04-15 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: pythoncore.vcproj) * no changes to pcbuild.sln needed * removed reference to 'win32_functions.c' in setup.py I think the module would be better named _win32, since that's the name of the API (like POSIX under Unix). While there are many

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: [Raymond: I presume you meant that C iterators have not been a problem in the wild and have done fine.] The RuntimeError message maximum recursion depth exceeded is not exactly correct. As Kristján implied in his first message, what has been

[issue14339] Optimizing bin, oct and hex

2012-04-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: A few comments: (1) The patch appears to assume that a Unicode string created with PyUnicode_New(size, 127) will have 'kind' PyUnicode_1BYTE_KIND. While this might be true in the current implementation, I don't know whether this is

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It happens to be that recursive calls are the easiest way to do that, but Python makes it somewhat easy to dynamically generate thousands of different callables making thousands of non-recursive nested calls. That's a rather pointless

[issue9949] os.path.realpath on Windows does not follow symbolic links

2012-04-15 Thread Daniel Harding
Daniel Harding dhard...@gmail.com added the comment: I have attached a series of patches with (hopefully) provide more robust fix for this issue, against the Python 3.3 branch. It handles both bytes and str objects, paths that do not actually exist on the filesystem, and removal of the

[issue12387] IDLE save keyboard shortcut problem

2012-04-15 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is a patch to fix the caps-lock issue with Windows key bindings in config-keys.def. -- keywords: +patch Added file: http://bugs.python.org/file25226/windows_caps_lock.patch ___ Python

[issue12387] IDLE save keyboard shortcut problem

2012-04-15 Thread Roger Serwy
Changes by Roger Serwy roger.se...@gmail.com: -- stage: - patch review versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12387 ___

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2012-04-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9303 ___

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-04-15 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I suggest to not apply additional patches for Modules/_ctypes/libffi* due to issue #12081. Patches for libffi should be sent to libffi upstream. -- nosy: +Arfrever ___

[issue14582] Have importlib use return value from a loader's load_module()

2012-04-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 005fd1fe31ab by Brett Cannon in branch 'default': Issue #14582: Import returns the module returned by a loader instead http://hg.python.org/cpython/rev/005fd1fe31ab -- nosy: +python-dev

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: On the other hand, Antoine is correct in that we _could_ use the existing infrastructure and count PyIter_Next() as a recursion in the same way as entering the ceval loop is a recursion. Extra checking in there would hardly slow

[issue14582] Have importlib use return value from a loader's load_module()

2012-04-15 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14582 ___

[issue11750] Mutualize win32 functions

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: at some point it became the Windows API. You are right: http://en.wikipedia.org/wiki/Windows_API How about _windowsapi or _winapi then, to ensure there are no clashes? -- ___ Python

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: ISTM this would do more harm than good. An introduce a new requirement for all iterators, introducing new arbitrary limits and slowing down all iterators (this is currently a simple, fast, light-weight protocol). Also this

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14507 ___ ___ Python-bugs-list mailing

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: (A static expression with even 100 nested calls fails compilation with a MemoryError (3.2.3).) I don't think that's at all related to this issue: that has to do with the fixed-size parser stack used when parsing Python code (see

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: There are other crashers we choose to ignore (involving gc.getreferrers, bytecode hacks, ctypes, etc). I think this should go in that category and I would be happy to add a note to that effect in the docs for tertools. Yes,

[issue13959] Re-implement parts of imp in pure Python

2012-04-15 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Just because I was thinking about it, I wonder if necessarily all the frozen stuff really needs to stay in import.c. I mean a frozen module is really just an entry in an array of structs that has a name of an char*[]. I don't see why one

[issue8900] IDLE crashes if Preference set to At Startup - Open Edit Window

2012-04-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: With 3.2.3, after selecting open edit on startup and using ^O to select a file, I got a silent close of the editor window. Opening from the file menu worked. After the change of adding '0', ^O worked also. However, without a test suite, I am

[issue13959] Re-implement parts of imp in pure Python

2012-04-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d777f854a66e by Brett Cannon in branch 'default': Issue #13959: Rename imp to _imp and add Lib/imp.py and begin http://hg.python.org/cpython/rev/d777f854a66e -- nosy: +python-dev

[issue13959] Re-implement parts of imp in pure Python

2012-04-15 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: OK, so I have started to check this stuff in, but I think it's best to do it piecemeal. Going forward I would like to commit in units of functions being replaced, and prioritize stuff that cuts out C code (e.g. the load_*() methods,

[issue14339] Optimizing bin, oct and hex

2012-04-15 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: (1) The patch appears to assume that a Unicode string created with PyUnicode_New(size, 127) will have 'kind' PyUnicode_1BYTE_KIND. While this might be true in the current implementation, I don't know whether this is guaranteed in

[issue14576] IDLE cannot connect to subprocess - New solution

2012-04-15 Thread clikkeb
clikkeb clik...@gmail.com added the comment: Thanks for your answer. Trying to understand how IDLE uses HOMEPATH and USERPROFILE Windows variables, I have found the following information: 1) it seems that when executed via Windows command prompt (cmd.exe), os.path.expanduser refers to

[issue12387] IDLE save keyboard shortcut problem

2012-04-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Changes look complete and correct as far as I can tell, except that I have some confusion about the relation of Shift and CapsLock key. For instance, Control-C and Control-Shift-C (using the key labels) both interrupt a loop whether or not

[issue8900] IDLE crashes if Preference set to At Startup - Open Edit Window

2012-04-15 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Thanks for your review, Terry. Popping from the end is not an implementation of rule 2. Calling event handlers is separate concept from binding/unbinding event handlers. The doafterhandler list contains bind/unbind requests that were made

[issue13959] Re-implement parts of imp in pure Python

2012-04-15 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: It looks like in order to get a clear sign of what it will take to remove various parts of import.c, imp.load_module() needs to go along with imp.load_package() (since they call each other in the C code). You also have to take care of

[issue13959] Re-implement parts of imp in pure Python

2012-04-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4dce3afc392c by Brett Cannon in branch 'default': Issue #13959: Simplify imp.reload() by relying on a module's http://hg.python.org/cpython/rev/4dce3afc392c -- ___ Python

[issue14579] Possible vulnerability in the utf-16 decoder after error handling

2012-04-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14579 ___ ___ Python-bugs-list

[issue14304] Implement utf-8-bmp codec

2012-04-15 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: What is this codec? What do you mean by escpe non-ascii? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14304 ___

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-04-15 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I suggest to not apply additional patches for Modules/_ctypes/libffi* due to issue #12081. Patches for libffi should be sent to libffi upstream. For trunk I agree. However, it is probably worth considering this patch for 2.7 and 3.2. Did

[issue14386] Expose dict_proxy internal type as types.MappingProxyType

2012-04-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c3a0197256ee by Victor Stinner in branch 'default': Issue #14386: Expose the dict_proxy internal type as types.MappingProxyType http://hg.python.org/cpython/rev/c3a0197256ee -- nosy: +python-dev

[issue14386] Expose dict_proxy internal type as types.MappingProxyType

2012-04-15 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Summary: The collections.abc module is fine as-is. Ok, but there is still an issue: issubclass(types.MappingProxyType, collections.abc.Mapping) is False. Attached registers MappingProxyType as a Mapping. Is it correct? The patch

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-04-15 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: https://github.com/atgreen/libffi/blob/master/src/x86/ffi64.c contains: #ifdef __INTEL_COMPILER #define UINT128 __m128 #else #define UINT128 __int128_t #endif -- ___

[issue14385] Support other types than dict for __builtins__

2012-04-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file24989/builtins.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14385 ___

[issue13959] Re-implement parts of imp in pure Python

2012-04-15 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I am seeing how this is going to go down. the load_dynamic, load_source, etc. family of functions are simply dispatched to by load_module(). So to keep some semblance of backwards-compatibility, each of those modules need to be implemented and

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-04-15 Thread Alex Leach
Alex Leach beamesle...@gmail.com added the comment: Submitting a working patch upstream would make sense.. Just found, downloaded and tried compiling libffi-3.0.11. The developers have made some changes towards a solution, but compilation fails with the same error:- libtool: compile: icc

[issue14385] Support other types than dict for __builtins__

2012-04-15 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Oops, patch version 2 was not correct: I forgot a { ... } in ceval.c. New patch fixing this issue but leaves also the LOAD_GLOBAL code unchanged : keep the goto and don't try to factorize the 3 last instructions. LOAD_GLOBAL is really

[issue14385] Support other types than dict for __builtins__

2012-04-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file25132/builtins-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14385 ___

[issue1508475] transparent gzip compression in urllib

2012-04-15 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: In that case, transparent decompression should not be available. ( Request header should not be sent and response wont be compressed). -- ___ Python tracker rep...@bugs.python.org

[issue14385] Support other types than dict for __builtins__

2012-04-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14385 ___ ___ Python-bugs-list

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

2012-04-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9403 ___

[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-04-15 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: @Stefan: What is the status of this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13072 ___

[issue14588] PEP 3115 compliant dynamic class creation

2012-04-15 Thread Daniel Urban
New submission from Daniel Urban urban.dani...@gmail.com: As Nick Coghlan proposed [1, 2], there should be a way to dynamically create classes, which handles metaclasses correctly (see also issue1294232). Here is my first attempt at creating an operator.build_class method. It only includes

[issue13959] Re-implement parts of imp in pure Python

2012-04-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2df37938b8e1 by Brett Cannon in branch 'default': Issue #13959: Re-implement imp.load_module() in imp.py. http://hg.python.org/cpython/rev/2df37938b8e1 -- ___ Python

[issue8820] IDLE not launching correctly

2012-04-15 Thread Joseph
Joseph joseph.a.mar...@gmail.com added the comment: Seems to work fine for me, operating system still Windows 64 bit, Python 2.7.2, IDLE 2.7.2 On Sat, Apr 14, 2012 at 6:08 PM, Roger Serwy rep...@bugs.python.org wrote: Roger Serwy roger.se...@gmail.com added the comment: Joseph, Jeff, Is

[issue8820] IDLE not launching correctly

2012-04-15 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Thank you for your feedback. I will close this issue since it is now out of date. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10722] IDLE's subprocess didnit make connection ..... Python 2.7

2012-04-15 Thread Roger Serwy
Changes by Roger Serwy roger.se...@gmail.com: -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10722 ___ ___ Python-bugs-list mailing

[issue14589] test_algorithms() of test_ssl fails: certificate of sha256.tbs-internet.com changed

2012-04-15 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@gmail.com: http://www.python.org/dev/buildbot/all/builders/AMD64%20Gentoo%20Wide%203.x/builds/3677/steps/test/logs/stdio == ERROR: test_algorithms (test.test_ssl.NetworkedTests)

[issue14576] IDLE cannot connect to subprocess - New solution

2012-04-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It certainly is worthwhile pursing this in some fashion, since at the very least the existing error message needs to be improved. But perhaps there is something more that can be done to gracefully handle this case, instead. I think

[issue14586] TypeError: truncate() takes no keyword arguments

2012-04-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The suggested doc change won't work, since that would imply that the size argument was required. We'd have to use the old truncate([size]) notation. Supporting it as a keyword argument is probably to be preferred, but someone will have

[issue10722] IDLE's subprocess didnit make connection ..... Python 2.7

2012-04-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 3.2.3 and 2.7.3 are out. And I am running on win7 without problems. I have not tried running multiple shells of the same Python version, but I have occasionally run 2.7 and 3.2 simultaneously without problems that I noticed. Roger, does IDLE

[issue9949] os.path.realpath on Windows does not follow symbolic links

2012-04-15 Thread Daniel Harding
Daniel Harding dhard...@gmail.com added the comment: Uploading a new series of patches - they are all the same as the first set, except for 0006-Make-realpath-follow-symbolic-links-on-Windows.patch. I realized that I could use os.readlink to handle broken symbolic links, so I changed the

[issue10722] IDLE's subprocess didnit make connection ..... Python 2.7

2012-04-15 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: The IDLE front-end doesn't receive anything about the subprocess failure mode. The poll_subprocess method in PyShell.py will restart the subprocess if the socket closes. (The pollpacket method in rpc.py raises an EOFError.) --

  1   2   >