[issue25758] ensurepip/venv broken on Windows if path includes unicode

2015-11-28 Thread Laura Creighton
Changes by Laura Creighton : -- nosy: +Marcus.Smith, dstufft, ncoghlan, paul.moore ___ Python tracker ___

[issue25741] Usual Installation Directory

2015-11-28 Thread Eryk Sun
Eryk Sun added the comment: > LOCALAPPDATA is set by the operating system, typically to > C:\Users\\AppData\Local (at least since Vista I > think? Certainly since Win7 Vista introduced LOCALAPPDATA, so there's no problem referencing it in the docs for 3.5+. On a related note, section

[issue9504] signal.signal/signal.alarm not working as expected

2015-11-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: Victor: read(2) and recv(2) are defined as returning all available data when interrupted by a signal and might therefore not return an error. The same is true for write(2): it returns the number of bytes written when there are any bytes written (instead of

[issue25751] ctypes.util , Shell Injection in find_library()

2015-11-28 Thread Bernd Dietzel
Bernd Dietzel added the comment: i made the ubuntu link readable for everyone. -- ___ Python tracker ___ ___

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-28 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: ncoghlan -> rhettinger ___ Python tracker ___

[issue25757] Subclasses of property lose docstring

2015-11-28 Thread Torsten Landschoff
Torsten Landschoff added the comment: Prompted by Emanuel's comment I ran the test with repetitions. This does not actually test his assertion that I missed a decref since he referred to the error case when setting the __doc__ key of the instance dict fails. But I was curious none the less.

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: The docs are correct but are apparently misleading ("rich comparison methods" means all six comparison methods while "rich comparison ordering methods" means only the four that provide order). That said, I think it would be perfectly reasonable to amend

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now defined __ne__ always silently overridden. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue25741] Usual Installation Directory

2015-11-28 Thread Firat Ozgul
Firat Ozgul added the comment: Maybe that part of the tutorial should also include a link to https://docs.python.org/3/using/windows.html. This document contains all the details for using Python on Windows. -- ___ Python tracker

[issue25757] Subclasses of property lose docstring

2015-11-28 Thread Emanuel Barry
Emanuel Barry added the comment: Looking at it again, it appears you didn't have to decref it; my bad. Both patches LGTM. -- ___ Python tracker ___

[issue6395] Infinite Recursion during Unpickling a codecs Object

2015-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Implementing only .__get/setstate__() doesn't fix all problem. We have implement also __getnewargs_ex__(). But implemented __getnewargs_ex__() has priority over __getnewargs__() implemented in subclasses. And may be there are problems with other optional

[issue6395] Infinite Recursion during Unpickling a codecs Object

2015-11-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file41184/codecs_stream_delegating.patch ___ Python tracker

[issue18068] pickle + weakref.proxy(self)

2015-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The weakref.proxy object delegates all attribute access to referred object, including special attributes used in pickling, like __class__ or __getstate__. test.recursive is not test, but it looks as TestPickle instance for the pickler. It is pickled and

[issue25757] Subclasses of property lose docstring

2015-11-28 Thread Torsten Landschoff
Changes by Torsten Landschoff : Added file: http://bugs.python.org/file41181/subprop_doc_r2.diff ___ Python tracker ___

[issue25758] ensurepip/venv broken on Windows if path includes unicode

2015-11-28 Thread Dima Tisnek
New submission from Dima Tisnek: One of my students installed Python 3.5 on Windows 10 to default location where user name "Łukasz" contains unicode. Now "-m venv" and "-m ensurepip" do not work: C:\Users\Łukasz>C:\Users\Łukasz\AppData\Local\Programs\Python\Python35-32\python.exe -m venv

[issue25758] ensurepip/venv broken on Windows if path includes unicode

2015-11-28 Thread SilentGhost
Changes by SilentGhost : -- components: +Windows nosy: +brett.cannon, eric.snow, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This doesn't work with new-style classes that always have __ne__ inherited from object. I afraid that the only way to fix this issue is to backport Python 3 behavior of default __ne__, automatically fallback to __eq__. --

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-28 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> ncoghlan Added file: http://bugs.python.org/file41182/total_ordering_ne2.diff ___ Python tracker

[issue25758] ensurepip/venv broken on Windows if path includes unicode

2015-11-28 Thread Eryk Sun
Eryk Sun added the comment: The problem is that the compile_source function in Modules/zipimport.c calls PyUnicode_EncodeFSDefault to get an encoded string to pass as the filename argument of Py_CompileString. On Windows this uses the ANSI codepage (i.e. 'mbcs'). Apparently your system's ANSI

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, sorry. Then the patch LGTM. -- stage: needs patch -> commit review ___ Python tracker ___

[issue25735] math.factorial doc should mention integer return type

2015-11-28 Thread Mark Dickinson
Mark Dickinson added the comment: [Terry] >>> factorial(decimal.Decimal(5.2)) 120 Yep, that's definitely wrong. If we want to behave the same way as for float, we should accept only integral Decimal values. (Though I'm not much of a fan of the float behaviour: I would have preferred

[issue25634] Add a dedicated subclass for attribute missing errors

2015-11-28 Thread Ethan Furman
Ethan Furman added the comment: Note for posterity: the current behavior of __getattr__ is what allows Enum to work correctly. -- nosy: +ethan.furman ___ Python tracker

[issue20836] Pickle Nonetype

2015-11-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: In Python 2.7, __ne__ isn't inherited from object. -- ___ Python tracker ___

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-28 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: ncoghlan -> ___ Python tracker ___

[issue25485] Add a context manager to telnetlib.Telnet

2015-11-28 Thread R. David Murray
R. David Murray added the comment: Thanks, Stéphane. I adjusted the docs...we don't seem to be very consistent about how we document addition of content manager support, so I picked what I liked best. Also, FYI it is generally best (at this point in time) to not include the NEWS item, but

[issue25485] Add a context manager to telnetlib.Telnet

2015-11-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 277824f2d133 by R David Murray in branch 'default': #25485: Add context manager support to Telnet class. https://hg.python.org/cpython/rev/277824f2d133 -- nosy: +python-dev ___ Python tracker

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-28 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file41186/total_ordering_ne3.diff ___ Python tracker ___

[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

2015-11-28 Thread Kovid Goyal
New submission from Kovid Goyal: The Pcbuild/readme.txt file implies that it is possible to build python 2.7.11rc1 with Visual Studio 2015 (although it is not officially supported). However, there are at least a couple of problems, that I have encountered so far: 1) timemodule.c uses

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Nick, I'm inclined to put this in. Only bugs can come out of the current arrangement. Do you have any further thoughts? -- assignee: -> ncoghlan ___ Python tracker

[issue23150] urllib parse incorrect handing of params

2015-11-28 Thread Martin Panter
Martin Panter added the comment: Marking as Python 3 since you mentioned urllib.parse, rather than just urllib. However you need to be more specific. We already have a urllib.parse.urlsplit() function which seems to do what you want: >>> urllib.parse.urlsplit("http://example.com/;;).path '/;'

[issue25750] tp_descr_get(self, obj, type) is called without owning a reference to "self"

2015-11-28 Thread Jeroen Demeyer
Changes by Jeroen Demeyer : -- type: -> crash ___ Python tracker ___ ___

[issue25754] Test test_rlcompleter failed if run twice

2015-11-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e889344436e by Martin Panter in branch 'default': Issue #25754: Allow test_rlcompleter to be run multiple times https://hg.python.org/cpython/rev/2e889344436e -- nosy: +python-dev ___ Python tracker

[issue25754] Test test_rlcompleter failed if run twice

2015-11-28 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

2015-11-28 Thread SilentGhost
Changes by SilentGhost : -- components: +Build, Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

2015-11-28 Thread Steve Dower
Steve Dower added the comment: The proper fix is to remove any hint in the readme file that this will work. Building 2.7 with VS 2015 will not work unless someone forks CPython and makes the updates themselves. -- ___ Python tracker

[issue17620] Python interactive console doesn't use sys.stdin for input

2015-11-28 Thread Adam Bartoš
Adam Bartoš added the comment: I've formulated a proposal regarding this issue: https://mail.python.org/pipermail/python-dev/2015-November/142246.html . Does it make sense? -- ___ Python tracker

[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2015-11-28 Thread Martin Panter
Martin Panter added the comment: I think it is better to return None without an exception, to keep the current behaviour, and because that’s what the documentation implies. -- ___ Python tracker

[issue25717] tempfile.TemporaryFile fails when dir option set to directory residing on host OS mount

2015-11-28 Thread Martin Panter
Martin Panter added the comment: Antoine or Bohuslav, since you were involved in Issue 21679, would you be able to comment on fstat-failure.patch, which reverts back to ignoring most fstat() errors? The problem here is that fstat() seems to fail if the directory entry has been unlinked, and

[issue24363] httplib fails to handle semivalid HTTP headers

2015-11-28 Thread Martin Panter
Martin Panter added the comment: Since the Python 2 and Python 3 branches are different, two different patches would be needed here. Perhaps they could share common test cases though. Michael: I presume your proposal is for Python 2. I don’t understand the re.findall() expression; is there a

[issue25760] TextWrapper fails to split 'two-and-a-half-hour' correctly

2015-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Already fixed in issue22687. -- nosy: +serhiy.storchaka resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue25760] TextWrapper fails to split 'two-and-a-half-hour' correctly

2015-11-28 Thread Samwyse
New submission from Samwyse: Single character words in a hyphenated phrase are not split correctly. The root issue it the wordsep_re class variable. To reproduce, run the following: >>> import textwrap >>> textwrap.TextWrapper.wordsep_re.split('two-and-a-half-hour') ['', 'two-', 'and-a',

[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

2015-11-28 Thread Kovid Goyal
Kovid Goyal added the comment: OK, I had hoped to avoid having to maintain my own fork of python 2 for a while longer, but, I guess not. Could you at least tell me if there are any other issues I should be aware of, to avoid me having to search through the python 3 sourcecode/commit history.

[issue5784] raw deflate format and zlib module

2015-11-28 Thread Martin Panter
Martin Panter added the comment: Here is a patch with the following changes: * Clarified that wbits affects the container format as well as windows size * Undid some word wrapping to make the diff simpler * Added zero and 32 + n for decompression * Added full list of options under

[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

2015-11-28 Thread Steve Dower
Steve Dower added the comment: Not off the top of my head, but you only really need to look at my commits, and looking for issues assigned to me is an easy way to find those. Most of the issues are obvious once you start trying to build. -- ___

[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

2015-11-28 Thread Kovid Goyal
Kovid Goyal added the comment: I have it building with just two simple patches: https://github.com/kovidgoyal/cpython/commit/fd1ceca4f21135f12ceb72f37d4ac5ea1576594d https://github.com/kovidgoyal/cpython/commit/edb740218c04b38aa0f385188103100a972d608c However, in developing the patches, I

[issue23200] Deprecate the zlib decompressor’s flush() method

2015-11-28 Thread Martin Panter
Martin Panter added the comment: And regarding other internal buffers and state, calling flush() or decompress() guarantees you get as much data as possible, but there is no error checking. You have to check the eof attribute to ensure everything is done, otherwise I don’t think there is a