[issue13410] String formatting bug in interactive mode

2011-11-20 Thread Armin Rigo
Armin Rigo ar...@users.sourceforge.net 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)

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

2011-11-20 Thread Armin Rigo
Armin Rigo ar...@users.sourceforge.net 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 rep...@bugs.python.org

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

2011-11-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

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

2011-11-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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.

[issue13418] Embedded Python memory leak

2011-11-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

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

2011-11-20 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk oleg...@gmail.com: Removed file: http://bugs.python.org/file23678/test_aifc2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13394 ___

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

2011-11-20 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk oleg...@gmail.com 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

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

2011-11-20 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk oleg...@gmail.com: Removed file: http://bugs.python.org/file23677/test_aifc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13394 ___

[issue3430] httplib.HTTPResponse documentations inconsistent

2011-11-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3430 ___ ___ Python-bugs-list

[issue12707] Deprecate addinfourl getters

2011-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue13434] time.xmlrpc.com dead

2011-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

[issue13433] String format documentation contains error regarding %g

2011-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue13435] Copybutton does not hide tracebacks

2011-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue12890] cgitb displays p tags when executed in text mode

2011-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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. --

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

2011-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue10318] make altinstall installs many files with incorrect shebangs

2011-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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)

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

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

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

2011-11-20 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk oleg...@gmail.com: Removed file: http://bugs.python.org/file23733/test_aifc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13394 ___

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

2011-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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? --

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

2011-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue6983] Add specific get_platform() for freebsd

2011-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2011-11-20 Thread Oleg Plakhotnyuk
New submission from Oleg Plakhotnyuk oleg...@gmail.com: 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

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

2011-11-20 Thread Christopher Smith
New submission from Christopher Smith smi...@users.sourceforge.net: 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

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

2011-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2011-11-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2011-11-20 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es 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. --

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

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

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

2011-11-20 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net 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

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

2011-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

[issue13429] provide __file__ to extension init function

2011-11-20 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net 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,

[issue10318] make altinstall installs many files with incorrect shebangs

2011-11-20 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: +1 to c. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10318 ___ ___ Python-bugs-list mailing

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-11-20 Thread sbt
sbt shibt...@gmail.com 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

[issue12890] cgitb displays p tags when executed in text mode

2011-11-20 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net 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:

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

2011-11-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13437 ___ ___

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

2011-11-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13438 ___ ___ Python-bugs-list

[issue13402] Document absoluteness of sys.executable

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

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

2011-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

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

2011-11-20 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13436 ___ ___

[issue12277] Missing comma in os.walk docs

2011-11-20 Thread Boštjan Mejak
Changes by Boštjan Mejak bostjan.me...@gmail.com: -- status: closed - open versions: +Python 2.6 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12277 ___

[issue12277] Missing comma in os.walk docs

2011-11-20 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com 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 rep...@bugs.python.org

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

2011-11-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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:

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

2011-11-20 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: What's up with that now? Any interests in changing the imaginary unit from j to i ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562

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

2011-11-20 Thread Boštjan Mejak
Changes by Boštjan Mejak bostjan.me...@gmail.com: -- resolution: wont fix - remind status: closed - open versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10621

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

2011-11-20 Thread Boštjan Mejak
Changes by Boštjan Mejak bostjan.me...@gmail.com: -- versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10621 ___

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

2011-11-20 Thread Boštjan Mejak
Changes by Boštjan Mejak bostjan.me...@gmail.com: -- versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10621 ___ ___

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

2011-11-20 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue10562

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

2011-11-20 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com 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

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

2011-11-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- title: Pass context information into the extension module init function - Pass context information into the extension module init function ___ Python tracker

[issue13401] test_argparse fails with root permissions

2011-11-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue12242] distutils2 environment marker for current compiler

2011-11-20 Thread Eli Collins
Changes by Eli Collins e...@assurancetechnologies.com: Added file: http://bugs.python.org/file23740/4e67e7205aba.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12242 ___

[issue12242] distutils2 environment marker for current compiler

2011-11-20 Thread Eli Collins
Eli Collins e...@assurancetechnologies.com 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 rep...@bugs.python.org

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

2011-11-20 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

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

2011-11-20 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: 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.

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: 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]

[issue10318] make altinstall installs many files with incorrect shebangs

2011-11-20 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: +1 to 'c', but it should come with an update to PEP 8 to say don't do that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10318 ___

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2011-11-20 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13436 ___ ___ Python-bugs-list

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

2011-11-20 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: docs@python - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13436 ___ ___

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

2011-11-20 Thread Julian Berman
Julian Berman julian+python@grayvines.com 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

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

2011-11-20 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: 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

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

2011-11-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue looks as a duplicate of #6135. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13442 ___

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

2011-11-20 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

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

2011-11-20 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file23741/strxfrm.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13441 ___

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 -- ___

[issue13402] Document absoluteness of sys.executable

2011-11-20 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: LGTM -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13402 ___ ___

[issue13443] wrong links and examples in the functional HOWTO

2011-11-20 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: 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

[issue12277] Missing comma in os.walk docs

2011-11-20 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12277 ___ ___ Python-bugs-list

[issue12277] Missing comma in os.walk docs

2011-11-20 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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