[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

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

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

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

2017-07-17 Thread Gareth Rees
Changes by Gareth Rees : -- pull_requests: +2801 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30951] Documentation error in inspect module

2017-07-17 Thread Alex
Changes by Alex : -- pull_requests: +2802 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue30951] Documentation error in inspect module

2017-07-17 Thread Alex
Changes by Alex : -- pull_requests: +2803 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

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

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

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

[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

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

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

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

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[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 : -- assignee: zach.ware -> steve.dower resolution: fixed -> stage: resolved -> commit review status: closed -> open ___ Python tracker ___ __

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

[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

[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

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

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

[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 (`\\` -> `\

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

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

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

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

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

2017-07-17 Thread Pedro Lacerda
Changes by Pedro Lacerda : -- pull_requests: +2805 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

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

[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

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

[issue28638] Optimize namedtuple creation

2017-07-17 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : -- resolution: rejected -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[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

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

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

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

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

[issue30957] pathlib: Path and PurePath cannot be subclassed

2017-07-17 Thread Simon Bernier St-Pierre
New submission from Simon Bernier St-Pierre: Because of the special way Path and PurePath are instantiated, they can't be inherited like a normal class. Here's an example of the issue: >>> import pathlib >>> class MyPath(pathlib.Path): ... pass ... >>> p = MyPath('/home') Traceback (most rec

<    1   2