[issue27209] Failing doctests in Library/email.*.rst

2016-08-09 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the patch! -- nosy: +zach.ware type: -> behavior versions: +Python 3.5 ___ Python tracker ___

[issue27209] Failing doctests in Library/email.*.rst

2016-08-09 Thread Roundup Robot
New submission from Roundup Robot: New changeset bb443518141e by Zachary Ware in branch '3.5': Issue #27209: Fix doctests in Doc/library/email*.rst https://hg.python.org/cpython/rev/bb443518141e New changeset 81dc2d250209 by Zachary Ware in branch 'default': Closes #27209: Merge with 3.5

[issue27208] Failing doctests in Library/traceback.rst

2016-08-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset eadf2905f424 by Zachary Ware in branch '3.5': Issue #27208: Fix doctest in Doc/library/traceback.rst https://hg.python.org/cpython/rev/eadf2905f424 New changeset 76c04e780cd5 by Zachary Ware in branch 'default': Closes #27208: Merge with 3.5

[issue27208] Failing doctests in Library/traceback.rst

2016-08-09 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the patch! -- nosy: +zach.ware type: -> behavior versions: +Python 3.5 ___ Python tracker ___

[issue27207] Failing doctests in Doc/whatsnew/3.2.rst

2016-08-09 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the patch! I added a couple more skips to get everything passing (the ones I skipped could not be properly tested). -- nosy: +zach.ware type: -> behavior versions: +Python 3.5 ___ Python tracker

[issue27207] Failing doctests in Doc/whatsnew/3.2.rst

2016-08-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset cee3074233e6 by Zachary Ware in branch '3.5': Issue #27207: Fix doctests in Doc/whatsnew/3.2.rst https://hg.python.org/cpython/rev/cee3074233e6 New changeset ea43895ebfd9 by Zachary Ware in branch 'default': Closes #27207: Merge with 3.5

[issue27687] Linux shutil.move between mountpoints as root does not retain ownership

2016-08-09 Thread Antti Haapala
Antti Haapala added the comment: And as it is documented, it would be a change against documentation. However as a stop-gap it is rather trivial to make your own copy function to fix this. copy2 returns the actual destination, so you could do def copy_with_ownership(src, dest, *,

[issue27722] Path.touch's keyword argument mode documented incorrectly

2016-08-09 Thread Zachary Ware
Zachary Ware added the comment: Yes, but 3.4 is out of bugfix maintenance and thus its docs are no longer updated. -- status: open -> closed versions: -Python 3.4 ___ Python tracker

[issue23591] Add Flags and IntFlags

2016-08-09 Thread Ethan Furman
Ethan Furman added the comment: The idea behind Flags is that they are easily combined enums. The advantage they have over IntFlags is they do not interact with integers, and they cannot have non-existing values used. By keeping the same API as IntFlags we only have two APIs instead of

[issue12345] Add math.tau

2016-08-09 Thread Tim Peters
Tim Peters added the comment: Hmm. I'd test that tau is exactly equal to 2*pi. All Python platforms (past, present, and plausible future ones) have binary C doubles, so the only difference between pi and 2*pi _should_ be in the exponent (multiplication by 2 is exact). Else we screwed up

[issue27722] Path.touch's keyword argument mode documented incorrectly

2016-08-09 Thread Ankur Dedania
Ankur Dedania added the comment: Path.touch is also incorrect in python 3.4 documents -- status: closed -> open versions: +Python 3.4 ___ Python tracker

[issue12345] Add math.tau

2016-08-09 Thread Guido van Rossum
Guido van Rossum added the comment: OK, here's a diff with a test that math.tau ~~ 2*math.pi. -- Added file: http://bugs.python.org/file44065/tau2.diff ___ Python tracker

[issue27708] Rounding/Large Int representation error with multiplication and division

2016-08-09 Thread Eric V. Smith
Changes by Eric V. Smith : -- title: Roudning/Large Int representation error with multiplication and division -> Rounding/Large Int representation error with multiplication and division ___ Python tracker

[issue27708] Roudning/Large Int representation error with multiplication and division

2016-08-09 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for giving an example. You misunderstand how the "/" operator works in python 3.x: the result is always a float. If you use "//", you'll get an integer: >>>

[issue12345] Add math.tau

2016-08-09 Thread Zachary Ware
Zachary Ware added the comment: Builds fine on Windows. Happily, `math.tau == 2*math.pi` is True. -- nosy: +zach.ware stage: needs patch -> commit review versions: +Python 3.6 ___ Python tracker

[issue27712] Tiny typos in import.rst

2016-08-09 Thread Martin Panter
New submission from Martin Panter: Looks good to me -- nosy: +martin.panter stage: -> commit review versions: +Python 3.5 ___ Python tracker ___

[issue27708] Roudning/Large Int representation error with multiplication and division

2016-08-09 Thread Ethan Glass
Ethan Glass added the comment: As I said in a previous post, the numbers used are not stored. I ran the algorithm again in the shell with the following result. >>>4332802906202498030216332367377544549613239461769577836837704406332963931535527253995277986388432*8

[issue19489] move quick search box above TOC

2016-08-09 Thread Ammar Askar
Ammar Askar added the comment: > 1. It would be better to make "Quick search" a placeholder Do you mean in addition to the "Quick search" text that is already on the page or do you want to remove that? Because placeholder isn't fully compatible with some older browsers

[issue26686] email.parser stops parsing headers too soon when given a defective message.

2016-08-09 Thread Martin Panter
Martin Panter added the comment: . It would be nice to get feedback if my patch is sensible, especially from people familiar with normal usage of the “email” module, as opposed with the usage by the HTTP module. -- stage: -> patch review ___

[issue27716] http.client truncates UTF-8 encoded headers

2016-08-09 Thread Martin Panter
Martin Panter added the comment: For the test case given, the main problem is actually that a header field is being incorrectly split on a Latin-1 “next line” control code U+0085. The problem is already described under Issue 22233. It looks like I wrote a patch for that a while ago, so it

[issue12345] Add math.tau

2016-08-09 Thread Guido van Rossum
Changes by Guido van Rossum : -- keywords: +patch Added file: http://bugs.python.org/file44063/tau.diff ___ Python tracker ___

[issue12345] Add math.tau

2016-08-09 Thread Guido van Rossum
Guido van Rossum added the comment: I'm just going to do this. -- assignee: -> gvanrossum resolution: rejected -> status: closed -> open ___ Python tracker

[issue27723] Document typing.Text and typing.AnyStr

2016-08-09 Thread Michael Lee
New submission from Michael Lee: This patch documents typing.Text and typing.AnyStr. I decided against creating a new top-level section to document Text/AnyStr mainly because it seems like how exactly str/bytes/unicode is handled by mypy and described in PEP 484 might be changing sometime in

[issue27414] http.server.BaseHTTPRequestHandler inconsistence with Content-Length value

2016-08-09 Thread Martin Panter
Changes by Martin Panter : -- stage: -> needs patch ___ Python tracker ___ ___

[issue26081] Implement asyncio Future in C to improve performance

2016-08-09 Thread Yury Selivanov
Yury Selivanov added the comment: I'd also think about implementing asyncio.Handle in C (with a freelist). -- ___ Python tracker ___

[issue27721] distutils strtobool returns 0 and 1 rather than False and True

2016-08-09 Thread Ned Deily
Ned Deily added the comment: Joseph, thanks for taking an interest in improving Python and submitting this patch. Alas, I don't think we should apply it. There are always tradeoffs that have to be considered when changing existing code. Distutils is one of the oldest and most external

[issue27720] decimal.Context.to_eng_string wrong docstring

2016-08-09 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +skrah ___ Python tracker ___ ___

[issue27719] Misleading note about "args" attribute in "User-defined Exceptions" section of tutorial

2016-08-09 Thread Berker Peksag
Berker Peksag added the comment: Thank you for your detailed report! Would you like to propose a patch? This behavior is already tested in testAttributes in Lib/test/test_exceptions.py so we just need a documentation patch. -- keywords: +easy nosy: +berker.peksag stage: -> needs

[issue27721] distutils strtobool returns 0 and 1 rather than False and True

2016-08-09 Thread Berker Peksag
Berker Peksag added the comment: Could you also update documentation in Doc/distutils/apiref.rst? Also, test_strtobool in Lib/distutils/tests/test_util.py doesn't test the following case: >>> from distutils.util import strtobool >>> strtobool('x') Traceback (most recent call

[issue21018] [patch] added missing documentation about escaping characters for configparser

2016-08-09 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch. Two things: * We want to keep docstrings short so could you please revert the changes in Lib/configparser.py? * It would be better to just add an example of escaping these characters in the "Interpolation of values" section (preferably

[issue27392] Add a server_side keyword parameter to create_connection

2016-08-09 Thread Yury Selivanov
Yury Selivanov added the comment: > WRT boolean for SSL, I think it's very common for clients to verify server > certificates, but relatively uncommon for servers to require client > certificates. The impression I have from reading docs and stack overflow > posts that the most common use

[issue19489] move quick search box above TOC

2016-08-09 Thread Berker Peksag
Berker Peksag added the comment: This looks pretty good to me, thanks! I have two minor suggestions: 1. It would be better to make "Quick search" a placeholder: 2. will add an unnecessary border in search page. I'd change it to

[issue26081] Implement asyncio Future in C to improve performance

2016-08-09 Thread Yury Selivanov
Yury Selivanov added the comment: > What parts of Future are performance critical? Maybe it is worth to implement > in C only the most critical code. Basically everything. Contrary to @contextmanager, Futures are the building blocks of asyncio, so instantiation + awaiting on them + setting

[issue27206] Failing doctests in Doc/tutorial/

2016-08-09 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the patch! -- assignee: docs@python -> zach.ware nosy: +zach.ware type: -> behavior versions: +Python 3.5 ___ Python tracker

[issue27206] Failing doctests in Doc/tutorial/

2016-08-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8b7efeeefa50 by Zachary Ware in branch '3.5': Issue #27206: Fix doctests in Doc/tutorial. https://hg.python.org/cpython/rev/8b7efeeefa50 New changeset 61d7aeb6aa1b by Zachary Ware in branch 'default': Closes #27206: Merge with 3.5

[issue27205] Failing doctests in Library/collections.rst

2016-08-09 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the patch! -- assignee: docs@python -> zach.ware nosy: +zach.ware type: -> behavior versions: +Python 2.7, Python 3.5 ___ Python tracker

[issue27205] Failing doctests in Library/collections.rst

2016-08-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset e399930d14f0 by Zachary Ware in branch '2.7': Issue #27205: Fix doctests in Doc/library/collections.rst https://hg.python.org/cpython/rev/e399930d14f0 New changeset 0d95e47cfe3e by Zachary Ware in branch '3.5': Issue #27205: Fix doctests in

[issue27713] Spurious "platform dependent libraries" warnings when running make

2016-08-09 Thread Ned Deily
Changes by Ned Deily : -- components: +Build -Installation nosy: +ned.deily stage: -> needs patch versions: +Python 3.6 ___ Python tracker

[issue27204] Failing doctests in Doc/howto/

2016-08-09 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the patch! -- assignee: -> zach.ware components: +Documentation nosy: +zach.ware type: -> behavior versions: +Python 2.7, Python 3.5, Python 3.6 ___ Python tracker

[issue27722] Path.touch's keyword argument mode documented incorrectly

2016-08-09 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the report! -- nosy: +zach.ware versions: -Python 3.4 ___ Python tracker ___

[issue27722] Path.touch's keyword argument mode documented incorrectly

2016-08-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 773bc9a3172d by Zachary Ware in branch '3.5': Issue #27722: Fix default for touch method's 'mode' argument https://hg.python.org/cpython/rev/773bc9a3172d New changeset 763d98f0a105 by Zachary Ware in branch 'default': Closes #27722: Merge with 3.5

[issue27204] Failing doctests in Doc/howto/

2016-08-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0eaa05a3db02 by Zachary Ware in branch '2.7': Issue #27204: Fix doctests in Doc/howto https://hg.python.org/cpython/rev/0eaa05a3db02 New changeset df92f9856b59 by Zachary Ware in branch '3.5': Issue #27204: Fix doctests in Doc/howto

[issue27722] Path.touch's keyword argument mode documented incorrectly

2016-08-09 Thread Ankur Dedania
New submission from Ankur Dedania: Path.touch's keyword argument mode documented incorrectly. In the documents, it shows keyword argument mode defaulted to 0o777, however within the code it is set to 0o666. -- assignee: docs@python components: Documentation messages: 272269 nosy:

[issue27200] make doctest in CPython has failures

2016-08-09 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___

[issue27128] Add _PyObject_FastCall()

2016-08-09 Thread STINNER Victor
STINNER Victor added the comment: > Benchmarking results look nice, but despite the fact that this patch is only small part of issue26814, it looks to me larger that it could be. Oh I failed to express my intent. This initial patch is not expected to introduce any speedup. In fact I noticed

[issue27721] distutils strtobool returns 0 and 1 rather than False and True

2016-08-09 Thread SilentGhost
SilentGhost added the comment: LGTM -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list

[issue27721] distutils strtobool returns 0 and 1 rather than False and True

2016-08-09 Thread Joseph Bane
Joseph Bane added the comment: Thank you for the feedback. Please find an updated patch attached. -- Added file: http://bugs.python.org/file44061/patch.diff ___ Python tracker

[issue27721] distutils strtobool returns 0 and 1 rather than False and True

2016-08-09 Thread SilentGhost
SilentGhost added the comment: Couple of things: your patch doesn't seem to apply cleanly for whatever reason (most likely because it's a patch against python2); the change from lowercasing to casefolding doesn't seem justified to me; the formatted value needs to be repr-formatted - though

[issue26526] In parsermodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA

2016-08-09 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___

[issue27128] Add _PyObject_FastCall()

2016-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Benchmarking results look nice, but despite the fact that this patch is only small part of issue26814, it looks to me larger that it could be. 1. The patch includes two parts: adding _PyObject_FastCall() and adding PyObject_CallNoArg() and

[issue27721] distutils strtobool returns 0 and 1 rather than False and True

2016-08-09 Thread R. David Murray
Changes by R. David Murray : -- title: strtobool returns 0 and 1 rather than False and True -> distutils strtobool returns 0 and 1 rather than False and True ___ Python tracker

[issue27721] distutils strtobool returns 0 and 1 rather than False and True

2016-08-09 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.6 -Python 2.7, Python 3.5 ___ Python tracker ___

[issue27721] strtobool returns 0 and 1 rather than False and True

2016-08-09 Thread Joseph Bane
New submission from Joseph Bane: The distutils strtobool function returns 0 or 1 rather than the native boolean type True or False values: https://hg.python.org/cpython/file/3.5/Lib/distutils/util.py#l304 Please see the attached patch for updates to this function. I have included updates to

[issue26081] Implement asyncio Future in C to improve performance

2016-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also a discussion on Python-Dev about rewriting contextlib.contextmanager in C: https://mail.python.org/pipermail/python-dev/2016-August/thread.html#145786 . What parts of Future are performance critical? Maybe it is worth to implement in C only the

[issue27704] bytes(x) is slow when x is bytearray

2016-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: -> serhiy.storchaka stage: -> commit review ___ Python tracker ___

[issue27704] bytes(x) is slow when x is bytearray

2016-08-09 Thread INADA Naoki
INADA Naoki added the comment: Thanks for comments. -- Added file: http://bugs.python.org/file44059/fast-bytearray-fromobject.patch ___ Python tracker

[issue27720] decimal.Context.to_eng_string wrong docstring

2016-08-09 Thread Antti Haapala
New submission from Antti Haapala: https://docs.python.org/3/library/decimal.html#decimal.Context.to_eng_string The docstring for `Context.to_eng_string` says "Converts a number to a string, using scientific notation.", which is, less extra comma, exactly the docstring for

[issue27712] Tiny typos in import.rst

2016-08-09 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: docs@python -> brett.cannon nosy: +brett.cannon ___ Python tracker ___

[issue27704] bytes(x) is slow when x is bytearray

2016-08-09 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Serhiy Thank you for your feedback. Stephane -- ___ Python tracker ___

[issue27719] Misleading note about "args" attribute in "User-defined Exceptions" section of tutorial

2016-08-09 Thread Ben Hoyt
Ben Hoyt added the comment: Note that I added the committers from issue 1692335 to the Nosy List -- probably overzealous and probably not the folks who maintain the docs, but oh well. :-) -- ___ Python tracker

[issue27719] Misleading note about "args" attribute in "User-defined Exceptions" section of tutorial

2016-08-09 Thread Ben Hoyt
New submission from Ben Hoyt: In the official tutorial in the "User-defined Exceptions" section (https://docs.python.org/3.5/tutorial/errors.html#user-defined-exceptions) there's a note about a user-defined Exception subclass as follows: "In this example, the default __init__() of Exception

[issue27682] Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

2016-08-09 Thread R. David Murray
R. David Murray added the comment: Kristján: right, what I'm saying about the possible bug is the final part of the traceback resulting from (apparently) wsgiref being closed and a new operation being attempted. *Probably* that is a django bug in handling a network error, but maybe it is a

[issue21999] shlex: bug in posix mode handling of empty strings

2016-08-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f02ad46a0a8 by Vinay Sajip in branch '3.5': Closes #21999: Handled empty strings correctly when in POSIX mode. https://hg.python.org/cpython/rev/4f02ad46a0a8 New changeset a8e74448678c by Vinay Sajip in branch 'default': Closes #21999: (Empty)

[issue27716] http.client truncates UTF-8 encoded headers

2016-08-09 Thread R. David Murray
R. David Murray added the comment: Well, email will happily parse bytes and treat the non-ascii data as opaque (though it does record errors in an internal data structure), but the python3 http api expects the parsed headers to be strings when you access them, so you'd just hit the decoding

[issue27682] Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

2016-08-09 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: As already stated, this error bubbles up from the TCP layer. It means that the tcp stack, for example, gave up resending a tcp frame and timed out, determining that the recipient was no longer listening. You cannot create this error yourself. If you,

[issue21999] shlex: bug in posix mode handling of empty strings

2016-08-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset cf04243e8d7d by Vinay Sajip in branch '2.7': Issue #21999: Handled empty strings correctly when in POSIX mode. https://hg.python.org/cpython/rev/cf04243e8d7d -- nosy: +python-dev ___ Python tracker

[issue27716] http.client truncates UTF-8 encoded headers

2016-08-09 Thread Cory Benfield
Cory Benfield added the comment: Honestly, David, everything's a mess on this front. The authoritative document here is RFC 7230 Section 3.2.4 (https://tools.ietf.org/html/rfc7230#section-3.2.4). The last paragraph of that section reads: Historically, HTTP has allowed field content with

[issue27704] bytes(x) is slow when x is bytearray

2016-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: bytearray suffers from the same issue. It would be nice to optimize it too. -- nosy: +serhiy.storchaka ___ Python tracker

[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2016-08-09 Thread R. David Murray
R. David Murray added the comment: The conversion of the module from a pure python module to a mixed module apparently caused a number of changes to the pydoc output. This should be addressed to make the pydoc output complete, even if it still different in detail. -- nosy:

[issue27717] sqlite documentation bug

2016-08-09 Thread R. David Murray
R. David Murray added the comment: I think it is pretty hard to miss "Never do this" when reading the code section. That said, I don't have a strong objection to changing it. I've reduced the versions field to those branches this might get changed in, as is our standard practice with the

[issue26081] Implement asyncio Future in C to improve performance

2016-08-09 Thread Yury Selivanov
Yury Selivanov added the comment: > Yury, could you review this before 3.6a4? Left a couple of comments; the important one -- Future.__await__ (and Future.__iter__) should always return a *new* instance of a generator-like object (tied to the Future object). --

[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2016-08-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ethan.furman, giampaolo.rodola ___ Python tracker ___

[issue27716] http.client truncates UTF-8 encoded headers

2016-08-09 Thread R. David Murray
R. David Murray added the comment: utf-8 headers are contrary to the http spec, aren't they? Or has that changed? (It's been a long time since I've looked at any http RFCs.) This could be fixed by using SMTPUTF8 mode when parsing the headers, which in theory ought to be backward compatible.

[issue27682] Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

2016-08-09 Thread R. David Murray
R. David Murray added the comment: Given that django is involved, it looks like it is most likely django that is calling the method after wsgiref is closed. This doesn't *look* like a stdlib problem from what we can see so far, but it certainly could be. We'd need a reproducer that didn't

[issue27698] socketpair not in socket.__all__ on Windows

2016-08-09 Thread R. David Murray
R. David Murray added the comment: Ah, I see. Yes, the normal "automatic adding" probably made that easy to forget. The lack of "windows" comment there fooled me...it looks like what was really added was "support for any platform that supports sockets but not socketpair" :) --

[issue26081] Implement asyncio Future in C to improve performance

2016-08-09 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> patch review versions: -Python 3.5 ___ Python tracker ___

[issue26081] Implement asyncio Future in C to improve performance

2016-08-09 Thread INADA Naoki
INADA Naoki added the comment: Yury, could you review this before 3.6a4? -- ___ Python tracker ___ ___

[issue12319] [http.client] HTTPConnection.request not support "chunked" Transfer-Encoding to send data

2016-08-09 Thread Rolf Krahl
Rolf Krahl added the comment: I just wrote: > There were also requests to drop support for stuff that is working > in the current library, although not documented, and that is > explicitly covered by the test suite. I'm fine with dropping that > and also adapted the tests accordingly. But

[issue27717] sqlite documentation bug

2016-08-09 Thread Eyal Mor
New submission from Eyal Mor: In the SQlite module documentation there a code section showing how to securely use the sqlite.execute method. The problem with this code section is that just from a glance, without reading the paragraph before, or the comments in the section, users could use the

[issue27716] http.client truncates UTF-8 encoded headers

2016-08-09 Thread Cory Benfield
Cory Benfield added the comment: Simple repro case: import http.client conn = http.client.HTTPConnection('pl.bab.la') conn.request("GET", '/slownik/angielski-polski/') resp = conn.getresponse() resp.read() # Hangs here -- ___

[issue27716] http.client truncates UTF-8 encoded headers

2016-08-09 Thread Cory Benfield
New submission from Cory Benfield: Originally reported as Requests issue #3485: https://github.com/kennethreitz/requests/issues/3485 On Python 3, http.client uses the email module to parse its HTTP headers. The email module, for better or worse, requires that it parse headers as *text*: that

[issue27708] Roudning/Large Int representation error with multiplication and division

2016-08-09 Thread Eric V. Smith
Eric V. Smith added the comment: Since your result is 6.754791118045615e+200, it's definitely not stored as an integer. If you would show us exactly how you calculated this value, we can explain where the conversion to floating point is taking place. In the meantime, I'm going to close this

[issue10910] pyport.h FreeBSD/Mac OS X "fix" causes errors in C++ compilation

2016-08-09 Thread koobs
koobs added the comment: @Brett / Ned I'm happy to carry the proposed patch in the FreeBSD ports/packages until the next releases if that helps your confidence levels. -- versions: +Python 3.5, Python 3.6 ___ Python tracker

[issue27392] Add a server_side keyword parameter to create_connection

2016-08-09 Thread Jim Fulton
Jim Fulton added the comment: +1 restricting uvloop to AF_INET or AF_UNIX and SOCK_STREAM, at least until someone requests something else. -- ___ Python tracker

[issue27392] Add a server_side keyword parameter to create_connection

2016-08-09 Thread Jim Fulton
Jim Fulton added the comment: WRT boolean for SSL, I think it's very common for clients to verify server certificates, but relatively uncommon for servers to require client certificates. The impression I have from reading docs and stack overflow posts that the most common use case for the

[issue27574] Faster parsing keyword arguments

2016-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed, in issue17170 this issue was discussed first. -- ___ Python tracker ___

[issue23591] Add Flags and IntFlags

2016-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The name IntFlags is inspired by the Flags attribute in C# (this is the most close concept). The "Int" prefix is added for parallel with IntEnum and because the class behaves as int in some contexts (supports operators |, &, ^, ~ and can be passed to

[issue27708] Roudning/Large Int representation error with multiplication and division

2016-08-09 Thread Ethan Glass
Ethan Glass added the comment: I actually started with a very small integer, said integer being 14. I then multiplied it by two large integers(10^100 or higher).I no longer have access to the two large integers, as they were never stored. When I divided the product by the two large integers,

[issue27682] Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

2016-08-09 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: This error is a protocol error. It is the analog to WSAECONNRESET. ECONNRESET occurs when the local host receives a RST packet from the peer, usually because the peer closed the connection. WSAECONNABORT occurs when the local tcp layer decides that the

[issue26209] TypeError in smtpd module with string arguments

2016-08-09 Thread Ram Vallury
Ram Vallury added the comment: added space before word portnumber. column space adjusted -- Added file: http://bugs.python.org/file44055/smtpd_doc_updated_3.patch ___ Python tracker

[issue27703] Replace two Py_XDECREFs with Py_DECREFs in do_raise

2016-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: do_raise_v2.patch (with asserts) LGTM. There are two ways that lead to this point (and third way leads to raising an exception), and additional assertions make the code clearer, because a reader shouldn't follow all these patch for reading the code after

[issue27181] Add geometric mean to `statistics` module

2016-08-09 Thread Ram Rachum
Ram Rachum added the comment: I meant the mathematical definition. -- ___ Python tracker ___ ___

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

2016-08-09 Thread devurandom
Changes by devurandom : -- nosy: +devurandom ___ Python tracker ___ ___ Python-bugs-list

[issue27181] Add geometric mean to `statistics` module

2016-08-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Tue, Aug 09, 2016 at 06:44:22AM +, Ram Rachum wrote: > For `geometric_mean`, maybe I'd add one sentence that describes > how the geometric mean is calculated. What do you mean? As in, the mathematical definition of geometric mean? Or do you mean a one

[issue27693] curses.textpad.Textbox(win).edit() won't edit last character

2016-08-09 Thread Dietmar Schindler
Dietmar Schindler added the comment: Regarding Issue8243: This issue is about writing the lower-right character of a window via *addch()* or *addstr()*. But for curses.textpad.Textbox(win).edit() the use of *addch()* or *addstr()* is not unavoidable; it could well use *insch()* or *insstr()*

[issue27714] some test_idle tests are not re-runnable, producing false failures with regrtest -w option

2016-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, the 'question above' was actually posted to #27380, the original query issue. -- ___ Python tracker ___

[issue27621] Finish IDLE Query dialog appearance and behavior.

2016-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Actually, the query test failure is posted to #27380 -- ___ Python tracker ___

[issue27380] IDLE: add base Query dialog with ttk widgets

2016-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +markroseman ___ Python tracker ___ ___

[issue27621] Finish IDLE Query dialog appearance and behavior.

2016-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: See #27714 for more on the test failure. -- ___ Python tracker ___ ___

[issue27714] some test_idle tests are not re-runnable, producing false failures with regrtest -w option

2016-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, see questions about Mac above. Basically, do we still need to add 'file://'? The test_textview repeat errors are eliminated by removing 'del TV' in tearDownModule. I added it in what seems to be an excess of caution when chasing down tk warnings

  1   2   >