[issue30940] Documentation for round() is incorrect.

2017-07-17 Thread Mark Dickinson
Mark Dickinson added the comment: [Serhiy] > Wasn't this change a mistake? Seems Mark opposed to it. Shrug. It seemed unnecessary to me to explicitly support `None` as a second argument, but it's done now; reverting the change at this point would do more harm than good. So indeed there's a mi

[issue9262] IDLE: Revise or replace tabbedpages for multi-editor window.

2017-07-17 Thread Vedran Čačić
Vedran Čačić added the comment: Hm, interesting. Yes, I admit I didn't even know Firefox behaved in such a way, and I have used Firefox for quite a long time. But I'd say it only proves my point. How will users know about it? Also: you probably want, when a user clicks on some file to say "Ope

[issue18558] Iterable glossary entry needs clarification

2017-07-17 Thread Vedran Čačić
Vedran Čačić added the comment: I think this is backwards. "Refusing the temptation to guess" in this case can mean returning True for is_iterable. After all, we can always have something like class Deceptive: def __iter__(self): raise TypeError("I'm not really iterable

[issue30943] printf-style Bytes Formatting sometimes do not worked.

2017-07-17 Thread zaazbb
New submission from zaazbb: # works. >>> b'\x00\x08%(amount)b'% {b'amount':b'1'} b'\x00\x081' # not work. >>> b'\x11\x00\x08%(amount)b'% {b'amount':b'1'} b'\x11\x00\x08%(amount)b' # not work. >>> amount=bytearray(b'0010') >>> posnum=bytearray(b'423') >>> date_ =b'170717' >>>

[issue30850] [2.7] bsddb3: test01_basic_replication() of test_bsddb3 fails randomly on AMD64 Windows8.1 Refleaks 2.7

2017-07-17 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%202.7/builds/50 ... test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedTransactions) ... ok test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedNoWaitTransactions)

[issue30916] Pre-build OpenSSL and Tcl/Tk for Windows

2017-07-17 Thread Steve Dower
Steve Dower added the comment: New changeset 68d663cf85d1ac5eaf83482eed39c0a6f8093601 by Steve Dower in branch 'master': [bpo-30916] Pre-build OpenSSL and Tcl/Tk for Windows (#2688) https://github.com/python/cpython/commit/68d663cf85d1ac5eaf83482eed39c0a6f8093601 -- _

[issue30916] Pre-build OpenSSL and Tcl/Tk for Windows

2017-07-17 Thread STINNER Victor
STINNER Victor added the comment: Failure: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/750 -- nosy: +haypo ___ Python tracker ___

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Steve Dower
Steve Dower added the comment: The buildbot failures currently being blamed on issue30916 are actually due to this issue - we actually need Python 3.6 on these machines in order to download the new externals, and they don't have it and we can't get it via Powershell. -- __

[issue30916] Pre-build OpenSSL and Tcl/Tk for Windows

2017-07-17 Thread Steve Dower
Steve Dower added the comment: The buildbot failure blamed on this issue is actually due to issue30450 - it's the first time we've added a new external, and so the inability to download Python via Powershell on Windows 7 is the problem, not this. -- ___

[issue30916] Pre-build OpenSSL and Tcl/Tk for Windows

2017-07-17 Thread Steve Dower
Changes by Steve Dower : -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Steve Dower
Changes by Steve Dower : -- pull_requests: +2797 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Steve Dower
Steve Dower added the comment: My PR adds a small script to use requests.get/urlretrieve with any version of Python to get nuget.exe. Theoretically, we *could* use this to download everything, but I'd rather minimize our exposure to insecure downloads for machines that don't already have Pyth

[issue30944] Python 32 bit install fails on Windows - BitDefender false positives

2017-07-17 Thread Arie van Wingerden
New submission from Arie van Wingerden: I discovered that BitDefender somehow blocks part of the installation of Python 3.x on Windows, resulting in a completely broken installation. I found this after having turned my system inside out ... @!#$%^&^%$#@ So solving it is either: deinstall Bi

[issue30944] Python 32 bit install fails on Windows - BitDefender false positives

2017-07-17 Thread Louie Lu
Louie Lu added the comment: I think BitDefender has some option like "disable 10 mins"? You may disable your antivirus when you are install something you be sure that is trustworthy. Or maybe BitDefender is right, you download a wrong .msi from other place that has been insert something bad, c

[issue30945] loop.create_server does not detect if the interface is IPv6 enabled

2017-07-17 Thread Cecile Tonglet
New submission from Cecile Tonglet: The IPv6 detection in asyncio.base_events.create_server only detect if IPv6 is available instead of checking if the interface can actually support it. I noticed that by using Python in a Docker container (example code to reproduce in attachment): docker ru

[issue9262] IDLE: Revise or replace tabbedpages for multi-editor window.

2017-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suspect that Edit with IDLE would open a new window as it does now, but I don't really know. I don't think that IDLE would have any control. I seldom start IDLE that way. -- ___ Python tracker

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread STINNER Victor
STINNER Victor added the comment: Compilation failed on: * http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/885 * http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/750 -- nosy: +haypo ___ Python tracker

[issue30944] Python 32 bit install fails on Windows - BitDefender false positives

2017-07-17 Thread Arie van Wingerden
Arie van Wingerden added the comment: Hi Louie, 1) no, I definitely used the right installer 2) BitDefender also interferes often when I compile Go programs So, in the end it is a real pain in the neck and I deinstalled it. Maybe other people can live with it, but it has cost me a lot of time

[issue30808] Use _Py_atomic API for concurrency-sensitive signal state

2017-07-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30808] Use _Py_atomic API for concurrency-sensitive signal state

2017-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 2c8a5e4c968217f9672340e520942c4ed788d8de by Antoine Pitrou in branch 'master': bpo-30808: Use _Py_atomic API for concurrency-sensitive signal state (#2417) https://github.com/python/cpython/commit/2c8a5e4c968217f9672340e520942c4ed788d8de ---

[issue30946] readline module has obsolete code

2017-07-17 Thread Antoine Pitrou
New submission from Antoine Pitrou: The readline module has obsolete code for platforms where GNU readline is older than 2.1 or where select() is not available. -- components: Extension Modules messages: 298479 nosy: pitrou priority: low severity: normal stage: needs patch status: open

[issue30946] readline module has obsolete code

2017-07-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2798 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30946] readline module has obsolete code

2017-07-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue30946] readline module has obsolete code

2017-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: According to https://ftp.gnu.org/gnu/readline/, GNU readline 2.1 was released in 1997... We could probably even require 5.0 (released in 2004), but it raises the question of which functions are supported by third-party emulations such as libedit. --

[issue30943] printf-style Bytes Formatting sometimes do not worked.

2017-07-17 Thread Gareth Rees
Gareth Rees added the comment: Test case minimization: Python 3.6.1 (default, Apr 24 2017, 06:18:27) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> b'a\x00%(a)s' % {b'a': b'a'} b

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: I disagree with the rejection of this request. The idea that "_source is an essential feature" should be backed by usage statistics instead of being hand-waved as rejection cause. -- nosy: +pitrou resolution: rejected -> stage: resolved -> status: c

[issue30943] printf-style Bytes Formatting sometimes do not worked.

2017-07-17 Thread Gareth Rees
Gareth Rees added the comment: This was already noted in issue29714 and fixed by Xiang Zhang in commit b76ad5121e2. -- ___ Python tracker ___ ___

[issue9216] FIPS support for hashlib

2017-07-17 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: @Andrew This has already been implemented downstream for RHEL and centos. -- ___ Python tracker ___ _

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Nick Coghlan
Nick Coghlan added the comment: Folks, you're talking about removing a *public*, *documented* API from the standard library. The onus would thus be on you to prove *lack* of use, *and* provide adequate justification for the compatibility break, not on anyone else to prove that it's "sufficient

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Nick, can you stop closing an issue where the discussion hasn't been settled? This isn't civil. -- resolution: rejected -> stage: resolved -> status: closed -> open ___ Python tracker

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Nick Coghlan
Nick Coghlan added the comment: So unless and until he gets overruled by Guido, Raymond's decision to reject the proposed change stands. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Just because I disagree with you doesn't mean I'm pestering anyone. Can you stop being so obnoxious? -- ___ Python tracker ___ ___

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Nick Coghlan
Nick Coghlan added the comment: There's a path for escalation when you disagree with the decision of a module/API maintainer (in this case, Raymond): bringing the issue closure up on python-dev for wider discussion. It *isn't* repeatedly reopening the issue after they have already made their

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Nick Coghlan
Nick Coghlan added the comment: Check the issue history - the issue has been rejected by Raymond, and then reopened for further debate by other core developers multiple times. That's not a reasonable approach to requesting reconsideration of a module/API maintainers design decision. I acknowl

[issue28638] Optimize namedtuple creation

2017-07-17 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I don't have much data at this point, but it's not the first time that I noticed that namedtuple is super slow. We have much more efficient code like structseq in C. Why not reusing it at least in our stdlib modules? About the _source attribute, honestl

[issue30942] Implement lwalk(levelwalk) function on os.py

2017-07-17 Thread R. David Murray
R. David Murray added the comment: Thanks for being interested in improving Python. Please join the discussion in the existing issue 26781, which proposes a max_depth parameter for walk. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed super

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Nick Coghlan
Nick Coghlan added the comment: Yes, I'm saying you need a really long justification to explain why you want to break backwards compatibility solely for a speed increase. For namedtuple instances, the leading underscore does *NOT* indicate a private attribute - it's just there to avoid collidi

[issue30934] Document how to run coverage for repository idlelib files.

2017-07-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: I tried out the instructions. I guess my first question is how stand alone these instructions are and how much you expect someone to already know about coverage. What I mean is, I needed to go to the devguide to read more about coverage in order to run the s

[issue18558] Iterable glossary entry needs clarification

2017-07-17 Thread R. David Murray
R. David Murray added the comment: No, refusing to guess in this case is to believe the class's declaration that it is an iterable if (and only if) it defines __iter__, which is the modern definition of iterable. If that doesn't work when the object is iterated, that's a bug in the class clai

[issue30944] Python 32 bit install fails on Windows - BitDefender false positives

2017-07-17 Thread Steve Dower
Steve Dower added the comment: The best response is to notify Bitdefender so they can fix their signatures. Python is commonly used in malware, and so some parts of it are often misidentified as unique to some detected virus. By reporting the name of the virus and providing the actual file to

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Steve Dower
Steve Dower added the comment: New changeset 588836d3e646c2bcb3473cda7c5f6a1e0ff2c2e9 by Steve Dower in branch 'master': bpo-30450: Adds alternate download approach for nuget.exe (#2737) https://github.com/python/cpython/commit/588836d3e646c2bcb3473cda7c5f6a1e0ff2c2e9 --

[issue30943] printf-style Bytes Formatting sometimes do not worked.

2017-07-17 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> out of date stage: -> resolved status: open -> closed superseder: -> can't interpolate byte string with \x00 before replacement identifier ___ Python tracker _

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Steve Dower
Steve Dower added the comment: Compilation still fails, as some of the buildbots don't have py.exe either. At this stage, our choices are either to fix the buildbots, most easily by copying py.exe into PATH, or to check nuget.exe (4MB) into the source repository. (I guess we can cover a few mo

[issue19896] Exposing "q" and "Q" to multiprocessing.sharedctypes

2017-07-17 Thread Gareth Rees
Changes by Gareth Rees : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue28638] Optimize namedtuple creation

2017-07-17 Thread STINNER Victor
STINNER Victor added the comment: Benchmark comparing collections.namedtuple to structseq, to get an attribute: * Getting an attribute by name (obj.attr): Mean +- std dev: [name_structseq] 24.1 ns +- 0.5 ns -> [name_namedtuple] 45.7 ns +- 1.9 ns: 1.90x slower (+90%) * Getting an attribute by

[issue18558] Iterable glossary entry needs clarification

2017-07-17 Thread Vedran Čačić
Vedran Čačić added the comment: Of course. The Deceptive class was just reductio ad absurdum. I'm all for believing the class through what attributes does it expose. We agree there. Where we don't agree, is _what_ attributes constitute the iteration protocol. You, the source code and the docum

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: If the dependencies are in git, why don't you use "git clone" instead of trying a HTTP fetch? -- ___ Python tracker ___ ___

[issue28638] Optimize namedtuple creation

2017-07-17 Thread STINNER Victor
STINNER Victor added the comment: > Speed isn't everything, and it certainly isn't adequate justification for > breaking public APIs that have been around for years. What about the memory usage? > See my old issue #19640 (...) msg203271: """ I found this issue while using my tracemalloc modu

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: For example "git clone --depth 1 https://github.com/python/cpython-bin-deps --branch openssl-bin-1.0.2k myopenssldir" -- ___ Python tracker ___

[issue28638] Optimize namedtuple creation

2017-07-17 Thread STINNER Victor
STINNER Victor added the comment: > So structseq is 1.9x faster than namedtuple to get an attribute by name. Oops, I wrote it backward: So namedtuple is 1.9x slower than structseq to get an attribute by name. (1.9x slower doesn't mean 1.9x faster, sorry.) -- _

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Steve Dower
Steve Dower added the comment: We can't assume git.exe is available either (build from sdist/hggit/.zip), though I guess we can also use it as a fallback. At least on the buildbots it'll be there. -- ___ Python tracker

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think it's reasonable to mandate the presence of a git install to fetch CPython externals. After all we used to mandate the presence of a svn install... -- ___ Python tracker

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread STINNER Victor
STINNER Victor added the comment: > We can't assume git.exe is available either How do you get CPython source code if git is not available? Also using HTTP to get a tarball? I think that it's ok to require git to build CPython on Windows. Previously, we required: svn, perl and git :-) -

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Steve Dower
Steve Dower added the comment: > we used to mandate the presence of a svn install And we regretted that so much that we changed away from it :) When discussing this changeover plan, Zach and I decided we needed a fallback requiring only OS dependencies. In this case, the Powershell dependency

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Steve Dower
Steve Dower added the comment: > How do you get CPython source code if git is not available? Go to GitHub and click the "Download" button, or select any sdist from our downloads page, or use Mercurial+hggit, or Dulwich directly, or a mirror/fork on any VCS you like. There are plenty of ways th

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Steve Dower
Changes by Steve Dower : -- pull_requests: +2799 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue26781] os.walk max_depth

2017-07-17 Thread André Rossi Korol
André Rossi Korol added the comment: I proposed a new function called lwalk(level walk) that recurses only to a certain level of depth: http://bugs.python.org/issue30942 It is implemented in os.py and calls os.walk, but making sure it recurses only to a selected level of depth. If it is accepte

[issue30944] Python 32 bit install fails on Windows - BitDefender false positives

2017-07-17 Thread Arie van Wingerden
Arie van Wingerden added the comment: OK. Will contact BitDefender. 2017-07-17 14:55 GMT+02:00 Steve Dower : > > Steve Dower added the comment: > > The best response is to notify Bitdefender so they can fix their > signatures. > > Python is commonly used in malware, and so some parts of it are

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: > And we regretted that so much that we changed away from it :) I'm not sure what your reasons were but from my POV (as someone who used to build on Windows from time to time), the two problems were: 1) svn was only used for this while we had migrated to hg 2

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread STINNER Victor
STINNER Victor added the comment: Ah ok, I see, I was focused on buildbots and other CIs, sorry. > Maybe we should consider just checking in nuget.exe? Where? In Python source code? I don't want to how to maintain yet another dependencies :-( I prefer to try a few tools, or explain how to get

[issue28638] Optimize namedtuple creation

2017-07-17 Thread INADA Naoki
INADA Naoki added the comment: I respect Raymond's rejection. But I want to write down why I like Jelle's approach. Currently, functools is the only module which is very popular. But leaving this means every new namedtuple makes startup time about 0.6ms slower. This is also problem for appli

[issue19640] Dynamically generate the _source attribute of namedtuple to save memory)

2017-07-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue28638] Optimize namedtuple creation

2017-07-17 Thread STINNER Victor
STINNER Victor added the comment: > It's possible to expose StructSeq somewhere. Hum, when I mentioned structseq: my idea was more to reimplement namedtuple using the existing structseq code, since structseq is well tested and very fast. -- ___ Pytho

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Steve Dower
Steve Dower added the comment: Unfortunately, "install " is often a blocking requirement for many developers (typically the ones who get paid well to do this), so I'd rather have no requirements. Currently we achieve this if PowerShell is up to date or Python+py.exe are installed, both of whi

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Steve Dower
Steve Dower added the comment: New changeset efa26bcd5085279fc4e9ae96d052272a5214c2bd by Steve Dower in branch 'master': bpo-30450: Fall back to git.exe if no Python is found. (#2739) https://github.com/python/cpython/commit/efa26bcd5085279fc4e9ae96d052272a5214c2bd -- ___

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Steve Dower
Steve Dower added the comment: The buildbots have already successfully built, so I'm declaring this and issue30916 resolved. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Jeremy Kloth
Jeremy Kloth added the comment: Or, use the preexisting convention of the HOST_PYTHON envvar that was used prior to the recent merged PRs -- nosy: +jkloth ___ Python tracker ___

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Steve Dower
Steve Dower added the comment: > use the preexisting convention of the HOST_PYTHON envvar that was used prior > to the recent merged PRs Is that an actual convention? I didn't see any other references, so I figured Zach had made it up. -- ___ Pytho

[issue30830] HTTPHandlerTest of test_logging leaks a "dangling" thread on AMD64 FreeBSD CURRENT Non-Debug 3.x

2017-07-17 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/587/steps/test/logs/stdio test_listen_config_10_ok (test.test_logging.ConfigDictTest) ... Warning -- threading_cleanup() failed to cleanup -1 threads after 3 sec (count: 0, da

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think that's used on Unix when cross-compiling, but I don't know about Windows... -- ___ Python tracker ___ _

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Jeremy Kloth
Jeremy Kloth added the comment: > In this case, the Powershell dependency fails on Windows 7 since it does not > have the Invoke-WebRequest command (unless you've been installing all your > updates). Just to note, PowerShell must be updated *manually* (at least on Win7). Plus you need to kno

[issue26781] os.walk max_depth

2017-07-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I think there is a little need in this feature. I concur with Serhiy and think we're better-off without this proposal. Marking this as closed. -- nosy: +rhettinger resolution: -> rejected stage: -> resolved status: open -> closed ___

[issue30947] Update embeded copy of libexpat to 2.2.2

2017-07-17 Thread STINNER Victor
New submission from STINNER Victor: libexpat released a new version 2.2.2 which seems to contain 2 or 3 security fixes. I'm not sure that Python is affected by these bugs. https://github.com/libexpat/libexpat/blob/R_2_2_2/expat/Changes#L5 Release 2.2.2 Wed July 12 2017 Security fixes:

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-07-17 Thread Jeremy Kloth
Jeremy Kloth added the comment: > Is that an actual convention? I didn't see any other references, so I figured > Zach had made it up. It has existed in the Windows build files since 2.5, when x64 supported was initially added by MvL. -- nosy: +jeremy.kloth ___

[issue30948] Docs for __subclasses__(): Add hint that Python imports are lazy

2017-07-17 Thread Thomas Guettler
New submission from Thomas Guettler: AFAIK cls.__subclasses__() only returns the classes which the interpreter has already loaded. This means there can be more subclasses in modules where not imported by the current interpreter up to now. https://docs.python.org/3.7/library/stdtypes.html?high

[issue30947] Update embeded copy of libexpat to 2.2.2

2017-07-17 Thread STINNER Victor
STINNER Victor added the comment: > #51 Address lack of stdint.h in Visual Studio 2003 to 2008 FYI this change only impacts Python 2.7, since Python 3.3 and newer requires Visual Studio 2010 or newer, and I already backported (cherry-picked) this specific commit in Python 2.7: https://github.

[issue30947] Update embeded copy of libexpat to 2.2.2

2017-07-17 Thread STINNER Victor
STINNER Victor added the comment: About the 3 security fixes (is the last change a security fix?). """ #43 Protect against compilation without any source of high quality entropy enabled, e.g. with CMake build system; commit ff0207e6076e9828e5

[issue18558] Iterable glossary entry needs clarification

2017-07-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: The wold "iterable" just means "can be looped over". There are many ways to implement this capability (two-arg form of iter(), the __iter__ method, generators, __getitem__ with integer indexing, etc). collections.abc.Iterable is more limited and that is ok

[issue30940] Documentation for round() is incorrect.

2017-07-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Wasn't this change a mistake? Now that it is deployed, it should probably be left alone (it is has to take back an API change), but this should be a cautionary note for arg-clinic enthusiasts to not change existing APIs. When Argument Clinic is too limi

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-07-17 Thread pfreixes
pfreixes added the comment: The following links point to three different implementations of the same scenario using a Twisted, Node and Python blocking clients that try to reproduce the same scenario. - Twisted https://gist.github.com/pfreixes/0d8b24b98567e557d6059b3308aa07ca - Node https://gi

[issue30949] Provide assertion functions in unittest.mock

2017-07-17 Thread Daniel Watkins
New submission from Daniel Watkins: The convenience assertion methods on mock objects can be easily mistyped and if they are mistyped, they will silently pass. This can be quite user-hostile. Consider the following: >>> example = Mock() >>> example.assert_called_once() >>> example.assert_cal

[issue18558] Iterable glossary entry needs clarification

2017-07-17 Thread Vedran Čačić
Vedran Čačić added the comment: Raymond, I think you didn't understand the issue. Glossary already _has_ the ammendment you mention (at least for the __getitem__ - I'm not sure any of other examples you mention are counterexamples to that interpretation: callable_iterators and generators _do_

[issue30949] Provide assertion functions in unittest.mock

2017-07-17 Thread tribaal
Changes by tribaal : -- nosy: +tribaal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue18558] Iterable glossary entry needs clarification

2017-07-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Or at least, if we cannot do that because of backward > compatibility:-(, to explicitly document that Iterable ABC > _does not_ fully encompass what we mean by "being iterable". That would be a reasonable amendment to collections.abc.Iterable docs. I don't

[issue30948] Docs for __subclasses__(): Add hint that Python imports are lazy

2017-07-17 Thread R. David Murray
R. David Murray added the comment: Thanks for the suggestion, but I don't think so. Python imports are not lazy. They are ordered. Python is an *interpreted* language, so __subclasses__ is only going to hold those subclasses whose class definitions have been executed. This is fundamental to

[issue30940] Documentation for round() is incorrect.

2017-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: round() was not converted to Argument Clinic. There is a special comment about this: /* AC: cannot convert yet, as needs PEP 457 group support in inspect * or a semantic change to accept None for "ndigits" */ *Now* round() can be converted to Argument

[issue30940] Documentation for round() is incorrect.

2017-07-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I prepared a patch for this but wanted to make sure this is a desirable > behavior. That seems reasonable to me. Mark, what do you think? -- ___ Python tracker

[issue30950] Convert round() to Arument Clinic

2017-07-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: When the builtins module was converted to Argument Clinic, round() was omitted because existing signature of round() wasn't supported with the inspect module. Now round() supports None as the value for the ndigits arguments, and this is the default value.

[issue18558] Iterable glossary entry needs clarification

2017-07-17 Thread Vedran Čačić
Vedran Čačić added the comment: Yes, the mapping/sequence distinction was (at least declaratively) the reason the ABCs were introduced, but that isn't an obstacle here: whether a mapping or a sequence, it _is_ iterable, right? --- In case anybody is interested, here's how I came to this probl

[issue30950] Convert round() to Arument Clinic

2017-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2800 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue27640] add the '--disable-test-suite' option to configure

2017-07-17 Thread Ed Morley
Changes by Ed Morley : -- nosy: +edmorley ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-07-17 Thread Guido van Rossum
Guido van Rossum added the comment: There's no need. You seem to have accidentally shown a use case for getting the buffered data -- it can contain an error message explaining why the connection was closed. -- ___ Python tracker

[issue30950] Convert round() to Arument Clinic

2017-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Documentation for round() is incorrect. nosy: +mark.dickinson, rhettinger ___ Python tracker ___ _

[issue30940] Documentation for round() is incorrect.

2017-07-17 Thread Mark Dickinson
Mark Dickinson added the comment: Sure, fine with me to add AC support for round. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue19896] Exposing "q" and "Q" to multiprocessing.sharedctypes

2017-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Uh, it's a pity this patch has been overlooked. Gareth, would you want to make a Github PR out of this? -- nosy: +pitrou type: -> enhancement versions: +Python 3.7 -Python 3.4 ___ Python tracker

[issue18558] Iterable glossary entry needs clarification

2017-07-17 Thread R. David Murray
R. David Murray added the comment: "things with __getitem__ are clearly iterable" This is false. IMO it should be fixed in the glossary. It should say "or __getitem__ method implementing sequence semantics". That plus the addition to the Iterable docs will close this issue. -- vers

[issue30951] Documentation error in inspect module

2017-07-17 Thread Alex Vig
New submission from Alex Vig: The documentation for co_names in the inspect module is: "tuple of names of local variables" Local variable names are however in co_varnames while co_names contains global variable names. This description should read: "tuple of names of global variables" Relevan

[issue19896] Exposing "q" and "Q" to multiprocessing.sharedctypes

2017-07-17 Thread Gareth Rees
Gareth Rees added the comment: Has Antony Lee has made a copyright assignment? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19896] Exposing "q" and "Q" to multiprocessing.sharedctypes

2017-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: According to the asterisk displayed right of his name, he has, yes. -- ___ Python tracker ___ ___ Py

  1   2   >