[issue6210] Exception Chaining missing method for suppressing context

2012-02-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b299c4f31ff2 by Nick Coghlan in branch 'default': Close issue #6210: Implement PEP 409 http://hg.python.org/cpython/rev/b299c4f31ff2 -- nosy: +python-dev ___ Python

[issue6210] Exception Chaining missing method for suppressing context

2012-02-26 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6210 ___

[issue12801] C realpath not used by os.path.realpath

2012-02-26 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/issue12801 ___

[issue14082] shutil doesn't copy extended attributes

2012-02-26 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/issue14082 ___

[issue6210] Exception Chaining missing method for suppressing context

2012-02-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks, I can’t wait to use that in my code! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6210 ___

[issue14097] Improve the introduction page of the tutorial

2012-02-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Regarding the use of the name variable, could it be replaced by just name ? That might make sense since the error for undefined names is usually NameError. However, note that the current documentation has a /huge/ amount of mentions for

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread Larry Hastings
New submission from Larry Hastings la...@hastings.org: Following on from Guido's rejection of PEP 410: http://mail.python.org/pipermail/python-dev/2012-February/116837.html This bug is the proposed hammering-out space for how to preserve exact metadata for st_atime / st_mtime between os.stat

[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-02-26 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: Element, XMLParser and TreeBuilder are types in ElementTree, but factory functions in _elementtree. The latter should be modified to be consistent with the former. -- assignee: eli.bendersky components: Library (Lib) messages: 154317

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-26 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: For distutils2 however I have no tester and no bot, so could someone test this patch? I'll take a look at it. BTW if someone knows about a continuous integration service which provides Windows and Mac OS X VMs I’m all ears. Not

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Guido proposed st_atime_ns et al. I'll make an alternate proposal. I'd like to avoid tying ourselves to ns resolution. As MvL said: I don't want to deal with this issue *again* in my lifetime. If all we want is to facilitate copying the

[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-02-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14128 ___ ___

[issue14123] Indicate that there are no current plans to deprecate printf-style formatting

2012-02-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 80069bbae26d by Gregory P. Smith in branch '3.2': Issue #14123: Explicitly mention that old style % string formatting has caveats http://hg.python.org/cpython/rev/80069bbae26d New changeset 98a1855ebfe1 by Gregory

[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-02-26 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: Note that Element is also a factory function in lxml.etree, and people have been living with this quite happily. I don't see a reason to change either side. There is a dedicated function iselement(obj) for exactly the purpose of

[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-02-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: In the pydev discussion once Martin raised this problem it was agreed that this is a regression in 3.3 that should be fixed, since there is code out there that relies on subclassing Element. This would make the Python and C implementations of

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2012-02-26 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Nick Coghlan rep...@bugs.python.org wrote: PEP section makes sense - I plan to mark PEP 3118 as Final once you commit this (or you can do that yourself, for that matter). Array features are complete except for multi-dimensional

[issue2394] [Py3k] Finish the memoryview object implementation

2012-02-26 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I think this issue is now superseded by #10181 and #3132. -- nosy: +skrah resolution: - duplicate stage: test needed - committed/rejected status: open - pending superseder: - Problems with Py_buffer management in memoryobject.c

[issue2394] [Py3k] Finish the memoryview object implementation

2012-02-26 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2394 ___ ___

[issue14129] Corrections for the extending doc

2012-02-26 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: I'm now carefully reading through the extending documentation pages. This issue will record various problems I find on the way, with the intention of fixing them eventually. -- assignee: eli.bendersky components: Documentation

[issue14129] Corrections for the extending doc

2012-02-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: extending.html has a reference to Demo/embed/demo.c which no longer exists in the source distribution -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14129

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2012-02-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Aw, I guess I was too optimistic in thinking this was the last gap before we could declare it Final... +1 on creating a new feature request for NumPy style multi-dimensional indexing and slicing support on memoryview (I'm assuming that's what

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-26 Thread Adam Groszer
Adam Groszer agros...@gmail.com added the comment: Hello, On Sun, 26 Feb 2012 03:37:06 + you wrote: BTW if someone knows about a continuous integration service which provides Windows and Mac OS X VMs I’m all ears. ZTK (Zope toolkit) ended up with renting a windows (server) VM.

[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-02-26 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14128 ___ ___

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-26 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Thread 0x2ba588709700: File /var/tmpfs/martin.vonloewis/3.x.loewis-parallel2/build/Lib/test/support.py, line 1168 in consumer File /var/tmpfs/martin.vonloewis/3.x.loewis-parallel2/build/Lib/threading.py, line 682 in run

[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-02-26 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: For the record, the relevant mailing list discussion can be found here: http://thread.gmane.org/gmane.comp.python.devel/129429/focus=129794 -- ___ Python tracker rep...@bugs.python.org

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-02-26 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: the class versus factory issue is gone to issue 14128. The current issue is only about the doctype() method missing in the C implementation. I propose to drop this deprecated method from the Python version, instead of implementing

[issue13238] Add shell command helpers to subprocess module

2012-02-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: For a different take on this concept: http://julialang.org/manual/running-external-programs/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13238

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-02-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Florent, The deprecation should be probably raised separately on pydev. From the recent discussions on this and similar topics, I doubt that removal of these methods will be accepted. -- ___ Python

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: OTOH, it seems that Guido is very much in favor of hard-coding ns resolution in the API, claiming that expectations of even finer resolution are academic. While I still disagree (the *very* same argument was brought up for ms resolution

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-26 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: 1. IIUC, the goal of the watchdog thread is to collect memory consumption in a timely manner: that's now the case, but since the information is printed in a standard thread, it doesn't bring any improvement (because it can be

[issue14130] memoryview: add multi-dimensional indexing and slicing

2012-02-26 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- assignee: skrah nosy: ncoghlan, pitrou, pv, skrah, teoliphant priority: normal severity: normal stage: needs patch status: open title: memoryview: add multi-dimensional indexing and slicing type: enhancement

[issue14130] memoryview: add multi-dimensional indexing and slicing

2012-02-26 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: The PEP-3118 authors originally planned to have support for multi-dimensional indexing and slicing in memoryview. Since memoryview now already has the capabilities of multi-dimensional list representations and comparisons, this would

[issue14130] memoryview: add multi-dimensional indexing and slicing

2012-02-26 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- components: +Interpreter Core versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14130 ___

[issue1116520] Prefix search is filesystem-centric

2012-02-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Yeah, I'm pretty sure the bootstrap mechanism needs to be able to get hold of os.py directly so it can be injected into the importlib._bootstrap namespace. However, it may be worth figuring out and documenting the bare minimum that has to

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-02-26 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: I understand the point about compatibility. However it is slightly different here, because the method is already deprecated in Python 2.7 and 3.2, with a warning in the documentation and a DeprecationWarning at runtime. This method

[issue14131] test_threading failure on WIndows 7 3.x buildbot

2012-02-26 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/4458/steps/test/logs/stdio Appears to be new, but also isn't obviously related to any recent checkins that I noticed. (the Win7 buildbot for trunk isn't in a good

[issue7562] Custom order for the subcommands of build

2012-02-26 Thread Peter Kleiweg
Changes by Peter Kleiweg pklei...@xs4all.nl: -- nosy: +pebbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7562 ___ ___ Python-bugs-list mailing

[issue8706] accept keyword arguments on all base type methods and builtins

2012-02-26 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: I don't know if this is exactly what you want, but this is an early patch. -- keywords: +patch nosy: +gruszczy Added file: http://bugs.python.org/file24644/8706.patch ___ Python tracker

[issue14129] Corrections for the extending doc

2012-02-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: in this case, nothing more than every Python object contains There's a grammar error lurking somewhere in there... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14129

[issue14129] Corrections for the extending doc

2012-02-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: A PyObject is not a very magnificent object - it just contains the refcount and a pointer to the object’s “type object”. Too chatty and should be replaced by a more pragmatic explanation, or shortened. -- nosy: +docs@python

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-02-26 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: This last feature (doctype handler on custom TreeBuilder) does not have tests... So, it is certainly broken with the C implementation. -- stage: needs patch - test needed ___ Python

[issue14129] Corrections for the extending doc

2012-02-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: This is not strictly in the extending doc, but linked from it: http://docs.python.org/dev/c-api/type.html#PyType_GenericNew The PyType_GenericNew API function is not documented -- ___ Python tracker

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: /* We can't do anything if the consumer is too slow, just bail out */ if (write(watchdog.wfd, (void *) x, sizeof(x)) sizeof(x)) break; if (write(watchdog.wfd, data, data_len) data_len)

[issue14129] Corrections for the extending doc

2012-02-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Let’s expend Typo -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14129 ___ ___

[issue14129] Corrections for the extending doc

2012-02-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: The new method calls the tp_alloc slot to allocate memory tp_alloc needs formatting here, similarly to the way it's done in other places -- ___ Python tracker rep...@bugs.python.org

[issue14129] Corrections for the extending doc

2012-02-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Noddy_name in the full code listing (included from noddy2.c) is different from the Noddy_name that is actually explained later -- ___ Python tracker rep...@bugs.python.org

[issue14129] Corrections for the extending doc

2012-02-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: but in this cased Typo [this and the past couple of comments refer to the newtypes.html doc] -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14129

[issue14131] test_threading failure on WIndows 7 3.x buildbot

2012-02-26 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Strange, I can't reproduce this on Windows 7 with exactly the same command line: python_d -Wd -E -bb ../lib/test/regrtest.py -uall -rwW -n -r --randseed=8022149 -- nosy: +skrah ___ Python

[issue14131] test_threading failure on WIndows 7 3.x buildbot

2012-02-26 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +db3l ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14131 ___ ___ Python-bugs-list

[issue14131] test_threading failure on WIndows 7 3.x buildbot

2012-02-26 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: This is rather curious. It looks like the assertion includes a (generous) fudge factor in case the timing code is inaccurate, but then the actual time taken is *just* short enough to make it fail. (the Win7 buildbot for trunk isn't in a

[issue14085] PyUnicode_WRITE: comparison is always true warnings

2012-02-26 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Same on OSX, building trunk (3.3.0a0) $ uname -v Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 $ gcc --version i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-26 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I think my original plan was to put it in non-blocking mode, but I must have forgotten in the end. Here's a patch. I can't think of any drawback off the top of my head, so that sounds reasonable. I'll try to write up a patch (I

[issue14080] Sporadic test_imp failure

2012-02-26 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: So the test needs to be fixed to call importlib.invalidate_caches() after creating the module. That works. With issue14080.diff I can run the failing combination without problems: $ ./python -m test test_sqlite test_imp [1/2]

[issue14085] PyUnicode_WRITE: comparison is always true warnings

2012-02-26 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- assignee: ronaldoussoren - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14085 ___ ___

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Is it totally insane to think about using a float subclass with an additional attribute instead of a tuple? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue14132] Redirect is not working correctly in urllib2

2012-02-26 Thread Ján Janech
New submission from Ján Janech jan...@kios.sk: When only the query string is sent by the server as the redirect url, urllib2 redirects to incorrect address. Error is occuring on the page http://kniznica.uniza.sk/opac. Server sends only the query string part of the uri in the Location header

[issue14132] Redirect is not working correctly in urllib2

2012-02-26 Thread Ján Janech
Ján Janech jan...@kios.sk added the comment: I forgot to mention that the correct url in the example would be http://kniznica.uniza.sk/opac?fs=04D07295D4434730A51C95A9F1727373fn=main. -- ___ Python tracker rep...@bugs.python.org

[issue14132] Redirect is not working correctly in urllib2

2012-02-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, facundobatista, gregory.p.smith, orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14132 ___

[issue14133] improved PEP 409 implementation

2012-02-26 Thread Benjamin Peterson
New submission from Benjamin Peterson benja...@python.org: It uses a __suppress_context__ attribute rather than the whole Ellipsis mess. -- components: Interpreter Core files: pep409.patch keywords: patch messages: 154358 nosy: benjamin.peterson, ncoghlan priority: normal severity:

[issue14133] improved PEP 409 implementation

2012-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't think it has to be a __special__ attribute. suppress_context would probably be fine. Also, instead of looking up the attribute in the dict, why not have a dedicated C member? -- nosy: +pitrou

[issue13224] Change str(x) to return only the (qual)name for some types

2012-02-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Not 100% sure what you're asking. Is your specific question whether it is okay that str(Counter.update) returns 'Counter.update'? Yes, it is. Same for Top.Nested.method. -- ___ Python tracker

[issue14116] Lock.__enter__() method returns True instead of self

2012-02-26 Thread sbt
sbt shibt...@gmail.com added the comment: IIUC returning True is not incorrect, only useless. In the stdlib I usually see “with lock:”. Can you tell what is the use case for accessing the condition object inside the context block? Does it apply only to Condition or also to *Lock and

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: @RDM: yes, that's insane for this purpose. The size of the solution doesn't match the size of the problem (the problem is non-existent for most people). @Larry: That seems unnecessarily general. I take full responsibility for fixing the

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: I suggest that publishing nanoseconds as a plain int would be a nasty API. Consider what it would do to os.utime: if isinstance(mtime, int): # must be st_mtime_ns, it's in nanoseconds, use as-is value = mtime else:

[issue14113] Failure in test_strptime on Windows

2012-02-26 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: It looks like test_locale from test_format.py changes the locale on Windows: import time magic_date = (1999, 3, 17, 22, 44, 55, 2, 76, 0)

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: (D'oh. My pseudo-code should have said value = int(mtime * 10) for that second assignment. Hopefully my point was still clear.) -- ___ Python tracker rep...@bugs.python.org

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: How about a separate float attribute for the fractional part (in seconds)? This gives a femtosecond precision (assuming a 50 bits mantissa). The utime() could accept a (integral part, fractional part) tuple to set a timestamp without losing

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: @pitrou: What would that look like when passed in to os.utime? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14127 ___

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: st = os.stat('LICENSE') st.st_mtime 1330108216.7984242 st.st_mtime_frac 0.798424152 tup = st.st_mtime, st.st_mtime_frac os.utime('LICENSE', (tup, tup)) Of course, the fact that utime takes a (atime, mtime) tuple makes this a bit cumbersome.

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 52dc4fcd0d6f by Charles-François Natali in branch 'default': Issue #14107: test: Fix a deadlock involving the memory watchdog thread. http://hg.python.org/cpython/rev/52dc4fcd0d6f --

[issue1116520] Prefix search is filesystem-centric

2012-02-26 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Importlib actually requires no files from disk; everything that is required for importlib are built-in modules or are constants in importlib itself (e.g. os.sep). So technically this should be doable since my bootstrap work freezes importlib

[issue14080] Sporadic test_imp failure

2012-02-26 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: importlib.invalidate_caches() would become a permanent thing if the directory listdir cache approach stays and importlib gets bootstrapped. But it would be made more general to work for any and all loaders and not be specific to importlib (e.g.

[issue14080] Sporadic test_imp failure

2012-02-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1d7472b015f0 by Antoine Pitrou in branch 'default': Issue #14080: fix sporadic test_imp failure. Patch by Stefan Krah. http://hg.python.org/cpython/rev/1d7472b015f0 -- nosy: +python-dev

[issue14133] improved PEP 409 implementation

2012-02-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: __suppress_context__ parallels with __cause__ and __context__. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14133 ___

[issue14080] Sporadic test_imp failure

2012-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for diagnosing this :) -- assignee: brett.cannon - resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14113] Failure in test_strptime on Windows

2012-02-26 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Attached a fix that is tested on Windows. -- keywords: +patch Added file: http://bugs.python.org/file24649/issue14113.diff ___ Python tracker rep...@bugs.python.org

[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-02-26 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/issue14128 ___

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 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/issue14127 ___

[issue14113] Failure in test_strptime on Windows

2012-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch works under Linux here. -- nosy: +haypo, loewis, pitrou stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14113

[issue8706] accept keyword arguments on all base type methods and builtins

2012-02-26 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/issue8706 ___

[issue14133] improved PEP 409 implementation

2012-02-26 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/issue14133 ___

[issue13520] Patch to make pickle aware of __qualname__

2012-02-26 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13520 ___ ___ Python-bugs-list

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I suggest that publishing nanoseconds as a plain int would be a nasty API. Consider what it would do to os.utime: No, it wouldn't. Please re-read Guido's proposal. If you want to specify nanoseconds, you have to pass the ns= parameter.

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Thanks Martin. I'd be happy with nsec instead of ns. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14127 ___

[issue8706] accept keyword arguments on all base type methods and builtins

2012-02-26 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: With tests. -- Added file: http://bugs.python.org/file24650/8706_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8706 ___

[issue14133] improved PEP 409 implementation

2012-02-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Here's a patch which doesn't use the dict. -- Added file: http://bugs.python.org/file24651/pep409.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14133

[issue14097] Improve the introduction page of the tutorial

2012-02-26 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: In English, calling someone or something 'degenerate' is a major insult. In means that x is not really human or what it seems or what it was. I remember being initially startled or puzzled at the mathematical usage, but it actually is

[issue14097] Improve the introduction page of the tutorial

2012-02-26 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I think we should feel free to change 'variable' to 'name', especially in the Intro, if it can be done gracefully in context. In my experience with python-list, the former seems a source of confusion for Python newbies. I try to avoid it when

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: My mistake! That ought to teach me to bound out of bed Sunday morning with my brilliant realization. (But it probably won't.) I volunteer to implement this, with the new custom class for the os.stat object. I'll have it done no later

[issue13521] Make dict.setdefault() atomic

2012-02-26 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Fixed both issues. -- Added file: http://bugs.python.org/file24652/13521_27_4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13521

[issue14131] test_threading failure on WIndows 7 3.x buildbot

2012-02-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Re: test_packaging: my mistake, the problem was actually test_package__file__ in test_imp (and Antoine already fixed it - there were some caches that weren't getting cleared properly: #14080) The last Win7 test run was green, so we may have

[issue14006] Improve the documentation of xml.etree.ElementTree

2012-02-26 Thread Leon Matthews
Leon Matthews pyt...@lost.co.nz added the comment: Thank you Éric and Ezio. I'll produce a patch to convert the javadoc to docstrings this week, then submit it here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14006

[issue14133] improved PEP 409 implementation

2012-02-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I don't consider using Ellipsis as a sentinel value a mess. If you don't like the PEP's solution, take it up with Guido. -- ___ Python tracker rep...@bugs.python.org

[issue14133] improved PEP 409 implementation

2012-02-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Maybe it's not awful, but why is this not a cleaner solution? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14133 ___

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Let's go with ns= them. It's also what POSIX uses (although I initially had problems parsing futimens, reading it as foo-timen-z, when it really is eff-youtime-en-es) -- ___ Python tracker

[issue14109] test_lib2to3: output that looks like a failure on Windows 7

2012-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - duplicate status: open - closed superseder: - test_all_project_files() expected failure ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14109

[issue13125] test_all_project_files() expected failure

2012-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +nadeem.vawda, skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13125 ___ ___

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-26 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Well... testing distutils2 on Windows has been quite an adventure. When I ran the test suite before applying the patch, I got a bunch of failures on all of the Python versions I tested (except the ones that had issues preventing me from

[issue14133] improved PEP 409 implementation

2012-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I find this cleaner than the contrived Ellipsis as magic value solution, myself :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14133

[issue14133] improved PEP 409 implementation

2012-02-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Because you're breaking the semantics of the raise X from Y syntax. That syntax is *just* syntactic sugar for _exc = X; _exc.__cause__ = Y; raise _exc. Under PEP 409, that remains true. Your patch breaks it. If you want to change the

[issue14113] Failure in test_strptime on Windows

2012-02-26 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Does test.support track the locale for test mutations? If not we might want to add that check w/ all of the other interpreter state checks we have. -- nosy: +brett.cannon ___ Python tracker

  1   2   >