[issue22669] Test_venv fails when _ctypes is not available.

2014-10-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think this was improperly closed. #22611 was about pip. This one is about test_venv failing today, 8 days after 22611 was closed, when optional module _ctypes is not built. The resolution of this issue should be that either the buildbots start using the

[issue22669] Test_venv fails when _ctypes is not available.

2014-10-19 Thread Ned Deily
Ned Deily added the comment: Issue22611 documents exactly the same failure so if this issue was improperly closed than Issue22611 was, too. So I would think the earlier issue would be the place to discuss this. But, in any case, I think the issue is that the latest version of pip hasn't

[issue22669] Test_venv fails when _ctypes is not available.

2014-10-19 Thread Donald Stufft
Donald Stufft added the comment: It hasn't been released yet, test_venv could be temp disabled if ctypes isn't available though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22669 ___

[issue22669] Test_venv fails when _ctypes is not available.

2014-10-19 Thread Ned Deily
Ned Deily added the comment: As I understand it, the reason test_venv is failing is because of a defect in the pip vendored colorama. The test has found the unexpected dependency of the vendored package with ctypes. It's good that the test failed. The right solution is to provide the

[issue22669] Test_venv fails when _ctypes is not available.

2014-10-19 Thread Donald Stufft
Donald Stufft added the comment: More or less. You could argue whether it's a defect or not but it unconditionally imports ctypes and apparently that is an optional module (I had no idea it was personally, and I can't find any documentation to say that it is). colorama doesn't really *need*

[issue22642] trace module: unclear error message

2014-10-19 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch. -- keywords: +patch nosy: +vajrasky Added file: http://bugs.python.org/file36967/better_err_listfuncs_trace.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22642

[issue22670] wrong site-package installation even if correct libdir passed

2014-10-19 Thread Samuel
New submission from Samuel: Today I compile try Python 3.4.2 on slackware-current in this way ./configure \ --prefix=/usr \ --libdir=/usr/lib64 \ --mandir=/usr/man \ --with-threads \ --enable-ipv6 \ --enable-shared \ make \ LIBDIR=/usr/lib64 \ SCRIPTDIR=/usr/lib64 make install

[issue22670] wrong site-package installation even if correct libdir passed

2014-10-19 Thread Georg Brandl
Georg Brandl added the comment: It seems that you should give SCRIPTDIR=/usr/lib64 to the make install step, not the make step. Are you sure the slackbuild instructions are missing that? -- nosy: +georg.brandl resolution: - third party status: open - closed

[issue22671] Typo in class io.BufferedIOBase docs

2014-10-19 Thread gigaplastik
New submission from gigaplastik: The online documentation for class io.BufferedIOBase states the following: Besides, the read() method does not have a default implementation that defers to readinto(). According to the documentation for class io.RawIOBase (which the statement compares with)

[issue22670] wrong site-package installation even if correct libdir passed

2014-10-19 Thread Samuel
Samuel added the comment: I use an old slackbuild, with new http://slackbuilds.org/slackbuilds/14.1/python/python3/python3.SlackBuild wich have patch file which correct the lib64 path installation work fine -- ___ Python tracker

[issue22663] patchcheck alters content of .png files

2014-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3fa5d6a4bf78 by Georg Brandl in branch '3.4': Closes #22663: patchcheck: only modify text files under Doc/ https://hg.python.org/cpython/rev/3fa5d6a4bf78 -- nosy: +python-dev resolution: - fixed stage: - resolved status: open - closed

[issue22663] patchcheck alters content of .png files

2014-10-19 Thread Georg Brandl
Georg Brandl added the comment: What's actually curious is Getting the list of files that have been added/changed ... 448 files. What does hg status say? Why are there 448 changed files? This is of course still a bug in patchcheck.py, it shouldn't touch non-RST files. --

[issue22663] patchcheck alters content of .png files

2014-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4d53b34dd493 by Georg Brandl in branch '2.7': Closes #22663: patchcheck: only modify text files under Doc/ https://hg.python.org/cpython/rev/4d53b34dd493 -- ___ Python tracker rep...@bugs.python.org

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2014-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: First of all, sorry about the slow response. Vinay: I don't quite understand why you use __PYVENV_LAUNCHER__: When I create a pyvenv using python 3.3 (with a oldish build from the 3.3 branch) sys.executable point to a binary in the venv without mucking with

[issue11820] idle3 shell os.system swallows shell command output

2014-10-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Roger for your suggestion. Here is a patch which handless subprocess output (it is more complicated than Guido's demo because we need Unicode strings, not bytes). -- keywords: +patch nosy: +serhiy.storchaka stage: needs patch - patch

[issue22665] shutil.__all__ incomplete

2014-10-19 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch. I also added SameFileError. -- assignee: - berker.peksag keywords: +patch nosy: +berker.peksag stage: - patch review versions: +Python 3.5 Added file: http://bugs.python.org/file36969/issue22665.diff

[issue16041] poplib: unlimited readline() from connection

2014-10-19 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch for 2.7. -- nosy: +berker.peksag stage: needs patch - patch review Added file: http://bugs.python.org/file36970/issue16041_27.diff ___ Python tracker rep...@bugs.python.org

[issue16041] poplib: unlimited readline() from connection

2014-10-19 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: Added file: http://bugs.python.org/file36971/issue16041_27.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___

[issue16041] poplib: unlimited readline() from connection

2014-10-19 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: Removed file: http://bugs.python.org/file36970/issue16041_27.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___

[issue11820] idle3 shell os.system swallows shell command output

2014-10-19 Thread Akira Li
Akira Li added the comment: It looks like the issue can be reduced to whether or not to show this output: import os os.write(1, b'should we see this in idle?\n') should we see this in idle? 28 assuming sys.__stdout__.fileno() == fileno(stdout) == 1. If should we see this in idle? is

[issue22186] Typos in .py files

2014-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 98f16237e1e2 by Berker Peksag in branch '3.4': Issue #22186: Fix typos in Lib/. https://hg.python.org/cpython/rev/98f16237e1e2 New changeset 57b19af3d71b by Berker Peksag in branch 'default': Issue #22186: Fix typos in Lib/.

[issue22186] Typos in .py files

2014-10-19 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Févry. -- assignee: rhettinger - berker.peksag resolution: - fixed stage: commit review - resolved status: open - closed versions: +Python 3.4, Python 3.5 ___ Python tracker

[issue22642] trace module: unclear error message

2014-10-19 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: needs patch - patch review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22642 ___

[issue22672] float arguments in scientific notation not supported by argparse

2014-10-19 Thread Jacopo Nespolo
New submission from Jacopo Nespolo: Argparse fails to recognise negative numbers in scientific notation as valid numbers. Example: Suppose the program test.py has this option. par.add_argument('-a', type=float) then './test.py -a -1e5' will fail, as well as -1.0e-4, -.5E+4 and variations

[issue21949] Document the Py_SIZE() macro.

2014-10-19 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: - needs patch type: performance - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21949 ___

[issue22673] Incorrect fileno for CONOUT$ / stdout

2014-10-19 Thread Aaron Myles Landwehr
New submission from Aaron Myles Landwehr: If I execute the following code, the file descriptor for CONOUT$ has a fileno != 1. With CONIN$ the fileno != 0. Similar code in another language such as perl produces the desired results. sys.stdout.close(); sys.stdout = open(CONOUT$, w);

[issue22674] strsignal() missing from signal module

2014-10-19 Thread Dolda2000
New submission from Dolda2000: Like it says on the tin, it would be nice if strsignal(3) were added to the signal module. -- components: Library (Lib) messages: 229691 nosy: Dolda2000 priority: normal severity: normal status: open title: strsignal() missing from signal module type:

[issue22648] Unable to install Python 3.4.2 amd64 on Windows 8.1

2014-10-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: The problem is this: Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: RemovePip, location: C:\Python34\python.exe,

[issue15204] Deprecate the 'U' open mode

2014-10-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please open new issue for this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15204 ___ ___

[issue22673] Incorrect fileno for CONOUT$ / stdout

2014-10-19 Thread R. David Murray
R. David Murray added the comment: This is Windows specific, right? From a quick google is not clear that CONOUT$ *should* point 1, since it supposed to get at the console regardless of whether there has been any redirection. Certainly, relying on it doing so would seem to be problematic.

[issue22674] strsignal() missing from signal module

2014-10-19 Thread R. David Murray
R. David Murray added the comment: This seems like a reasonable request to me. Do you want to propose a patch? -- nosy: +r.david.murray versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22674

[issue15989] Possible integer overflow of PyLong_AsLong() results

2014-10-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be good to write tests, but for some tests it is difficult (if possible). At least I did not see ways how to do this. -- versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue22674] strsignal() missing from signal module

2014-10-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: A dictionary, signal number - signal name might be more friendly. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22674 ___

[issue22674] strsignal() missing from signal module

2014-10-19 Thread R. David Murray
R. David Murray added the comment: Yeah, the thinnest possible exposure of the strsignal API wouldn't really be that sensible for Python. But making the OS information available *somehow* makes sense. -- ___ Python tracker rep...@bugs.python.org

[issue20079] Add support for glibc supported locales

2014-10-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20079 ___

[issue22673] Incorrect fileno for CONOUT$ / stdout

2014-10-19 Thread eryksun
eryksun added the comment: In Python 2, the closer for sys.stdout is _check_and_flush, which flushes the stream without closing the underlying FILE. https://hg.python.org/cpython/file/ee879c0ffa11/Python/sysmodule.c#l1377 In Python 3, io.FileIO won't close the underlying file descriptor if

[issue11820] idle3 shell os.system swallows shell command output

2014-10-19 Thread Ned Deily
Ned Deily added the comment: A quick smoke test of the patch (solely on OS X) looks like it works pretty well. Not surprisingly, it doesn't fix anything when using the deprecated -n (no subprocess) option but that's not a problem. One more serious issue is that, depending on the length of

[issue22673] Incorrect fileno for CONOUT$ / stdout

2014-10-19 Thread Aaron Myles Landwehr
Aaron Myles Landwehr added the comment: Yeah, it is windows specific. The problem is that if you open conout$ and the descriptor isn't 1, the buffer doesn't flush normally so the console won't display anything unless you manually flush it. Now, why would you want to redirect STDOUT to the

[issue22457] load_tests not invoked in root __init__.py when start=package root

2014-10-19 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: Removed file: http://bugs.python.org/file36716/issue22457.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22457 ___

[issue22457] load_tests not invoked in root __init__.py when start=package root

2014-10-19 Thread Robert Collins
Robert Collins added the comment: Updated patch. -- Added file: http://bugs.python.org/file36973/issue22457.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22457 ___

[issue22673] Incorrect fileno for CONOUT$ / stdout

2014-10-19 Thread Aaron Myles Landwehr
Aaron Myles Landwehr added the comment: Note, I just read eryksun's response. That does indeed fix the issues without API changes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22673 ___

[issue17401] io.FileIO closefd parameter is not documented nor shown in repr

2014-10-19 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17401 ___

[issue19746] No introspective way to detect ModuleImportFailure in unittest

2014-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset e906e23931fa by Robert Collins in branch 'default': Close #19746: expose unittest discovery errors on TestLoader.errors https://hg.python.org/cpython/rev/e906e23931fa -- nosy: +python-dev resolution: - fixed stage: - resolved status: open

[issue7559] TestLoader.loadTestsFromName swallows import errors

2014-10-19 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: Added file: http://bugs.python.org/file36974/issue7559.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559 ___

[issue7559] TestLoader.loadTestsFromName swallows import errors

2014-10-19 Thread Robert Collins
Robert Collins added the comment: Patch polished up and updated - ready for review IMO. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559 ___

[issue16893] Generate Idle help from Doc/library/idle.rst

2014-10-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have avoided editing the Idle docs because of this issue, but idle.rst needs some corrections and updates now, and will soon need some additions. I want to only edit idle.rst. So I want to resolve this issue soon. As I mentioned before, I think the best

[issue22673] Incorrect fileno for CONOUT$ / stdout

2014-10-19 Thread R. David Murray
R. David Murray added the comment: OK, do we have a documentation issue here with respect to actually closing the standard streams, or do we just close this as not a bug? Now that issue 17401 is closed, in python 3.5 you will at least be able to tell that the standard stream fdclose is set

[issue22673] Incorrect fileno for CONOUT$ / stdout

2014-10-19 Thread Robert Collins
Robert Collins added the comment: I think its worth a note that the stdio streams are constructed specially, even with the repr improvements. -- nosy: +rbcollins ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22673

[issue22673] document the special features (eg: fdclose=False) of the standard streams

2014-10-19 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - docs@python components: +Documentation -IO nosy: +docs@python stage: - needs patch title: Incorrect fileno for CONOUT$ / stdout - document the special features (eg: fdclose=False) of the standard streams versions:

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-10-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: A blog post replay mentioned http://tkinter.unpythonic.net/wiki/A_Text_Widget_with_Line_Numbers. I will take a look when I get back to this issue. I have also thought trying the Extension configure menu approach #3068 of pasting widgets on a scrollable

[issue18976] distutils/command/build_ext passes wrong linker flags

2014-10-19 Thread Benedikt Morbach
Benedikt Morbach added the comment: fixed with issue17219 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18976 ___

[issue13504] Meta-issue for Invent with Python IDLE feedback

2014-10-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: http://inventwithpython.com/blog/2011/11/29/the-things-i-hate-about-idle-that-i-wish-someone-would-fix/comment-page-1/#comment-2726 Professor teaching Python says '4. UNFRIENDLY: Forcing a kill of a running script by clicking the X close button brings up the

[issue16893] Generate Idle help from Doc/library/idle.rst

2014-10-19 Thread Zachary Ware
Zachary Ware added the comment: Sure; here's a patch. I suspect we may want to try giving Sphinx some different options to clean up the output a bit, but I'm not experienced enough with Sphinx to have any specific suggestions. -- Added file:

[issue13504] Meta-issue for Invent with Python IDLE feedback

2014-10-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: General comment: I am less willing to casually change defaults or even remove features, and upset current habits of current users, than the blogger and responders. I now have an organized list of all open Idle issues. I am checking this list against that