[issue12277] Missing comma in os.walk docs

2011-11-20 Thread Petri Lehtinen
Petri Lehtinen added the comment: > Please fix Python 2.6 branch of docs as well. Thanks. 2.6 only receives security fixes any more. -- versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker

[issue12277] Missing comma in os.walk docs

2011-11-20 Thread Georg Brandl
Changes by Georg Brandl : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13443] wrong links and examples in the functional HOWTO

2011-11-20 Thread Eli Bendersky
New submission from Eli Bendersky : Michał Chałupczak reported in this docs@ list that the links to IBM developerworks articles are wrong. >From some additional observation, the code samples on the 3.x page use the >external `functional` module, which was not ported to Python 3 at all. I wond

[issue13402] Document absoluteness of sys.executable

2011-11-20 Thread Eli Bendersky
Eli Bendersky added the comment: LGTM -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 78123afb3ea4 by Victor Stinner in branch 'default': Issue #13441: Disable temporary localeconv() tests on Solaris http://hg.python.org/cpython/rev/78123afb3ea4 -- ___ Python tracker

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file23741/strxfrm.c ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread STINNER Victor
STINNER Victor added the comment: > strxfrm(buffer, "a\0", 100) returns 21 (bytes) but only 2 bytes > are written ("\x01\x00"). The next bytes are unchanged. Woops, it was a bug in my program. I attached the fixed version. The correct program writes: strxfrm: len=21 0x01 0x01 0x63 0x01 0x

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread STINNER Victor
STINNER Victor added the comment: > Is Python supposed to support characters outside U+-U+10 range? If not, PyUnicode_FromUnicode(), PyUnicode_FromWideChar() and PyUnicode_FromKindAndData() should be patched to raise an error if a bigger character is encountered. --

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2011-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: I discovered this same problem recently when updating the subprocess docs, and also in working on the improved shell invocation support I am proposing for 3.3 (#13238). I initially posted an earlier variant this suggestion as a new issue (#13442), but Victor r

[issue13442] Better support for pipe I/O encoding in subprocess

2011-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: Indeed, I'll add my suggestions over there. -- assignee: docs@python -> resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> subprocess seems to use local 8-bit encoding and gives no choice __

[issue13442] Better support for pipe I/O encoding in subprocess

2011-11-20 Thread STINNER Victor
STINNER Victor added the comment: This issue looks as a duplicate of #6135. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-li

[issue13442] Better support for pipe I/O encoding in subprocess

2011-11-20 Thread Nick Coghlan
New submission from Nick Coghlan : Currently, pipes in the subprocess module work strictly with bytes I/O, *unless* you set "universal newlines=True". In that case, it assumes an output encoding of UTF-8 for stdout and stderr and applies universal newlines process. When stdin/out/err are remap

[issue13437] Provide links to the source code for every module in the documentation

2011-11-20 Thread Julian Berman
Julian Berman added the comment: Here's first a quick list from one pass over the docs. I've attempted to limit myself to a few like you've suggested, though I'll wait for confirmation that Raymond is not willing to simply add them to everything once we're at it :). http://docs.python.org/lib

[issue13436] compile() doesn't work on ImportFrom with level=None

2011-11-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: docs@python -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue13436] compile() doesn't work on ImportFrom with level=None

2011-11-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 31baf1363ba1 by Victor Stinner in branch 'default': Issue #13441: Disable temporary strxfrm() tests on Solaris http://hg.python.org/cpython/rev/31baf1363ba1 -- nosy: +python-dev ___ Python tracker

[issue10318] "make altinstall" installs many files with incorrect shebangs

2011-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: +1 to 'c', but it should come with an update to PEP 8 to say "don't do that". -- ___ Python tracker ___ _

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread STINNER Victor
New submission from STINNER Victor : I added a test in _PyUnicode_CheckConsistency() (in debug mode) to ensure that all characters of a string are in the range U+-U+10. Locale tests are now failing on Solaris: --- [ 28/361] test__locale Assertion failed:

[issue13440] Explain the "status quo wins a stalemate" principle in the devguide

2011-11-20 Thread Nick Coghlan
New submission from Nick Coghlan : I've linked http://www.boredomandlaziness.org/2011/02/status-quo-wins-stalemate.html in response to enough tracker issues and python-ideas threads now, that I'm convinced it (or at least something along those lines) belongs in the devguide. It wouldn't hurt

[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: While this thread was amusing to read, *changing* Python from the engineering notation to mathematical notation for imaginary numbers is not going to happen. 'i' has ambiguity problems relative to '1' and 'l' in too many fonts - 'j', on the other hand, almost a

[issue12242] distutils2 environment marker for current compiler

2011-11-20 Thread Eli Collins
Eli Collins added the comment: Attached is a sixth revision (4e67e7205aba.diff) of my patch. This revision makes a couple of minor changes requested by Éric Araujo. -- ___ Python tracker _

[issue12242] distutils2 environment marker for current compiler

2011-11-20 Thread Eli Collins
Changes by Eli Collins : Added file: http://bugs.python.org/file23740/4e67e7205aba.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13401] test_argparse fails with root permissions

2011-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset ba3da86d1c5d by Victor Stinner in branch '3.2': Close #13401: Skip TestFileTypeW of test_argparse if the current user is root http://hg.python.org/cpython/rev/ba3da86d1c5d New changeset 50e788691eda by Victor Stinner in branch 'default': (Merge 3.2

[issue13431] Pass context information into the extension module init function

2011-11-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- title: Pass context information into the extension module init function -> Pass context information into the extension module init function ___ Python tracker _

[issue10621] >>> 1 + 2j --> (1 + 2j) and not (1+2j)

2011-11-20 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not sure why this is being reopened. Unless there's been a discussion I'm not aware of, the change is still not worth the disruption it would cause. And in any event, it can only be addressed in new (as yet unreleased) versions of python. It would never be

[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-20 Thread Boštjan Mejak
Boštjan Mejak added the comment: Come on, let's do this. -- resolution: wont fix -> remind status: closed -> open versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ __

[issue10621] >>> 1 + 2j --> (1 + 2j) and not (1+2j)

2011-11-20 Thread Boštjan Mejak
Changes by Boštjan Mejak : -- versions: +Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10621] >>> 1 + 2j --> (1 + 2j) and not (1+2j)

2011-11-20 Thread Boštjan Mejak
Changes by Boštjan Mejak : -- versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 3.3 ___ Python tracker ___ ___ Python-

[issue10621] >>> 1 + 2j --> (1 + 2j) and not (1+2j)

2011-11-20 Thread Boštjan Mejak
Changes by Boštjan Mejak : -- resolution: wont fix -> remind status: closed -> open versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ _

[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-20 Thread Boštjan Mejak
Boštjan Mejak added the comment: What's up with that now? Any interests in changing the imaginary unit from "j" to "i" ? -- ___ Python tracker ___ _

[issue13431] Pass context information into the extension module init function

2011-11-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Python interpreter already have that information internally. The > initial proposal was to pass it to the init as an additional > parameter. My suggestion is to export it as a new function that the > init can call if VERSION >=3.3. Jesus: Please try to come

[issue12277] Missing comma in os.walk docs

2011-11-20 Thread Boštjan Mejak
Boštjan Mejak added the comment: http://docs.python.org/release/2.6.7/library/os.html?highlight=os.walk#os.walk Please fix Python 2.6 branch of docs as well. Thanks. -- ___ Python tracker

[issue12277] Missing comma in os.walk docs

2011-11-20 Thread Boštjan Mejak
Changes by Boštjan Mejak : -- status: closed -> open versions: +Python 2.6 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___

[issue13436] compile() doesn't work on ImportFrom with level=None

2011-11-20 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue13436] compile() doesn't work on ImportFrom with level=None

2011-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Here is a patch for the bad error message (PyBytes_AS_BYTES after PyObject_Repr, bah) -- keywords: +patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file23739/issue13436.patch ___ Python trac

[issue13402] Document absoluteness of sys.executable

2011-11-20 Thread Petri Lehtinen
Petri Lehtinen added the comment: Attached a patch. -- keywords: +patch Added file: http://bugs.python.org/file23738/issue13402.patch ___ Python tracker ___

[issue13438] "Delete patch set" review action doesn't work

2011-11-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13437] Provide links to the source code for every module in the documentation

2011-11-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12890] cgitb displays tags when executed in text mode

2011-11-20 Thread Jeff McNeil
Jeff McNeil added the comment: Added everything to one file. Updated tests to also include a logdir argument as that is required to trigger the original bug. Weeded out a spurious write that occurred when format was set to text. -- Added file: http://bugs.python.org/file23737/head-cg

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-11-20 Thread sbt
sbt added the comment: Here is an updated patch (pipe_poll_fix.patch) which should be applied on top of sigint_event.patch. It fixes the problems with PipeConnection.poll() and Queue.empty() and makes PipeListener.accept() use overlapped I/O. This should make all the pipe releated blocking

[issue10318] "make altinstall" installs many files with incorrect shebangs

2011-11-20 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: +1 to "c". -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13429] provide __file__ to extension init function

2011-11-20 Thread Stefan Behnel
Stefan Behnel added the comment: As MvL noted in his response to issue 13431, simply adding a parameter to the module init function cannot safely be done before Python 4. So we are back to the idea of passing the information through to the module creation function, i.e. this very issue. A va

[issue3824] test_tarfile fails on cygwin (unicode decode error)

2011-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: grp.getgrgid() now calls .decode('utf8', errors="surrogateescape"). Even if cygwin does not correctly copy strings from the Windows registry, tarinfo.gname should now contain a string that will at least round trip and give the same value on disk. Ocean-c

[issue13431] Pass context information into the extension module init function

2011-11-20 Thread Stefan Behnel
Stefan Behnel added the comment: The problem with having that information "internally" is that it's currently stored in local variables in the call chain from the dynamic library loader. Passing that information on into a callable function, without passing it as an argument into the init func

[issue13387] suggest assertIs(type(obj), cls) for exact type checking

2011-11-20 Thread Ezio Melotti
Ezio Melotti added the comment: Is "To check for the exact type, use :func:`assertIs(type(obj), cls) `." better? I think the problem this solves is clear enough even without mentioning sub/superclasses. -- ___ Python tracker

[issue13431] Pass context information into the extension module init function

2011-11-20 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Python interpreter already have that information internally. The initial proposal was to pass it to the init as an additional parameter. My suggestion is to export it as a new function that the init can call if VERSION >=3.3. --

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-11-20 Thread Éric Araujo
Éric Araujo added the comment: Advice from Ezio Melotti: > I would keep the flags even if you don't need them > someone in the present or in the future might need them, and having them > doesn't harm -- ___ Python tracker

[issue12703] Improve error reporting for packaging.util.resolve_name

2011-11-20 Thread Éric Araujo
Éric Araujo added the comment: I’ve found a way to make sure error messages always bubble up *and* clean up the ugly code in resolve_name, but it’s a rather drastic one. The idea is to restrict the function to work only with names defined at the module level, not arbitrarily nested names. T

[issue13439] turtle docstring for onkeyrelease references onkey, not onkeyrelease

2011-11-20 Thread Christopher Smith
New submission from Christopher Smith : The docstring example is written using onkey instead of onkeyrelease. -- components: Library (Lib) messages: 147995 nosy: smichr priority: normal severity: normal status: open title: turtle docstring for onkeyrelease references onkey, not onkeyrele

[issue13438] "Delete patch set" review action doesn't work

2011-11-20 Thread Oleg Plakhotnyuk
New submission from Oleg Plakhotnyuk : I got following error when trying to delete outdated patch set: Environment: Request Method: POST Request URL: http://bugs.python.org/review/13394/patchset/3680/delete Django Version: 1.1.1 SVN-17047 Python Version: 2.5.2 Installed Applications: ['django.

[issue6983] Add specific get_platform() for freebsd

2011-11-20 Thread Éric Araujo
Éric Araujo added the comment: > This is still a bothersome issue, but we've taken to patching every version > of python > downstream before deploying them. All for a simple three line patch. Sorry about the unsatisfactory situation. Could we start anew and define exactly what the problem is

[issue11045] shutil._make_tarball misses a guard against loggger=None

2011-11-20 Thread Éric Araujo
Éric Araujo added the comment: This was fixed in 615a29295d5f. -- resolution: accepted -> fixed stage: needs patch -> committed/rejected status: open -> closed title: shutil._make_tarball -> shutil._make_tarball misses a guard against loggger=None _

[issue13387] suggest assertIs(type(obj), cls) for exact type checking

2011-11-20 Thread Éric Araujo
Éric Araujo added the comment: No, I’m not talking about a rephrasing, but on a full change of meaning. I don’t understand your use of “superclasses” at all; isinstance(x, T) checks if x is an instance of T or any subclass, am I wrong? -- ___ Pyth

[issue13394] Patch to increase aifc lib test coverage with couple of minor fixes

2011-11-20 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Removed file: http://bugs.python.org/file23733/test_aifc.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue13394] Patch to increase aifc lib test coverage with couple of minor fixes

2011-11-20 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk added the comment: Minor style fixes -- Added file: http://bugs.python.org/file23734/test_aifc.patch ___ Python tracker ___

[issue10318] "make altinstall" installs many files with incorrect shebangs

2011-11-20 Thread Éric Araujo
Éric Araujo added the comment: The patches I’ve discussed and committed were actually peripheral. The original bug reported here is that shebangs shouldn’t use “/usr/bin/env python” with an altinstall installation, as in that case you’re not creating a python (or python3) binary but a python

[issue13437] Provide links to the source code for every module in the documentation

2011-11-20 Thread Éric Araujo
Éric Araujo added the comment: Hi Julian, thanks for your interest in improving Python and welcome! It is Raymond who initially added these links, and I helped porting them between versions. The criterion can be read in the commit message: “Provide links to Python source in a handful of cas

[issue12890] cgitb displays tags when executed in text mode

2011-11-20 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the updated patch. I made a review, you should have received an email. When you make a new patch, it would be most helpful if you could make one patch with code and tests changes, and then we’ll remove the old versions. -- nosy: +eric.araujo

[issue13435] Copybutton does not hide tracebacks

2011-11-20 Thread Éric Araujo
Éric Araujo added the comment: Another way to fix this would be to use Sphinx 1.0 for Python 2.7, but I don’t know what’s the status of that, given the amount of changes needed. -- nosy: +eric.araujo, sandro.tosi ___ Python tracker

[issue13433] String format documentation contains error regarding %g

2011-11-20 Thread Éric Araujo
Éric Araujo added the comment: I agree with Mark. The Documenting Python docs were recently updated by Raymond Hettinger to recommend not abusing notes and warnings, and the doc maintainer Georg Brandl approved it: d5d91b14b238 (#12047). -- nosy: +eric.araujo ___

[issue13434] time.xmlrpc.com dead

2011-11-20 Thread Éric Araujo
Éric Araujo added the comment: #6533: Make test_xmlrpc_net functional in the absence of time.xmlrpc.com #6027: test_xmlrpc_net fails when the ISP returns "302 Found" -- nosy: +eric.araujo ___ Python tracker __

[issue12707] Deprecate addinfourl getters

2011-11-20 Thread Éric Araujo
Éric Araujo added the comment: > I thought about having another class, but I couldn't come up with a > decent name for it (ResponseWithCloseHook?). If it’s used together with the base Response class (I don’t have the details in memory anymore), you could try ClosingMixin or FileLikeMixin. ---

[issue3430] httplib.HTTPResponse documentations inconsistent

2011-11-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue13394] Patch to increase aifc lib test coverage with couple of minor fixes

2011-11-20 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Removed file: http://bugs.python.org/file23677/test_aifc.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue13394] Patch to increase aifc lib test coverage with couple of minor fixes

2011-11-20 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk added the comment: 1. Test coverage increased to 95%. 2. G722 compressed files reading in aifc.py fixed (it used to use 0 bytes frame size). 3. audioop's ulaw2lin, alaw2lin and adpcm2lin length checks fixed (width should be used for output only, because input sequence frame le

[issue13394] Patch to increase aifc lib test coverage with couple of minor fixes

2011-11-20 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Removed file: http://bugs.python.org/file23678/test_aifc2.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue13418] Embedded Python memory leak

2011-11-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: If you *really* want to solve this problem, you could start working on making Python release all memory at interpreter shutdown. Please understand that this project may well take several years to complete, but it would help not only your project, but also ma

[issue13416] Python Tutorial, Section 3, Minor PEP 8 adjustment

2011-11-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Indeed, PEP 8 mandates that constants be written in all uppercase, so changing it would actually make it deviate from PEP 8. Also, using a lower-case variable name "string" would be a bad choice because it collides with a module name. -- nosy: +loewi

[issue13431] Pass context information into the extension module init function

2011-11-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: > What about providing a function that "init" would call to get this > information, instead of a "hidden" parameter?. How would the function that init calls itself get the information, without a hidden parameter? -- title: Pass context information in

[issue13412] Symbolic links omitted by os.listdir on some systems

2011-11-20 Thread Armin Rigo
Armin Rigo added the comment: I think this can then be considered a duplicate of issue #6727. -- nosy: +arigo resolution: wont fix -> duplicate status: -> closed ___ Python tracker ___

[issue13410] String formatting bug in interactive mode

2011-11-20 Thread Armin Rigo
Armin Rigo added the comment: Fwiw, a class with methods __long__ and __float__ but no method __int__ behaves strangely in many other places; the canonical example is that calling "int(Foo(42))" will not work. In light of this, does it make sense for "'%d' % Foo(42)" to work? Shouldn't the