[issue13870] Out-of-date comment in collections/__init__.py ordered dict

2012-01-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f7283825effa by Raymond Hettinger in branch '3.2': Issue 13870: Fix out of date comment. http://hg.python.org/cpython/rev/f7283825effa -- nosy: +python-dev ___ Python

[issue13870] Out-of-date comment in collections/__init__.py ordered dict

2012-01-26 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13870 ___

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-01-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Also seen on Windows Vista; seems to be a general Windows + NTFS problem. Changing title to make it clearer that this is a core language issue. It seems as though the correct fix would be to use something like GetFileInformationByHandle in

[issue13435] Copybutton does not hide tracebacks

2012-01-26 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This should be fixed now. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13435

[issue13455] Reorganize tracker docs in the devguide

2012-01-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: needs patch - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13455 ___

[issue11457] os.stat(): add new fields to get timestamps as Decimal objects with nanosecond resolution

2012-01-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Have you researched how other languages plan to expose sub-millisecond times?  The isn't an API that will get points for originality.  Also, it needs to be an API that is time efficient (many scripts use os.stat() frequently to

[issue11457] os.stat(): add new fields to get timestamps as Decimal objects with nanosecond resolution

2012-01-26 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Victor: I *think* Raymond's comments were directed at my patch, not yours. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11457 ___

[issue13872] socket.detach doesn't mark socket._closed

2012-01-26 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: socket.socket.detach doesn't mark the socket._closed flag. The flag is specific to the Python wrapper, so the fix is put there. Test included. -- components: Library (Lib) files: socket-detach-mark-closed.patch keywords: patch

[issue5210] zlib does not indicate end of compressed stream properly

2012-01-26 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5210 ___ ___ Python-bugs-list

[issue8536] Support new features of ZLIB 1.2.4

2012-01-26 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8536 ___ ___ Python-bugs-list

[issue5784] raw deflate format and zlib module

2012-01-26 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5784 ___ ___ Python-bugs-list

[issue5804] Add an 'offset' argument to zlib.decompress

2012-01-26 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5804 ___ ___ Python-bugs-list

[issue13873] SIGBUS in test_zlib on Debian bigmem buildbot

2012-01-26 Thread Nadeem Vawda
New submission from Nadeem Vawda nadeem.va...@gmail.com: http://www.python.org/dev/buildbot/all/builders/AMD64%20debian%20bigmem%203.x/builds/58/steps/test/logs/stdio -- assignee: nadeem.vawda messages: 152006 nosy: nadeem.vawda priority: normal severity: normal stage: needs patch

[issue13874] test_faulthandler: read_null test fails with current clang

2012-01-26 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: In non-debug mode the read_null test fails with clang-3.0: == FAIL: test_disable (test.test_faulthandler.FaultHandlerTests)

[issue13874] test_faulthandler: read_null test fails with current clang

2012-01-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Can you try x = (int *)1; instead of x = NULL; ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13874 ___

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

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

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-01-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hmm, interesting. This is exactly what happened recently when debugging pyc timestamp issues under Windows: http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%202.7/builds/1204/steps/test/logs/stdio Some decoding of the above crash:

[issue13875] cmd: no user documentation

2012-01-26 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: http://docs.python.org/library/cmd.html# Documentation for cmd module is poor to explain the value of this module to users. Intro is too abstract - phrase simple framework for writing line-oriented command interpreters doesn't mean

[issue13874] test_faulthandler: read_null test fails with current clang

2012-01-26 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: STINNER Victor rep...@bugs.python.org wrote: Can you try x = (int *)1; instead of x = NULL; ? This works. - I must say that I find this new behavior of clang slightly dangerous... -- ___

[issue13876] Sporadic failure in test_socket

2012-01-26 Thread Nadeem Vawda
New submission from Nadeem Vawda nadeem.va...@gmail.com: When running the test suite, I occasionally get the following failure: ERROR: testRecvmsgEOF (test.test_socket.RecvmsgSCTPStreamTest) -- Traceback (most

[issue13875] cmd: no user documentation

2012-01-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, since it isn't limited to interactive use, I don't think 'interactive' is missing. MOTW links are a more global issue that was discussion on python-dev (I forget the outcome, but I think it was no). I don't see anything that

[issue13875] cmd: no user documentation

2012-01-26 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: What do you mean by saying it is not limited for interactive use? I thought it is used to provide command prompt for typing commands. What other use cases does it support? -- status: pending - open

[issue13840] create_string_buffer rejects str init_or_size parameter

2012-01-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset be9d02536a81 by Meador Inge in branch '3.2': - Issue #13840: Fix ctypes.create_string_buffer exception message and docs. http://hg.python.org/cpython/rev/be9d02536a81 New changeset 52f68c95e025 by Meador Inge in

[issue13840] create_string_buffer rejects str init_or_size parameter

2012-01-26 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I just fixed the docs and error message for now. I might revisit the ASCII decoding later. Thanks for the bug report Vincent. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue13875] cmd: no user documentation

2012-01-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: You can feed a cmd driven interface from stdin or via cmd.onecmd. However, I agree that the intended and primary use case is interactive. There wouldn't be much point in using cmd if the primary intent of your program wasn't

[issue1003195] segfault when running smtplib example

2012-01-26 Thread Jon Bringhurst
Jon Bringhurst j...@bringhurst.org added the comment: I just ran into this while using the smtplib example on: 2.6 (r26:66714, Jan 17 2012, 11:02:11) GCC 4.1.2 20080704 (Red Hat 4.1.2-44) Running the program simply gives a Segmentation Fault (core dumped) Running it under gdb... [Thread

[issue1003195] segfault when running smtplib example

2012-01-26 Thread Jon Bringhurst
Changes by Jon Bringhurst j...@bringhurst.org: -- type: - crash versions: +Python 2.6 -Python 2.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1003195 ___

[issue8828] Atomic function to rename a file

2012-01-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch adding os.replace(). -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file24328/osreplace.patch ___ Python tracker rep...@bugs.python.org

[issue13877] segfault when running smtplib example

2012-01-26 Thread Jon Bringhurst
New submission from Jon Bringhurst j...@bringhurst.org: I just ran into this while using the smtplib example on: 2.6 (r26:66714, Jan 17 2012, 11:02:11) GCC 4.1.2 20080704 (Red Hat 4.1.2-44) Running the program simply gives a Segmentation Fault (core dumped) Running it under gdb... [Thread

[issue13877] segfault when running smtplib example

2012-01-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Do you have a more complete traceback by any chance? Also, does the New Thread... message indicate that a new thread is created? Why? This is not what I see here. -- nosy: +amaury.forgeotdarc

[issue13878] test_sched failures on Windows buildbot

2012-01-26 Thread Nadeem Vawda
New submission from Nadeem Vawda nadeem.va...@gmail.com: http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/4072/steps/test/logs/stdio: FAIL: test_enter (test.test_sched.TestCase) -- Traceback

[issue13878] test_sched failures on Windows buildbot

2012-01-26 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Oops, those links should be: http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/4072/steps/test/logs/stdio and: http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/4062/steps/test/logs/stdio

[issue13879] Argparse does not support subparser aliases in 2.7

2012-01-26 Thread Tim Willis
New submission from Tim Willis schadenfreude...@gmail.com: Argparse documentation in 2.7 indicates support for an 'aliases' kwarg. (Fourth example down from http://docs.python.org/dev/library/argparse.html#sub-commands) While aliases work as expected in 3.2, use in 2.7 results in TypeError:

[issue13876] Sporadic failure in test_socket

2012-01-26 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13876 ___ ___

[issue13874] test_faulthandler: read_null test fails with current clang

2012-01-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: There was a similar bug which was declared as a vulnerability in the Linux kernel: http://isc.sans.edu/diary.html?storyid=6820 GCC has an option to disable this optimization: -fno-delete-null-pointer-checks. --

[issue10580] Installer sentence in bold

2012-01-26 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: After more than a year the patch is finally made. Can someone please applies this patch and closes this issue report? Thanks. -- keywords: +patch versions: +Python 3.3 Added file: http://bugs.python.org/file24329/issue10580.diff

[issue13880] pydoc -k throws AssertionError: distutils has already been patched by class py2exe.Distribution at 0x0000000005987408

2012-01-26 Thread __KFL__
New submission from __KFL__ luke...@gmail.com: Pydoc fails on the following exception. There is a mail discussing it: http://mail.python.org/pipermail/python-list/2009-December/1230790.html C:\Python27\Libpydoc -k file ... ... Traceback (most recent call last): File C:\Python27\Lib\pydoc.py,

[issue13455] Reorganize tracker docs in the devguide

2012-01-26 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Antoine, what reference other than the devguide are you referring to? If you keep info I need out of the devguide, where am I supposed to find it? python.org/dev now redirects to python.org/devguide. --

[issue13881] Stream encoder for zlib_codec doesn't use the incremental encoder

2012-01-26 Thread Andrew McNabb
New submission from Andrew McNabb amcn...@mcnabbs.org: The stream encoder for the zlib_codec doesn't use the incremental encoder, so it has limited usefulness in practice. This is easiest to show with an example. Here is the behavior with the stream encoder: filelike = io.BytesIO() wrapped

[issue13703] Hash collision security issue

2012-01-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'd like to propose an entirely different approach: use AVL trees for colliding strings, for dictionaries containing only unicode or byte strings. A prototype for this is in http://hg.python.org/sandbox/loewis/branches#avl It is not fully

[issue13882] Add format argument for time.time(), time.clock(), ... to get a timestamp as a Decimal object

2012-01-26 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Attached patch adds an optional format argument to time.time(), time.clock(), time.wallclock(), time.clock_gettime() and time.clock_getres() to get the timestamp as a different format. By default, the float type is still used,

[issue13882] Add format argument for time.time(), time.clock(), ... to get a timestamp as a Decimal object

2012-01-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Some examples of the API: $ ./python Python 3.3.0a0 (default:52f68c95e025+, Jan 26 2012, 21:54:31) import time time.time() 1327611705.948446 time.time('decimal') Decimal('1327611708.988419') t1=time.time('decimal');

[issue13703] Hash collision security issue

2012-01-26 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com added the comment: On Thu, Jan 26, 2012 at 4:00 PM, Martin v. Löwis rep...@bugs.python.orgwrote: Martin v. Löwis mar...@v.loewis.de added the comment: I'd like to propose an entirely different approach: use AVL trees for colliding strings, for dictionaries

[issue13883] PYTHONCASEOK docs mistakenly says it is limited to Windows

2012-01-26 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: The docs for PYTHONCASEOK say it is limited to Windows, but in actuality in Python 3.x it applies to both Windows (including cygwin) and OS X. On Python 2.7 it applies to those plus RISCOS OS/2. -- assignee: docs@python components:

[issue13882] Add format argument for time.time(), time.clock(), ... to get a timestamp as a Decimal object

2012-01-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Windows code (win32_clock) was wrong in time_decimal-2.patch: it is fixed in patch version 3. Some tests on Windows made me realize that time.time() has a resolution of 1 millisecond (10^-3) and not of a microsecond (10^-6) on

[issue13845] Use GetSystemTimeAsFileTime() to get a resolution of 100 ns on Windows

2012-01-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Using the patch of #13882, I realize that time.time() has a resolution of 1 millisecond (10^-3) and not of a microsecond (10^-6) on Windows! Windows doesn't provide gettimeofday(). Using GetSystemTimeAsFileTime() would provide a

[issue13703] Hash collision security issue

2012-01-26 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: On Thu, 2012-01-26 at 21:04 +, Alex Gaynor wrote: Alex Gaynor alex.gay...@gmail.com added the comment: On Thu, Jan 26, 2012 at 4:00 PM, Martin v. Löwis rep...@bugs.python.orgwrote: Martin v. Löwis mar...@v.loewis.de added the

[issue13666] datetime documentation typos

2012-01-26 Thread Stephen Kelly
Stephen Kelly steve...@gmail.com added the comment: There are actually other bugs in the same code example: ... def __init__(self): # DST starts last Sunday in March ... d = datetime(dt.year, 4, 1) # ends last Sunday in October ... self.dston = d -

[issue13703] Hash collision security issue

2012-01-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: as soon as any key insertion or lookup occurs where the key isn't exactly one of the correct types, the dict flattens any AVL trees back into the regular flat representation (and switches to lookdict for ma_lookup), analogous to the

[issue13703] Hash collision security issue

2012-01-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: What happens if, instead of putting strings in a dictionary directly, I have them wrapped in something. For example, the classes Antoine and I pasted early. These define hash and equal as being strings, but don't have an ordering. As

[issue13703] Hash collision security issue

2012-01-26 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com added the comment: On Thu, Jan 26, 2012 at 5:42 PM, Martin v. Löwis rep...@bugs.python.orgwrote: Martin v. Löwis mar...@v.loewis.de added the comment: What happens if, instead of putting strings in a dictionary directly, I have them wrapped in something.

[issue6210] Exception Chaining missing method for suppressing context

2012-01-26 Thread Ethan Furman
Ethan Furman et...@stoneleaf.us added the comment: Okay, here is a patch implementing the 'raise ... from None' method. All critiques appreciated (especially if they include links to learn from!). -- keywords: +patch Added file: http://bugs.python.org/file24332/raise_from_none.diff

[issue13703] Hash collision security issue

2012-01-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: But using non-__builtin__.str objects (such as UserString) would expose the user to an attack? Not necessarily: only if they use these strings as dictionary keys, and only if they do so in contexts where arbitrary user input is consumed.

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9ee4a104e33d by Victor Stinner in branch 'default': Issue #13847: time.localtime() and time.gmtime() now raise an OSError instead http://hg.python.org/cpython/rev/9ee4a104e33d -- nosy: +python-dev

[issue6210] Exception Chaining missing method for suppressing context

2012-01-26 Thread Ethan Furman
Ethan Furman et...@stoneleaf.us added the comment: I went with raise ... from None instead of raise as ... because there seemed to me more support for 'from None' on python-dev, possible confusion with 'raise as', and 'from None' follows the existing systax of raise

[issue13703] Hash collision security issue

2012-01-26 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com added the comment: I'm sorry then, but I'm a little confused. I think we pretty clearly established earlier that requiring users to make changes anywhere they stored user data would be dangerous, because these locations are often in libraries or other places

[issue13873] SIGBUS in test_zlib on Debian bigmem buildbot

2012-01-26 Thread Torsten Landschoff
Torsten Landschoff t.landsch...@gmx.net added the comment: I tried to reproduce this crash on my desktop system. AMD64, 8 GB RAM (only) and on Debian unstable from today. Testing the exact same Python version (hg update d2cf8a34ddf90fb1bc8938de0f736694e61f73fa) the test passes just fine here...

[issue13883] PYTHONCASEOK docs mistakenly says it is limited to Windows

2012-01-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 524795e8abe1 by Brett Cannon in branch '3.2': Issue #13883: Document all platforms PYTHONCASEOK works on. http://hg.python.org/cpython/rev/524795e8abe1 New changeset 0f00010c88f0 by Brett Cannon in branch 'default':

[issue13883] PYTHONCASEOK docs mistakenly says it is limited to Windows

2012-01-26 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13883 ___

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 94b7eb09d0b3 by Victor Stinner in branch 'default': Issue #13847: time.clock() now raises a RuntimeError if the processor time used http://hg.python.org/cpython/rev/94b7eb09d0b3 --

[issue13884] IDLE 2.6.5 Recent Files undocks

2012-01-26 Thread Tim McGreevy
New submission from Tim McGreevy mcgrete@gmail.com: When selecting from menu: File -- Recent Files the 'Recent Files' dropdown list undocks from the IDLE gui / File dropdown list. Even after selecting a past file, it remains open until closed manually. Ubuntu LUCID amd64 IDLE 2.6.5 TK

[issue13703] Hash collision security issue

2012-01-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm sorry then, but I'm a little confused. I think we pretty clearly established earlier that requiring users to make changes anywhere they stored user data would be dangerous, because these locations are often in libraries or other

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I added tests on localtime() and clock(). I read more carefully time(), ftime() and gettimeofday() manpage: it is not possible that they fail if the argument is an invalid pointer, the current code is correct. I don't want to

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 516d42a6e518 by Victor Stinner in branch 'default': Issue #13847: Fix test_mktime(), time.localtime() now raises OSError http://hg.python.org/cpython/rev/516d42a6e518 --

[issue13884] IDLE 2.6.5 Recent Files undocks

2012-01-26 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Could you try with IDLE 2.7/3.2? -- nosy: +ezio.melotti, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13884 ___

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 856f0864437a by Victor Stinner in branch 'default': Issue #13847: Make test_localtime_failure() more robust http://hg.python.org/cpython/rev/856f0864437a -- ___ Python

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The issue should be done with the last commit. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13847

[issue13703] Hash collision security issue

2012-01-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There were three discussed issues with it: a) Code assuming a stable ordering to dictionaries b) Code assuming hashes were stable across runs. c) Code reimplementing the hashing algorithm of a core datatype that is now randomized.

[issue6210] Exception Chaining missing method for suppressing context

2012-01-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: 1. Any syntax change requires a PEP (and, IMO, any such PEP for this issue should get rejected: I don't consider this an important enough feature to deserve dedicated syntax. Others disagree, which is one of the reasons why a PEP is needed.

[issue13651] Improve redirection in urllib

2012-01-26 Thread tom kel
tom kel tomke...@gmail.com added the comment: I changed the patch and made it a little bit better. -- versions: +Python 3.1, Python 3.4 -Python 2.7 Added file: http://bugs.python.org/file24334/2012-1-26.diff ___ Python tracker rep...@bugs.python.org

[issue13703] Hash collision security issue

2012-01-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: If I your read patch correctly, collisions will produce additional allocations of one distinct PyObject (i.e. AVL node) per colliding key. That's correct. That's a pretty massive change in memory consumption for string dicts (and also

[issue6210] Exception Chaining missing method for suppressing context

2012-01-26 Thread Ethan Furman
Ethan Furman et...@stoneleaf.us added the comment: 1. Any syntax change requires a PEP (and, IMO, any such PEP for this issue should get rejected: I don't consider this an important enough feature to deserve dedicated syntax. Others disagree, which is one of the reasons why a PEP is

[issue6210] Exception Chaining missing method for suppressing context

2012-01-26 Thread Ethan Furman
Ethan Furman et...@stoneleaf.us added the comment: Nick Coghlan wrote: 1. Any syntax change requires a PEP PEP is on python-dev. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6210 ___

[issue6210] Exception Chaining missing method for suppressing context

2012-01-26 Thread Steven D'Aprano
Steven D'Aprano steve+pyt...@pearwood.info added the comment: Nick Coghlan wrote: Nick Coghlan ncogh...@gmail.com added the comment: 1. Any syntax change requires a PEP (and, IMO, any such PEP for this issue should get rejected: I don't consider this an important enough feature to deserve

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: There is still an error on Windows: == FAIL: test_localtime_failure (test.test_time.TimeTestCase)

[issue6210] Exception Chaining missing method for suppressing context

2012-01-26 Thread Steven D'Aprano
Steven D'Aprano steve+pyt...@pearwood.info added the comment: [...] My comment has been overtaken by additional comments by Nick on the Python-Dev list. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6210

[issue13703] Hash collision security issue

2012-01-26 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: But using non-__builtin__.str objects (such as UserString) would expose the user to an attack? Not necessarily: only if they use these strings as dictionary keys, and only if they do so in contexts where arbitrary user input is consumed.

[issue13884] IDLE 2.6.5 Recent Files undocks

2012-01-26 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: IDLE has tear-off menus. From Help/IDLE Help: Click on the dotted line at the top of a menu to tear it off: a separate window containing the menu is created. This is a feature, not a bug. On 3.2.2, Win7, the Recent Files sub-menu cannot be torn