[issue13609] Add os.get_terminal_size() function

2011-12-16 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: The patch is already almost there (in #13041). I'll post an updated version here in a moment. -- nosy: +zbysz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13609

[issue13611] Integrate ElementC14N module into xml.etree package

2011-12-16 Thread Stefan Behnel
New submission from Stefan Behnel sco...@users.sourceforge.net: The ElementC14N.py module by Fredrik Lundh implements XML canonicalisation for the ElementTree serialiser. Given that the required API hooks to use it are already in xml.etree.ElementTree, this would make a nice, simple and

[issue13611] Integrate ElementC14N module into xml.etree package

2011-12-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13611 ___ ___ Python-bugs-list mailing list

[issue11900] 2.7.1 unicode subclasses not calling __str__() for print statement

2011-12-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: However, it is a real change from 2.6 to 2.7 that breaks code. John, this issue is not the same as the one above. The difference between Python 2.6 and Python 2.7.2 you mention only applies to % formatting. The change is clearly

[issue7652] Merge C version of decimal into py3k.

2011-12-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: For my part, a two-lines description of the purpose of file is enough. OK, I'll go for small comments in the files themselves and put big ones in separate files. -- ___ Python tracker

[issue6715] xz compressor support

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is there any reason why this issue is still open? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2011-12-16 Thread Dongying Zhang
New submission from Dongying Zhang zhangdongying1...@gmail.com: I've been trying to parse xml string using python, codes following: #-*- coding: utf-8 -*- import xml.etree.ElementTree as xmlet s = '?xml version=1.0 encoding=GBK?info/info' xmlet.fromstring(s) Then: $

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2011-12-16 Thread Dongying Zhang
Changes by Dongying Zhang zhangdongying1...@gmail.com: -- versions: +3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13612 ___ ___

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2011-12-16 Thread Dongying Zhang
Changes by Dongying Zhang zhangdongying1...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13612 ___ ___

[issue1559549] ImportError needs attributes for module and file name

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: fullname is technically wrong: import logging.bar Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named 'bar' module_name sounds fine and explicit enough to me. Also, as Eric points out, there are many

[issue11379] Remove lightweight from minidom description

2011-12-16 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: I started a mailing list thread on the same topic: http://thread.gmane.org/gmane.comp.python.devel/127963 Especially see http://thread.gmane.org/gmane.comp.python.devel/127963/focus=128162 where I extract a proposal from the

[issue6715] xz compressor support

2011-12-16 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Yes, almost half of the buildbots still don't have the xz-utils headers installed, and thus are not building/testing the lzma module. I've kept the issue open as a reminder to myself to follow up on this. --

[issue1785] inspect gets broken by some descriptors

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Updated patch for 3.2. -- stage: - patch review versions: +Python 3.2 -Python 2.6 Added file: http://bugs.python.org/file23975/inspect-and-pydoc-bug2.patch ___ Python tracker rep...@bugs.python.org

[issue1785] inspect gets broken by some descriptors

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Updated patch that adds a test for classifying builtin types (checks that ``inspect.classify_class_attrs(type)`` does not throw as in issue13581). -- ___ Python tracker rep...@bugs.python.org

[issue1785] inspect gets broken by some descriptors

2011-12-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file23976/inspect-and-pydoc-bug3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1785 ___

[issue12809] Missing new setsockopts in Linux (eg: IP_TRANSPARENT)

2011-12-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12809 ___ ___ Python-bugs-list mailing

[issue13610] On Python parsing numbers.

2011-12-16 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Can this be fixed? More or less. The following patch does the trick, but is not really elegant: --- a/Parser/tokenizer.c2011-06-01 02:39:38.0 + +++ b/Parser/tokenizer.c2011-12-16 08:48:45.0 +

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2011-12-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 57f0af61da53 by Antoine Pitrou in branch 'default': Issue #6695: Full garbage collection runs now clear the freelist of set objects. http://hg.python.org/cpython/rev/57f0af61da53 -- nosy: +python-dev

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The clearing the dict and list freelists has been added independently, so I committed the part of the patch pertaining to sets. Thank you! -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.3

[issue11379] Remove lightweight from minidom description

2011-12-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: xml.dom.minidom is a [-XXX: light-weight] implementation of the Document Object Model interface. This is ok. It is intended to be simpler than the full DOM and also [+XXX: provide a] significantly smaller [+XXX: API]. Doesn't simpler

[issue5424] Packed IPaddr conversion tests should be extended

2011-12-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5424 ___ ___ Python-bugs-list mailing

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2011-12-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Actually, this fails on 2.6 and 2.7 on wide unicode builds, and passes with narrow unicode builds (on my 64bit Linux box). In pyexpat.c, PyUnknownEncodingHandler accesses 256 characters of a unicode buffer, without checking its

[issue13609] Add os.get_terminal_size() function

2011-12-16 Thread Denilson Figueiredo de Sá
Denilson Figueiredo de Sá denilso...@gmail.com added the comment: Zbyszek, I just looked at [1] and I disagree that the environment variable should have higher precedence. In fact, I believe it should have lower precedence, and should be used as a fallback. [1]:

[issue10350] errno is read too late

2011-12-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6a966179c73a by Antoine Pitrou in branch '3.2': Issue #10350: Read and save errno before calling a function which might overwrite it. http://hg.python.org/cpython/rev/6a966179c73a New changeset 8e0b2e75ca7a by

[issue10350] errno is read too late

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in 3.x. I won't bother backporting to 2.x. Thank you! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.3 -Python 2.7, Python 3.1 ___

[issue9975] Incorrect use of flowinfo and scope_id in IPv6 sockaddr tuple

2011-12-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9975 ___ ___ Python-bugs-list mailing

[issue13609] Add os.get_terminal_size() function

2011-12-16 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: http://bugs.python.org/file23241/patch1.1.diff This looks like something which would fit better into shutil module rather than os. Also, the Windows implementation should not rely on ctypes. -- nosy: +giampaolo.rodola

[issue13041] argparse: terminal width is not detected properly

2011-12-16 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- dependencies: +Add os.get_terminal_size() function versions: -Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13041

[issue13609] Add os.get_terminal_size() function

2011-12-16 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Plus, you should provide also heigth, not only width, possibly as a namedtuple: import shutil shutil.get_terminal_size() size(width=80, heigth=170) -- ___ Python tracker

[issue12809] Missing new setsockopts in Linux (eg: IP_TRANSPARENT)

2011-12-16 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12809 ___ ___

[issue13229] Improve tools for iterating over filesystem directories

2011-12-16 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13229 ___ ___

[issue13584] argparse doesn't respect double quotes

2011-12-16 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Closing then. Thanks for checking it again! -- assignee: - bethard resolution: - works for me stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Edmund Eyles
New submission from Edmund Eyles ho...@heddonsgate.co.uk: The documentation for Python 2.7.2 has a section of examples for the regular expression match() function, based on a poker hand, at section 7.2.6.1. These examples show a suit of cards as having 14 cards! The ace is counted twice, as

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: docs@python - ezio.melotti keywords: +patch nosy: +ezio.melotti stage: - commit review type: behavior - enhancement versions: +Python 3.2, Python 3.3 Added file: http://bugs.python.org/file23977/issue13613.diff

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file23977/issue13613.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13613 ___

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Added file: http://bugs.python.org/file23978/issue13613.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13613 ___

[issue13609] Add os.get_terminal_size() function

2011-12-16 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: One reply to three comments: [To myself]: I'll post an updated version here in a moment. Hm, it's not so simple. The implementation is simple, but the configure defines are harder than I thought. But I'm getting there :) Zbyszek, I just

[issue8373] socket: AF_UNIX socket paths not handled according to PEP 383

2011-12-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1f23bb74f4bc by Antoine Pitrou in branch 'default': Issue #8373: The filesystem path of AF_UNIX sockets now uses the filesystem http://hg.python.org/cpython/rev/1f23bb74f4bc -- nosy: +python-dev

[issue8373] socket: AF_UNIX socket paths not handled according to PEP 383

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch committed in 3.3 (default branch), thank you! -- nosy: +pitrou resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.3 -Python 3.1, Python 3.2

[issue13604] update PEP 393 (match implementation)

2011-12-16 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: Why is the utf-8 representation not cached when it is generated for ParseTuple et alia? My error -- I read something backwards. When a string is created from a wchar_t array, who is responsible for releasing the original wchar_t array?

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Edmund Eyles
Edmund Eyles ho...@heddonsgate.co.uk added the comment: Changes proposed in file 23978 look good to me! On 16/12/2011 13:28, Ezio Melotti wrote: Changes by Ezio Melottiezio.melo...@gmail.com: Added file: http://bugs.python.org/file23978/issue13613.diff

[issue13604] update PEP 393 (match implementation)

2011-12-16 Thread Jim Jewett
Changes by Jim Jewett jimjjew...@gmail.com: Added file: http://bugs.python.org/file23980/pep-0393_20111216.txt.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13604 ___

[issue13610] On Python parsing numbers.

2011-12-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Can this be fixed? Not without breaking backwards compatibility, I would think. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13610

[issue13610] On Python parsing numbers.

2011-12-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I think it's fairly harmless. Perhaps Python 4. -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13610 ___

[issue13609] Add os.get_terminal_size() function

2011-12-16 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: The docstring for shutil says: Utility functions for copying and archiving files and directory trees. So it doesn't seem to fit at all. Well... shutil should stand for shell utilities and it already contains stuff which is not strictly

[issue1559549] ImportError needs attributes for module and file name

2011-12-16 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: I think I'm going to stick with name unless anyone is super opposed. If we can eventually import something else (sausages?), then setting module_name with a sausage name will seem weird. I'll work up a more complete patch. The private helper is

[issue13604] update PEP 393 (match implementation)

2011-12-16 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13604 ___ ___ Python-bugs-list mailing list

[issue13609] Add os.get_terminal_size() function

2011-12-16 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: This is proof-of-concept implementation. This adds two modules: termsize (python) and _termsize (C). The first one contains the get_terminal_size user-facing function and namedtuple definition. The second on contains the function

[issue13609] Add os.get_terminal_size() function

2011-12-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Don't forget the Windows platform... here is an implementation: https://bitbucket.org/hpk42/py/src/980c8d526463/py/_io/terminalwriter.py#cl-284 But it would be better written in C, of course. -- nosy: +amaury.forgeotdarc

[issue13607] Move generator specific sections out of ceval.

2011-12-16 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13607 ___ ___ Python-bugs-list mailing list

[issue1785] inspect gets broken by some descriptors

2011-12-16 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1785 ___ ___ Python-bugs-list

[issue13609] Add os.get_terminal_size() function

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, a couple of general comments: - there is no point having a separate module for a single function; I think the os module (and posixmodule.c for the C side) is a reasonable place where to put this - C code should be indented with 4 spaces

[issue13610] On Python parsing numbers.

2011-12-16 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13610 ___ ___ Python-bugs-list mailing list

[issue818201] distutils: clean does not use build_base option from build

2011-12-16 Thread Josh
Josh josh.david...@lmco.com added the comment: Where was this fixed? It is still a problem in Python 2.6.6. For example, if I do: python setup.py build_ext --compiler=mingw32 build --build-platlib=build\win64 Then follow it up with: python setup.py clean --build-base=build\win64 -a This is

[issue13611] Integrate ElementC14N module into xml.etree package

2011-12-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Code added to the standard library should be contributed by its author, with an explicit statement of plans to support it in an ongoing manner, and preferably also with plans to stop providing standalone releases over time. --

[issue5424] Packed IPaddr conversion tests should be extended

2011-12-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I agree with Antoine: a single test testing that we actually raise exceptions properly should be sufficient. OTOH, the patch doesn't hurt (AFAICT), so I wouldn't mind if it was applied as-is. --

[issue11379] Remove lightweight from minidom description

2011-12-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: If you have to work with XML, ElementTree is usually the best choice, because it has a simple API and it's efficient [or whatever]. I still object such a wording, for many reasons. -- ___

[issue13614] `setup.py register` fails with traceback

2011-12-16 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: It seems that invalid ReST in long_description causes traceback in distutils `register` command. See attached log. More details: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/905500 -- assignee: tarek components:

[issue13615] `setup.py register` fails with -r argument

2011-12-16 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: $ python setup.py sdist register -r https://pypi.python.org/pypi upload ... Creating tar archive removing 'pager-0.2' (and everything under it) running register Traceback (most recent call last): File setup.py, line 17, in module

[issue13615] `setup.py register` fails with -r argument

2011-12-16 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Ubuntu 11.10 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13615 ___ ___

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 766a21ebf82e by Ezio Melotti in branch '2.7': #13613: fix example in re doc. http://hg.python.org/cpython/rev/766a21ebf82e New changeset 0b86da9d6964 by Ezio Melotti in branch '3.2': #13613: fix example in re doc.

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the report! -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13613

[issue13616] Never ending loop in in update_refs Modules/gcmodule.c

2011-12-16 Thread David Butler
New submission from David Butler croe...@gmail.com: CPU will sit a 100% indefinitely, this is also pretty tough (takes several hours) to reproduce if you step through the program it is stuck between 290 and 292 Modules/gcmodule.c: /* Set all gc_refs = ob_refcnt. After this, gc_refs is 0

[issue13571] Backup files support in IDLE

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I agree with Roger that developing an extension elsewhere is the proper first step. I suspect that you will want to experiment with the exact behavior and interface. So I am closing this for now, though you can reopen later if there is a

[issue13573] csv.writer uses str() for floats instead of repr()

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Is this complete and ready to close, or does the doc need a note? -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13573

[issue13616] Never ending loop in in update_refs Modules/gcmodule.c

2011-12-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Are you sure that the program is really stuck in the gc module? The loop you mention has to go through all objects of the process. It's possible that it allocated many objects, that one garbage collection takes a few seconds, and even

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: At line 237 of string.py: def convert_field(self, value, conversion): # do any conversion on the resulting object if conversion == 'r': return repr(value) elif conversion == 's': return

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - needs patch type: - behavior versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13579 ___

[issue13582] IDLE and pythonw.exe stderr problem

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13582 ___ ___ Python-bugs-list

[issue13583] sqlite3.Row doesn't support slice indexes

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +ghaering versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13583 ___ ___

[issue13573] csv.writer uses str() for floats instead of repr()

2011-12-16 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: The code is fixed. Am leaving this open until I have a chance to see if anything in the docs need to be updated. -- ___ Python tracker rep...@bugs.python.org

[issue13586] Replace selected not working/consistent with find

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: In 3.2 on Win 7, selected text *is* put in the 'find' field of Replace boxes, just as with Find boxes, just as it should be. So there is something specific either to 2.7 (which is unusual, since the code base in mostly the same, but possible)

[issue13586] IDLE: Replace selected not working/consistent with find

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: Replace selected not working/consistent with find - IDLE: Replace selected not working/consistent with find ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13586

[issue13587] Correcting the typos error in Doc/howto/urllib2.rst

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13587 ___

[issue13587] Correcting the typos error in Doc/howto/urllib2.rst

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Error is in 3.2 docs as well. 2.6/3.1 only get security patches. 3.4 is for future enhancements what will not even go into 3.3. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org

[issue13590] Prebuilt python-2.7.2 binaries for macosx can not compile c extensions

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13590 ___ ___ Python-bugs-list

[issue13592] repr(regex) doesn't include actual regex

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: but if #11957 is fixed, the result will look like re.Regex('abc', re.I|re.S) That is what I would like to see. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org

[issue13598] string.Formatter doesn't support empty curly braces {}

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13598 ___

[issue13607] Move generator specific sections out of ceval.

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13607 ___ ___ Python-bugs-list

[issue13607] Move generator specific sections out of ceval.

2011-12-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Seems mostly fine to me. -- assignee: - benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13607 ___

[issue13610] On Python parsing numbers.

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The proposal is to change the definition of numbers literals from X to one that is context-sensitive: X followed by whitespace or a syntactic symbol but not anything else, in particular, not by an identifier_start character. I am +-0 at the

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 3.2, Win7 (a narrow build) it indeed works and returns Element 'info' at 0x3389128 -- nosy: +terry.reedy versions: +Python 2.7 -3rd party, Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue13609] Add os.get_terminal_size() function

2011-12-16 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: Here's updated version: termsize.diff.1 Ok, a couple of general comments: - there is no point having a separate module for a single function; I think the os module (and posixmodule.c for the C side) is a reasonable place where to put this

[issue1294232] Error in metaclass search order

2011-12-16 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294232 ___ ___ Python-bugs-list

[issue13560] Add PyUnicode_DecodeLocale and PyUnicode_DecodeLocaleAndSize

2011-12-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: changeset: 74002:279b0aee0cfb user:Victor Stinner victor.stin...@haypocalc.com date:Fri Dec 16 23:56:01 2011 +0100 files: Doc/c-api/unicode.rst Include/unicodeobject.h Modules/_localemodule.c Modules/main.c

[issue13560] Add PyUnicode_DecodeLocale and PyUnicode_DecodeLocaleAndSize

2011-12-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 88198b93ff2f by Victor Stinner in branch 'default': Issue #13560: Add PyUnicode_EncodeLocale() http://hg.python.org/cpython/rev/88198b93ff2f New changeset 51412b4b81ae by Victor Stinner in branch 'default': Issue

[issue13617] Reject embedded null characters in wchar* strings

2011-12-16 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: The curses module (only since Python 3.3), locale.strcoll(), locale.strxfrm(), time.strftime() and imp.NullImporter() (only on Windows) accept embedded null characters, whereas they convert the Unicode string to a wide character

[issue13617] Reject embedded null characters in wchar* strings

2011-12-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: PyUnicode_AsWideCharString() documentation should also warn about this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13617

[issue13560] Add PyUnicode_DecodeLocale and PyUnicode_DecodeLocaleAndSize

2011-12-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 07802351ccad by Victor Stinner in branch 'default': Issue #13560: Locale codec functions use the classic errors parameter, http://hg.python.org/cpython/rev/07802351ccad --

[issue13618] bytes.deocde() UnicodeEncodeError on Apple iOS characters

2011-12-16 Thread Silverback Networks
New submission from Silverback Networks silverback...@gmail.com: I've searched high and low to find a way to make Python accept Apple's iOS characters, but it looks like Python is not supporting greater than 16-bit characters correctly. If you look at the leading character of each group, it's

[issue13618] bytes.decode() UnicodeEncodeError on Apple iOS (16-bit) characters

2011-12-16 Thread Silverback Networks
Changes by Silverback Networks silverback...@gmail.com: -- title: bytes.deocde() UnicodeEncodeError on Apple iOS characters - bytes.decode() UnicodeEncodeError on Apple iOS (16-bit) characters ___ Python tracker rep...@bugs.python.org

[issue13618] bytes.decode() UnicodeEncodeError on Apple iOS (16-bit) characters

2011-12-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13618 ___ ___

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

2011-12-16 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: To factorize the code and to fix encoding issues in the time module, I added functions to decode/encode from/to the locale encoding: PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize() and PyUnicode_EncodeLocale() (issue

[issue13560] Add PyUnicode_DecodeLocale and PyUnicode_DecodeLocaleAndSize

2011-12-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Ok, I think that the current code is good enough to close the issue. I opened a more global issue about the Python codec: #13619. -- resolution: - fixed status: open - closed ___ Python

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

2011-12-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- keywords: +patch Added file: http://bugs.python.org/file23985/locale_encoding.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13619

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

2011-12-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: # On FreeBSD, Solaris and Mac OS X, b'\xff' can be decoded in # the C locale. The C locale is something like ISO-8859-1, not # 7-bit ASCII. On FreeBSD, it *is* the ISO-8859-1 encoding. --

[issue13586] IDLE: Replace selected not working/consistent with find

2011-12-16 Thread Marco Scataglini
Marco Scataglini atlant...@gmx.com added the comment: Win 7 Pro 32bit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13586 ___ ___

[issue13618] bytes.decode() UnicodeEncodeError on Apple iOS (16-bit) characters

2011-12-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I tried to decode this with utf-8 and I got '...\U0001f384\U0001f385\U0001f381\U0001f384\U0001f385\U0001f381 if you haven#39;t checked this out yet please do. download APP TRAILERS and go to videos use promo code FREE4U and enjoy free