[issue21104] Read from file aborted

2014-03-31 Thread Alex Grinko
Changes by Alex Grinko nitrog...@gmail.com: -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21104 ___

[issue21108] Add examples for importlib in doc

2014-03-31 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21108 ___ ___

[issue1191964] asynchronous Subprocess

2014-03-31 Thread Glenn Linderman
Changes by Glenn Linderman v+pyt...@g.nevcal.com: -- nosy: +v+python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1191964 ___ ___

[issue21085] compile error Python3.3 on Cygwin

2014-03-31 Thread dellair jie
dellair jie added the comment: Yes, my pleasure. After configure on Cygwin, there is pyconfig.h generated, variables are as following: /* #undef HAVE_SIGTIMEDWAIT */ /* #define HAVE_SIGWAITINFO 1 */ The error disappeared once changed HAVE_SIGWAITINFO to undef. However, it encountered another

[issue21109] tarfile: Traversal attack vulnerability

2014-03-31 Thread Daniel Garcia
New submission from Daniel Garcia: The application does not validate the filenames inside the tar archive, allowing to extract files in arbitrary path. An attacker can craft a tar file to override files. I've view this vulnerability in libtar: http://lwn.net/Vulnerabilities/587141/ I've

[issue21109] tarfile: Traversal attack vulnerability

2014-03-31 Thread Daniel Garcia
Daniel Garcia added the comment: The solution in the patch is based on the gnutar solution to this, removing the prefix when extracting and adding. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21109

[issue21109] tarfile: Traversal attack vulnerability

2014-03-31 Thread Ned Deily
Ned Deily added the comment: Setting as release blocker pending evaluation. -- keywords: +security_issue nosy: +benjamin.peterson, georg.brandl, larry, lars.gustaebel, ned.deily priority: normal - release blocker stage: - test needed versions: +Python 2.7, Python 3.1, Python 3.2,

[issue21109] tarfile: Traversal attack vulnerability

2014-03-31 Thread Christian Heimes
Christian Heimes added the comment: It's a known and well-documented behavior of the tar module: https://docs.python.org/2.7/library/tarfile.html#tarfile.TarFile.extractall -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org

[issue21109] tarfile: Traversal attack vulnerability

2014-03-31 Thread STINNER Victor
STINNER Victor added the comment: It's a known and well-documented behavior of the tar module Would it possible to disable this behaviour by default, and only enable ti explicitly? The tar command line program has for example the -P / --absolute-paths option. -- nosy: +haypo

[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2014-03-31 Thread MrValdez
New submission from MrValdez: The example in the Extending Embedded Python (https://docs.python.org/3/extending/embedding.html#extending-embedded-python) takes up a lot of memory and slow downs the computer. I am using Windows 7 64bit, Python 3.4 64bit and gcc (rubenvb-4.8.0) 4.8.0.

[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2014-03-31 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21110 ___ ___ Python-bugs-list

[issue20968] mock.MagicMock does not mock __truediv__

2014-03-31 Thread Johannes Baiter
Johannes Baiter added the comment: Sorry for commenting so late, I submitted a version of the patch with unit tests roughly two weeks ago, I just forgot to mention it in a comment. Hereby fixed :-) -- ___ Python tracker rep...@bugs.python.org

[issue21082] os.makedirs(exist_ok=True) is not thread-safe: umask is set temporary to 0, serious security problem

2014-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue19930. Behaviors of os.makedirs() and pathlib.Path.mkdir() are different. pathlib.Path.mkdir() (as the mkdir command) creates parent directories with default mode, and os.makedirs() - with specified mode. -- nosy: +serhiy.storchaka

[issue21044] tarfile does not handle file .name being an int

2014-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Does tarfile work with bytes file names? I think a test should explicitly test file objects with str, bytes and int name and file objects without name in all write modes (w, w:gz, w|gz, etc). -- nosy: +serhiy.storchaka

[issue21044] tarfile does not handle file .name being an int

2014-03-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: patch review - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21044 ___ ___

[issue17846] Building Python on Windows - Supplementary info

2014-03-31 Thread Kathleen Weaver
Kathleen Weaver added the comment: Patch from comments on March 29 -- Added file: http://bugs.python.org/file34677/win.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17846 ___

[issue21085] compile error Python3.3 on Cygwin

2014-03-31 Thread dellair jie
dellair jie added the comment: Applied the patch 0001-CYGWIN-issue13756-Python-make-fail-on-cygwin.patch in case: http://bugs.python.org/issue13756 The build failed with parser module: building 'parser' extension gcc -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes

[issue17846] Building Python on Windows - Supplementary info

2014-03-31 Thread Kathleen Weaver
Kathleen Weaver added the comment: New readme.txt patch -- Added file: http://bugs.python.org/file34678/winreadme.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17846 ___

[issue19655] Replace the ASDL parser carried with CPython

2014-03-31 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching patch that implements this. To make it easier, the patch only replaces the ASDL parser - not touching anything else and leaving the output intact. With this patch applied, when the Makefile is rerun it regenerates the actual AST code in:

[issue20375] ElementTree: Document handling processing instructions

2014-03-31 Thread Eli Bendersky
Eli Bendersky added the comment: The patch appears to contain code (tests) along with the documentation. Is this intended? This issue is not tagged properly if it is. I'd suggest to split them to separate patches. -- versions: +Python 3.5 -Python 2.7, Python 3.3, Python 3.4

[issue21109] tarfile: Traversal attack vulnerability

2014-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, this behavior is documented, but still it is desirable to fix it. The tar utility has a lot of switches which controls extracting and by default it prevents three ways of attack (absolute names, '..' and symlinks), but there are other possible ways of

[issue21111] PyLong_AsUnsignedLongAndOverflow does not exist

2014-03-31 Thread Hristo Venev
New submission from Hristo Venev: It could set *overflow to -1 on negative value and to 1 on overflow. And PyLong_AsUnsignedLongLongAndOverflow. -- components: Extension Modules messages: 215236 nosy: h.venev priority: normal severity: normal status: open title:

[issue21028] ElementTree objects should support all the same methods as Element objects

2014-03-31 Thread Eli Bendersky
Eli Bendersky added the comment: Raymond, you are right that the APIs presented by Element and ElementTree are somewhat different. As Stefan mentioned, they were really meant to represent different things, but with time some convenience features crept in and made the difference somewhat more

[issue21111] PyLong_AsUnsignedLongAndOverflow does not exist

2014-03-31 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2 ___ ___

[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-03-31 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/issue21101 ___

[issue21109] tarfile: Traversal attack vulnerability

2014-03-31 Thread R. David Murray
R. David Murray added the comment: Note that any issues here should also be considered for zipfile and shutil. (Well, shutil can just use the other two once the security is available.) See issue 20907. -- nosy: +r.david.murray ___ Python tracker

[issue21112] 3.4 regression: unittest.expectedFailure no longer works on TestCase subclasses

2014-03-31 Thread William Schwartz
New submission from William Schwartz: In Python 2.7 and 3.3, decorating a unittest.TestCase subclass with unittest.expectedFailure caused test discover to skip the decorated test case. Python 3.4 apparently ignores the decorator when applied to classes. The attached file when run with Python

[issue21112] 3.4 regression: unittest.expectedFailure no longer works on TestCase subclasses

2014-03-31 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Tests keywords: +3.4regression nosy: +ezio.melotti, michael.foord, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21112

[issue21113] Error usage of class.__bases__()

2014-03-31 Thread Lotus Qin
New submission from Lotus Qin: function in urllib.request.build_opener() def isclass(obj): return isinstance(obj, type) or hasattr(obj, __bases__) should it be `obj` or `obj.__class__`? cause in the man of 3.4, there is only `class.__bases__`, but the code there may function like

[issue21113] Error usage of class.__bases__

2014-03-31 Thread Lotus Qin
Changes by Lotus Qin qinzi...@gmail.com: -- title: Error usage of class.__bases__() - Error usage of class.__bases__ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21113 ___

[issue21109] tarfile: Traversal attack vulnerability

2014-03-31 Thread Christian Heimes
Christian Heimes added the comment: Don't forget about SUID and SGID, too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21109 ___ ___

[issue21082] os.makedirs(exist_ok=True) is not thread-safe: umask is set temporary to 0, serious security problem

2014-03-31 Thread jan matejek
Changes by jan matejek jmate...@suse.cz: -- nosy: +matejcik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21082 ___ ___ Python-bugs-list mailing

[issue21112] 3.4 regression: unittest.expectedFailure no longer works on TestCase subclasses

2014-03-31 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- keywords: +patch nosy: +berker.peksag Added file: http://bugs.python.org/file34681/issue21112.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21112

[issue21085] compile error Python3.3 on Cygwin

2014-03-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: dellair jie: please focus on one issue at a time. The issue you reported here is the compile error with si_band; I will not discuss any other problems you bring up in this issue. Note that editing pyconfig.h is not a solution. It's a generated file, so it

[issue20668] Remove dependency on tests.txt when running test_asyncio suite

2014-03-31 Thread Vajrasky Kok
Vajrasky Kok added the comment: Thanks for committing my patch, Yury. But you forgot to remove Lib/test/test_asyncio/tests.txt. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20668 ___

[issue20668] Remove dependency on tests.txt when running test_asyncio suite

2014-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf661f72aaab by Victor Stinner in branch '3.4': Issue #20668: Remove tests.txt of test_asyncio http://hg.python.org/cpython/rev/bf661f72aaab New changeset a76e459e09be by Victor Stinner in branch 'default': (Merge 3.4) Issue #20668: Remove

[issue21108] Add examples for importlib in doc

2014-03-31 Thread Brett Cannon
Brett Cannon added the comment: While I'm totally happy to add examples on usage, it is probably best to put them at the end of the class-level docs instead of trailing after the last method of the class. That way someone reading about what the class does can also see examples of how to use

[issue21085] compile error Python3.3 on Cygwin

2014-03-31 Thread dellair jie
dellair jie added the comment: Martin, Certainly running on 3.4 now. The output of the command is attached. Will try to look into it tomorrow if no immediate follow up post. Br, Li -- Added file: http://bugs.python.org/file34682/signalmodule.output.txt

[issue21085] compile error Python3.3 on Cygwin

2014-03-31 Thread STINNER Victor
STINNER Victor added the comment: I found this patch: https://github.com/Alexpux/MSYS2-packages/blob/master/python3/3.3.2-cygwin-siginfo.patch -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21085

[issue21085] compile error Python3.3 on Cygwin

2014-03-31 Thread STINNER Victor
STINNER Victor added the comment: Can you try to comment si_band code in signalmodule.c, and then run test_signal to see if sigwaitinfo works on Windows? test_sigwaitinfo() uses signal.alarm(1): does it work on Windows (with Cygwin)? (sigwaitinfo doc says Availability: Unix.) --

[issue20375] ElementTree: Document handling processing instructions

2014-03-31 Thread Nikolaus Rath
Nikolaus Rath added the comment: Yes, the new testcases were deliberately included. I submitted the patch prior to the 3.4 release, am I right that at that point this wouldn't have been a problem? I have attached a new patch containing just the doc changes. I hope that's still acceptable for

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2014-03-31 Thread Alan Braithwaite
New submission from Alan Braithwaite: At wsgiref.simple_server:99, it uses the wrong field to get the headers from the request. In rfc822.Message.readheaders it describes that the headers attribute is an uninterrupted list of the lines in the header. The dict attribute of Message should

[issue21085] compile error Python3.3 on Cygwin

2014-03-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: dellair: According to the compiler output, ./pyconfig.h has #define HAVE_SIGWAIT 1 #define HAVE_SIGWAITINFO 1 So why did you say (in msg215221) that the file had /* #undef HAVE_SIGTIMEDWAIT */ /* #define HAVE_SIGWAITINFO 1 */ (i.e. where do the comment

[issue21115] python.org server change causing failures in test_urllib2net test_xxxwithfrag?

2014-03-31 Thread R. David Murray
New submission from R. David Murray: It looks like something changed on the python.org server-side that is causing test_urllib2net tests test_urlwithfrag (and, on 3.4, test_redirect_url_withfrag) to fail because the fragment doesn't appear in the response url. Which is very puzzling. At

[issue21115] python.org server change causing failures in test_urllib2net test_xxxwithfrag?

2014-03-31 Thread R. David Murray
R. David Murray added the comment: The URLs in question are: http://docs.python.org/3.4/glossary.html#term-global-interpreter-lock http://docs.python.org/2/glossary.html#glossary Which are now redirecting to https, which would cause a failure regardless of the fragment issue...perhaps the

[issue16047] Tools/freeze no longer works in Python 3

2014-03-31 Thread Meador Inge
Meador Inge added the comment: Apologies for not getting around to applying this myself. I had an extremely busy week with the day job last week. Thanks for applying Martin. -- ___ Python tracker rep...@bugs.python.org

[issue21115] python.org server change causing failures in test_urllib2net test_xxxwithfrag?

2014-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8263d3c1cf34 by Benjamin Peterson in branch '2.7': use https docs url (#21115) http://hg.python.org/cpython/rev/8263d3c1cf34 New changeset fc28ce0983de by Benjamin Peterson in branch '3.2': use https docs url (#21115)

[issue21115] python.org server change causing failures in test_urllib2net test_xxxwithfrag?

2014-03-31 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21115 ___

[issue21085] compile error Python3.3 on Cygwin

2014-03-31 Thread dellair jie
dellair jie added the comment: Martin, Thanks for the analysis! The following values came from Python 3.3.2, the #define HAVE_SIGWAITINFO 1 was without comment sign, I commented it out for the build to go through. /* #undef HAVE_SIGTIMEDWAIT */ /* #define HAVE_SIGWAITINFO 1 */ The output was

[issue21116] Failure to create multiprocessing shared arrays larger than 50% of memory size under linux

2014-03-31 Thread Médéric Boquien
New submission from Médéric Boquien: It is currently impossible to create multiprocessing shared arrays larger than 50% of memory size under linux (and I assume other unices). A simple test case would be the following: from multiprocessing.sharedctypes import RawArray import ctypes foo =

[issue21028] ElementTree objects should support all the same methods as Element objects

2014-03-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Do you have concrete suggestions? Make the tree iterable? Add all element methods to the tree, implicitly forwarding to the root? Yes, that is the feature request. Add all the element methods to the elementtree object. Implicitly forwarding to the

[issue21116] Failure to create multiprocessing shared arrays larger than 50% of memory size under linux

2014-03-31 Thread Médéric Boquien
Médéric Boquien added the comment: Updated the patch not to create a uselessly large array if the size is small than the block size. -- Added file: http://bugs.python.org/file34686/shared_array.diff ___ Python tracker rep...@bugs.python.org

[issue21116] Failure to create multiprocessing shared arrays larger than 50% of memory size under linux

2014-03-31 Thread Médéric Boquien
Changes by Médéric Boquien mboqu...@free.fr: Removed file: http://bugs.python.org/file34685/shared_array.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21116 ___

[issue21116] Failure to create multiprocessing shared arrays larger than 50% of memory size under linux

2014-03-31 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +sbt stage: - patch review type: - resource usage versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21116 ___

[issue21073] Py_ReprEnter potentially misbehaves during malformed thread states

2014-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset c42cce290d50 by Antoine Pitrou in branch '3.4': Issue #21073: explain why Py_ReprEnter() allows for a missing thread state. http://hg.python.org/cpython/rev/c42cce290d50 New changeset fb217fc457ca by Antoine Pitrou in branch 'default': Issue

[issue21073] Py_ReprEnter potentially misbehaves during malformed thread states

2014-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I've now added a comment. -- resolution: - rejected stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21073

[issue20578] BufferedIOBase.readinto1 is missing

2014-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: The IO APIs are a visible part of the stdlib, so I'd suggest asking on the python-dev mailing-list first. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20578

[issue21116] Failure to create multiprocessing shared arrays larger than 50% of memory size under linux

2014-03-31 Thread Médéric Boquien
Médéric Boquien added the comment: New update of the patch following Antoine Pitrou's comments. PEP8 does not complain anymore. -- Added file: http://bugs.python.org/file34687/shared_array.diff ___ Python tracker rep...@bugs.python.org

[issue21117] inspect: PartialSignature and PartialParameter classes

2014-03-31 Thread Yury Selivanov
New submission from Yury Selivanov: There is a small detail in the current Signature class implementation, in regards to how partial signatures are treated. Consider the following example: def foo(a, b): pass foo_partial = functools.partial(foo, 'spam') Now, the signature of

[issue21085] compile error Python3.3 on Cygwin

2014-03-31 Thread Roumen Petrov
Roumen Petrov added the comment: STINNER Victor wrote: STINNER Victor added the comment: I found this patch: https://github.com/Alexpux/MSYS2-packages/blob/master/python3/3.3.2-cygwin-siginfo.patch Sure. It seems to me it is extracted from issue3871 . -- nosy: +rpetrov

[issue21085] compile error Python3.3 on Cygwin

2014-03-31 Thread Roumen Petrov
Roumen Petrov added the comment: dellair jie wrote: dellair jie added the comment: Applied the patch 0001-CYGWIN-issue13756-Python-make-fail-on-cygwin.patch in case: http://bugs.python.org/issue13756 The build failed with parser module: building 'parser' extension gcc ..

[issue21116] Failure to create multiprocessing shared arrays larger than 50% of memory size under linux

2014-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: You overlooked the part where I was suggesting to add a unit test :-) Also, you'll have to sign a contributor's agreement at https://www.python.org/psf/contrib/contrib-form/ Thanks! -- nosy: +pitrou ___ Python

[issue21117] inspect: PartialSignature and PartialParameter classes

2014-03-31 Thread R. David Murray
R. David Murray added the comment: I believe it is a python invariant that a == b implies hash(a) == hash(b). I don't see why the two signatures should be equal. I'm not even sure why the bound argument shows up in the signature of the partial. That surprises me. -- nosy:

[issue21117] inspect: PartialSignature and PartialParameter classes

2014-03-31 Thread Nick Coghlan
Nick Coghlan added the comment: On 1 Apr 2014 07:36, Nick Coghlan rep...@bugs.python.org wrote: Nick Coghlan added the comment: The already bound arguments should be treated as additional keyword-only arguments, and already bound positional arguments hidden completely. Oops: already bound

[issue16716] Deprecate OSError aliases in the doc

2014-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5ad1d523b342 by Andrew Svetlov in branch 'default': Merge 3.4 (#16716) http://hg.python.org/cpython/rev/5ad1d523b342 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue16716] Deprecate OSError aliases in the doc

2014-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pushed. Thanks, priya -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16716 ___ ___ Python-bugs-list mailing

[issue16716] Deprecate OSError aliases in the doc

2014-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0c17718301f by Andrew Svetlov in branch 'default': Merge 3.4 (#16716) http://hg.python.org/cpython/rev/c0c17718301f -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16716

[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-03-31 Thread Josh Rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- nosy: +josh.rosenberg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21101 ___ ___

[issue21117] inspect: PartialSignature and PartialParameter classes

2014-03-31 Thread Yury Selivanov
Yury Selivanov added the comment: @Nick: Oops: already bound positional-*only* arguments should be hidden. Hm, good catch. I'm not sure we currently do this. I'll check if this needs to be fixed (in 3.4.1 too). I'm +0 on new types to clean that up if necessary, but would prefer it if we

[issue16716] Deprecate OSError aliases in the doc

2014-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Close the issue after #f5dda52a4ccd and #8d5f005a0da3 -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue21117] inspect: PartialSignature and PartialParameter classes

2014-03-31 Thread Nick Coghlan
Nick Coghlan added the comment: On 1 Apr 2014 08:17, Yury Selivanov rep...@bugs.python.org wrote: I'm +0 on new types to clean that up if necessary, but would prefer it if we could just improve the translation to ordinary signature objects instead. I'm not sure I understand what you mean

[issue18644] Got ResourceWarning: unclosed file when using test function from formatter module

2014-03-31 Thread A.M. Kuchling
A.M. Kuchling added the comment: Version 5 of the patch looks fine; Vajrasky, I think you can go ahead and commit it. (I didn't understand RDM's comment about pydoc using DumbWriter; in 3.4, it doesn't seem to me that pydoc does. What am I missing?) -- nosy: +akuchling

[issue16716] Deprecate OSError aliases in the doc

2014-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Andrew, please revert this. The modify() method is deprecated, so the deprecated markup is inappropriate here. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16716

[issue16716] Deprecate OSError aliases in the doc

2014-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops, trying again: The modify() method is not deprecated, so the deprecated markup is inappropriate here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16716

[issue7676] IDLE shell shouldn't use TABs

2014-03-31 Thread Westley Martínez
Westley Martínez added the comment: I think the prompt should be in margins, completely separate from the input. It is just meant to be a guide anyway, and make this would make it easy to copy code from the interactive shell to a file. I think output should be in a separate window or frame

[issue16716] Deprecate OSError aliases in the doc

2014-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b219429c404 by Andrew Svetlov in branch '3.4': #16716: remove deprecation warning http://hg.python.org/cpython/rev/7b219429c404 New changeset 1c6c2ec8916a by Andrew Svetlov in branch 'default': #16716: remove deprecation warning

[issue21118] str.translate is absurdly slow in majority of use cases (takes 3x to 10x longer than similar functions)

2014-03-31 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21118 ___ ___

[issue21118] str.translate is absurdly slow in majority of use cases (takes 3x to 10x longer than similar functions)

2014-03-31 Thread Josh Rosenberg
New submission from Josh Rosenberg: String translation functions, at least in other languages, are typically a performance optimization when you *really* need the speed. In exchange for paying the memory cost and one-time work to create a translation table, you get much faster 1 to 1 and

[issue16716] Deprecate OSError aliases in the doc

2014-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: The deprecated markup is removed. Sorry. Thanks to quick report. On Tue, Apr 1, 2014 at 2:08 AM, Roundup Robot rep...@bugs.python.org wrote: Roundup Robot added the comment: New changeset 7b219429c404 by Andrew Svetlov in branch '3.4': #16716: remove

[issue16716] Deprecate OSError aliases in the doc

2014-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Close the issue again after fixing Antoine's objection. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16716 ___

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-03-31 Thread Josh Rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- title: str.translate is absurdly slow in majority of use cases (takes 3x to 10x longer than similar functions) - str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2014-03-31 Thread Julian Mehnle
Changes by Julian Mehnle jul...@mehnle.net: -- nosy: +jmehnle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8271 ___ ___ Python-bugs-list mailing

[issue21117] inspect: PartialSignature and PartialParameter classes

2014-03-31 Thread Yury Selivanov
Yury Selivanov added the comment: @Nick: Agreed on positional-only stuff. If arguments bound by position disappear from the signature, and those bound by keyword are mapped to keyword-only parameters with a default, we should get a valid and accurate signature. But what about my example

[issue17390] display python version on idle title bar

2014-03-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: As far as I can tell, there are 4 window classes to be concerned with. (Dialogs would be a separate issue.) EditorWindow |- PyShellEditorWindow - EW+breakpoints, replaces WE in PyShellFileList |- OutputWindow - used by Find in Files |- PyShell - the visible

[issue20578] BufferedIOBase.readinto1 is missing

2014-03-31 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20578 ___ ___ Python-bugs-list

[issue7676] IDLE shell shouldn't use TABs

2014-03-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: IDLE defaults to indenting with 4 spaces in editor windows, but hard TABs in the Python Shell window. This is inconsistent with PEP 8; what's worse, it's makes copy-paste code between the shell and editor windows confusing and dangerous! I also teach

[issue7676] IDLE shell shouldn't use TABs

2014-03-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Continuing my last post ... Fix 4 is to put prompts in a narrow window to the left of and kept in synch with the main shell input/output window. This is the approach used by Heblikar in #17535. -- ___ Python

[issue12387] IDLE save keyboard shortcut problem

2014-03-31 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12387 ___

[issue21117] inspect: PartialSignature and PartialParameter classes

2014-03-31 Thread Yury Selivanov
Yury Selivanov added the comment: @Nick: oh, it took me some time to realize that your suggestion to transform positional-or-keyword to keyword-only parameters is correct. If we do this, we no longer need '_partial_kwarg' hack. I'll work on the patch. Thank you. --

[issue21119] asyncio create_connection resource warning

2014-03-31 Thread Lars Andersson
New submission from Lars Andersson: The attached code generates an unclosed socket ResourceWarning when timing out trying to connect to an unreachable address. Probably not terribly serious, but in my case, it generates distracting warnings during unit testing. I have looked briefly at the

[issue19501] Buildbot testing of 3.2 broken

2014-03-31 Thread Zachary Ware
Zachary Ware added the comment: With the demise of the 3.2 buildbot configuration, closing this issue. -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2014-03-31 Thread paul j3
Changes by paul j3 ajipa...@gmail.com: -- nosy: +paul.j3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14156 ___ ___ Python-bugs-list mailing list

[issue20995] Use Better Default Ciphers for the SSL Module

2014-03-31 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/issue20995 ___ ___ Python-bugs-list mailing list

[issue20996] Backport TLS 1.1 and 1.2 support for ssl_version

2014-03-31 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/issue20996 ___ ___ Python-bugs-list mailing list

[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

2014-03-31 Thread Nikolaus Rath
Nikolaus Rath added the comment: Thanks for the feedback! I have attached an updated patch. I did not include any testcase because the patch did not create any new code paths, so I was assuming it'd be covered by the existing test case. But of course I was wrong. In the revised patch, I added

[issue19962] Create a 'python.bat' script to invoke interpreter from source root

2014-03-31 Thread Zachary Ware
Zachary Ware added the comment: This appears to work correctly for PGO builds and x64 builds. Does anyone have any objections to this, or suggestions for improvement? -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue21117] inspect.signature: inaccuracies for partial functions

2014-03-31 Thread Nick Coghlan
Nick Coghlan added the comment: I believe Yury already figured out what I meant, but to make it entirely clear, after the change, this example: def foo(a, b): pass foo_partial = functools.partial(foo, 'spam') foo_partial2 = functools.partial(foo, a='spam') Should lead to the