[issue13966] Add disable_interspersed_args() to argparse.ArgumentParser

2012-02-07 Thread László Attila Tóth
New submission from László Attila Tóth : If someone ports his code from optparse to argparse, there is a limit, that options and non-options can be mixed by default, and this behaviour cannot be disabled easily, an extra '--' argument is required in the command line. In some cases it is much p

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-07 Thread STINNER Victor
STINNER Victor added the comment: Patch version 12: * os.stat().st_birthtime uses also the timestamp argument * Add an optional timestamp argument to os.wait3() and os.wait4(): change type of utime and stime attributes of the resource usage * os.stat() changes the timestamp resolution depen

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2012-02-07 Thread Eli Bendersky
Eli Bendersky added the comment: At this point, 3.1 won't be fixed with such changes any longer. Is this fixed in 3.2/3.3? -- nosy: +eli.bendersky ___ Python tracker ___ ___

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-02-07 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11379] Remove "lightweight" from minidom description

2012-02-07 Thread Eli Bendersky
Eli Bendersky added the comment: IMHO this wording proposed by Stefan: """ [[Note: The xml.dom.minidom module provides an implementation of the W3C-DOM whose API is similar to that in other programming languages. Users who are unfamiliar with the W3C-DOM interface or who would like to write l

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-07 Thread STINNER Victor
STINNER Victor added the comment: fill_time() should use denominator=1 if the OS doesn't support timestamp with a subsecond resolution. See also issue #13964. -- ___ Python tracker ___

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 478fb4869c99 by Victor Stinner in branch 'default': > Issue #13964: Split os.*utime*() subsecond tests into multiple tests... Oops, I also commited my change on extract_time() by mistake. But it is not completly a mistake: it was the goal of my

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 58bd6a58365d by Victor Stinner in branch 'default': Issue #13964: Skip os.*utime*() tests if os.stat() doesn't support timestamp http://hg.python.org/cpython/rev/58bd6a58365d -- ___ Python tracker

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 478fb4869c99 by Victor Stinner in branch 'default': Issue #13964: Split os.*utime*() subsecond tests into multiple tests to help http://hg.python.org/cpython/rev/478fb4869c99 -- ___ Python tracker

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I suggest to support the following functions: futimes(fd, (atime, mtime), flags=0) utimes(path, (atime, mtime), flags=0) utimesat(dirfd, path, (atime, mtime), flags=0) And deprecate other functions already present in 3.2. flags argument of

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6e9c4d18b36 by Victor Stinner in branch 'default': Issue #13964: Test also os.futimesat() http://hg.python.org/cpython/rev/c6e9c4d18b36 -- ___ Python tracker ___

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread STINNER Victor
STINNER Victor added the comment: > Current API: Oh, I forgot: - futimesat(dirfd, path[, (atime, mtime)]) This API looks fine. -- ___ Python tracker ___ __

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d297f9b10c64 by Victor Stinner in branch 'default': Issue #13964: Write tests for new os.*utime*() functions http://hg.python.org/cpython/rev/d297f9b10c64 -- nosy: +python-dev ___ Python tracker

[issue13965] Windows 64-bit installer actually installing a 32-bit version

2012-02-07 Thread Raymond Hettinger
New submission from Raymond Hettinger : On the downloader page, http://www.python.org/download/releases/2.7.2/ there is an entry "•Windows X86-64 MSI Installer" that links to http://www.python.org/ftp/python/2.7.2/python-2.7.2.amd64.msi Running this installer succeeds and show messages that a

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-07 Thread STINNER Victor
STINNER Victor added the comment: I created the issue #13964 to cleanup the API of os.*utime*() functions. -- ___ Python tracker ___

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread STINNER Victor
New submission from STINNER Victor : Python 3.3 has 4 new functions to set the access and modification time of a file (only os.utime() was already present in Python 3.2). New functions taking timestamp with a nanonsecond resolution use a tuple of int because the float type doesn't support nano

[issue13550] Rewrite logging hack of the threading module

2012-02-07 Thread Nick Coghlan
Nick Coghlan added the comment: I believe Charles-François was referring to this message: http://mail.python.org/pipermail/python-dev/2012-January/115372.html We shouldn't be encumbering threading *all the time* with stuff that "might be useful sometimes". Adding selective output to help debug

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-07 Thread STINNER Victor
STINNER Victor added the comment: os.stat().st_birthtime should depend on the timestamp argument. A timestamp optional argument should also be added to os.wait3() and os.wait4() for the utime and stime fields of the rusage tuple. -- ___ Python trac

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-07 Thread STINNER Victor
STINNER Victor added the comment: bench_startup.py: short script to compute the best startup time (I wrote the original script for the hash collision issue, #13703). Result on my PC: - original: 22.2 ms - importlib: 27.9 ms So importlib adds an overhead of 25.7% in startup time. --

[issue13286] PEP 3151 breaks backward compatibility: it should be documented

2012-02-07 Thread STINNER Victor
STINNER Victor added the comment: The code was fixed in importlib. I don't think that this borderline case should be documented anywhere, so I close this issue. -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue13550] Rewrite logging hack of the threading module

2012-02-07 Thread STINNER Victor
STINNER Victor added the comment: > Alright, Nick agreed on python-dev to remove the logging hack. You mean removing complelty debug logging from the threading module? Or just to simplify the code to decide if we should log or not? -- ___ Python tr

[issue13619] Add a new codec: "locale", the current locale encoding

2012-02-07 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file23987/locale_encoding-2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue13619] Add a new codec: "locale", the current locale encoding

2012-02-07 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file23985/locale_encoding.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue13619] Add a new codec: "locale", the current locale encoding

2012-02-07 Thread STINNER Victor
STINNER Victor added the comment: > + encoding = locale.getpreferredencoding() > It should be locale.getpreferredencoding(False). Fixed in patch version 3. -- Added file: http://bugs.python.org/file24446/locale_encoding-3.patch ___ Python tracker <

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-07 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24407/time_decimal-10.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-07 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24404/time_decimal-9.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-07 Thread STINNER Victor
STINNER Victor added the comment: Updated patch (version 11). -- Added file: http://bugs.python.org/file24445/time_decimal-11.patch ___ Python tracker ___ __

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

2012-02-07 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2012-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset bee7943d38c6 by Victor Stinner in branch 'default': Issue #13845: time.time() now uses GetSystemTimeAsFileTime() instead of ftime() http://hg.python.org/cpython/rev/bee7943d38c6 -- nosy: +python-dev ___

[issue13846] Add time.monotonic() function

2012-02-07 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue13846] Add time.monotonic() function

2012-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 376ce937823c by Victor Stinner in branch 'default': Issue #13846: Add time.monotonic(), monotonic clock. http://hg.python.org/cpython/rev/376ce937823c -- nosy: +python-dev ___ Python tracker

[issue13962] multiple lib and include directories on Linux

2012-02-07 Thread Roumen Petrov
Roumen Petrov added the comment: hmm, issue 13511 is perfectly closed as invalid. Ray you misunderstood meaning on configure flags --XXXdir. You properly found that LDFLAGS is what is required bug correct for headers is CPPFLAGS . Is ./configure --help not clear for you ? -- nosy: +

[issue10287] NNTP authentication should check capabilities

2012-02-07 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-07 Thread Brett Cannon
Brett Cannon added the comment: On Mon, Feb 6, 2012 at 17:06, STINNER Victor wrote: > > STINNER Victor added the comment: > > Is there a benchmark for import? How slow is importlib? :) > importlib.test.benchmark -- ___ Python tracker

[issue6210] Exception Chaining missing method for suppressing context

2012-02-07 Thread Raghuram Devarakonda
Changes by Raghuram Devarakonda : -- nosy: -draghuram ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue13963] dev guide has no mention of mechanics of patch review

2012-02-07 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13963] dev guide has no mention of mechanics of patch review

2012-02-07 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13963] dev guide has no mention of mechanics of patch review

2012-02-07 Thread Dave Malcolm
New submission from Dave Malcolm : I've been waiting for patch review of my work on http://bugs.python.org/issue13703 only to discover that people *have* been reviewing it. It turns out that next to some of the patches in the issue tracker there's a "review" link, which takes me to http://bug

[issue13962] multiple lib and include directories on Linux

2012-02-07 Thread Ray
New submission from Ray : I'm opening a new ticket based on ticket 13511 (http://bugs.python.org/issue13511) since the last one was closed. Read ronaldoussoren's post in Ticket 13511 in case you're still confused. There is no way to specify multiple lib and include directories on Linux when

[issue13703] Hash collision security issue

2012-02-07 Thread Dave Malcolm
Dave Malcolm added the comment: On Mon, 2012-02-06 at 23:00 +, Marc-Andre Lemburg wrote: > Marc-Andre Lemburg added the comment: > > Alex Gaynor wrote: > > There's no need to cover any container types, because if their constituent > > types are securely hashable then they will be as well.

[issue13961] Have importlib use os.replace()

2012-02-07 Thread Brett Cannon
New submission from Brett Cannon : The new os.replace() function should be used by importlib. -- components: Library (Lib) messages: 152810 nosy: brett.cannon priority: normal severity: normal status: open title: Have importlib use os.replace() versions: Python 3.3 _

[issue6210] Exception Chaining missing method for suppressing context

2012-02-07 Thread Nick Coghlan
Nick Coghlan added the comment: I started work on integrating this into 3.3 this evening, but ran into too many issues to finish it. Problems found and fixed: - traceback.py displayed the wrong exception (test added and impl fixed) Additional changes: - eliminated duplicate code paths for __c

[issue13609] Add "os.get_terminal_size()" function

2012-02-07 Thread STINNER Victor
STINNER Victor added the comment: > +1 for low level system wrapper to get current stdout console size So use os.get_terminal_size() > -1 on COLUMN/ROWS "business logic" So don't use shutil.get_terminal_size(), but it looks like their is a use case for this feature. -- _

[issue13609] Add "os.get_terminal_size()" function

2012-02-07 Thread anatoly techtonik
anatoly techtonik added the comment: All right, I've found some time to grep conversation related to COLUMNS/ROWS environment/shell variable. +1 for low level system wrapper to get current stdout console size -1 on COLUMN/ROWS "business logic" My user story 001: I need exact values of my con

[issue6210] Exception Chaining missing method for suppressing context

2012-02-07 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue13960] Handling of broken comments in HTMLParser

2012-02-07 Thread Ezio Melotti
New submission from Ezio Melotti : html.parser fails to handle the following invalid comments: The attached patch follows the HTML5 specs [0], and parses them as "bogus comments". Currently the patch fixes the problem only when strict=False, but it might be better to make this the default b

[issue12970] os.walk() consider some symlinks as dirs instead of non-dirs

2012-02-07 Thread Nick Coghlan
Nick Coghlan added the comment: This behaviour came up recently when implementing os.fwalk() [1]. There are problems with all 3 possible approaches (list as dirs, list as files, don't list at all) when followlinks is False. Since all alternatives are potentially surprising, the current behavi

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-02-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http: