[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2012-05-14 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Bumping the target version to 3.4. This is still a good long term idea, but it's a substantial enough change that we really want to land it early in a development cycle so we have plenty of time to hammer out any issues. -- versions:

[issue14805] Support display of both __cause__ and __context__

2012-05-14 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: With PEP 415 accepted as the implementation of the raise exc from None syntax, it raises the prospect of exceptions with both __cause__ and __context__ set to non-None values, and __suppress_context__ set to False. The initial PEP 415 patch

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-14 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: I created a new repository to optimize str.format and str%args. -- hgrepos: +125 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14744

[issue14805] Support display of both __cause__ and __context__

2012-05-14 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- dependencies: +improved PEP 409 implementation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14805 ___

[issue14133] improved PEP 409 implementation

2012-05-14 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I have accepted the PEP. Issue 14805 now covers the separate question of allowing both __cause__ and __context__ to be displayed in the same traceback. -- ___ Python tracker rep...@bugs.python.org

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2012-05-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This whole issue doesn't affect 3.3. For 2.7/3.2 there are three possible options: 1) remove constant folding altogether on unicode (this is the solution adopted by PyPy); 2) scan the string up to the index looking for non-BMP chars and

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2012-05-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Attached a patch that implements option 1). -- stage: needs patch - commit review Added file: http://bugs.python.org/file25575/issue5057-3.diff ___ Python tracker rep...@bugs.python.org

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2012-05-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Option 2) would have my preference. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5057 ___ ___

[issue14806] re.match does not match word '{'

2012-05-14 Thread zk
New submission from zk bsn...@gmail.com: type(re.match('{', '{')) type 'NoneType' type(re.match('\{', '{')) type 'NoneType' type(re.search('\{', '{')) type '_sre.SRE_Match' type(re.search('{', '{')) type '_sre.SRE_Match' -- components: 2to3 (2.x to 3.x conversion

[issue14806] re.match does not match word '{'

2012-05-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: re.match matches only at the beginning of the string. -- assignee: - ezio.melotti components: +Regular Expressions -2to3 (2.x to 3.x conversion tool) nosy: +ezio.melotti, mrabarnett resolution: - invalid stage: -

[issue14801] ssize_t where size_t expected

2012-05-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2bbf3ba30435 by Antoine Pitrou in branch '3.2': Use size_t, not ssize_t (issue #14801). http://hg.python.org/cpython/rev/2bbf3ba30435 New changeset 64b695a6cc3d by Antoine Pitrou in branch 'default': Use size_t, not

[issue14801] ssize_t where size_t expected

2012-05-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Should be ok now, thank you. -- nosy: +pitrou resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue14800] stat.py constant comments + docstrings

2012-05-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2a695cbdf090 by Giampaolo Rodola' in branch 'default': Issue 14800: add comments explaining stat.py constants + docstring for S_* functions. http://hg.python.org/cpython/rev/2a695cbdf090 -- nosy:

[issue14804] Wrong defaults args notation in docs

2012-05-14 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Here's against 2.7 which proved to be a can of worms. I tried to be as unobstructive as possible. Please have a look at it, I'm sure I forgot some parenthesis somewhere. -- Added file:

[issue14807] Move tarfile.filemode() into stat module

2012-05-14 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: As per: http://mail.python.org/pipermail/python-ideas/2012-May/015104.html Patch is in attachment. -- components: Library (Lib) files: filemode.patch keywords: easy, patch messages: 160621 nosy: giampaolo.rodola, terry.reedy

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2012-05-14 Thread Armin Rigo
Armin Rigo ar...@users.sourceforge.net added the comment: Did anyone ever show that this particular detail, which looks like a completely obscure case to me, has any measurable effect on any code whatsoever? Just coming up with numbers, but I'm sure it gives you 5% on the most specially

[issue12098] Child process running as debug on Windows

2012-05-14 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: - the function generating the flags should be exported (with a private name), so that it can be reused by Lib/test/[test_]support.py. Duplicate code is error-prone, especially when enumerating command-line flags, attribute names...

[issue14806] re.match does not match word '{'

2012-05-14 Thread zk
zk bsn...@gmail.com added the comment: Oops. Sorry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14806 ___ ___ Python-bugs-list mailing list

[issue14313] zipfile should raise an exception for unsupported compression methods

2012-05-14 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +needs review stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14313 ___

[issue14187] add function annotation entry to Glossary

2012-05-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Will do. Chris, I don’t think another entry for “annotation” is needed, given Raymond’s previous rejection of the paragraph talking about other languages. -- ___ Python tracker rep...@bugs.python.org

[issue14804] Wrong defaults args notation in docs

2012-05-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think there’s already one report for this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14804 ___

[issue14802] Python 3.2 fail to compile with VC11 ARM configuration

2012-05-14 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Thanks for your report. Unfortunately Python 3.2 won't ever work in this way because changing compilers would be a new feature, and bug fix releases like 3.2 don't receive new features. Yesterday we completed the transition to VS2010 as a step

[issue14313] zipfile should raise an exception for unsupported compression methods

2012-05-14 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Modified patch adopted in 3.3 (changeset 596b0eaeece8), therefore the current patch only applies to 3.2 and 2.7. If this is a new feature, the issue can be closed. -- nosy: +loewis, storchaka versions: -Python 3.3

[issue14808] Pdb does not stop at a breakpoint set on the line of a function definition

2012-05-14 Thread Xavier de Gaye
New submission from Xavier de Gaye xdeg...@gmail.com: In the following test both breakpoints are set on the line of a function definition. However pdb does not stop when entering foo whose breakpoint has been set with 'break 1' while pdb stops when entering bar whose breakpoint has been set with

[issue14778] IrrationalVersionError should include the project name

2012-05-14 Thread Christoph Sieghart
Christoph Sieghart s...@0x2a.at added the comment: I took a look at the code and I don't think that adding an argument to the IrrationalVersionError constructor is the right way to go. The exception is raised in places where we don't know for which project we are raising the exception (eg in

[issue14781] Default to year 1 in strptime if year 0 has been specified

2012-05-14 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Datetime doesn't support BC. -- nosy: +r.david.murray resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14781

[issue14782] Tab-completion of callables displays opening paren

2012-05-14 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It's issue 449227. -- nosy: +dieresys, facundobatista, georg.brandl, gpolo, pitrou, r.david.murray, rnd0110 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14782

[issue14778] logging messages about bad version numbers should include the project name

2012-05-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW there could be an optional argument in the exception constructor for the project name, but that does not seem clean to me. -- title: IrrationalVersionError should include the project name - logging messages about bad version numbers

[issue14778] IrrationalVersionError should include the project name

2012-05-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You are right. When the NormalizedVersion class is used standalone, there is no project name to pass, so it is the responsibility of higher-level code (the Metadata class I think here) to raise or log messages including the project name. To

[issue14785] Add sys._debugmallocstats()

2012-05-14 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Updated version of the patch, using test.script_helper.assert_python_ok() and adding a NEWS entry -- Added file: http://bugs.python.org/file25579/add-debug-malloc-stats-v2.patch ___ Python tracker

[issue14799] Tkinter ttk tests hang on linux

2012-05-14 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It does not hang for me on Gentoo. When I run the test suite before a checkin, I use -uall, and I've never had test_ttk hang for me. I did an 'hg pull; hg up' before running the command line you give below. -- nosy:

[issue14802] Python fails to compile with VC11 ARM configuration

2012-05-14 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- title: Python 3.2 fail to compile with VC11 ARM configuration - Python fails to compile with VC11 ARM configuration type: compile error - enhancement versions: -Python 3.3 ___ Python tracker

[issue14157] time.strptime without a year fails on Feb 29

2012-05-14 Thread Martin Morrison
Martin Morrison martin.morri...@gmail.com added the comment: This solution has some very undesirable properties - namely that Mar 1st is now less than Feb 29th! It seems like the correct follow up fix would be to adjust the date of the returned struct_time back to 1900. The struct_time object

[issue14157] time.strptime without a year fails on Feb 29

2012-05-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That's a good point, thank you. Hynek, do you want to provide a new patch? -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14157

[issue14157] time.strptime without a year fails on Feb 29

2012-05-14 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: On it. I wonder whether it causes trouble that we return an invalid time_struct down the road? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14157

[issue14785] Add sys._debugmallocstats()

2012-05-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: One other nit: the C API functions shouldn't be included in the limited API. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14785 ___

[issue12098] Child process running as debug on Windows

2012-05-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Failure to build _multiprocessing will mean that multiprocessing cannot be imported. So if the function goes somewhere in multiprocessing then it makes running the test suite with multiple processes dependent on the building of

[issue14803] Add -C option to run code at Python startup

2012-05-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It would be nice to have a comparison of the available alternatives. It's not obvious that asking people to type some -C ... boilerplate to get code coverage is very user-friendly. Or am I misunderstanding the request? -- nosy: +pitrou

[issue14807] Move tarfile.filemode() into stat module

2012-05-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm not sure filemode() is the best name for this. On the other hand, I don't have any suggestion. I don't understand why you're using atexit. tearDown() and addCleanup() are your friends. The call_safely thing also looks unwarranted.

[issue14157] time.strptime without a year fails on Feb 29

2012-05-14 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I have added a restoration including a short explanation + a regression test. -- Added file: http://bugs.python.org/file25580/strptime-restore-1900.diff ___ Python tracker rep...@bugs.python.org

[issue14807] Move tarfile.filemode() into stat module

2012-05-14 Thread Lars Gustäbel
Changes by Lars Gustäbel l...@gustaebel.de: -- nosy: +lars.gustaebel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14807 ___ ___ Python-bugs-list

[issue14315] zipfile.ZipFile() unable to open zip File

2012-05-14 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: This is definitely *not* a padding issue. This is definitely a padding issue. All uncompressed files are located so that the data starts with a 4-byte boundary (1190+30+15+1=1236, 27486 +30+17+3=27536, etc). This is, probably, allows the

[issue14157] time.strptime without a year fails on Feb 29

2012-05-14 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Small adjustments to the test as discussed in IRC. -- assignee: - hynek resolution: fixed - stage: committed/rejected - patch review type: enhancement - behavior Added file: http://bugs.python.org/file25581/strptime-restore-1900-v2.diff

[issue14157] time.strptime without a year fails on Feb 29

2012-05-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 83598eb0d761 by Antoine Pitrou in branch '3.2': Followup to issue #14157: respect the relative ordering of values produced by time.strptime(). http://hg.python.org/cpython/rev/83598eb0d761 New changeset

[issue14157] time.strptime without a year fails on Feb 29

2012-05-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks, this should be fine now. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14157

[issue14807] Move tarfile.filemode() into stat module

2012-05-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 1. After careful check, I am convince that converted _filemode_table (now private) is correct. Ditto for copied filemode function with adjusted docstring. 2. New test_stat.py is nice. I believe there is a new style of actually running the

[issue14809] Add HTTP status codes introduced by RFC 6585

2012-05-14 Thread EungJun Yi
New submission from EungJun Yi semtlen...@gmail.com: This patch add HTTP status codes introduced by RFC 6585, to http.client and http.server. 428 Precondition Required 429 Too Many Requests 431 Request Header Fields Too Large 511 Network Authentication Required -- components: Library

[issue14809] Add HTTP status codes introduced by RFC 6585

2012-05-14 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I've cross-checked the patch against the RFC and it LGTM. Tests still pass as expected. -- nosy: +hynek stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14809

[issue13210] Support Visual Studio 2010

2012-05-14 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Here is a patch to the .vcproj files and the .props files, based on my earlier pcbuil10.patch. Mostly it is about removing redundant settings. It also adds .props files for the pythoncore solution. It also updates the readme,

[issue14785] Add sys._debugmallocstats()

2012-05-14 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Thanks. I'm attaching an updated version of the patch, wrapping all new C entrypoints within a #ifndef Py_LIMITED_API I also moved the existing _PyObject_DebugMallocStats() entrypoint to within a #ifndef Py_LIMITED_API. As noted above, it

[issue14315] zipfile.ZipFile() unable to open zip File

2012-05-14 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: On Mon, May 14, 2012 at 12:31 PM, Serhiy Storchaka rep...@bugs.python.org wrote: Serhiy Storchaka storch...@gmail.com added the comment: This is definitely *not* a padding issue. This is definitely a padding issue. All uncompressed files are

[issue14807] Move tarfile.filemode() into stat module

2012-05-14 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Updated patch in attachment. -- Added file: http://bugs.python.org/file25585/filemode.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14807

[issue14803] Add -C option to run code at Python startup

2012-05-14 Thread Ned Batchelder
Ned Batchelder n...@nedbatchelder.com added the comment: The difficulty that coverage faces is not measuring python programs started from the command line like this, you can use coverage run myprog.py or python -m coverage run myprog.py. The difficulty is when there are subprocesses running

[issue14807] Move tarfile.filemode() into stat module

2012-05-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Looks good enough to me except for the alias docstring. If someone does dir(tarfile) and help(filemode), they should get the message that it is a deprecated alias and should not use it. -- ___

[issue14778] logging messages about bad version numbers should include the project name

2012-05-14 Thread Christoph Sieghart
Christoph Sieghart s...@0x2a.at added the comment: The optional argument approach doesn't seem clean to me either. I think the correct approach is - as you wrote - to change the higher level code to include the project name in the exception message. --

[issue14313] zipfile should raise an exception for unsupported compression methods

2012-05-14 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Returning the compressed data from read() is clearly a bug (IMO), so detecting that and reporting an exception would be a bug fix. I still like NotImplementedError more than RuntimeError, though. --

[issue13210] Support Visual Studio 2010

2012-05-14 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: LGTM. Brian? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13210 ___ ___ Python-bugs-list

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2012-05-14 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Good call, Nick. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11549 ___ ___

[issue14757] INCA: Inline Caching meets Quickening in Python 3.3

2012-05-14 Thread stefan brunthaler
Changes by stefan brunthaler s.bruntha...@uci.edu: Added file: http://bugs.python.org/file25586/20120514-inca.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14757

[issue14315] zipfile.ZipFile() unable to open zip File

2012-05-14 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This is definitely a padding issue. All uncompressed files are located so that the data starts with a 4-byte boundary (1190+30+15+1=1236, 27486 +30+17+3=27536, etc). This is, probably, allows the use of mmap for the resources. That can't

[issue14315] zipfile.ZipFile() unable to open zip File

2012-05-14 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Like I said before, I am all for dropping extra fields we can not interpret. However, let us be clear that with respect to the standard we are implementing that zip files constructed like this are ill-formed. I would still like to see

[issue14778] logging messages about bad version numbers should include the project name

2012-05-14 Thread Christoph Sieghart
Christoph Sieghart s...@0x2a.at added the comment: I wrote a trivial patch against the CPython repository that adds the name to the exception message. Did I forget anything? What kind of test would make sense? -- keywords: +patch Added file:

[issue14778] logging messages about bad version numbers should include the project name

2012-05-14 Thread Christoph Sieghart
Changes by Christoph Sieghart s...@0x2a.at: Removed file: http://bugs.python.org/file25587/bad_version_number_with_name.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14778 ___

[issue14757] INCA: Inline Caching meets Quickening in Python 3.3

2012-05-14 Thread stefan brunthaler
that the mako benchmark suite suffers a consistent loss. I am going to look into this. -- Added file: http://bugs.python.org/file25588/20120514-inca-perf.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14757

[issue14778] logging messages about bad version numbers should include the project name

2012-05-14 Thread Christoph Sieghart
Changes by Christoph Sieghart s...@0x2a.at: Added file: http://bugs.python.org/file25589/bad_version_number_with_name.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14778 ___

[issue13210] Support Visual Studio 2010

2012-05-14 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: +1 on the patch. It fixes a bunch of things that I entered unnecessarily (like explicit .pyd names to fix the warnings), but after staring at the screen for a long time I couldn't figure out what I was doing wrong to need them for some reason.

[issue13210] Support Visual Studio 2010

2012-05-14 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Hm, actually, doing a 64-bit debug build fails with that patch. ctypes, _testbuffer, and xxlimited, the projects I originally had trouble with in the settings, don't link properly. -- ___ Python

[issue13210] Support Visual Studio 2010

2012-05-14 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Correction, both 64-bit debug and release fail. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13210 ___

[issue6858] This is a python file, apply syntax highlighting

2012-05-14 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6858 ___ ___ Python-bugs-list

[issue13400] packaging: build command should have options to control byte-compilation

2012-05-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: FTR I asked Julien to provide his opinion as a user and he agreed that having just one --byte-compile/--no-byte-compile option pair seemed better than the existing names (where --compile and --optimize are unrelated). I wanted to avoid

[issue14624] Faster utf-16 decoder

2012-05-14 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: The patch updated with a little clarified code and added comments. -- Added file: http://bugs.python.org/file25590/decode_utf16_4.patch ___ Python tracker rep...@bugs.python.org

[issue1294959] Problems with /usr/lib64 builds.

2012-05-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: On Mar 29, 2011, at 10:12 PM, Matthias Klose wrote: no, it looks for headers and libraries in more directories. But really, this whole testing for paths is wrong. Just use the compiler to search for headers and libraries, no need to check

[issue14315] zipfile.ZipFile() unable to open zip File

2012-05-14 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: That can't possibly be the reason. mmap requires 4k (4096) alignment (on x86; more than that on SPARC). This may be the reason to mmap the entire file and then read aligned binary data. --

[issue14810] Bug in tarfile

2012-05-14 Thread Hans Werner May
New submission from Hans Werner May nc-may...@netcologne.de: Bug in tarfile: In extractall, when a file exists in tarball with changetime older than (I don't know, in my case it was year 1956) tarfile raises an Overflow exception: File /usr/lib64/python2.7/tarfile.py, line 2298, in utime

[issue14805] Support display of both __cause__ and __context__

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

[issue11959] smtpd cannot be used without affecting global state

2012-05-14 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm finally getting back around to this. If asyncore and asynchat are (mostly?) supporting an alternate socket map, why is it necessary to copy create_socket? Shouldn't we be fixing create_socket in asyncore instead? --

[issue14766] Non-naive time comparison throws naive time error

2012-05-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 28ed782949f9 by R David Murray in branch '3.2': #14766: Add correct algorithm for when a 'time' object is naive. http://hg.python.org/cpython/rev/28ed782949f9 New changeset b1e03e863386 by R David Murray in branch

[issue14674] Add link to RFC 4627 from json documentation

2012-05-14 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: Draft docs patch. More cross-referencing. Analysis of deviations from RFC based on previous docs the RFC. Don't know if there are relevant, more precise implementation limitations that need to be mentioned. If backported to 2.x, will need

[issue14766] Non-naive time comparison throws naive time error

2012-05-14 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I reformatted the first hunk a bit, hopefully to make it even a little bit clearer. We're still punting the actual definition to the later section, but I think that's appropriate. Thanks for the patch, Greg. -- resolution: -

[issue14805] Support display of both __cause__ and __context__

2012-05-14 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14805 ___ ___ Python-bugs-list

[issue14757] INCA: Inline Caching meets Quickening in Python 3.3

2012-05-14 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14757 ___ ___ Python-bugs-list

[issue14674] Add link to RFC 4627 from json documentation

2012-05-14 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: Added file: http://bugs.python.org/file25592/json.rst.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14674 ___

[issue14811] compile fails - UTF-8 character decoding

2012-05-14 Thread Glenn Linderman
New submission from Glenn Linderman v+pyt...@g.nevcal.com: t33a.py demonstrates a compilation problem. OK, it has a long line, but making it one space longer (add a space after the left parenthesis) makes it work... so it must not be line length alone. Rather, since the error is about a bad

[issue14803] Enhanced command line features for the runpy module

2012-05-14 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: As Ned notes, to cover *implicit* creation of Python subprocesses an environment based solution would be needed to ensure the subprocesses adopt the desired settings. The advantage that has over the current workarounds is that it can be

[issue14803] Add feature to allow code execution prior to __main__ invocation

2012-05-14 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- title: Enhanced command line features for the runpy module - Add feature to allow code execution prior to __main__ invocation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14803

[issue14812] Change file associations to not be a default installer feature

2012-05-14 Thread Brian Curtin
New submission from Brian Curtin br...@python.org: With the addition of #3561, I think we might want to have the file association feature follow it in not being a default feature. It seems a bit off that we don't want to change the way python reacts on the command line by default, but we do

[issue14133] improved PEP 409 implementation

2012-05-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b0eb7d2a9542 by Benjamin Peterson in branch 'default': PEP 415: Implement suppression of __context__ display with an exception attribute http://hg.python.org/cpython/rev/b0eb7d2a9542 -- nosy: +python-dev

[issue14133] improved PEP 409 implementation

2012-05-14 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Thanks for the review/dictating, Nick! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14133

[issue14315] zipfile.ZipFile() unable to open zip File

2012-05-14 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I would still like to see the zipfile module to be able to detect ill-formed zipfiles - certainly not by default. Agreed. We already do produce some informational messages via the documented 'ZipFile.debug' attribute. Just checking that

[issue14812] Change file associations to not be a default installer feature

2012-05-14 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14812 ___ ___

[issue14793] broken grammar in Built-in Types doc

2012-05-14 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: I thought the title was enough? Is it fine to merely repeat it in? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14793 ___

[issue14793] broken grammar in Built-in Types doc

2012-05-14 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: I think that something on the line Hey, it looks like this phrase misses some words, and I've just fixed it would have been nicer - IMO. -- ___ Python tracker rep...@bugs.python.org

[issue14803] Add -C option to run code at Python startup

2012-05-14 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: Reading http://nedbatchelder.com/code/coverage/subprocess.html, it occurred to me that there are various tracing and profiling operations that could be cleanly handled with significantly less work on the part of the tracing/profiling tool

[issue14803] Add -C option to run code at Python startup

2012-05-14 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- stage: - needs patch type: - enhancement versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14803 ___

[issue14803] Add -C option to run code at Python startup

2012-05-14 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- components: +Interpreter Core ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14803 ___ ___

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-05-14 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Committed. Jon, thanks for your patch and your patience! -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14804] Wrong defaults args notation in docs

2012-05-14 Thread Hynek Schlawack
New submission from Hynek Schlawack h...@ox.cx: After having been called out on wrong default arg notation in one of my patches (eg. function:: copyfile(src, dst[, symlinks=False])), I've done a grep -RPi \[\w+= Doc/library and fixed the cases I've found – many of them sadly from myself (all

[issue14804] Wrong defaults args notation in docs

2012-05-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The patch looks good to me, however in -.. method:: epoll.poll([timeout=-1[, maxevents=-1]]) +.. method:: epoll.poll(timeout=-1, maxevents=-1) it seems that maxevents can be passed only if timeout is specified, and this information is now

[issue14307] Make subclassing SocketServer simpler for non-blocking frameworks

2012-05-14 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Btw, I have found that socket.closesocket() is quite able, on Windows, to abort an ongoing accept() call. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14307

[issue14804] Wrong defaults args notation in docs

2012-05-14 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Looking at the code of epoll.poll(), it seems that epoll.poll(timeout=-1, maxevents=-1) is correct and the old epoll.poll([timeout=-1[, maxevents=-1]]) is wrong, as there's no dependency between timeout and maxevents. --

  1   2   >