[issue4080] unittest: display time of each test case

2012-02-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think this would be a useful feature. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bu

[issue14160] TarFile.extractfile fails to extract targets of top-level relative symlinks

2012-02-29 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, lars.gustaebel title: Tarfile.extractfile fails to extract targets of top-level relative symlinks -> TarFile.extractfile fails to extract targets of top-level relative symlinks versions: +Python 3.2, Python 3.3 __

[issue4080] unittest: display time of each test case

2012-02-29 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo title: pyunit - display time of each test case - patch -> unittest: display time of each test case ___ Python tracker ___ _

[issue11379] Remove "lightweight" from minidom description

2012-02-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is a reasonable case for a note. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bug

[issue11379] Remove "lightweight" from minidom description

2012-02-29 Thread Eli Bendersky
Eli Bendersky added the comment: > > I’m not sure I would use note markup, though (cf. Raymond’s aversion to > littering the doc with note and warning boxes). > I also dislike box littering, but this one seems like a really good fit for a note, since it's completely outside the flow of that doc

[issue14161] python2 file __repr__ does not escape filename

2012-02-29 Thread Éric Araujo
Éric Araujo added the comment: Duh, obviously that code branch is used only for unicode paths: >>> open('/tmp/t\nest', 'w') >>> open(u'/tmp/t\nest', 'w') There does not seem to be something similar in http://docs.python.org/c-api/string, so I guess one would have to create intermed

[issue14161] python2 file __repr__ does not escape filename

2012-02-29 Thread Éric Araujo
Éric Araujo added the comment: Funny one :D Reproduced on linux: >>> open('/tmp/t\nest', 'w') file_repr in Objects/fileobject.c calls http://docs.python.org/c-api/unicode#PyUnicode_AsUnicodeEscapeString, equivalent to encode('unicode-escape'), so backslashes should be escaped. ---

[issue11379] Remove "lightweight" from minidom description

2012-02-29 Thread Éric Araujo
Éric Araujo added the comment: I’m not sure I would use note markup, though (cf. Raymond’s aversion to littering the doc with note and warning boxes). -- ___ Python tracker ___

[issue14163] tkinter: problems with hello doc example

2012-02-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Rick Johnson anwered question 1b on python-list: simply move root.destroy to the button. I make other changes also: use import...as; show that options can be set in constructor call. File uploaded. -- stage: -> patch review Added file: http://bugs.py

[issue13394] Patch to increase aifc lib test coverage

2012-02-29 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Added file: http://bugs.python.org/file24692/test_aifc_3_2.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue13394] Patch to increase aifc lib test coverage

2012-02-29 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Removed file: http://bugs.python.org/file24691/test_aifc_3_2.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue13394] Patch to increase aifc lib test coverage

2012-02-29 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk added the comment: For convenience I have uploaded the separate patch without warnings. Which means that it will generate some output during tests run. -- Added file: http://bugs.python.org/file24691/test_aifc_3_2.patch ___ Python t

[issue14159] __len__ method of weakset

2012-02-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue14162] PEP 416: Add a builtin frozendict type

2012-02-29 Thread STINNER Victor
STINNER Victor added the comment: frozendict_builtins.patch: make CPython supports frozendict for the __builtins__ mapping. It is an example of frozendict usage which helps my pysandbox project. -- title: Implementation of the PEP 416 (Add a builtin frozendict type) -> PEP 416: Add a

[issue14163] tkinter: problems with hello doc example

2012-02-29 Thread Terry J. Reedy
New submission from Terry J. Reedy : After an intro, the tkinter docs start with a traditional 'Hello World'. http://docs.python.org/py3k/library/tkinter.html#a-simple-hello-world-program Problem 1. The example ends with root.destroy John Salerno, today, on python-list thread "Is it necessary t

[issue14153] Expose os.device_encoding() at the C level

2012-02-29 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue14153] Expose os.device_encoding() at the C level

2012-02-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset c80d9a0bd5a0 by Brett Cannon in branch 'default': Issue #14153 Create _Py_device_encoding() to prevent _io from having to import http://hg.python.org/cpython/rev/c80d9a0bd5a0 -- nosy: +python-dev ___ Pyt

[issue8170] Wrong Paths for distutils build --plat-name=win-amd64

2012-02-29 Thread Mark Hammond
Mark Hammond added the comment: Those instructions in section 5.4 do seem wrong. On first reading they imply that you need to start with a clean source tree on your 32bit Windows, then build the 64bit version of Python. So far so good. However, then you need to run python.exe - which must

[issue14155] Deja vu in re's documentation

2012-02-29 Thread py.user
py.user added the comment: the multiline mode affects on regex.match() >>> p = re.compile(r'^a') >>> p.match('abc\nabc') <_sre.SRE_Match object at 0xb749bf38> >>> p.match('abc\nabc').span() (0, 1) >>> p.match('abc\nabc', 4) >>> >>> p = re.compile(r'^a', re.M) >>> p.match('abc\nabc', 4) <_sre.S

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

2012-02-29 Thread Nick Coghlan
Nick Coghlan added the comment: For 3.2, there's no removal to document - we asked MvL to drop the buffer APIs from PEP 384, so they've never been part of the stable ABI. >From the PEP: "The buffer interface (type Py_buffer, type slots bf_getbuffer >and bf_releasebuffer, etc) has been omitted

[issue12659] Add tests for packaging.tests.support

2012-02-29 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: > Patch looks good, thanks! BTW are you running a coverage tool to see > how > far along we are? Yes, always. The classes tested in that patch are at 100%. The overall coverage is: Name Stmts Miss Cover Missing ---

[issue12659] Add tests for packaging.tests.support

2012-02-29 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Patch updated. BTW, I didn't get any email due the review that Éric did (does one has to be registered? I've done that now). -- Added file: http://bugs.python.org/file24689/issue12659_434cd2fedf81.patch __

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-29 Thread Merlijn van Deen
Merlijn van Deen added the comment: Added tests in Lib/test format. After applying pickle.py.patch and BytestrPickler_c.diff, ./python -m test -v -m PyPicklerBytestrTests test_pickle returns 12 tests, no errors, while ./python -m test -v -m CPicklerBytestrTests test_pickle only passes

[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists

2012-02-29 Thread Vinay Sajip
Changes by Vinay Sajip : Added file: http://bugs.python.org/file24687/b0da15d31aec.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists

2012-02-29 Thread Vinay Sajip
Changes by Vinay Sajip : -- hgrepos: +115 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

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

2012-02-29 Thread Shawn
Shawn added the comment: I'm an idiot; nevermind my comment. The original date was bogus. -- ___ Python tracker ___ ___ Python-bugs-

[issue11379] Remove "lightweight" from minidom description

2012-02-29 Thread Eli Bendersky
Eli Bendersky added the comment: I'm attaching a patch for Doc/library/xml.dom.minidom.rst It adds the note as phrased by Stefan, with a tiny wording change to make the first sentence less ambiguous. -- keywords: +patch Added file: http://bugs.python.org/file24686/issue_11379.1.patch

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

2012-02-29 Thread Shawn
Shawn added the comment: I'm seeing this when a year *is* specified with Python 2.6 and 2.7: import time time.strptime("20090229T184823Z", "%Y%m%dT%H%M%SZ") Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.6/_strptime.py", line 454, in _strptime_time retur

[issue14153] Expose os.device_encoding() at the C level

2012-02-29 Thread Brett Cannon
Brett Cannon added the comment: OK, so if on windows or isatty + nl_langinfo + CODESET, check fd 0 for a returned string that codecs.lookup and find something for. fd 42 (if not a tty) should return None. -- ___ Python tracker

[issue14153] Expose os.device_encoding() at the C level

2012-02-29 Thread STINNER Victor
STINNER Victor added the comment: > For fd 0, it should be a string if the fd is a tty. os.device_encoding() returns None on a non-Windows OS without langinfo support. locale.nl_langinfo(locale.CODESET) may be used in such test. (to check for nl_langinfo() support?) -- __

[issue14162] Implementation of the PEP 416 (Add a builtin frozendict type)

2012-02-29 Thread STINNER Victor
STINNER Victor added the comment: There is no documentation update yet. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue14162] Implementation of the PEP 416 (Add a builtin frozendict type)

2012-02-29 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file24685/frozendict.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14161] python2 file __repr__ does not escape filename

2012-02-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Interpreter Core nosy: +eric.araujo, ezio.melotti, pitrou stage: -> needs patch versions: -Python 2.6 ___ Python tracker ___ _

[issue14162] Implementation of the PEP 416 (Add a builtin frozendict type)

2012-02-29 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24684/frozendict.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue14162] Implementation of the PEP 416 (Add a builtin frozendict type)

2012-02-29 Thread STINNER Victor
New submission from STINNER Victor : Patch to implement the PEP 416. -- components: Interpreter Core files: frozendict.patch keywords: patch messages: 154655 nosy: haypo priority: normal severity: normal status: open title: Implementation of the PEP 416 (Add a builtin frozendict type) ty

[issue14153] Expose os.device_encoding() at the C level

2012-02-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As for a test, I will happily write one, but what can I test? A string > for fd 0 and None for fd -1 (or is there some os call I can make to > find the largest fd so I can test fd+1)? For fd 0, it should be a string if the fd is a tty. (it should also point t

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2012-02-29 Thread Matthew Barnett
Matthew Barnett added the comment: Ideally, it should raise an exception (or a warning) because the behaviour is unexpected. -- ___ Python tracker ___ _

[issue14153] Expose os.device_encoding() at the C level

2012-02-29 Thread Brett Cannon
Brett Cannon added the comment: Victor's point fixed my issue. As for a test, I will happily write one, but what can I test? A string for fd 0 and None for fd -1 (or is there some os call I can make to find the largest fd so I can test fd+1)? -- _

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

2012-02-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9d3c7dd55c7f by Stefan Krah in branch 'default': Issue #10181: Add warning that structure layouts in memoryobject.h and http://hg.python.org/cpython/rev/9d3c7dd55c7f -- ___ Python tracker

[issue4080] pyunit - display time of each test case - patch

2012-02-29 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: @Michael Foord > I am in the process of creating an extension mechanism for unittest > which will make adding this sort of use case to unittest much easier How is it going? -- nosy: +piotr.dobrogost ___ Python tra

[issue14161] python2 file __repr__ does not escape filename

2012-02-29 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt : behaviour: >>> name = 'woo\raa' >>> open(name, 'w') aa', mode 'w' at 0x295a8a0> expected: >>> name = 'woo\raa' >>> open(name, 'w') note: don't ask why i tried this chunk of code in the first place -- messages: 154649 nosy: Ronny.Pfannschmidt pr

[issue14159] __len__ method of weakset

2012-02-29 Thread Yury Selivanov
Yury Selivanov added the comment: Yes, I couldn't reproduce it either. However it frequently occurs on our buildbot, so tomorrow I'll give you an update if this patch resolves the issue or not. In any way, your patch fixes the current implementation at least from the performance perspective

[issue14159] __len__ method of weakset

2012-02-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch addressing similar issue with weak dicts, and adding more tests. -- Added file: http://bugs.python.org/file24683/weaksetlen2.patch ___ Python tracker ___

[issue11379] Remove "lightweight" from minidom description

2012-02-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: The wording in msg152836 is fine with me, in particular as it doesn't make any performance claims. -- ___ Python tracker ___

[issue13903] New shared-keys dictionary implementation

2012-02-29 Thread Mark Shannon
Mark Shannon added the comment: Jim Jewett wrote: > Jim Jewett added the comment: > > As of Feb 28, 2012, the PEP mentions an additional optimization of storing > the values in an array indexed by (effectively) key insertion order, rather > than key position. ("Alternative Implementation") >

[issue14159] __len__ method of weakset

2012-02-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I can't find a way to reproduce as a unit test. Here is a patch making __len__ O(1) as well (instead of O(n)). Could you try it? (note : AFAICT, a similar issue exists for weak dicts) -- stage: -> needs patch versions: +Python 2.7 Added file: http://b

[issue14160] Tarfile.extractfile fails to extract targets of top-level relative symlinks

2012-02-29 Thread Matthew Miller
New submission from Matthew Miller : I have a tarfile with relative paths. The tail of tar tvf looks like this: -rw-r--r-T nobody/nobody 1356 2012-02-28 19:25 s/772 -rw-r--r-- nobody/nobody 1304 2012-02-28 19:25 s/773 -rw-r--r-- nobody/nobody 1304 2012-02-28 19:25 s/774 -rw-r--r-- nobody/nobo

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

2012-02-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This strikes me as an implementation artifact. There is no reason for time.strptime() to validate date triplets. Applications that require valid dates can use datetime.strptime(). I suggest changing time.strptime() specification to match POSIX strpti

[issue14153] Expose os.device_encoding() at the C level

2012-02-29 Thread STINNER Victor
STINNER Victor added the comment: > your patch is buggy It should be a missing #include. Maybe this one: #ifdef HAVE_LANGINFO_H #include #endif -- ___ Python tracker ___

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2012-02-29 Thread Steven Bethard
Steven Bethard added the comment: Yes, the problem is in FileType.__call__ - the handling of '-' is pretty simplistic. Patches welcome. -- ___ Python tracker ___ __

[issue14149] argparse: Document how to use argument names that are not Python identifiers

2012-02-29 Thread Steven Bethard
Steven Bethard added the comment: > making Namespace subscriptable This has been discussed before - see issue 11076. I prefer to keep Namespace as simple as possible. For subscripting, just use the standard Python idiom of vars as suggested in the docs: http://docs.python.org/library/argpars

[issue14153] Expose os.device_encoding() at the C level

2012-02-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't seen any refcounting problem here, but your patch is buggy. Before patch: >>> os.device_encoding(0) 'UTF-8' After patch: >>> os.device_encoding(0) is None True Interestingly, it seems there is no test for os.device_encoding. Perhaps add one to test_

[issue13903] New shared-keys dictionary implementation

2012-02-29 Thread Jim Jewett
Jim Jewett added the comment: As of Feb 28, 2012, the PEP mentions an additional optimization of storing the values in an array indexed by (effectively) key insertion order, rather than key position. ("Alternative Implementation") It states that this would reduce memory usage for the values a

[issue14159] __len__ method of weakset

2012-02-29 Thread Yury Selivanov
New submission from Yury Selivanov : WeakSet has a bug in its '__len__' method, where it performs iteration though 'self.data' without ensuring _IterationGuard. This leads to some hard to catch errors with the following traceback: builtins.RuntimeError: Set changed size during iteration

[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists

2012-02-29 Thread Vinay Sajip
Vinay Sajip added the comment: > You should find which test left the file and fix that test instead. Ideally yes, but it's easier said than done. When the failure occurred, there were many failures, and I couldn't locate the place where the file was being left behind. It was a while ago - I w

[issue14153] Expose os.device_encoding() at the C level

2012-02-29 Thread Brett Cannon
Brett Cannon added the comment: Attached is a patch which is trying to do the refactor, but I'm somehow causing a something to be gc'ed when it shouldn't. If anyone spots something obvious let me know, else I will try to debug some more on my way home. -- keywords: +patch Added file:

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

2012-02-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +belopolsky, haypo, hynek versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bug

[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists

2012-02-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > test_mailbox fails if another failed test leaves a file or directory > with the name given by support.TESTFN. The attached patch rectifies this You should find which test left the file and fix that test instead. -- nosy: +pitrou

[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists

2012-02-29 Thread R. David Murray
R. David Murray added the comment: Why not just call the helper in setUp? Otherwise, it looks good to me. This is a bug fix and should be backported, I believe. -- versions: +Python 2.7, Python 3.2 ___ Python tracker

[issue13785] Make concurrent.futures.Future state public

2012-02-29 Thread Juan Javier
Juan Javier added the comment: The use case is to know the state of a future without having to do something like this @property def state(self): if self.future.running(): return Process.States.Running elif self.future.cancelled(): return Process.

[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists

2012-02-29 Thread Vinay Sajip
Changes by Vinay Sajip : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists

2012-02-29 Thread Vinay Sajip
New submission from Vinay Sajip : test_mailbox fails if another failed test leaves a file or directory with the name given by support.TESTFN. The attached patch rectifies this, and also uses existing stdlib functionality (shutil.rmtree) to remove a directory tree recursively on tearDown.

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Stefan Krah
Stefan Krah added the comment: ??ric Araujo wrote: > > To answer your question: Neither of the last two revisions builds > > in an out-of-source directory. > My question was more whether the last known good revision did :) That's what I meant. "last two revisions" was intended to refer to the

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1c77eadba9dc by Stefan Krah in branch '3.2': Issue #14152: Restore the Include/*.h dependencies for extension builds. http://hg.python.org/cpython/rev/1c77eadba9dc New changeset c85812b0e97d by Stefan Krah in branch 'default': Issue #14152: Merge f

[issue12640] test_ctypes seg fault (test_callback_register_double); armv7; gcc 4.5.1

2012-02-29 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue9845] Allow changing the method in urllib.request.Request

2012-02-29 Thread Éric Araujo
Éric Araujo added the comment: Python 3.3 supports this. -- resolution: -> duplicate stage: patch review -> committed/rejected status: open -> closed superseder: -> urllib2 requests history + HEAD support versions: +Python 3.3 -Python 3.2 ___ Pytho

[issue11379] Remove "lightweight" from minidom description

2012-02-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13998] Lookbehind assertions go behind the start position for the match

2012-02-29 Thread Ezio Melotti
Ezio Melotti added the comment: IMHO the documentation is fine as is. Using pos in combination with lookarounds that match on the beginning/end of the "slice" seems a rather uncommon corner case, and I don't think it's worth documenting it. Even if it was documented, as a user, I would just

[issue9041] raised exception is misleading

2012-02-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2012-02-29 Thread Ezio Melotti
Ezio Melotti added the comment: Matthew, do you think this should be documented somewhere or that the behavior should be changed (e.g. raising a warning when 65535 is used)? If not I'll just close the issue. -- ___ Python tracker

[issue13394] Patch to increase aifc lib test coverage

2012-02-29 Thread Ezio Melotti
Ezio Melotti added the comment: Converting prints to warnings on 3.2 might not be a good idea. I can probably still apply the rest of the patch there, and change the warnings on 3.3 only. -- ___ Python tracker _

[issue14089] Patch to increase fractions lib test coverage

2012-02-29 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: -> ezio.melotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed type: behavior -> enhancement ___ Python tracker

[issue14089] Patch to increase fractions lib test coverage

2012-02-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8e00de3acb44 by Ezio Melotti in branch '2.7': #14089: increase coverage of the fractions module. Patch by Oleg Plakhotnyuk. http://hg.python.org/cpython/rev/8e00de3acb44 New changeset 0bbc2549e1ee by Ezio Melotti in branch '3.2': #14089: increase

[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130

2012-02-29 Thread Jan Stürtz
Jan Stürtz added the comment: Created a patch to fix the configure script, to get the "right" python.exp File. -- keywords: +patch Added file: http://bugs.python.org/file24678/Python-2.7.2-configure.aix.patch ___ Python tracker

[issue8170] Wrong Paths for distutils build --plat-name=win-amd64

2012-02-29 Thread Robin Becker
Robin Becker added the comment: That would be a solution if we had a separate 64 bit machine & extra versions of Visual Studio, but the actual bug is with the cross-compiling behaviour. If it's not supposed to work then this isn't a bug and section 5.4 should go; otherwise the correct way to

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

2012-02-29 Thread Martin Morrison
New submission from Martin Morrison : time.strptime without a year fails on Feb 29 with: >>> time.strptime("Feb 29", "%b %d") Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.6/_strptime.py", line 454, in _strptime_time return _strptime(data_string, format)[

[issue14155] Deja vu in re's documentation

2012-02-29 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed. I changed something, as suggested by Éric. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue14155] Deja vu in re's documentation

2012-02-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3958121a027f by Ezio Melotti in branch '2.7': #14155: remove duplication about search vs match in re doc. http://hg.python.org/cpython/rev/3958121a027f New changeset 4114e816a71b by Ezio Melotti in branch '3.2': #14155: remove duplication about sea

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

2012-02-29 Thread Stefan Krah
Stefan Krah added the comment: I'm busy adding the C-API changes to the docs. Regarding the stable ABI: The general mood was to *keep* the removal of the buffer interface for some time, did I get that right? In that case this removal (especially of the Py_buffer struct) should be documented al

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Éric Araujo
Éric Araujo added the comment: > To answer your question: Neither of the last two revisions builds > in an out-of-source directory. My question was more whether the last known good revision did :) > Here's a patch. Tested with Python built in the top-level dir and in another dir, works in both

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2012-02-29 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +bethard, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue14149] argparse: Document how to use argument names that are not Python identifiers

2012-02-29 Thread Joseph Birr-Pixton
Joseph Birr-Pixton added the comment: > I don’t understand, can you rephrase? Sorry, I mean making Namespace subscriptable. eg: >>> v = argparse.Namespace(abc = 123) >>> v Namespace(abc=123) >>> v.abc 123 >>> v['abc'] Traceback (most recent call last): File "", line 1, in TypeError: 'Names

[issue14155] Deja vu in re's documentation

2012-02-29 Thread Éric Araujo
Éric Araujo added the comment: Didn’t review all lines in detail but looks globally good. I would not remove Fred’s name though, but move it to another section or the top-level of the file. -- nosy: +eric.araujo ___ Python tracker

[issue14149] argparse: Document how to use argument names that are not Python identifiers

2012-02-29 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> docs@python components: +Documentation -Library (Lib) keywords: +easy nosy: +docs@python stage: -> needs patch title: argparse usage model requires argument names to be python identifiers -> argparse: Document how to use argument names that are

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2012-02-29 Thread Matt Joiner
New submission from Matt Joiner : If an argument of '-' is handled by argparse.FileType, it defaults to sys.stdin. However a mode of 'rb' is ignored, the returned file object does not work with raw bytes. -- components: Library (Lib) messages: 154612 nosy: anacrolix priority: normal se

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Stefan Krah
Changes by Stefan Krah : -- stage: -> patch review versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bu

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Stefan Krah
Changes by Stefan Krah : Removed file: http://bugs.python.org/file24673/arraymodule_deps.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue14155] Deja vu in re's documentation

2012-02-29 Thread Ezio Melotti
Ezio Melotti added the comment: Patch attached. -- assignee: docs@python -> ezio.melotti components: +Regular Expressions keywords: +patch nosy: +mrabarnett stage: -> patch review Added file: http://bugs.python.org/file24677/issue14155.diff ___ Pyth

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Stefan Krah
Stefan Krah added the comment: Here's a patch. -- keywords: +patch Added file: http://bugs.python.org/file24676/issue14152.diff ___ Python tracker ___ __

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Stefan Krah
Stefan Krah added the comment: Dependency support added: 1be93dd179df Last good version (all Include/*.h): 9705ef3fdb22 Current behavior (only pyconfig.h): fa69e891edf4 To answer your question: Neither of the last two revisions builds in an out-of-source directory. Raising the priority to h

[issue10713] re module doesn't describe string boundaries for \b

2012-02-29 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue10713] re module doesn't describe string boundaries for \b

2012-02-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc89e09ca2fc by Ezio Melotti in branch '2.7': #10713: Improve documentation for \b and \B and add a few tests. Initial patch and tests by Martin Pool. http://hg.python.org/cpython/rev/fc89e09ca2fc New changeset cde7fa40b289 by Ezio Melotti in bra

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2012-02-29 Thread Thomas Atkinson
Thomas Atkinson added the comment: This bug is happening in python 3.2 when trying to build pycrypto on Microsoft Windows 7 -- nosy: +Thomas.Atkinson versions: +Python 3.2 -Python 2.7 ___ Python tracker __

[issue14154] reimplement the bigmem test memory watchdog as a subprocess

2012-02-29 Thread STINNER Victor
STINNER Victor added the comment: >> + f = open(self.procfile, 'r') >> >> 'rb' mode is enough here, no need of Unicode ;-) > > Why? The parent process doesn't read the file content, only the child. The parent only needs a file descriptor. >> + self.mem_watchdog = subprocess.Popen(..., stdin=f)

[issue14061] Misc fixes and cleanups in archiving code in shutil and test_shutil

2012-02-29 Thread Éric Araujo
Éric Araujo added the comment: test_shutil contains partial tests for the archiving functionality. I plan to rewrite some tests so that for example you can see a skip message when bz2 is not available, instead of silent non-testing. Also, the internal functions _make_tarfile and _make_zipfi

[issue13086] Update howto/cporting.rst so it talks about Python 3 instead of 3.0

2012-02-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: patch review -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue13053] Add Capsule migration documentation to "cporting"

2012-02-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: needs patch -> committed/rejected versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Pyt

[issue13968] Support recursive globs

2012-02-29 Thread Nick Coghlan
Nick Coghlan added the comment: FWIW, I've also come around to the point of view that it's worthwhile to provide stdlib support for the "**" convention (specifically due to the UI aspect that Michael mentions). -- ___ Python tracker

[issue13405] Add DTrace probes

2012-02-29 Thread Philip Jenvey
Changes by Philip Jenvey : -- nosy: -pjenvey ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

  1   2   >