[issue14583] try/except import fails --without-threads

2012-04-15 Thread Stefan Krah
Stefan Krah added the comment: The SystemError has changed to a KeyError: http://www.python.org/dev/buildbot/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/2004/steps/test/logs/stdio At least that makes it easy to spot the location in import.c. The shortest way to reproduce the

[issue14562] urllib2 maybe blocks too long with small chunks

2012-04-15 Thread Qiangning Hong
Changes by Qiangning Hong : -- nosy: +hongqn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1508475] transparent gzip compression in urllib

2012-04-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch for py3k also has the disadvantage that the content is decoded even if the user has defined a Content-Encoding and he is going to process compressed response himself. -- ___ Python tracker

[issue10854] Output .pyd name in error message of ImportError when DLL load fails

2012-04-15 Thread Brian Curtin
Changes by Brian Curtin : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10854] Output .pyd name in error message of ImportError when DLL load fails

2012-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset f341b99bb370 by Brian Curtin in branch 'default': Fix #10854. Make use of the new path and name attributes on ImportError http://hg.python.org/cpython/rev/f341b99bb370 -- nosy: +python-dev ___ Python tra

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

2012-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4256df44023b by Brett Cannon in branch 'default': Issue #13959: Re-implement imp.load_package() in imp.py. http://hg.python.org/cpython/rev/4256df44023b -- ___ Python tracker

[issue14590] ConfigParser doesn't strip inline comment when delimiter occurs earlier without preceding space.

2012-04-15 Thread R. David Murray
Changes by R. David Murray : -- versions: -Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue14590] ConfigParser doesn't strip inline comment when delimiter occurs earlier without preceding space.

2012-04-15 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> lukasz.langa nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue14590] ConfigParser doesn't strip inline comment when delimiter occurs earlier without preceding space.

2012-04-15 Thread Graham Dumpleton
New submission from Graham Dumpleton : When parsing for inline comments, ConfigParser will only check the first occurrence of the delimiter in the line. If that instance of the delimiter isn't preceded with a space, it then assumes no comment. This ignores the fact that there could be a second

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

2012-04-15 Thread STINNER Victor
STINNER Victor added the comment: Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue6657] Copy documentation section

2012-04-15 Thread R. David Murray
R. David Murray added the comment: Hmm. 2.5 years later it isn't looking like we are going to get a response. Closing. -- nosy: +r.david.murray resolution: -> works for me stage: -> committed/rejected status: open -> closed ___ Python tracker <

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

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed! Note: to get the new certificate chain, I just did: $ openssl s_client -connect sha256.tbs-internet.com:443 -showcerts :) -- components: +Tests resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior _

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

2012-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 33bc53e0aa9e by Antoine Pitrou in branch '2.7': Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing a test failure in test_ssl. http://hg.python.org/cpython/rev/33bc53e0aa9e -- __

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

2012-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset f323b37ef6c1 by Antoine Pitrou in branch '3.2': Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing a test failure in test_ssl. http://hg.python.org/cpython/rev/f323b37ef6c1 New changeset 34f09c654a5b by Antoine Pitrou in br

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

2012-04-15 Thread Roger Serwy
Roger Serwy 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.) -- __

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

2012-04-15 Thread Daniel Harding
Daniel Harding 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 logic of os.path.realp

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

2012-04-15 Thread Terry J. Reedy
Terry J. Reedy 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 get any info at al

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

2012-04-15 Thread R. David Murray
R. David Murray 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 to write the patch :)

[issue14576] IDLE cannot connect to subprocess - New solution

2012-04-15 Thread R. David Murray
R. David Murray 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 the next interesting que

[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 : 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) -

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

2012-04-15 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue8820] IDLE not launching correctly

2012-04-15 Thread Roger Serwy
Roger Serwy 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 ___

[issue8820] IDLE not launching correctly

2012-04-15 Thread Joseph
Joseph 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 wrote: > > Roger Serwy added the comment: > > Joseph, Jeff, > > Is this still a valid issue with the latest release of IDLE? > > -

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

2012-04-15 Thread Roundup Robot
Roundup Robot 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 tracker

[issue14588] PEP 3115 compliant dynamic class creation

2012-04-15 Thread Daniel Urban
New submission from Daniel Urban : 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 very simple tests and no d

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

2012-04-15 Thread STINNER Victor
STINNER Victor added the comment: @Stefan: What is the status of this issue? -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[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 : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14385] Support other types than dict for __builtins__

2012-04-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1508475] transparent gzip compression in urllib

2012-04-15 Thread Senthil Kumaran
Senthil Kumaran 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 ___

[issue14385] Support other types than dict for __builtins__

2012-04-15 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file25132/builtins-2.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue14385] Support other types than dict for __builtins__

2012-04-15 Thread STINNER Victor
STINNER Victor 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 critical in performance.

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

2012-04-15 Thread Alex Leach
Alex Leach 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 -DHAVE_CONFIG_H -I. -I..

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

2012-04-15 Thread Brett Cannon
Brett Cannon 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 then have load_mo

[issue14385] Support other types than dict for __builtins__

2012-04-15 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24989/builtins.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[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 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 -- ___ Python tracker

[issue14386] Expose dict_proxy internal type as types.MappingProxyType

2012-04-15 Thread STINNER Victor
STINNER Victor 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 also renames dict_proxy to

[issue14386] Expose dict_proxy internal type as types.MappingProxyType

2012-04-15 Thread Roundup Robot
Roundup Robot 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 ___ Pyth

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

2012-04-15 Thread Meador Inge
Meador Inge 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 anyone check to

[issue14304] Implement utf-8-bmp codec

2012-04-15 Thread STINNER Victor
STINNER Victor added the comment: What is this codec? What do you mean by "escpe non-ascii"? -- nosy: +haypo ___ Python tracker ___ _

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

2012-04-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2012-04-15 Thread Roundup Robot
Roundup Robot 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 tracker

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

2012-04-15 Thread Brett Cannon
Brett Cannon 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 imp.reload(), but I am sim

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

2012-04-15 Thread Roger Serwy
Roger Serwy 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 while calling event h

[issue12387] IDLE save keyboard shortcut problem

2012-04-15 Thread Terry J. Reedy
Terry J. Reedy 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 CapsLock is on. In

[issue14576] IDLE cannot connect to subprocess - New solution

2012-04-15 Thread clikkeb
clikkeb 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 USERPROFILE to determine

[issue14339] Optimizing bin, oct and hex

2012-04-15 Thread Serhiy Storchaka
Serhiy Storchaka 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 general. Martin,

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

2012-04-15 Thread Brett Cannon
Brett Cannon 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, find_module(), etc.). That w

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

2012-04-15 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

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

2012-04-15 Thread Terry J. Reedy
Terry J. Reedy 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 a little nervous

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

2012-04-15 Thread Brett Cannon
Brett Cannon 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 couldn't simply have a

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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, including my previo

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Mark Dickinson
Mark Dickinson 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 MAXSTACK in Parser/par

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Raymond Hettinger
Raymond Hettinger 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 seems to be just a CPython issu

[issue11750] Mutualize win32 functions

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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 tracker

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

2012-04-15 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed ___ Python tracker ___

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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 down the execution mu

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

2012-04-15 Thread Roundup Robot
Roundup Robot 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 ___ Python tracke

[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 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 ___ Python tracker

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

2012-04-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue12387] IDLE save keyboard shortcut problem

2012-04-15 Thread Roger Serwy
Changes by Roger Serwy : -- stage: -> patch review versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue12387] IDLE save keyboard shortcut problem

2012-04-15 Thread Roger Serwy
Roger Serwy 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 tracker

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

2012-04-15 Thread Daniel Harding
Daniel Harding 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 '\\?\' prefix returned b

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou 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 discussion of termin

[issue14339] Optimizing bin, oct and hex

2012-04-15 Thread Mark Dickinson
Mark Dickinson 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 guaranteed in general. M

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Terry J. Reedy
Terry J. Reedy 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 reached is the

[issue11750] Mutualize win32 functions

2012-04-15 Thread Brian Curtin
Brian Curtin 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 references t

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

2012-04-15 Thread Roger Serwy
Roger Serwy added the comment: Implicit relative imports are not related to this issue. Can someone please review the given patch? -- stage: -> patch review ___ Python tracker ___

[issue14585] Have test_import run more importlib tests

2012-04-15 Thread Brett Cannon
Brett Cannon added the comment: This also means that the importlib.test.import_.util.importlib_only decorators are probably all useless. -- ___ Python tracker ___ _

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

2012-04-15 Thread R. David Murray
R. David Murray 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. -- __

[issue11750] Mutualize win32 functions

2012-04-15 Thread sbt
sbt 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 "_multiprocessing.win32.Ove

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

2012-04-15 Thread STINNER Victor
STINNER Victor added the comment: Or you can port your program to Python 3 to avoid such issues :-) -- nosy: +haypo ___ Python tracker ___ __

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou 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 nested data st

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Raymond Hettinger
Raymond Hettinger 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 less interesting (or at

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

2012-04-15 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2012-04-15 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2012-04-15 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2012-04-15 Thread Martin v . Löwis
Martin v. Löwis 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 letter. So either do

[issue13496] bisect module: Overflow at index computation

2012-04-15 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue13496] bisect module: Overflow at index computation

2012-04-15 Thread Roundup Robot
Roundup Robot 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 'default': Issue #13496: Merge f

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

2012-04-15 Thread Christian Clauss
Christian Clauss added the comment: On Apr 15, 2012, at 4:43 PM, R. David Murray wrote: > > R. David Murray added the comment: > > It works fine if you use unicode. > > -- > nosy: +r.david.murray > resolution: -> invalid > stage: -> committed/rejected > status: open -> closed > >

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou 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. -- _

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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 function pointers, ending

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

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

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou 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 Christian Clauss
New submission from Christian Clauss : BUGS: certain diacritical marks can and should be capitalized... str.upper() does not .replace('à', 'À').replace('ä', 'Ä').replace('è', 'È').replace('é', 'É').replace('ö', 'Ö').replace('ü', 'Ü'), etc. str.lower() does not .replace('À', 'à').replace(

[issue14573] json iterencode can not handle general iterators

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou 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 won't round-trip.

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

2012-04-15 Thread Roundup Robot
Roundup Robot 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. http://hg.python.org/cpython/rev/bf3b77722c9f -- _

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

2012-04-15 Thread Roundup Robot
Roundup Robot 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. http://hg.python.org/cpython/rev/dfc9a98a5fef New changeset

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Raymond Hettinger
Raymond Hettinger 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, perhaps memory being allocat

[issue11750] Mutualize win32 functions

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou 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 'wi

[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 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 'destroyed' to 1 or 0,

[issue11750] Mutualize win32 functions

2012-04-15 Thread sbt
sbt 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 'win32_functions.c' in set

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Raymond Hettinger
Raymond Hettinger 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 segfault. The following

[issue12081] Remove distributed copy of libffi

2012-04-15 Thread Antoine Pitrou
Antoine Pitrou 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 __

[issue12081] Remove distributed copy of libffi

2012-04-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2012-04-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: needs patch -> patch review versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-b

[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 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, i.e. if actual deletio

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

2012-04-15 Thread Alex Leach
Changes by Alex Leach : Added file: http://bugs.python.org/file25221/ffi64.c.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

  1   2   >