[issue14927] add Do not supply int argument to random.shuffle docstring

2012-05-28 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +rhettinger title: add not about int to shuffle - add Do not supply int argument to random.shuffle docstring versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue14923] Even faster UTF-8 decoding

2012-05-28 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: It seems the patch relies on a two's complement representation of integers. Mark, do you think that's ok? (1) Relying on two's complement integers seems fine to me: we're already relying on it in other places in Python (e.g., bitwise

[issue14927] add Do not supply int argument to random.shuffle docstring

2012-05-28 Thread Christopher Smith
Christopher Smith smi...@users.sourceforge.net added the comment: nosy: +rhettinger title: add not about int to shuffle - add Do not supply int argument to random.shuffle docstring versions: +Python 2.7, Python 3.3 Thanks. I couldn't even figure out what my own subject meant! (I see

[issue14078] Add 'sourceline' property to xml.etree Elements

2012-05-28 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Hi Leon, Do you have an interest in pursuing this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14078 ___

[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object

2012-05-28 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I don't think this is an enhancement to ET, because ET was not designed to be a streaming parser, which is what is required here. ET was designed to read a whole valid XML document. There is 'iterparse', as Antoine mentioned, but it is

[issue12716] Reorganize os docs for files/dirs/fds

2012-05-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12716 ___ ___ Python-bugs-list

[issue14930] Make memoryview weakrefable

2012-05-28 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: New patch. -- Added file: http://bugs.python.org/file25742/memoryview-weakref.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14930

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2012-05-28 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: See also issue1767933. Instead of codecs.StreamWriter better to use io.TextIOWrapper, because the first is slower and has numerous flaws. -- nosy: +storchaka versions: +Python 3.3 ___ Python

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-05-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2005 ___ ___ Python-bugs-list

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-05-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2005 ___ ___

[issue14932] Python 3.3.0a3 build fails on MacOS 10.7 with XCode 4.3.2

2012-05-28 Thread Thomas Robitaille
New submission from Thomas Robitaille thomas.robitai...@gmail.com: I can build Python 2.6 to 3.2 on MacOS 10.7 with XCode 4.3.2 using solely: ./configure make But if I do this with Python 3.3 alpha 3 I get the following error: gcc -framework CoreFoundation -o python.exe

[issue14932] Python 3.3.0a3 build fails on MacOS 10.7 with XCode 4.3.2

2012-05-28 Thread Thomas Robitaille
Changes by Thomas Robitaille thomas.robitai...@gmail.com: -- type: - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14932 ___ ___

[issue13518] configparser can’t read file objects from urlopen

2012-05-28 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Mickey, you can wrap file-like object returned by urlopen with io.TextIOWrapper. config = configparser.RawConfigParser() config.read_file(io.TextIOWrapper(urlopen(path_config), encoding='utf-8')) Because there is no bug and new

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2012-05-28 Thread Walter Dörwald
Walter Dörwald wal...@livinglogic.de added the comment: An alternative would be to use an incremental encoder instead of a StreamWriter. (Which is what TextIOWrapper does internally). -- nosy: +doerwalter ___ Python tracker rep...@bugs.python.org

[issue4733] Add a decode to declared encoding version of urlopen to urllib

2012-05-28 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: If you add the encoding parameter, you should also add at least errors and newline parameters. And why not just use io.TextIOWrapper? page.decode_content() bad that compels to read and to decode at once all of the data, while

[issue14932] Python 3.3.0a3 build fails on MacOS 10.7 with XCode 4.3.2

2012-05-28 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Hello Thomas, I presume your gcc is Apple's llvm-gcc (gcc --version output starts with i686-apple-darwin11-llvm-gcc-4.2), which is unfortunately a known to miscompile Python 3.3. If you want to compile the latest Python 3.3 on OS X, use clang

[issue14930] Make memoryview weakrefable

2012-05-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: In the test, you should call gc.collect() so that it works on non-reference counted implementations. Also, I would call PyObject_ClearWeakRefs() after memory_release() and Py_CLEAR(self-mbuf), not before (in case a weakref callback relies on

[issue14932] Python 3.3.0a3 build fails on MacOS 10.7 with XCode 4.3.2

2012-05-28 Thread Thomas Robitaille
Thomas Robitaille thomas.robitai...@gmail.com added the comment: Thanks for the quick reply - wouldn't it make sense to add a directive to the configure script so that if the compiler matches 'i686-apple-darwin11-llvm-gcc-4.2', clang is used instead? --

[issue14703] Update PEP metaprocesses to describe PEP czar role

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

[issue14443] Distutils test_bdist_rpm failure

2012-05-28 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3d61e27cc570 by Nick Coghlan in branch '3.2': Issue #14443: Tell rpmbuild to use the correct version of Python http://hg.python.org/cpython/rev/3d61e27cc570 -- nosy: +python-dev

[issue14443] Distutils test_bdist_rpm failure

2012-05-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Applied to 3.2 and trunk (I forgot to mention the issue name in the merge commit message). I tweaked Ross's patch slightly to: 1. Use self.python rather than sys.executable 2. Also default self.python to python3 if neither --python nor

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-05-28 Thread Cory Zito
Cory Zito mtntr...@gmail.com added the comment: I hit this issue today with 2.7.3 (Solaris 9, Sun Studio 12). Adding Python/pymath.o to $(BUILDPYTHON) worked for me. Should a check in configure of is Solaris and no round should just go ahead and add this to $(BUILDPYTHON)? --

[issue11954] 3.3 - 'make test' fails

2012-05-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I'm not sure what platform this was on, but if it was a Fedora system then test_distutils should also be working as non-root now (see #14443) -- nosy: +ncoghlan ___ Python tracker

[issue877121] configure detects incorrect compiler optimization

2012-05-28 Thread Cory Zito
Changes by Cory Zito mtntr...@gmail.com: -- nosy: +CoryZ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue877121 ___ ___ Python-bugs-list mailing

[issue14930] Make memoryview weakrefable

2012-05-28 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: In the test, you should call gc.collect() so that it works on non- reference counted implementations. I did think about using gc.collect(), but I was not sure whether it was guaranteed to collect everything possible if you only call it

[issue14932] Python 3.3.0a3 build fails on MacOS 10.7 with XCode 4.3.2

2012-05-28 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Have a look at issue13241 which is dedicated to this problem, especially at msg160081. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14932

[issue14930] Make memoryview weakrefable

2012-05-28 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I did think about using gc.collect(), but I was not sure whether it was guaranteed to collect everything possible if you only call it only once. (I know nothing about garbage collectors.) You could use support.gc_collect() for

[issue14930] Make memoryview weakrefable

2012-05-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Doing it after Py_CLEAR(self-mbuf) seems to contradict http://docs.python.org/dev/extending/newtypes.html?highlight=pyobject_clearweakrefs#weak-reference-support which says The only further addition is that the destructor

[issue14933] Misleading documentation about weakrefs

2012-05-28 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: In http://docs.python.org/dev/extending/newtypes.html?highlight=pyobject_clearweakrefs#weak-reference-support, you can read: “The only further addition is that the destructor needs to call the weak reference manager to clear any weak

[issue14934] generator objects can clear their weakrefs before being resurrected

2012-05-28 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: In Objects/genobject.c, gen_dealloc() calls PyObject_ClearWeakRefs() before trying to finalize the generator, during which the generator object can be resurrected. This is probably a bug, since weakrefs are supposed to be cleared (and their

[issue14443] Distutils test_bdist_rpm failure

2012-05-28 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Unfortunately, it seems like it's still failing on the RHEL 6 buildbot. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14443

[issue14915] pysetup may leave a package in a half-installed state

2012-05-28 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: IIUC checking trove classifiers / requires-python or something else before installing may be a good idea, but this bug is about something else: a project can be half-installed. You could reproduce it with a Python 2 project with one file

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-28 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: So, do you have any comment or complain? Or can I commit the patch? Le 24 mai 2012 11:57, STINNER Victor rep...@bugs.python.org a écrit : STINNER Victor victor.stin...@gmail.com added the comment: For Python 3.3, _PyUnicodeWriter

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-05-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: This is just a suggestion, but the easiest way of getting good support for a non-mainstream platform is to provide a build slave: http://www.python.org/dev/buildbot/ Setting up a build slave takes 20 min:

[issue14915] pysetup3.3 install is case insensitive, remove is case sensitive

2012-05-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: My original report looks like a misdiagnosis. What appears to be happening is that pysetup3.3 install is case *insensitive* (thus allowing pysetup3.3 install distutils2, but pysetup3.3 remove is case *sensitive*, thus requiring pysetup3.3

[issue14443] Distutils test_bdist_rpm failure

2012-05-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Dave, sending this one back in your direction. Is there a relevant difference between rpmbuild in RHEL6 and rpmbuild in current Fedora? -- assignee: eric.araujo - dmalcolm ___ Python tracker

[issue14930] Make memoryview weakrefable

2012-05-28 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Updated patch. -- Added file: http://bugs.python.org/file25744/memoryview-weakref.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14930

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-28 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: So, do you have any comment or complain? Or can I commit the patch? I beg your pardon, I will do a review and additional benchmarks today. So far away I have to say, it is better to use stringlib approach, than the massive macros, which

[issue11954] 3.3 - 'make test' fails

2012-05-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I can confirm that test_distutils runs fine on Fedora both as root and as non-root (rpmbuild is installed). Also, I don't see any test failures when running the whole test suite as root. IMO this means that all remaining issues in this

[issue14935] PEP 341 Refactoring applied to _csv module

2012-05-28 Thread Robin Schreiber
New submission from Robin Schreiber robin.schrei...@me.com: Corresponding to my previous Issue #14732 I have now applied the Heap-Type Refactoring from PEP 341 to the _csv module. As I will apply this refactoring for almost every Standard Module, I will bundle my PEP3121 and PEP341

[issue14935] PEP 341 Refactoring applied to _csv module

2012-05-28 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14935 ___ ___

[issue14935] PEP 384 Refactoring applied to _csv module

2012-05-28 Thread Robin Schreiber
Robin Schreiber robin.schrei...@me.com added the comment: I was of course referring to PEP 384. Sorry for the inconvenience. -- title: PEP 341 Refactoring applied to _csv module - PEP 384 Refactoring applied to _csv module ___ Python tracker

[issue14936] PEP 3121, 384 refactoring applied to curses_panel module

2012-05-28 Thread Robin Schreiber
New submission from Robin Schreiber robin.schrei...@me.com: I have now applied the Heap-Type Refactoring from PEP 384 to the curses_panel module. Currently I still provide seperate patches for the PEP 3121 and PEP 384 refactoring. As mentioned in Issue #14935 I am planning to release single

[issue14936] PEP 3121, 384 refactoring applied to curses_panel module

2012-05-28 Thread Robin Schreiber
Changes by Robin Schreiber robin.schrei...@me.com: Added file: http://bugs.python.org/file25747/curses_panel_pep3121.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14936 ___

[issue14936] PEP 3121, 384 refactoring applied to curses_panel module

2012-05-28 Thread Robin Schreiber
Robin Schreiber robin.schrei...@me.com added the comment: I have now also added the PEP3121 patch for the curses_panel module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14936 ___

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2012-05-28 Thread Francisco Gracia
New submission from Francisco Gracia fgragu...@gmail.com: I find specially nice the completion feature for filenames of IDLE when they include long paths, something that is more mand more frequent with big disks and infinite amounts of files. But there is a small problem with it. If the name

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2012-05-28 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Would you like to contribute a patch? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14937 ___

[issue14930] Make memoryview weakrefable

2012-05-28 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/issue14930 ___ ___ Python-bugs-list mailing list

[issue14930] Make memoryview weakrefable

2012-05-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Updated patch. Looks good to me! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14930 ___ ___

[issue975330] Inconsistent newline handling in email module

2012-05-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I almost applied this patch, but my gut is having second thoughts about it. I don't think this is the correct solution. The correct solution would be to delay the encoding of the body part until the message generation phase, and use

[issue14938] 'import my_pkg.__init__' creates duplicate modules

2012-05-28 Thread Ronan Lamy
New submission from Ronan Lamy ronan.l...@gmail.com: If an __init__.py file contains relative imports, doing 'import my_pkg.__init__' or calling __import__('my_pkg.__init__') creates duplicate versions of the relatively imported modules, which (I believe) causes cryptic errors in some cases

[issue14938] 'import my_pkg.__init__' creates duplicate modules

2012-05-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14938 ___ ___

[issue14938] 'import my_pkg.__init__' creates duplicate modules

2012-05-28 Thread Aaron Meurer
Changes by Aaron Meurer asmeu...@gmail.com: -- nosy: +Aaron.Meurer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14938 ___ ___ Python-bugs-list

[issue11050] email.utils.getaddresses behavior contradicts RFC2822

2012-05-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The pre 3.3 email package does not do any header unfolding. You can make this work by doing the header unfolding before passing it to getaddresses: email.utils.getaddresses([''.join(m['to'].splitlines())]) [('A (B)', 'c...@d.org'),

[issue9041] raised exception is misleading

2012-05-28 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8a65eceea56c by Meador Inge in branch '2.7': Issue #9041: raised exception is misleading http://hg.python.org/cpython/rev/8a65eceea56c New changeset a2e140b083e0 by Meador Inge in branch '3.2': Issue #9041: raised

[issue9041] raised exception is misleading

2012-05-28 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9041 ___

[issue14928] Fix importlib bootstrapping issues

2012-05-28 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14928 ___ ___ Python-bugs-list

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-28 Thread Tim Silk
Tim Silk sil...@googlemail.com added the comment: Thank you for doing this! No problem. I've been thinking about getting involved with python development for a while - this seemed a good place to start! Do you have a real name so that I can credit you? Yes (thankfully) - I've added it to

[issue1079] decode_header does not follow RFC 2047

2012-05-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ralf, thanks very much for this patch. I'm considering applying it. Given that the current code breaks on parsing various legitimate constructs, it seems like the behavior change (preserving whitespace in the non-EW parts...which IMO

[issue13700] imaplib.IMAP4.authenticate authobject does not work correctly in python3

2012-05-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- components: +email -Library (Lib) nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13700 ___

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-05-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- components: +email -Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14360 ___ ___

[issue10839] email module should not allow some header field repetitions

2012-05-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- components: +email -Library (Lib) nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10839 ___

[issue12037] test_email failures under Windows with the eol extension activated

2012-05-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: r.david.murray - components: +email nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12037 ___

[issue11783] email parseaddr and formataddr should be IDNA aware

2012-05-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- components: +email -Library (Lib) nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11783 ___

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-28 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 47e6217d0e84 by Antoine Pitrou in branch '3.2': Issue #14775: Fix a potential quadratic dict build-up due to the garbage collector repeatedly trying to untrack dicts. http://hg.python.org/cpython/rev/47e6217d0e84

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: No problem. I've been thinking about getting involved with python development for a while - this seemed a good place to start! It is. You can also subscribe to the core-mentorship mailing-list if you want:

[issue14930] Make memoryview weakrefable

2012-05-28 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bc0281f85409 by Richard Oudkerk in branch 'default': Issue #14930: Make memoryview objects weakrefable. http://hg.python.org/cpython/rev/bc0281f85409 -- nosy: +python-dev

[issue11783] email parseaddr and formataddr should be IDNA aware

2012-05-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm finally getting back around to this. Torsten, could you submit a contributor agreement, please? (http://www.python.org/psf/contrib/) And to answer the question you had about the 'still failing' test, parseaddr isn't currently

[issue11783] email parseaddr and formataddr should be IDNA aware

2012-05-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: r.david.murray - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11783 ___ ___

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2012-05-28 Thread Francisco Gracia
Francisco Gracia fgragu...@gmail.com added the comment: I would be delighted, but unfortunately I am a very poor programmer and do not have the slightest idea of how all this works. -- ___ Python tracker rep...@bugs.python.org

[issue14920] help(urllib.parse) fails when LANG=C

2012-05-28 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14920 ___ ___ Python-bugs-list

[issue14938] 'import my_pkg.__init__' creates duplicate modules

2012-05-28 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: You can't have it both ways. If you explicitly import __init__ then it becomes just another module to Python, but you still need the implicit package module (i.e. without the __init__ name) for everything else to work since so much of the

[issue14938] 'import my_pkg.__init__' creates duplicate modules

2012-05-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14938 ___

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-28 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: So far away I have to say, it is better to use stringlib approach, than the massive macros, which are more difficult to read and edit. Ah, you don't like the two macros in longobject.c. Functions to write digits into a string may be

[issue10839] email module should not allow some header field repetitions

2012-05-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: My original fix for this for email6 got lost in a refactoring. Here is a patch that fixes it in the code I recently checked in. It may not cover all the headers that should be unique, since I haven't implemented parsers for all

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2012-05-28 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: The open_completions method in AutoComplete.py is where the bug exists. When mode == COMPLETE_FILES, the code searches for characters within the ASCII set, plus a few others contained in FILENAME_CHARS. Attached is a patch to also include

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-28 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I just sent you a patch which does not use any macros or stringlib. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14744 ___

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-28 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Functions to write digits into a string may be appropriate in the stringlib. Oh, stringlib is specific to unicodeobject.c: it cannot be used outside. -- ___ Python tracker

[issue14939] Usage documentation for pyvenv

2012-05-28 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: Command line documentation for pyvenv must be provided under http://docs.python.org/dev/using/index.html before 3.3 is released. -- assignee: docs@python components: Documentation messages: 161815 nosy: docs@python, ncoghlan,

[issue14940] Usage documentation for pysetup

2012-05-28 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: Command line documentation for pysetup must be provided under http://docs.python.org/dev/using/index.html before 3.3 is released. -- messages: 161816 nosy: eric.araujo, ncoghlan, tarek priority: deferred blocker severity: normal

[issue14941] Using Python on Windows end user docs are out of date

2012-05-28 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: The following docs should be updated based on the automatic PATH manipulation in the updated installer: http://docs.python.org/dev/using/windows.html#using-python-on-windows The section on script execution should also mention the -m switch

[issue14941] Using Python on Windows end user docs are out of date

2012-05-28 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: #14668 -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14941 ___

[issue14941] Using Python on Windows end user docs are out of date

2012-05-28 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- superseder: - Document the path option in the Windows installer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14941 ___

[issue14668] Document the path option in the Windows installer

2012-05-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: See #14941 for a couple of other issues I noticed with the current Windows docs (specifically, -m means finding the stdlib location could probably be de-emphasised and the docs on compiling should be replaced with a reference to the devguide)

[issue14942] add PyType_New()

2012-05-28 Thread Eric Snow
New submission from Eric Snow ericsnowcurren...@gmail.com: Nick Coghlan suggested[1] exploring an easier spelling for type(name, (), {}) in the C API. I've attached a patch that adds a function that does so: _PyType_New(). It's private in the patch, but only because I am reticent to expand

[issue14942] add PyType_New()

2012-05-28 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- components: +Interpreter Core type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14942 ___

[issue14940] Usage documentation for pysetup

2012-05-28 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I agree the doc needs work (I have a patch in progress), but don’t think it should be in “Python Setup and Usage” any more than pydoc or 2to3 or -m unittest, so suggest this be closed in favor of #12779. --

[issue14943] winreg OpenKey doesn't work as documented

2012-05-28 Thread Glenn Linderman
New submission from Glenn Linderman v+pyt...@g.nevcal.com: My first time to use winreg and I am sure that some of this report is documentation, but depending on behavior in other versions, maybe it is a regression in code as well, but I doubt it. I'm reading the 3.3 documentation, but using

[issue12932] dircmp does not allow non-shallow comparisons

2012-05-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Lennart, I saw your response on StackOverflow ;-). -- nosy: +terry.reedy resolution: out of date - stage: committed/rejected - test needed status: closed - open versions: +Python 3.3 -Python 2.6, Python 2.7

[issue14939] Usage documentation for pyvenv

2012-05-28 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I would document it in library/venv, just like other tools are documented in the relevant module docs. I’m nonetheless +1 to listing all scripts installed by Python in the Setup and Usage docs, with links. -- nosy: +eric.araujo

[issue14895] test_warnings.py EnvironmentVariableTests is a bad test

2012-05-28 Thread Frank Wierzbicki
Changes by Frank Wierzbicki fwierzbi...@gmail.com: -- nosy: +fwierzbicki ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14895 ___ ___

[issue14938] 'import my_pkg.__init__' creates duplicate modules

2012-05-28 Thread Ronan Lamy
Ronan Lamy ronan.l...@gmail.com added the comment: my_pkg.__init__ isn't treated as just another module but as a package. That is the reason why the bogus my_pkg.__init__.module1 is created, I guess: import sys sorted(name for name in sys.modules if name.startswith('my_')) [] import

[issue14938] 'import my_pkg.__init__' creates duplicate modules

2012-05-28 Thread Ronan Lamy
Ronan Lamy ronan.l...@gmail.com added the comment: Grmf. I didn't mean to change the status. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14938

[issue14939] Usage documentation for pyvenv

2012-05-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: No, we need to start using the Setup Usage docs *more*, not less. All tools with useful command line behaviour (especially those that are directly installed as scripts) should eventually be documented here. The fact this has historically

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I am reopening just as a reminder to revise the comment. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12510 ___

[issue14942] add PyType_New()

2012-05-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: See my reply on #14939. We need to start getting command line usage information *out* of the standard library reference and documenting it here. -- nosy: +ncoghlan ___ Python tracker

[issue14942] add PyType_New()

2012-05-28 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- Removed message: http://bugs.python.org/msg161829 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14942 ___

[issue14940] Usage documentation for pysetup

2012-05-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: See my reply on #14939. We need to start getting command line usage information *out* of the standard library reference and documenting it here. -- ___ Python tracker rep...@bugs.python.org

[issue14944] Setup Usage documentation for pydoc

2012-05-28 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: pydoc is installed as a script by Python. It should be documented under http://docs.python.org/dev/using/index.html. -- assignee: docs@python components: Documentation messages: 161831 nosy: docs@python, ncoghlan priority: normal

[issue14945] Setup Usage documentation for selected stdlib modules

2012-05-28 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: Some stdlib modules have officially documented and supported behaviour when executed via -m. These should be referenced from the Setup Usage documentation at http://docs.python.org/dev/using/index.html Current candidates: python -m

  1   2   >