[issue30917] IDLE: Add idlelib.config.IdleConf unittest

2017-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whatever is merged with PR_2691, further improvements can be made in further PRs either on this issue or others that work on config code. I still think this test is slower than it should be -- the change to deep copy either made no difference or made it

[issue1442493] IDLE shell window gets very slow when displaying long lines

2017-07-17 Thread Louie Lu
Louie Lu added the comment: Besides warping text, there has a performance issue inside the RPCServer and Client. The (console, write, (text, file), {}) command is sent by server `asynccall`->`putmessage`. It should be sent by chunk size to client, and render on IDLE shell. The result is

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks Raymond and Jelle. The bar for a reimplementation in C is much higher (though we'll have to agree that Jelle's version is fast enough before we reject it). The bar for backporting this to 3.6 is much higher as well and I think it's not worth

[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces

2017-07-17 Thread Louie Lu
Louie Lu added the comment: Charles, good to saw the patch, would you like to convert it into GitHub PR? also, it would have to adjust some coding style to satisfy PEP8. I can help you on GitHub to review this patch. -- nosy: +louielu ___ Python

[issue30953] Fatal python error when jumping into except clause

2017-07-17 Thread Louie Lu
Louie Lu added the comment: You will need to use `dis` to see what actually done by bytecode. $ ./python -m dis tests.py Disassembly of : 9 0 SETUP_EXCEPT 4 (to 6) 10 2 POP_BLOCK 4 JUMP_FORWARD12 (to 18) 11 >>6 POP_TOP

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : -- resolution: rejected -> ___ Python tracker ___ ___

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Should we consider a C-based implementation like https://github.com/ll/cnamedtuple? It could improve speed even more, but would be harder to maintain and test and harder to keep compatible. My sense is that it's not worth it unless benchmarks show a

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Re-opening per discussion on python-dev. Goals: * Extend Jelle's patch to incorporate lazy support for "_source" and "verbose" so that the API is unchanged from the user's point of view. * Make sure the current test suite still passes and that the current

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

2017-07-17 Thread Louie Lu
Louie Lu added the comment: I update how to prepare coverage on Linux and MacOS. I first thought user will prepare as Terry wrote at the top of `5. Test Coverage`. Cheryl's method is good, the update guide is borrow from here. First create a virtualenv, then install coverage via pip in venv.

[issue27268] Incorrect error message on float('')

2017-07-17 Thread Pedro Lacerda
Changes by Pedro Lacerda : -- pull_requests: +2805 ___ Python tracker ___ ___

[issue30888] import class not isinstance of the class

2017-07-17 Thread 邱伟略
邱伟略 added the comment: ok. i see what you mean. so python mark the class from the import way -- resolution: not a bug -> works for me stage: -> resolved status: pending -> closed ___ Python tracker

[issue30956] ftplib socket timeout can't be handled

2017-07-17 Thread R. David Murray
R. David Murray added the comment: Given: import socket from ftplib import FTP try: ftp = FTP('host.i.know.will.hang.com', timeout=4) except socket.timeout: print('caught') I see 'caught' printed on the console. However, if I increase the timeout to 400, then on both 3.5 tip and 3.6

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Guido van Rossum
Guido van Rossum added the comment: On python-dev Raymond agreed to reopen the issue and consider Jelle's implementation (https://github.com/python/cpython/pull/2736). -- nosy: +gvanrossum ___ Python tracker

[issue30956] ftplib socket timeout can't be handled

2017-07-17 Thread Arlo Clarke
New submission from Arlo Clarke: Stack overflow question with full details: https://stackoverflow.com/questions/45150568/python-ftp-socket-timeout-handling Socket timeout in ftplib can't be handled; a program crash occurs even when the relevant code is wrapped in a general catch-all.

[issue30955] \\N in f-string causes next { to be literal if not escaped

2017-07-17 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. This problem has been fixed in Python 3.6.2 which was just released. I believe it was fixed by the changes for Issue29104. -- nosy: +ned.deily resolution: -> out of date stage: -> resolved status: open -> closed

[issue30955] \\N in f-string causes next { to be literal if not escaped

2017-07-17 Thread Mital Ashok
New submission from Mital Ashok: Take this format python code: import unicodedata c = chr(0x012345) To print that character as a string literal, you would expect to do: print(f"'\\N{{{unicodedata.name(c)}}}'") Which should print a literal quote (`'`), a backwards slash (`\\` ->

[issue30954] backport unittest.TestCase.assertLogs to 2.7?

2017-07-17 Thread R. David Murray
R. David Murray added the comment: There is, however, unittest2 on pypi that has most of the python3 features backported. -- ___ Python tracker ___

[issue30954] backport unittest.TestCase.assertLogs to 2.7?

2017-07-17 Thread R. David Murray
R. David Murray added the comment: No. 2.7 is in maintenance mode and gets no new features. -- nosy: +r.david.murray resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

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

2017-07-17 Thread Steve Dower
Steve Dower added the comment: Ah, there's also a nuget.org outage affecting AppVeyor (but not me because I'm in Italy and so connecting to the EU mirror automatically) - https://appveyor.statuspage.io/ When that recovers it should be fine again. The workaround for those without py.exe is to

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

2017-07-17 Thread Steve Dower
Steve Dower added the comment: Yeouch, it's been causing AppVeyor builds to get stuck, and then they time out after an hour. Luckily mine is up next in a minute or so, so I'll try to merge quickly and avoid anyone else getting held up. I also restored HOST_PYTHON in the PR, as a fallback for

[issue30954] backport unittest.TestCase.assertLogs to 2.7?

2017-07-17 Thread Dan Lipsitt
New submission from Dan Lipsitt: Would it be appropriate to backport unittest.TestCase.assertLogs to python 2.7? This would be a useful feature for me. -- components: Library (Lib) messages: 298558 nosy: Dan Lipsitt, ezio.melotti, michael.foord, rbcollins priority: normal severity:

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

2017-07-17 Thread Steve Dower
Changes by Steve Dower : -- assignee: zach.ware -> steve.dower resolution: fixed -> stage: resolved -> commit review status: closed -> open ___ Python tracker

[issue30952] include Math extension in SQlite

2017-07-17 Thread R. David Murray
Changes by R. David Murray : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

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

2017-07-17 Thread Steve Dower
Changes by Steve Dower : -- pull_requests: +2804 ___ Python tracker ___ ___

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

2017-07-17 Thread Steve Dower
Steve Dower added the comment: Hmm... looks like there's another way to fail I didn't account for that goes down a different path in the batch file. I'll try being less clever. -- ___ Python tracker

[issue30953] Fatal python error when jumping into except clause

2017-07-17 Thread ppperry
New submission from ppperry: trying to execute the following code: import sys def trace(frame, event, arg): if event == "line" and frame.f_lineno > 12: frame.f_lineno = 12 return None return trace sys.settrace(trace) def error(): try: pass except:

[issue30952] include Math extension in SQlite

2017-07-17 Thread Big Stone
New submission from Big Stone: I would be interested in having SQLite shipped with the math extension in python-3.7. The log / exponential function are important for some sql use case like exp(sum(log(x))) -- components: Extension Modules messages: 298555 nosy: Big Stone priority:

[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces

2017-07-17 Thread Charles Wohlganger
Charles Wohlganger added the comment: I've written an extension (see file) that does auto insertion of closing parens, brackets, braces, ticks, and quotes. It also (optionally) skips the closers when they are typed right next to the already exiting one. It also takes into account triple-ticks

[issue30949] Provide assertion functions in unittest.mock

2017-07-17 Thread ppperry
ppperry added the comment: You can already do this, although it it somewhat of a hack: >>> assert_called_once=Mock.assert_called_once # This will be an AttributeError >>> assert_called_once_with=Mock.assert_called_once_with >>> example = Mock() >>> assert_caled_once_with(example, ...) # A

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

2017-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: I just got a download failure on an AppVeyor build: https://ci.appveyor.com/project/python/cpython/build/3.7.0a0.4571 Downloading nuget... Invoke-WebRequest : The operation has timed out. At line:1 char:1 + Invoke-WebRequest https://aka.ms/nugetclidl -OutFile

[issue18558] Iterable glossary entry needs clarification

2017-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: The problem with the Iterable ABC is that 'iterable' and 'iterator' are *dynamically* defined, with a possibly infinite time required to possibly destructively check either definition. In general, an algorithmic *static* check can only guess whether an

[issue30951] Documentation error in inspect module

2017-07-17 Thread Alex
Changes by Alex : -- pull_requests: +2803 ___ Python tracker ___ ___ Python-bugs-list

[issue30951] Documentation error in inspect module

2017-07-17 Thread Alex
Changes by Alex : -- pull_requests: +2802 ___ Python tracker ___ ___ Python-bugs-list

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

2017-07-17 Thread Gareth Rees
Changes by Gareth Rees : -- pull_requests: +2801 ___ Python tracker ___ ___

[issue30576] http.server should support HTTP compression (gzip)

2017-07-17 Thread R. David Murray
R. David Murray added the comment: I do not have a strong opinion on this issue, but I share Martin's doubts that it should be added. It certainly should not be on by default if it is added. We should get input from other core devs. -- nosy: +r.david.murray

[issue30919] Shared Array Memory Allocation Regression

2017-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Serhiy, I've changed the strategy in PR 2708: now the partition free space is tested before deciding to locate the file there or not. -- ___ Python tracker

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

2017-07-17 Thread Gareth Rees
Gareth Rees added the comment: (If he hasn't, I don't think I can make a PR because I read his patch and so any implementation I make now is based on his patch and so potentially infringes his copyright.) -- ___ Python tracker

[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 ___

[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 ___ ___

[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"

[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. --

[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

[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 ___

[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

[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

[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

[issue30950] Convert round() to Arument Clinic

2017-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2800 ___ Python tracker ___ ___

[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

[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.

[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

[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

[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

[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

[issue30949] Provide assertion functions in unittest.mock

2017-07-17 Thread tribaal
Changes by tribaal : -- nosy: +tribaal ___ Python tracker ___ ___ Python-bugs-list

[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 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() >>>

[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

[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

[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

[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

[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:

[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.

[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

[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:

[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

[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

[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 ___

[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,

[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. -- ___

[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: 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 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: 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

[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. -- ___

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___

[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 ___ ___

[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

[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

[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

[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

[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

[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 ___ ___

[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

[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 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 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 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

[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 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: > 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

[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

[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

[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

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

2017-07-17 Thread Gareth Rees
Changes by Gareth Rees : -- nosy: +benjamin.peterson ___ 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

[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: 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 --

[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

[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

[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

  1   2   >