[issue15001] segmentation fault with del sys.module['__main__']

2012-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset b256d054f229 by Hynek Schlawack in branch '3.2': Issue #15001: fix segfault on "del sys.module['__main__']" http://hg.python.org/cpython/rev/b256d054f229 New changeset 215297665098 by Hynek Schlawack in branch '3.3': Issue #15001: fix segfault on "d

[issue15001] segmentation fault with del sys.modules['__main__']

2012-11-07 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- title: segmentation fault with del sys.module['__main__'] -> segmentation fault with del sys.modules['__main__'] ___ Python tracker _

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Here's a demo patch (against Python 2.7) which counts hash value collisions and slot collisions. I had posted that in the original ticket where we discussed the hash problem (http://bugs.python.org/issue14621). This avoids issues like attack 1 mentioned in

[issue16413] Non cross-platform behavior of os.path.split

2012-11-07 Thread anatoly techtonik
anatoly techtonik added the comment: I don't know about the differences. An expert is required. -- ___ Python tracker ___ ___ Python-b

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 09:34, Marc-Andre Lemburg wrote: > > Here's a demo patch (against Python 2.7) which counts hash value collisions > and slot collisions. I had posted that in the original ticket where we > discussed the hash problem (http://bugs.python.org/iss

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Giovanni Bajo
Giovanni Bajo added the comment: Until it's broken with a yet-unknown attack, SipHash is a pseudo-random function and as such it does uniformly distribute values across the output space, and never leak any information on the key (the randomized seed). Being designed by cryptographers, it is li

[issue16420] PEP 249 (DB-API 2.0) converted to reStructuredText

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: For some reason, the roundup bot didn't pick up the check in, so here's the reference by hand: http://hg.python.org/peps/rev/95a73d5a3af7 changeset: 4578:95a73d5a3af7 user:Marc-Andre Lemburg date:Wed Nov 07 09:42:07 2012 +0100 summary:

[issue16420] PEP 249 (DB-API 2.0) converted to reStructuredText

2012-11-07 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue15001] segmentation fault with del sys.modules['__main__']

2012-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4ebe1ede981e by Hynek Schlawack in branch '2.7': Issue #15001: fix segfault on "del sys.modules['__main__']" http://hg.python.org/cpython/rev/4ebe1ede981e -- ___ Python tracker

[issue15001] segmentation fault with del sys.modules['__main__']

2012-11-07 Thread Hynek Schlawack
Hynek Schlawack added the comment: This should be fixed now, thanks to all who helped! -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker _

[issue16425] minidom replaceChild(new_child, old_child) removes new_child even if in another document

2012-11-07 Thread Martin Kugler
New submission from Martin Kugler: Calling doc.replaceChild(new_child, old_child) with new_child and old_child being similar nodes in two different documents results in new_child to be removed from its document instead of old_child being removed from doc. Example: new_child = get_eleme

[issue16422] Decimal constants should be the same for py & c module versions

2012-11-07 Thread Stefan Krah
Stefan Krah added the comment: It would be possible to translate strings to integers; the infrastructure is already there for pickling. The decision not to do that was actually deliberate: Up to now no one has requested string constants for rounding modes and I *suspect* that there's a performanc

[issue16421] importlib.machinery.ExtensionFileLoader cannot load several modules from the same shared object

2012-11-07 Thread Václav Šmilauer
Václav Šmilauer added the comment: Attaching patch based on Andrew's review, agains latest hg (80291:859ef54bdce). For the MSVC files, I copied what was there for _testcapimodule in PC/VS9.0 and PCbuild, and created two new UUIDs: one for _testimportmultiple itself (36D0C52C-DF4E-45D0-8BC7-E29

[issue16424] regression: os.path.split('//hostname/foo/bar.txt')

2012-11-07 Thread anatoly techtonik
anatoly techtonik added the comment: Does that mean that Py3's split() uses splitunc() instead of splitdrive()? -- ___ Python tracker ___

[issue16424] regression: os.path.split('//hostname/foo/bar.txt')

2012-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No. splitunc() is deprecated. http://docs.python.org/3/library/os.path.html#os.path.splitdrive http://docs.python.org/3/library/os.path.html#os.path.splitunc -- ___ Python tracker

[issue16424] regression: os.path.split('//hostname/foo/bar.txt')

2012-11-07 Thread anatoly techtonik
anatoly techtonik added the comment: Ok, so how to fix the regression? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg: As discussed on http://psf.upfronthosting.co.za/roundup/meta/issue491, I'm creating this ticket to test the roundup email interface. -- assignee: lemburg components: None messages: 175063 nosy: lemburg priority: normal severity: normal status: ope

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 11:33, Marc-Andre Lemburg wrote: > > New submission from Marc-Andre Lemburg: > > As discussed on http://psf.upfronthosting.co.za/roundup/meta/issue491, I'm > creating this ticket to test the roundup email interface. Email reply 1. -- Marc-

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 11:34, M.-A. Lemburg wrote: > On 07.11.2012 11:33, Marc-Andre Lemburg wrote: >> >> New submission from Marc-Andre Lemburg: >> >> As discussed on http://psf.upfronthosting.co.za/roundup/meta/issue491, I'm >> creating this ticket to test the roun

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 11:34, Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > On 07.11.2012 11:34, M.-A. Lemburg wrote: >> On 07.11.2012 11:33, Marc-Andre Lemburg wrote: >>> >>> New submission from Marc-Andre Lemburg: >>> >>> As discussed on

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 11:35, M.-A. Lemburg wrote: > On 07.11.2012 11:34, Marc-Andre Lemburg wrote: >> >> Marc-Andre Lemburg added the comment: >> >> On 07.11.2012 11:34, M.-A. Lemburg wrote: >>> On 07.11.2012 11:33, Marc-Andre Lemburg wrote: New submission

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 11:35, Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > On 07.11.2012 11:35, M.-A. Lemburg wrote: >> On 07.11.2012 11:34, Marc-Andre Lemburg wrote: >>> >>> Marc-Andre Lemburg added the comment: >>> >>> On 07.11.2012 11:3

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 11:36, Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > On 07.11.2012 11:35, Marc-Andre Lemburg wrote: >> >> Marc-Andre Lemburg added the comment: >> >> On 07.11.2012 11:35, M.-A. Lemburg wrote: >>> On 07.11.2012 11:34,

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 11:37, M.-A. Lemburg wrote: > On 07.11.2012 11:36, Marc-Andre Lemburg wrote: >> >> Marc-Andre Lemburg added the comment: >> >> On 07.11.2012 11:35, Marc-Andre Lemburg wrote: >>> >>> Marc-Andre Lemburg added the comment: >>> >>> On 07.11.2012 11:

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 11:38, M.-A. Lemburg wrote: > On 07.11.2012 11:37, M.-A. Lemburg wrote: >> On 07.11.2012 11:36, Marc-Andre Lemburg wrote: >>> >>> Marc-Andre Lemburg added the comment: >>> >>> On 07.11.2012 11:35, Marc-Andre Lemburg wrote: Marc-Andre L

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 11:39, Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > On 07.11.2012 11:38, M.-A. Lemburg wrote: >> On 07.11.2012 11:37, M.-A. Lemburg wrote: >>> On 07.11.2012 11:36, Marc-Andre Lemburg wrote: Marc-Andre Lembu

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 11:41, Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > On 07.11.2012 11:39, Marc-Andre Lemburg wrote: >> >> Marc-Andre Lemburg added the comment: >> >> On 07.11.2012 11:38, M.-A. Lemburg wrote: >>> On 07.11.2012 11:37,

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 11:42, Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > On 07.11.2012 11:41, Marc-Andre Lemburg wrote: >> >> Marc-Andre Lemburg added the comment: >> >> On 07.11.2012 11:39, Marc-Andre Lemburg wrote: >>> >>> Marc-Andre L

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 11:43, Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > On 07.11.2012 11:42, Marc-Andre Lemburg wrote: >> >> Marc-Andre Lemburg added the comment: >> >> On 07.11.2012 11:41, Marc-Andre Lemburg wrote: >>> >>> Marc-Andre L

[issue16424] regression: os.path.split('//hostname/foo/bar.txt')

2012-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is not a regression. This is a feature, not a bug. -- resolution: -> invalid ___ Python tracker ___ __

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Conclusion: RoundUp appears to only remove sigs in case they have less than 10 lines. -- ___ Python tracker ___ ___

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 11:46, M.-A. Lemburg wrote: > Conclusion: > > RoundUp appears to only remove sigs in case they have less than > 10 lines. The final empty 10th line (newline after the 9th line) does not seem to count. -- 1 Marc-Andre Lemburg 2 eGenix.com 3 4

[issue16409] urlretrieve regression: first call returns block size as 0

2012-11-07 Thread anatoly techtonik
anatoly techtonik added the comment: I see nothing wrong with reimplementation with different underlying lib as long as behavior stays the same and lib2to3 converts code correctly. The API that block size if constant and non-zero is broken with Python 3.3. I thought that API breaks are only al

[issue16426] RoundUp signature removal test (please ignore)

2012-11-07 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Armin Rigo
Armin Rigo added the comment: Marc-André: estimating the risks of giving up on a valid query for a truly random hash, at an overestimated one billion queries per second, in a 2/3 full dictionary: * for 1000: 4E159 years between mistakes * for 100: 12.9 years between mistakes * for 150: 8E9 y

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 12:06, Armin Rigo wrote: > > Armin Rigo added the comment: > > Marc-André: estimating the risks of giving up on a valid query for a truly > random hash, at an overestimated one billion queries per second, in a 2/3 > full dictionary: > > * f

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Giovanni Bajo
Giovanni Bajo added the comment: Il giorno 07/nov/2012, alle ore 08:40, Serhiy Storchaka ha scritto: > Serhiy Storchaka added the comment: > > I tested different kind of strings. > > $ ./python -m timeit -n 1 -s "t = b'a' * 10**8" "hash(t)" > $ ./python -m timeit -n 1 -s "t = 'a' * 10**8"

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > can you please attach the generated assembly code for the siphash function > with your compiler and your optimization flags (that is, the one that > produces the above results)? GCC (Ubuntu 4.4.3-4ubuntu5.1) options: -pthread -c -Wno-unused-result -DNDEBU

[issue16409] urlretrieve regression: first call returns block size as 0

2012-11-07 Thread anatoly techtonik
anatoly techtonik added the comment: I agree that new implementation doesn't prevent me from estimating the progress, but it does make the callback code worse, not better. Either by closure or by global variable, but it makes callback stateful. To fix this issue either blocks_number parameter

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Christian Heimes
Christian Heimes added the comment: Serhiy, the performance of hash() for long strings isn't very relevant for the general performance of a Python program. Short strings dominate. I've modified the timeit to create a new string object every time. for I in 5 10 15 20 30 40 50 60; do echo -ne "$

[issue16421] importlib.machinery.ExtensionFileLoader cannot load several modules from the same shared object

2012-11-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looks better, will check on Windows a bit later. BTW, ACKS and NEWS are usually edited by committer, but leave that as is for now. -- versions: +Python 3.4 -Python 3.5 ___ Python tracker

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Mark Dickinson
Mark Dickinson added the comment: [MAL] > I don't understand why we are only trying to fix the string problem > and completely ignore other key types. [Armin] > estimating the risks of giving up on a valid query for a truly random > hash, at an overestimated one billion queries per second ... T

[issue16416] Mac OS X: don't use the locale encoding but UTF-8 to encode and decode filenames

2012-11-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 12:55, Mark Dickinson wrote: > > Mark Dickinson added the comment: > > [MAL] >> I don't understand why we are only trying to fix the string problem >> and completely ignore other key types. > > [Armin] >> estimating the risks of giving up on

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Mark Dickinson
Mark Dickinson added the comment: And I'm probably repeating myself too, but: the predictability of (and difficulty of changing of) hashing for numeric types is why I'm strongly opposed to hash collision / slot collision limits: they'd end up disallowing reasonably natural looking Python nume

[issue16421] importlib.machinery.ExtensionFileLoader cannot load several modules from the same shared object

2012-11-07 Thread Václav Šmilauer
Václav Šmilauer added the comment: Good, will let editors do that next time. I was following http://docs.python.org/devguide/patch.html#preparation which says "Sixth, if you are not already in the Misc/ACKS file then add your name." For NEWS, I was reading http://docs.python.org/devguide/comm

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.11.2012 13:06, Mark Dickinson wrote: > > Mark Dickinson added the comment: > > And I'm probably repeating myself too, but: the predictability of (and > difficulty of changing of) hashing for numeric types is why I'm strongly > opposed to hash collis

[issue16235] Add python-config.sh for use during cross compilation.

2012-11-07 Thread Matthias Klose
Matthias Klose added the comment: see issue #1161914 for the original script. > 2) Since we are Pythoneers, why write this script as a > shell-script instead of a Python script? (sh may not even be > available on Windows). python-config is usally not used by python module builds, but third part

[issue16235] Add python-config.sh for use during cross compilation.

2012-11-07 Thread Matthias Klose
Changes by Matthias Klose : -- nosy: +georg.brandl, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue16427] Faster hash implementation

2012-11-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: In the discussion of issue14621 it was noted that much more complex hash algorithms can overtake the current one due to the fact that they process more data at a time. Here is a patch that implements this idea for the current algorithm. Also code duplica

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue16427. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue16427] Faster hash implementation

2012-11-07 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue16235] Add python-config.sh for use during cross compilation.

2012-11-07 Thread Ray Donnelly
Ray Donnelly added the comment: > is there a need for the built vs. installed prefix? >this is logic not found in the python implementation. >what is this supposed to do? You are right, it is not found in the original python implementation, but I feel that it's useful. Without it, you c

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Armin Rigo
Armin Rigo added the comment: I won't try to influence the outcome of this discussion, but I'd like to correct myself: in the measures I posted, "true randomness" is not needed at all. The exact criterion might be hard to pin down, but as a first approximation, we get the same answers as long

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Serhiy, the performance of hash() for long strings isn't very relevant for > the general performance of a Python program. It exposes the raw speed of hashing algorithm. It is good as a first estimate, because more real cases require more sophisticated mea

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Armin Rigo
Armin Rigo added the comment: Wrong, sorry. On a 32-bit Python 2.7, "(2**32-1)*n" has the same hash -2, for any value of n. Of course if you build a dict containing thousands of such integers as keys, then right now you get unexpectedly bad performance. I wonder if I should open another bug

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Mark Dickinson
Mark Dickinson added the comment: [Armin] > You can build a sequence of (long) integers that have all exactly the > same hash, but doing that is not as easy as "2**k". Sure it is. The hash for integers is (by design) repeated modulo a number of the form 2**n - 1: we use 2**61 - 1 on 64-bit sy

[issue14621] Hash function is not randomized properly

2012-11-07 Thread Giovanni Bajo
Giovanni Bajo added the comment: Il giorno 07/nov/2012, alle ore 12:59, Marc-Andre Lemburg ha scritto: > > Marc-Andre Lemburg added the comment: > > On 07.11.2012 12:55, Mark Dickinson wrote: >> >> Mark Dickinson added the comment: >> >> [MAL] >>> I don't understand why we are only trying

[issue16235] Add python-config.sh for use during cross compilation.

2012-11-07 Thread Matthias Klose
Matthias Klose added the comment: Am 07.11.2012 13:52, schrieb Ray Donnelly: > > Ray Donnelly added the comment: > >> is there a need for the built vs. installed prefix? >> this is logic not found in the python implementation. >> what is this supposed to do? > > You are right, it is not f

[issue1776160] Buffer overflow when listing deeply nested directory

2012-11-07 Thread Arno Bakker
Arno Bakker added the comment: Can somebody please look at this bug? It still appears in SCons 2.2.0 on Windows 7 when it tries to do a os.listdir on C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE;C:\Program Files\Microso

[issue16421] importlib.machinery.ExtensionFileLoader cannot load several modules from the same shared object

2012-11-07 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, ACKS is fine (we just don't mind doing it if the submitter leaves it out). Updating NEWS is less useful because it almost inevitably causes a conflict when the patch is applied. (We occasionally mutter about adopting a less conflict-prone approach to handl

[issue1776160] Buffer overflow when listing deeply nested directory

2012-11-07 Thread Arno Bakker
Arno Bakker added the comment: This is on Python 2.7.3 on Win7 32-bit, sorry. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1776160] Buffer overflow when listing deeply nested directory

2012-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can you please report what Python version you are using? -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue9226] erroneous behavior when creating classes inside a closure

2012-11-07 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16428] turtle with compound shape doesn't get clicks

2012-11-07 Thread pythonick
New submission from pythonick: In the standard turtle module, when a turtle has a custom shape of type "compound", it doesn't to respond to click events. No problem with polygon shapes. Observed on Windows XP, python 3.2.3, turtle version 1.1b, and on Linux, python 2.7. Test code:

[issue16429] Emit SyntaxWarning for code that risks UnboundLocalError

2012-11-07 Thread Nick Coghlan
New submission from Nick Coghlan: The compiler is actually in a fairly good position to tell when code is at risk of triggering UnboundLocalError at runtime: specifically, in the section of the code that checks for duplicated parameter names [1] Now, we can't emit SyntaxError here for backward

[issue11205] Evaluation order of dictionary display is different from reference manual.

2012-11-07 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan priority: high -> low versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list m

[issue1776160] Buffer overflow when listing deeply nested directory

2012-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue is related to parsing of "et#" format which is used only in listdir() and _getfullpathname() under Windows. PyArg_ParseTuple() throws TypeError exception for multiple conversion errors (in this case it is an overflow of a static buffer). There are

[issue16430] re.match blocking and taking 100% CPU

2012-11-07 Thread Sebastien Estienne
New submission from Sebastien Estienne: Hello re.match is blocked and takes 100% cpu forever re_bug.py is an example of the bug. thanx -- components: Regular Expressions files: re_bug.py messages: 175109 nosy: Sebastien.Estienne, ezio.melotti, mrabarnett priority: normal severity: nor

[issue16235] Add python-config.sh for use during cross compilation.

2012-11-07 Thread Ray Donnelly
Ray Donnelly added the comment: > hmm, but python.pc, _sysconfigdata.py and Makefile still have this > information. In my experience, as long as PYTHONHOME is set correctly before the Python .so, .dll or .dylib is loaded then everything works correctly. >From what I've seen, .pc files are als

[issue16430] re.match blocking and taking 100% CPU

2012-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no a Python bug. You have wrong regexp. Remove "$" at the end or add ".*" before "$". And it would be better if instead of '(?P.*?)\s' and '"(?P.*?)"' you use '(?P\S+)\s' and '"(?P[^"]*)"'. -- nosy: +serhiy.storchaka resolution: -> invali

[issue16430] re.match blocking and taking 100% CPU

2012-11-07 Thread Mark Dickinson
Mark Dickinson added the comment: This is a known issue: there are a good few duplicates in the tracker. Issue #1662581 is one, for example. In this particular case, you can probably fix things by tightening up your regex. Part of the problem is that '.*' is going to match any sequence of c

[issue13723] Regular expressions: (?:X|\s+)*$ takes a long time

2012-11-07 Thread Mark Dickinson
Changes by Mark Dickinson : -- superseder: -> the re module can perform poorly: O(2**n) versus O(n**2) ___ Python tracker ___ ___ Pyt

[issue4071] ntpath.abspath fails for long str paths

2012-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I doubt this issue exists on Python >= 3.2. See also issue1776160. -- nosy: +serhiy.storchaka versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker __

[issue1776160] Buffer overflow when listing deeply nested directory

2012-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue4071. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue2771] Test issue

2012-11-07 Thread Ezio Melotti
Ezio Melotti added the comment: test -- nosy: -chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Also note that your variant of check for overflow causes undefined behavior. Python is gradually getting rid of such code. -- ___ Python tracker ___

[issue2771] Test issue

2012-11-07 Thread Ezio Melotti
Ezio Melotti added the comment: another test -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) <= sizeof(long)

2012-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue4591, issue7365, issue15301, and issue15989. Kimmo Mustonen, if you are not working on the patch, I'll take the work. I don't want to interrupt your work, but if you are having trouble, maybe I can do it. In any case, I have already spent the

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) <= sizeof(long)

2012-11-07 Thread Kimmo Mustonen
Kimmo Mustonen added the comment: Feel free to finalize this. I don't have such a system to test it anyway. -- ___ Python tracker ___ _

[issue16338] pysnmp/asyncore - timeout ineffective?

2012-11-07 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue11205] Evaluation order of dictionary display is different from reference manual.

2012-11-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Today in pydev thread "chained assignment weirdity" Guido said http://permalink.gmane.org/gmane.comp.python.devel/135746 "I agree that we should be *very* conservative in changing the meaning of existing opcodes (adding new one is a different story)." ... "Hm. I

[issue16431] CDecimal disregards subclass passed into __new__ when value argument is an instance of Decimal

2012-11-07 Thread Elvis Pranskevichus
New submission from Elvis Pranskevichus: Consider the following: import decimal class MyDecimal(decimal.Decimal): def __new__(cls, value): return super().__new__(cls, value) a = decimal.Decimal('1.0') b = MyDecimal(a) c = MyDecimal('1.0') print(type(a), type(b), isinstance(b, MyDe

[issue16431] CDecimal disregards subclass passed into __new__ when value argument is an instance of Decimal

2012-11-07 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue16431] CDecimal disregards subclass passed into __new__ when value argument is an instance of Decimal

2012-11-07 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16422] Decimal constants should be the same for py & c module versions

2012-11-07 Thread Stefan Krah
Stefan Krah added the comment: Well, I suppose one could use a cascaded switch statement, starting with the 7th letter and then (in the case of HALF*) proceed with the 12th letter: "ROUND_CEILING" "ROUND_FLOOR" "ROUND_UP" "ROUND_DOWN" "ROUND_HALF_UP" "ROUND_HALF_DOWN" "ROUND_HALF_EVEN" "ROUND_0

[issue16432] Template strings documentation in Python 3 refers to % substitution in present tense

2012-11-07 Thread Andrew Gorcester
New submission from Andrew Gorcester: Documentation here: http://docs.python.org/3/library/string.html#template-strings says "Instead of the normal %-based substitutions, Templates support $-based substitutions..." I believe it is confusing to refer to %-based substitutions in a way that impl

[issue16421] importlib.machinery.ExtensionFileLoader cannot load several modules from the same shared object

2012-11-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Václav, your patch passed on Windows. Will commit it after double check. Thanks. -- assignee: -> asvetlov ___ Python tracker ___ _

[issue16432] Template strings documentation in Python 3 refers to % substitution in present tense

2012-11-07 Thread Georg Brandl
Georg Brandl added the comment: Who said % substitution doesn't exist anymore in Python 3? That said, it's certainly not wrong to replace this with {} substitution. -- nosy: +georg.brandl ___ Python tracker __

[issue16432] Template strings documentation in Python 3 refers to % substitution in present tense

2012-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is not a bug. %-based substitutions exist in Python 3. http://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting -- nosy: +serhiy.storchaka ___ Python tracker

[issue5950] Make zipimport work with zipfile containing comments

2012-11-07 Thread Dima Tisnek
Dima Tisnek added the comment: also applies to 2.7 series over a year passed since last comment, any progress on this? I just ran into this issue myself. zipfile module handles commented zip's fine, but zipimport doesn't. I didn't expect a gotcha like this from Python! -- nosy: +Dima.T

[issue16431] CDecimal disregards subclass passed into __new__ when value argument is an instance of Decimal

2012-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1b6c972457e6 by Stefan Krah in branch '3.3': Issue #16431: Use the type information when constructing a Decimal subtype http://hg.python.org/cpython/rev/1b6c972457e6 -- nosy: +python-dev ___ Python tracke

[issue16311] Use _PyUnicodeWriter API in text decoders

2012-11-07 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot my benchmark results. decodebench.py result results on Linux 32 bits: (Linux-3.2.0-32-generic-pae-i686-with-debian-wheezy-sid) $ ./python bench-diff.py original writer ascii 'A'*1 4109 (-3%)3974 latin1'A'*1000

[issue16431] CDecimal disregards subclass passed into __new__ when value argument is an instance of Decimal

2012-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7fcc58811e82 by Stefan Krah in branch '3.3': Issue #16431: Also fix the opposite direction. http://hg.python.org/cpython/rev/7fcc58811e82 -- ___ Python tracker ___

[issue16431] CDecimal disregards subclass passed into __new__ when value argument is an instance of Decimal

2012-11-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: "Py_INCREF(v); return v;" should be used only for immutable types, not for subclasses. in 3.2, the code below prints "3, None": import decimal class MyDecimal(decimal.Decimal): x = None def __new__(cls, value): return super().__new__(cls,

[issue16432] Template strings documentation in Python 3 refers to % substitution in present tense

2012-11-07 Thread Andrew Gorcester
Andrew Gorcester added the comment: Sorry, my mistake -- I thought that %-based formatting had been deprecated and removed by now, because it wasn't documented in library/string.html . However, I still think referring to %-based formatting as "normal" in Python 3 is confusing to readers as it

[issue16278] os.rename documentation slightly inaccurate

2012-11-07 Thread Todd Rovito
Todd Rovito added the comment: Here is a draft suggestion for the documentation change, not all the formatting is worked out: .. function:: rename(src, dst, *, src_dir_fd=None, dst_dir_fd=None) Rename the file or directory *src* to *dst*. If *src* exists as either a file or directory and

[issue13349] Non-informative error message in index() and remove() functions

2012-11-07 Thread Sean Ochoa
Sean Ochoa added the comment: >From Taggnostr on #python-dev: 1.) Use assertRaises+assertIn instead of assertRaisesRegex 2.) Add or change an existing test that you've already updated to use elements with a repr longer than 100 chars. -- ___ Pyth

[issue16388] Urllib screws up capitalization in "User-Agent" HTTP Header

2012-11-07 Thread Senthil Kumaran
Senthil Kumaran added the comment: Calvin. - I shall act upon old bug. The tricky nature of backwards compatibility sometimes let's it stale because we can not come t a good conclusion. -- nosy: +orsenthil ___ Python tracker

[issue16392] import crashes on circular imports in ext modules

2012-11-07 Thread Stefan Behnel
Stefan Behnel added the comment: Agreed. Since it doesn't really fit into any specific function documentation, I would place it right at the top. Something like this: """ The following functions can be used by C code to call into Python's import machinery. Note that Python 3 does not automati

  1   2   >