[issue7370] BaseHTTPServer reinventing rfc822 date formatting

2016-03-07 Thread Berker Peksag
Berker Peksag added the comment: There is an up-to-date patch for Python 3 in issue 747320. Closing this as a duplicate. -- nosy: +berker.peksag resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> rfc2822 formatdate functionality duplication

[issue26501] bytes splitlines() method returns strings without decoding

2016-03-07 Thread Wolfgang Maier
Wolfgang Maier added the comment: works for me too on Windows: Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> u'a\nb£'.encode('utf-8').splitlines() [b'a', b'b\xc2\xa3']

[issue15948] Unchecked return value of I/O functions

2016-03-07 Thread Марк Коренберг
Марк Коренберг added the comment: In a common case, if (write(thread.fd, thread.header, thread.header_len) == -1) should be replaced with if (write(thread.fd, thread.header, thread.header_len) != thread.header_len) -- nosy: +mmarkk ___ Python

[issue26501] bytes splitlines() method returns strings without decoding

2016-03-07 Thread Paul Moore
New submission from Paul Moore: See the following test (in Python 3.5): >>> u'a\nb£'.encode('utf-8').splitlines() ['a', 'b\xc2\xa3'] I encode a string in UTF-8, then use the (bytes) splitlines function on it. The return value is a list of strings, containing encoded byte values. The bytes

[issue26500] Document of star operator missing. It must be documented for better understanding.

2016-03-07 Thread Jaivish Kothari
New submission from Jaivish Kothari: Star operator in python for unpacking could be documented for better understanding. -- assignee: docs@python components: Documentation messages: 261288 nosy: docs@python, janonymous priority: normal severity: normal status: open title: Document of

[issue26501] bytes splitlines() method returns strings without decoding

2016-03-07 Thread Марк Коренберг
Марк Коренберг added the comment: $ python3.5 Python 3.5.0+ (default, Oct 11 2015, 09:05:38) [GCC 5.2.1 20151010] on linux Type "help", "copyright", "credits" or "license" for more information. >>> u'a\nb£'.encode('utf-8').splitlines() [b'a', b'b\xc2\xa3'] --

[issue26503] argparse with required field , not having new line separator in -help dispaly

2016-03-07 Thread Mohankumar
New submission from Mohankumar: We are using Python argsparse library here to display below --help message . In --help option , new line option not handled correctly , Especially in "mandatory parameters" (required=True) better to place a new line before for better readability , Since it not

[issue26501] bytes splitlines() method returns strings without decoding

2016-03-07 Thread Марк Коренберг
Марк Коренберг added the comment: No, I have checked, it returns list of `bytes` objects. -- nosy: +mmarkk ___ Python tracker ___

[issue26502] traceback.extract_tb breaks compatibility by returning FrameSummary

2016-03-07 Thread Petr Viktorin
New submission from Petr Viktorin: According to the docs [0], traceback.extract_tb should return 4-tuples (filename, line number, function name, text). [0] https://docs.python.org/3/library/traceback.html#traceback.extract_tb Instead, since Python 3.5, it returns FrameSummary objects, which

[issue26499] http.client.IncompleteRead from HTTPResponse read after part reading file

2016-03-07 Thread Peter
New submission from Peter: This is a regression in Python 3.5 tested under Linux and Mac OS X, spotted from a failing test in Biopython https://github.com/biopython/biopython/issues/773 where we would parse a file from the internet. The trigger is partially reading the network handle line by

[issue26500] Document of star operator missing. It must be documented for better understanding.

2016-03-07 Thread Martin Panter
Martin Panter added the comment: Previous report: Issue 19024. -- nosy: +martin.panter ___ Python tracker ___

[issue22367] Please add F_OFD_SETLK, etc support to fcntl.lockf

2016-03-07 Thread Hristo Venev
Hristo Venev added the comment: I'd like to use fd locks from python too. -- nosy: +h.venev ___ Python tracker ___

[issue26501] bytes splitlines() method returns strings without decoding

2016-03-07 Thread Wolfgang Maier
Wolfgang Maier added the comment: oh and documentation is here: https://docs.python.org/3.5/library/stdtypes.html?highlight=bytes.splitlines#bytes.splitlines -- ___ Python tracker

[issue26507] Use highest pickle protocol in multiprocessing

2016-03-07 Thread Ed Behn
New submission from Ed Behn: Currently, the default pickle protocol is used to return worker results in a multiprocessing pool. The highest protocol should be used because backwards compatibility is not an issue. -- components: Extension Modules files: patch messages: 261318 nosy:

[issue26508] Infinite crash leading to DoS

2016-03-07 Thread pablo sacristan
New submission from pablo sacristan: import ctypes, struct, sys, os while 1: os.system('python /Users/pabstersac/Desktop/Python\ Files/crash.py') #Change to your full path to the file inner = () outer = (inner,) c_outer = (ctypes.c_char *

[issue24324] Remove -Wunreachable-code flag

2016-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 61f8f7610a88 by Ned Deily in branch '3.5': Issue #24324: Do not enable unreachable code warnings when using https://hg.python.org/cpython/rev/61f8f7610a88 -- nosy: +python-dev ___ Python tracker

[issue26465] Upgrade OpenSSL shipped with python installers

2016-03-07 Thread Ned Deily
Changes by Ned Deily : -- components: +Build stage: -> needs patch versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue26509] spurious ConnectionAbortedError logged on Windows

2016-03-07 Thread Sebastien Bourdeauducq
New submission from Sebastien Bourdeauducq: https://github.com/python/asyncio/issues/319 On Windows, asyncio servers sometimes print such log messages when clients disconnect: ``` ERROR:master:asyncio:Fatal write error on pipe transport protocol: transport: <_ProactorSocketTransport fd=756>

[issue26507] Use highest pickle protocol in multiprocessing

2016-03-07 Thread Davin Potts
Davin Potts added the comment: As described in issue23403, it is possible for independent processes to communicate to one another through multiprocessing. Thus changing the default triggers complications and is arguably much less interesting than having control over what protocol (or

[issue24324] Remove -Wunreachable-code flag

2016-03-07 Thread Ned Deily
Ned Deily added the comment: Thanks for the suggested patches. I used a somewhat different approach in an attempt to retain the benefit of the unreachable code warning when using other (non-GCC) compilers, in particular, llvm clang where the warnings do seem to be useful. -- nosy:

[issue26465] Upgrade OpenSSL shipped with python installers

2016-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset bca936a0e829 by Ned Deily in branch '2.7': Issue #26465: Update OS X installer build to use OpenSSL 1.0.2g. https://hg.python.org/cpython/rev/bca936a0e829 New changeset 0628189fe42b by Ned Deily in branch '3.5': Issue #26465: Update OS X installer

[issue26039] More flexibility in zipfile interface

2016-03-07 Thread Martin Panter
Martin Panter added the comment: Acquiring a lock in open(mode="w") and releasing it in close() doesn’t seem like a particularly useful feature to me. Maybe it would be better (and equally compatible?) to just use the lock in the internal write() or writestr() implementations. --

[issue26478] dict views don't implement subtraction correctly

2016-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 309f3559a729 by Benjamin Peterson in branch '2.7': properly use PyObject_CallMethod in dictview binary operations (closes #26478) https://hg.python.org/cpython/rev/309f3559a729 -- ___ Python tracker

[issue26492] Exhausted array iterator should left exhausted

2016-03-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Can you add just one patch to seq_test.py? -- ___ Python tracker ___ ___

[issue26507] Use highest pickle protocol in multiprocessing

2016-03-07 Thread Ed Behn
Changes by Ed Behn : Added file: http://bugs.python.org/file42087/patch ___ Python tracker ___ ___

[issue22110] enable extra compilation warnings

2016-03-07 Thread Ned Deily
Ned Deily added the comment: See Issue #24324 which modifies configure to not use -Wunreachable-code with gcc for the reasons stated there and by Arfrever above. -- nosy: +ned.deily ___ Python tracker

[issue24324] Remove -Wunreachable-code flag

2016-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8fecf6e17616 by Ned Deily in branch 'default': Issue #24324: merge from 3.5 https://hg.python.org/cpython/rev/8fecf6e17616 -- ___ Python tracker

[issue26456] import _tkinter + TestForkInThread leaves zombie with stalled thread

2016-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 613196986c09 by Martin Panter in branch '2.7': Issue #26456: Force all child threads to terminate in TestForkInThread https://hg.python.org/cpython/rev/613196986c09 -- nosy: +python-dev ___ Python

[issue26486] Backport some tests to 2.7

2016-03-07 Thread Martin Panter
Martin Panter added the comment: I suspect this change is causing some buildbot failures (and failures on my computer). E.g. . == FAIL:

[issue22367] Please add F_OFD_SETLK, etc support to fcntl.lockf

2016-03-07 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue26504] tclErr: invalid command name "PyAggImagePhoto"

2016-03-07 Thread Roger Mosher
New submission from Roger Mosher: when trying to show a FigureCanvasTkAgg the program crashes. Debugging eventually leads me to TkAgg.blit method where we find the following line: tk.call( "PyAggImagePhoto", photoimage, id(data), colormode, id(bbox_array))

[issue26506] hex() documentation: mention "%x" % int

2016-03-07 Thread STINNER Victor
New submission from STINNER Victor: I regulary see Python code using hex(value)[2:], whereas "%x" % value does the same thing. We should mention "%x" % value in the hex() doc. Maybe also mention "%#X" % value to format in upper case? -- assignee: docs@python components: Documentation

[issue26505] [PATCH] Spelling of ANY in the license of Modules/getaddrinfo.c

2016-03-07 Thread Alex Willmer
New submission from Alex Willmer: The license of Modules/getaddrinfo.c misspells ANY as GAI_ANY. I'm assuming a sed invocation was the cause. The same file later uses GAI_ANY as a wildcard for socket type, protocol and port. It looks like this mistake was present when the code was first

[issue21034] Python docs reference the Distribute package which has been deprecated in favor of Setuptools

2016-03-07 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Jurko. > +1 from me for just removing the bootstrapping instructions from this note. Thanks, Nick. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue24852] Python 3.5.0rc1 "HOWTO Use Python in the web" needs fix

2016-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset b8ee8f79a024 by Berker Peksag in branch '3.5': Issue #24852: Remove outdated "HOWTO Use Python in the web" document https://hg.python.org/cpython/rev/b8ee8f79a024 New changeset ee1d44f7d3e7 by Berker Peksag in branch 'default': Issue #24852: Remove

[issue26498] _io.so flat namespace

2016-03-07 Thread Ned Deily
Ned Deily added the comment: Sorry, I am unable to reproduce the problem. My guess is that somehow there is a version mismatch between the Python executable and the dynamic libraries. This *could* be caused by a number of things, like environment variable settings. Suggest trying to

[issue26499] http.client.IncompleteRead from HTTPResponse read after part reading file

2016-03-07 Thread SilentGhost
SilentGhost added the comment: As far as I'm able to track it, it was a refactoring in issue 19009 that is responsible for this regression (rev 49017c391564). I'm adding Kristján, so that he'd have a look at the attached fix and test. -- keywords: +3.5regression, patch nosy:

[issue22367] Please add F_OFD_SETLK, etc support to fcntl.lockf

2016-03-07 Thread Hristo Venev
Hristo Venev added the comment: This implements the open_file_descriptor argument and fixes a bug with converting to int when off_t is 64-bit but long is 32-bit. -- keywords: +patch Added file: http://bugs.python.org/file42085/0001-fcntl-support-F_OFD_.patch

[issue26501] bytes splitlines() method returns strings without decoding

2016-03-07 Thread Zachary Ware
Zachary Ware added the comment: Paul, I think you were in a Python 2 session: $ python Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-03-07 Thread Steven.Painter
Changes by Steven.Painter : -- nosy: +smpeepers ___ Python tracker ___ ___

[issue26505] [PATCH] Spelling of ANY in the license of Modules/getaddrinfo.c

2016-03-07 Thread Ned Deily
Ned Deily added the comment: Thanks for noticing and for the patch, Alex! -- nosy: +ned.deily resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 2.7, Python 3.5, Python 3.6 ___ Python tracker

[issue26505] [PATCH] Spelling of ANY in the license of Modules/getaddrinfo.c

2016-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6b0204c23c5 by Ned Deily in branch '2.7': Issue #26505: Fix typos in getaddrinfo license text. https://hg.python.org/cpython/rev/c6b0204c23c5 New changeset a6b07ad3d14d by Ned Deily in branch '3.5': Issue #26505: Fix typos in getaddrinfo license

[issue11477] Incorrect operand precedence when implementing sequences in C

2016-03-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> patch review versions: +Python 3.6 -Python 3.5 ___ Python tracker ___

[issue26506] hex() documentation: mention "%x" % int

2016-03-07 Thread Eric V. Smith
Eric V. Smith added the comment: For 3.5 and 2.7, I'd suggest: format(value, 'x') or: format(value, 'X') Although you might disagree because of the verbosity. But at least you're not parsing a string at runtime. And for 3.6 with PEP-498: f'{value:x}' There are of course options for padding

[issue26493] Bad formatting in WinError 193 when using subprocess.check_call

2016-03-07 Thread Eryk Sun
Eryk Sun added the comment: It would be possible for subprocess to replace "%1" with the filename parsed from the command line and then re-raise the exception. That said, it's not as if this is a deficiency in the Windows implementation relative to subprocess on POSIX. For example, in 3.4 on

[issue25667] Supply dual-stack (IPv4/IPv6) socket bind routine

2016-03-07 Thread Jason R. Coombs
Jason R. Coombs added the comment: No reason not to put it in the socket module. I was thinking originally that the socket module was C only, but on further reflection, it could easily be one of the "additional facilities implemented in Python". Great suggestion. --

[issue26271] freeze.py makefile uses the wrong flags variables

2016-03-07 Thread Alex Willmer
Changes by Alex Willmer : -- nosy: +Alex.Willmer ___ Python tracker ___ ___

[issue25667] Supply dual-stack (IPv4/IPv6) socket bind routine

2016-03-07 Thread Josh Lee
Changes by Josh Lee : -- nosy: +jleedev ___ Python tracker ___ ___ Python-bugs-list

[issue26501] bytes splitlines() method returns strings without decoding

2016-03-07 Thread Paul Moore
Paul Moore added the comment: That's weird. I can confirm it's working for me on 3.5.1. I'll double check I wan't in 2.7 when I'm back at my work PC, but I didn't *think* I was. But regardless, there's clearly no bug here. Apologies for the confusion. --

[issue21034] Python docs reference the Distribute package which has been deprecated in favor of Setuptools

2016-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 50f593ed1469 by Berker Peksag in branch '3.5': Issue #21034: Remove outdated paragraph from venv documentation https://hg.python.org/cpython/rev/50f593ed1469 New changeset ac95719f1803 by Berker Peksag in branch 'default': Issue #21034: Remove

[issue24852] Python 3.5.0rc1 "HOWTO Use Python in the web" needs fix

2016-03-07 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue26498] _io.so flat namespace

2016-03-07 Thread Ned Deily
Ned Deily added the comment: An even more likely scenario: the Python executable you are using is coming from an older virtualenv. If so, you need to update the virtualenv to include an up-to-date python executable. -- ___ Python tracker

[issue18156] Add an 'attr' attribute to AttributeError

2016-03-07 Thread Xiang Zhang
Xiang Zhang added the comment: I'd like to ping this channel. I post a question on https://groups.google.com/forum/#!topic/comp.lang.python/y8yDAAJJ9Sc to ask if it is possible to directly get the attribute from AttributeError, which leads me here. -- nosy: +xiang.zhang

[issue21034] Python docs reference the Distribute package which has been deprecated in favor of Setuptools

2016-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: +1 from me for just removing the bootstrapping instructions from this note. (The original reference to Distribute has already been replaced with a reference to Setuptools at some point since Jurko filed this issue) --

[issue17394] Add slicing support to collections.deque

2016-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The output now is a deque. -- Added file: http://bugs.python.org/file42082/deque_slices_3.patch ___ Python tracker