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

2012-02-29 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: + f = open(self.procfile, 'r') 'rb' mode is enough here, no need of Unicode ;-) Why? At least to me, 'r' stands for text I/O, whereas 'rb' stands for binary I/O: here, I want to read /proc/PID/statm, which is a textual

[issue14149] argparse usage model requires argument names to be python identifiers

2012-02-29 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: For optional flags like --foo-bar, argparse does munge the dest to foo_bar, following optparse. For positional arguments, arpgarse doesn't munge things this way, but if you want the argument named foo-bar in help messages and foo_bar

[issue13405] Add DTrace probes

2012-02-29 Thread Philip Jenvey
Changes by Philip Jenvey pjen...@underboss.org: -- nosy: -pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list

[issue13968] Support recursive globs

2012-02-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue13053] Add Capsule migration documentation to cporting

2012-02-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: needs patch - committed/rejected versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13053 ___

[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 ezio.melo...@gmail.com: -- stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13086 ___

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

2012-02-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2012-02-29 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com 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 =

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

2012-02-29 Thread Thomas Atkinson
Thomas Atkinson cptn.britt...@gmail.com 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 rep...@bugs.python.org

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

2012-02-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-02-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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 rep...@bugs.python.org

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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.

[issue14152] setup.py: Python header file dependencies

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

[issue14155] Deja vu in re's documentation

2012-02-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Removed file: http://bugs.python.org/file24673/arraymodule_deps.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14152 ___

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- stage: - patch review versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14152 ___

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

2012-02-29 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: 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

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

2012-02-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- 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

[issue14155] Deja vu in re's documentation

2012-02-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 Joseph Birr-Pixton
Joseph Birr-Pixton jpix...@gmail.com 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 stdin, line 1, in module

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

2012-02-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +bethard, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14156 ___ ___ Python-bugs-list

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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,

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

2012-02-29 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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

[issue14155] Deja vu in re's documentation

2012-02-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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':

[issue14155] Deja vu in re's documentation

2012-02-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed. I changed something, as suggested by Éric. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

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

2012-02-29 Thread Martin Morrison
New submission from Martin Morrison martin.morri...@gmail.com: time.strptime without a year fails on Feb 29 with: time.strptime(Feb 29, %b %d) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.6/_strptime.py, line 454, in _strptime_time return

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

2012-02-29 Thread Robin Becker
Robin Becker rgbec...@users.sourceforge.net 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;

[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 stue...@googlemail.com 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

[issue14089] Patch to increase fractions lib test coverage

2012-02-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue14089] Patch to increase fractions lib test coverage

2012-02-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

[issue13394] Patch to increase aifc lib test coverage

2012-02-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

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

2012-02-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

[issue9041] raised exception is misleading

2012-02-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9041 ___ ___

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

2012-02-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

[issue11379] Remove lightweight from minidom description

2012-02-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11379 ___ ___

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

2012-02-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2012-02-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12640 ___

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: ??ric Araujo rep...@bugs.python.org 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

[issue14152] setup.py: Python header file dependencies

2012-02-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14152 ___

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

2012-02-29 Thread Vinay Sajip
New submission from Vinay Sajip vinay_sa...@yahoo.co.uk: 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

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

2012-02-29 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14158 ___ ___ Python-bugs-list

[issue13785] Make concurrent.futures.Future state public

2012-02-29 Thread Juan Javier
Juan Javier jjdomingu...@gmail.com 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():

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

2012-02-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2012-02-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2012-02-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +belopolsky, haypo, hynek versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14157 ___

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

2012-02-29 Thread Brett Cannon
Brett Cannon br...@python.org 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:

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

2012-02-29 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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.

[issue14159] __len__ method of weakset

2012-02-29 Thread Yury Selivanov
New submission from Yury Selivanov yseliva...@gmail.com: 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

[issue13903] New shared-keys dictionary implementation

2012-02-29 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com 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

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

2012-02-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2012-02-29 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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:

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

2012-02-29 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Yes, the problem is in FileType.__call__ - the handling of '-' is pretty simplistic. Patches welcome. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14156

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

2012-02-29 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: your patch is buggy It should be a missing #include. Maybe this one: #ifdef HAVE_LANGINFO_H #include langinfo.h #endif -- ___ Python tracker rep...@bugs.python.org

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

2012-02-29 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com 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()

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

2012-02-29 Thread Matthew Miller
New submission from Matthew Miller mat...@mattdm.org: 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

[issue14159] __len__ method of weakset

2012-02-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue13903] New shared-keys dictionary implementation

2012-02-29 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: Jim Jewett wrote: Jim Jewett jimjjew...@gmail.com 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.

[issue11379] Remove lightweight from minidom description

2012-02-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The wording in msg152836 is fine with me, in particular as it doesn't make any performance claims. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11379

[issue14159] __len__ method of weakset

2012-02-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

[issue14159] __len__ method of weakset

2012-02-29 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com 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

[issue14161] python2 file __repr__ does not escape filename

2012-02-29 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt ronny.pfannschm...@gmail.com: behaviour: name = 'woo\raa' open(name, 'w') aa', mode 'w' at 0x295a8a0 expected: name = 'woo\raa' open(name, 'w') open file 'woo\raa', mode 'w' at 0x295a8a0 note: don't ask why i tried this chunk of code in the first

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

2012-02-29 Thread Piotr Dobrogost
Piotr Dobrogost p...@python.dobrogost.net 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

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

2012-02-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 --

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

2012-02-29 Thread Brett Cannon
Brett Cannon br...@python.org 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)? --

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

2012-02-29 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: Ideally, it should raise an exception (or a warning) because the behaviour is unexpected. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13169

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

2012-02-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2012-02-29 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@gmail.com: 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

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

2012-02-29 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file24684/frozendict.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14162 ___

[issue14161] python2 file __repr__ does not escape filename

2012-02-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Interpreter Core nosy: +eric.araujo, ezio.melotti, pitrou stage: - needs patch versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14161

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

2012-02-29 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Added file: http://bugs.python.org/file24685/frozendict.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14162 ___

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

2012-02-29 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: There is no documentation update yet. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14162 ___

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

2012-02-29 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com 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?)

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

2012-02-29 Thread Brett Cannon
Brett Cannon br...@python.org 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

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

2012-02-29 Thread Shawn
Shawn swal...@opensolaris.org 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 stdin, line 1, in module File /usr/lib/python2.6/_strptime.py, line 454,

[issue11379] Remove lightweight from minidom description

2012-02-29 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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:

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

2012-02-29 Thread Shawn
Shawn swal...@opensolaris.org added the comment: I'm an idiot; nevermind my comment. The original date was bogus. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14157 ___

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

2012-02-29 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- hgrepos: +115 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14158 ___ ___ Python-bugs-list

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

2012-02-29 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: Added file: http://bugs.python.org/file24687/b0da15d31aec.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14158 ___

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

2012-02-29 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com 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

[issue12659] Add tests for packaging.tests.support

2012-02-29 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de 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

[issue12659] Add tests for packaging.tests.support

2012-02-29 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de 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

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

2012-02-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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)

[issue14155] Deja vu in re's documentation

2012-02-29 Thread py.user
py.user port...@yandex.ru 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)

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

2012-02-29 Thread Mark Hammond
Mark Hammond skippy.hamm...@gmail.com 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

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

2012-02-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-02-29 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14153

[issue14163] tkinter: problems with hello doc example

2012-02-29 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: 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

[issue14162] PEP 416: Add a builtin frozendict type

2012-02-29 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com 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

[issue14159] __len__ method of weakset

2012-02-29 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14159 ___ ___

[issue13394] Patch to increase aifc lib test coverage

2012-02-29 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk oleg...@gmail.com 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

[issue13394] Patch to increase aifc lib test coverage

2012-02-29 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk oleg...@gmail.com: Removed file: http://bugs.python.org/file24691/test_aifc_3_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13394 ___

[issue13394] Patch to increase aifc lib test coverage

2012-02-29 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk oleg...@gmail.com: Added file: http://bugs.python.org/file24692/test_aifc_3_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13394 ___

[issue14163] tkinter: problems with hello doc example

2012-02-29 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

[issue11379] Remove lightweight from minidom description

2012-02-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org http://bugs.python.org/issue11379

[issue14161] python2 file __repr__ does not escape filename

2012-02-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Funny one :D Reproduced on linux: open('/tmp/t\nest', 'w') open file '/tmp/t est', mode 'w' at 0x7f11268a19c0 file_repr in Objects/fileobject.c calls http://docs.python.org/c-api/unicode#PyUnicode_AsUnicodeEscapeString, equivalent to

[issue14161] python2 file __repr__ does not escape filename

2012-02-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Duh, obviously that code branch is used only for unicode paths: open('/tmp/t\nest', 'w') open file '/tmp/t est', mode 'w' at 0x7f6f0f3dd9c0 open(u'/tmp/t\nest', 'w') open file u'/tmp/t\nest', mode 'w' at 0x7f6f0f3dda50 There does not

[issue11379] Remove lightweight from minidom description

2012-02-29 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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

[issue11379] Remove lightweight from minidom description

2012-02-29 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: This is a reasonable case for a note. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11379 ___

[issue4080] unittest: display time of each test case

2012-02-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo title: pyunit - display time of each test case - patch - unittest: display time of each test case ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4080

  1   2   >