[issue24912] The type of cached objects is mutable

2015-09-08 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue24991] Define instance mutability explicitly on type objects

2015-09-08 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue25034] string.Formatter accepts empty fields but displays wrong when nested

2015-09-08 Thread Anthon van der Neut
New submission from Anthon van der Neut: Since 3.4.1, string.Formatter() accepts empty keys {}. If these are nested they give different results from explicitly numbered, where the same arguments applied "".format() give the expected results: from string import Formatter f = Formatter

[issue24912] The type of cached objects is mutable

2015-09-08 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -Guido.van.Rossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue25034] string.Formatter accepts empty fields but displays wrong when nested

2015-09-08 Thread R. David Murray
Changes by R. David Murray : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue25034] string.Formatter accepts empty fields but displays wrong when nested

2015-09-08 Thread Anthon van der Neut
Anthon van der Neut added the comment: Here is a patch for Python-3.5.0rc3/Lib/test/test_string.py unittests fail: --- /opt/python/3.5/lib/python3.5/test/test_string.py 2015-09-08 17:06:07.099197904 +0200 +++ test_string.py 2015-09-08 21:47:01.471634309 +0200 @@ -58,6 +58,8 @@

[issue24760] IDLE settings dialog shouldn't be modal

2015-09-08 Thread Mark Roseman
Mark Roseman added the comment: Note: about dialog part of the 'demodalize' patch split off and now in #24813; the bulk of the rest of it, which is really providing a cleaner FileList API rather than direct access to internals from EditorWindow, is in #25031. After the latter patch is accepted

[issue25034] string.Formatter accepts empty fields but displays wrong when nested

2015-09-08 Thread Eric V. Smith
Changes by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-08 Thread Christoph Gohlke
Christoph Gohlke added the comment: I understand that distributing dependent DLLs next to extension modules is considered the best approach (which nevertheless fails in common cases), however vcruntime140.dll is a spec

[issue25003] os.urandom() should call getrandom(2) not getentropy(2)

2015-09-08 Thread STINNER Victor
STINNER Victor added the comment: Thread on python-dev: https://mail.python.org/pipermail/python-dev/2015-September/141439.html -- ___ Python tracker ___ ___

[issue25003] os.urandom() should call getrandom(2) not getentropy(2)

2015-09-08 Thread STINNER Victor
STINNER Victor added the comment: > Perhaps the getentropy() check can explicitly rule out Solaris (either at the > autoconf level or in the random.c source code) if you prefer to keep the > getentropy() call on OpenBSD. Ok, here is a patch implementing this option. It keeps getentropy() on Op

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset d0bb896f9b14 by Victor Stinner in branch 'default': Revert change 0eb8c182131e: https://hg.python.org/cpython/rev/d0bb896f9b14 -- ___ Python tracker __

[issue25002] Deprecate asyncore/asynchat

2015-09-08 Thread Mark Lawrence
Mark Lawrence added the comment: IIRC I flagged up oustanding asyncore/asynchat issues months or even years back and Victor closed a lot down, so there shouldn't be many left to deal with. -- nosy: +BreamoreBoy ___ Python tracker

[issue23738] Clarify documentation of positional-only default values

2015-09-08 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +io.[Text]IOBase.seek doesn't take keyword parameter ___ Python tracker ___ ___ Python-bug

[issue25030] io.[Text]IOBase.seek doesn't take keyword parameter

2015-09-08 Thread Martin Panter
Martin Panter added the comment: This also bugs me, and the same problem exists in other parts of the documentation. Perhaps you might be interested in Issue 23738 and whether changing to the new notation used by PEP 457, pydoc, help(), Argument Clinic is any good: seek(offset, whence=SEEK_SE

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-08 Thread Steve Dower
Steve Dower added the comment: vcruntime140.dll *is* a system library when installed properly, and if someone installs VCRedist then all the bundled ones should be ignored. Over time, I expect to see extensions appear that depend on vcruntime150.dll rather than 140.dll, so it won't always be s

[issue25035] Getter/setter for argparse keys

2015-09-08 Thread Sworddragon
New submission from Sworddragon: On making a look at the argparse documentation to figure out if I can get the value of the choices key of a specific argument after argument parsing or if I have to implement it myself I noticed that there is a getter/setter for the default key (ArgumentParser.

[issue25036] IDLE - infrastructure changes so editors don't assume they're in a toplevel

2015-09-08 Thread Mark Roseman
New submission from Mark Roseman: A necessary prerequisite of tabbed windows, editor and shell in same window etc. as per #24826, is that editors stop thinking they are in their own toplevel window. The attached component.patch is unfortunately long, but this was necessary due to the highly i

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 171d5590ebc3 by Victor Stinner in branch 'default': Issue #23517: fromtimestamp() and utcfromtimestamp() methods of https://hg.python.org/cpython/rev/171d5590ebc3 -- ___ Python tracker

[issue25029] MemoryError in test_strptime

2015-09-08 Thread Steve Dower
Steve Dower added the comment: Thanks. I'll submit a PR for 3.5.0 later tonight - can't seem to clone Larry's repo successfully at work for some reason. -- ___ Python tracker __

[issue24862] subprocess.Popen behaves incorrect when moved in process tree

2015-09-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: My gut feeling is to say "don't do that" when it comes to passing subprocess instances between processes (ie: pickling and unpickling them) and expecting them to work as if nothing had changed... You already acknowledge that this is a strange thing for an a

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-08 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file40362/round_half_up_py34-2.patch ___ Python tracker ___ ___ Python-bugs-l

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-08 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file40365/combined_py34.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-08 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file40364/fromtimestamp_round_half_up_py34-2.patch ___ Python tracker ___ __

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-08 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file40349/timedelta_round_half_up_py34.patch ___ Python tracker ___ ___ Pyth

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-08 Thread Larry Hastings
Larry Hastings added the comment: I wish people wouldn't remove old patches. There's no harm in leaving them, and it may be a useful historical record. -- ___ Python tracker __

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-08 Thread STINNER Victor
STINNER Victor added the comment: I modified Python 3.6 to use ROUND_HALF_EVEN rounding mode in datetime.timedelta, datetime.datetime.fromtimestamp(), datetime.datetime.utcfromtimestamp(). round_half_even_py34.patch: Backport this change to Python 3.4. I tried to write a minimal patch only ch

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-08 Thread STINNER Victor
STINNER Victor added the comment: > I wish people wouldn't remove old patches. There's no harm in leaving them, > and it may be a useful historical record. It became hard to read this issue, it has a long history. My old patches for Python 3.4 were for ROUND_HALF_UP, but it was then decided t

[issue25029] MemoryError in test_strptime

2015-09-08 Thread Steve Dower
Steve Dower added the comment: PR at https://bitbucket.org/larry/cpython350/pull-requests/21/issue-25029-memoryerror-in-test_strptime/diff -- ___ Python tracker ___

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-08 Thread eryksun
eryksun added the comment: I think 3.5 should be distributed with vcruntime140.dll. It seems a waste for python.exe, python35.dll, and all of the extension modules and dependent DLLs to each take an FLS slot: >>> import ctypes # +1 for _ctypes >>> kernel32 = ctypes.WinDLL('kernel32')

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-08 Thread Steve Dower
Steve Dower added the comment: Okay, here's a proposal: We bundle vcruntime140.dll with Python's normal install, so it's always there and extensions that use it do not need to ship anything. When distutils._msvccompiler is used to build an extension with a *different* version of MSVC, it will

[issue23447] Import fails when doing a circular import involving an `import *`

2015-09-08 Thread Steven Barker
Steven Barker added the comment: I've managed to partially fix my build environment, so I can verify that my patch (attached previously) works as intended. I'm not completely sure that it doesn't break unrelated things as my build still has lots of failing tests (which all appear to be unrelat

[issue25029] MemoryError in test_strptime

2015-09-08 Thread Larry Hastings
Larry Hastings added the comment: Does this need a Misc/NEWS entry? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue25037] ValueError: invalid literal for int() with base 16: b'[\r\n'

2015-09-08 Thread Alan
New submission from Alan: I've written a piece of code to POST request to a web service. === import json import urllib from urllib import request from urllib import parse def Payload(start_date, end_date, pnode_list):

[issue23738] Clarify documentation of positional-only default values

2015-09-08 Thread Martin Panter
Changes by Martin Panter : -- nosy: +berker.peksag versions: +Python 3.6 Added file: http://bugs.python.org/file40417/pos-defaults.v3.patch ___ Python tracker ___ ___

[issue23738] Clarify documentation of positional-only default values

2015-09-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset fdb5d84f9948 by Martin Panter in branch '3.4': Issue #23738: Document and test actual keyword parameter names https://hg.python.org/cpython/rev/fdb5d84f9948 New changeset 40bf1ca3f715 by Martin Panter in branch '3.5': Issue #23738: Merge 3.4 into

[issue23738] Clarify documentation of positional-only default values

2015-09-08 Thread Martin Panter
Martin Panter added the comment: I have committed the obvious keyword argument name fixes from my patch. Now patch v3 contains just the PEP 457 changes to be considered. -- ___ Python tracker _

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-08 Thread Steve Dower
Steve Dower added the comment: New patch. Mostly build and installer changes, but the distutils/_msvccompiler.py is also part of it. I've run a full build and done basic testing with a full test run going now, but I don't have a clean machine handy to try it without the full CRT install, so t

[issue25029] MemoryError in test_strptime

2015-09-08 Thread Steve Dower
Steve Dower added the comment: Probably should, since the fix that caused it was in for rc3. There's no section for 3.5.0 final yet though (that's my excuse, anyway :) ) -- ___ Python tracker _

[issue25030] io.

2015-09-08 Thread shiyao.ma
shiyao.ma added the comment: Thanks for your comment. I had a read of pep457. It's still in draft status, so incorporating the / indicator is not much a concern AFAIK. Any further modification for me to do to get that merged? -- title: io.[Text]IOBase.seek doesn't take keyword paramete

[issue25037] ValueError: invalid literal for int() with base 16: b'[\r\n'

2015-09-08 Thread Martin Panter
Martin Panter added the comment: It looks like this is a fault in the server. It does not appear to support Connection: close over HTTP 1.1, which is what Python’s “urllib.request” module uses. I think you will either have to get the server fixed, or work around the problem by using the low le

[issue25037] ValueError: invalid literal for int() with base 16: b'[\r\n'

2015-09-08 Thread Martin Panter
Martin Panter added the comment: FYI maybe your workaround of clearing HTTPResponse.chunked will work at the moment, but it would break if the server ever gets fixed and starts sending proper chunked responses. -- ___ Python tracker

[issue25030] io.[Text]IOBase.seek doesn't take keyword parameter

2015-09-08 Thread Martin Panter
Martin Panter added the comment: I will try to commit your patch today when I up to it. Maybe the “draft” status of that PEP is out of date. The slash (/) indicator is already being used in some places in pydoc, e.g. $ pydoc object.__eq__ Help on wrapper_descriptor in object: object.__eq__ =

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-08 Thread Larry Hastings
Changes by Larry Hastings : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue12849] Cannot override 'connection: close' in urllib2 headers

2015-09-08 Thread Martin Panter
Martin Panter added the comment: Just closed Issue 25037 about a server that omits the chunk length headers when “Connection: closed” is used. I wonder if it would be such a bad idea to just remove the “Connection: closed” flag. It was added in 2004 in revision 5e7455fb8db6, but I do not agree

[issue25021] product_setstate() Out-of-bounds Read

2015-09-08 Thread John Leitch
John Leitch added the comment: All appears well. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-08 Thread Steve Dower
Steve Dower added the comment: FYI: we're making a new release (right now!) with the patch applied, that should go out tomorrow. If anyone spots anything important in the patch, I still really want to hear about it, but hopefully having something installable means we'll get at least a few day

[issue24199] Idle: remove idlelib.idlever.py and its use in About dialog

2015-09-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 55b62e2c59f8 by Terry Jan Reedy in branch '2.7': Issue 24199: Deprecate idlelib.idlever with a warning on import. https://hg.python.org/cpython/rev/55b62e2c59f8 New changeset c51514826126 by Terry Jan Reedy in branch '3.4': Issue 24199: Deprecate id

[issue24991] Define instance mutability explicitly on type objects

2015-09-08 Thread Nick Coghlan
Nick Coghlan added the comment: Also adding Trent Nelson to the nosy list, as I believe this capability could potentially be relevant to PyParallel. The reason I say that is that if instance mutability (or the lack thereof) becomes a first class language concept, then we may be able to adopt a

[issue24199] Idle: remove idlelib.idlever.py and its use in About dialog

2015-09-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks, Brett. Since I am not wrapping the warning, the default stacklevel seems to work on all versions. Still to do: 1. Something in the docs (all branches), but with an eye toward other deprecations coming later. 2. Actually remove file in 3.6 branch, but

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-08 Thread Martin Panter
Changes by Martin Panter : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue25034] string.Formatter accepts empty fields but displays wrong when nested

2015-09-08 Thread Anthon van der Neut
Anthon van der Neut added the comment: The problem lies in the recursive call to _vformat which might consume fields without name ({}) and increment auto_arg_index, but that incremented value was not returned to the parent. Since the line became longer than pep8 allowed I wrapped all of the met

[issue25038] test_os.TestSendfile.test_keywords() introduced a regression

2015-09-08 Thread STINNER Victor
New submission from STINNER Victor: The change e42e2bd47168 introduced a regression, test_os started to fail on FreeBSD. What is the rationale of the change? For example, test_os pass in the previous build on the same buildbot. I don't know if it makes sense to pass None to headers and/or trai

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset da9b26670e44 by Martin Panter in branch '3.4': Issue #24984: Document AF_BLUETOOTH socket address formats https://hg.python.org/cpython/rev/da9b26670e44 New changeset 4ce8450da22d by Martin Panter in branch '3.5': Issue #24984: Merge 3.4 into 3.5

<    1   2