[issue27645] Supporting native backup facility of SQLite

2018-03-12 Thread Lele Gaifax
Lele Gaifax added the comment: Sorry, I could not find an easy enough way to compile against SQLite 3.8.7.1, being on Debian sid myself (3.22). I hope to find some time to try harder. -- ___ Python tracker _

[issue33040] Make itertools.islice supports negative values for start and stop arguments for sized iterable object

2018-03-12 Thread TitanSnow
TitanSnow added the comment: Now I have thought about it and realized that it's not suitable for islice. But there's still a common use case to drop some elements from the beginning or ending of a iterable, which is also a main reason why I wanted islice to support negative values of start and s

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-03-12 Thread Ma Lin
Ma Lin added the comment: The source code of .chm changed between 3.6.2 and 3.6.3, the former uses escaped html entities. I couldn't find out which commit caused this change. 3.6.2 chm: What’s New In Python 3.6 3.6.3 chm: What抯 New In Python 3.6 3.6.2 chm: Summary – Release highlights 3.6.3 c

[issue32489] Allow 'continue' in 'finally' clause

2018-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there are no objections I'll merge this PR soon. -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue22102] Zipfile generates Zipfile error in zip with 0 total number of disk in Zip64 end of central directory locator

2018-03-12 Thread Thomas Kluyver
Thomas Kluyver added the comment: Do you know what tool created the zip file? I can't find anything in the spec (https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT ) to say whether 0 is a valid value for the number of disks. -- nosy: +takluyver __

[issue32719] fatal error raised when Ctrl-C print loop

2018-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, I don't think this can be fixed in an easy way. Let's say that users will have to live with that. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue33053] Running a module with `-m` will add empty directory to sys.path

2018-03-12 Thread Antti Haapala
New submission from Antti Haapala : I think this is a really stupid security bug. Running a module with `-mmodule` seems to add '' as a path in sys.path, and in front. This is doubly wrong, because '' will stand for whatever the current working directory might happen to be at the time of the *

[issue22102] Zipfile generates Zipfile error in zip with 0 total number of disk in Zip64 end of central directory locator

2018-03-12 Thread Thomas Kluyver
Thomas Kluyver added the comment: I found source code for some other projects handling the same data. They all seem to agree that it should be 1: - Golang's zip reading code: https://github.com/golang/go/blob/f7ac70a56604033e2b1abc921d3f0f6afc85a7b3/src/archive/zip/reader.go#L536-L538 - A C c

[issue33042] New 3.7 startup sequence crashes PyInstaller

2018-03-12 Thread Nick Coghlan
Nick Coghlan added the comment: I don't think we made any start-up changes that were specific to PySys_AddWarnOption, so my suspicion is that the crash is going to be related to a change in the constraints on either the unicode object creation or the list append operation. The attached patch

[issue33042] New 3.7 startup sequence crashes PyInstaller

2018-03-12 Thread Nick Coghlan
Change by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29712] --enable-optimizations does not work with --enable-shared

2018-03-12 Thread Eric Dujardin
Eric Dujardin added the comment: I have the same error when building 3.6.4, however not exactly with the same options. Some context first: $ lsb_release -d; lscpu |head -1 Description:Ubuntu 14.04.5 LTS Architecture: x86_64 $ gcc --version gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.

[issue33018] Improve issubclass() error checking and message

2018-03-12 Thread Joshua Bronson
Joshua Bronson added the comment: I'll share the use case that prompted me to submit this PR in the first place. I am the author of bidict (https://pypi.python.org/pypi/bidict), which provides a bidirectional dict class. A bidict is just like a dict, except it automatically maintains its inve

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Mark Dickinson
Mark Dickinson added the comment: One quibble with Raymond's response: > 2) Your use case is trivially solved in a portable, trivial, and readable > > way: > >a == int(a) For Decimal, I'd recommend using `a == a.to_integral_value()` instead. Using `a == int(a)` will be inefficient if `

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-12 Thread Nick Coghlan
Nick Coghlan added the comment: With both Eric's and Serhiy's updates merged, and issue 33039 broken out for the __index__ oddities, this is resolved now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tra

[issue33054] unittest blocks when testing function using multiprocessing.Pool with state spawn

2018-03-12 Thread Kenneth Chik
New submission from Kenneth Chik : I am not sure if this is python or OS problem, I just installed Ubuntu 18.04 LTS which comes with python3 v3.6.4. When I try to unittest code which contains multiprocessing.Pool with spawn, the unittest.main() blocks after completing all the tests. This probl

[issue33042] New 3.7 startup sequence crashes PyInstaller

2018-03-12 Thread STINNER Victor
STINNER Victor added the comment: Python documentation was enhanced in Python 3.7 to explicitly list all functions safe to call *before* Py_Initialize(): https://docs.python.org/dev/c-api/init.html#before-python-initialization PySys_AddWarnOption() is not part of the list. While it's not in t

[issue22674] RFE: Add signal.strsignal(): string describing a signal

2018-03-12 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.5 ___ Python tracker ___ _

[issue22674] RFE: Add signal.strsignal(): string describing a signal

2018-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is now pushed. Thank you Antoine! -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-li

[issue33042] New 3.7 startup sequence crashes PyInstaller

2018-03-12 Thread Nick Coghlan
Nick Coghlan added the comment: Adding a bit of context from my prior email discussion with Hartmut: CPython actually reads sys.warnoptions at the end of Py_Initialize (its the last thing we do before the function returns). It also reads sys._xoptions during startup, since that's one way of e

[issue32608] Incompatibilities with the socketserver and multiprocessing packages

2018-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hi Michael, sorry for the silence on this issue. I think the ProcessingMixIn feature is a good idea, I'll give the PR a review when I get the time. -- versions: -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7

[issue33055] bytes does not implement __bytes__()

2018-03-12 Thread FHTMitchell
New submission from FHTMitchell : Every object which has a corresponding dunder protocol also implements said protocol with one exception: >>> 'hello'.__str__() 'hello' >>> (3.14).__float__() 3.14 >>> (101).__int__() 101 >>> True.__bool__() True >>> iter(range(10)).__iter__() >>> b'hello

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Robert Smallshire
Robert Smallshire added the comment: To respond to Raymond's points: 1) Nobody is suggesting that every float method should also be available on int. Clearly some methods on float are not applicable to int. 2) Taken narrowly, you're right that is_integer() does nothing useful for int. Neithe

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Robert Smallshire
Robert Smallshire added the comment: Apologies for the email splurge. That's the first and last time I'll use the email interface to bugs.python.org. -- ___ Python tracker ___

[issue33056] LEaking files in concurrent.futures.process

2018-03-12 Thread Thomas Moreau
New submission from Thomas Moreau : The recent changes introduced by https://github.com/python/cpython/pull/3895 leaks some file descriptors (the Pipe open in _ThreadWakeup). They should be properly closed at shutdown. -- components: Library (Lib) messages: 313656 nosy: tomMoral priorit

[issue22102] Zipfile generates Zipfile error in zip with 0 total number of disk in Zip64 end of central directory locator

2018-03-12 Thread Guillaume Carre
Guillaume Carre added the comment: Hi, In my case the zip file was created from windows 7 context menu (send to) Regards, Guillaume On Mon, Mar 12, 2018 at 5:08 AM, Thomas Kluyver wrote: > > Thomas Kluyver added the comment: > > I found source code for some other projects handling the same

[issue32972] unittest.TestCase coroutine support

2018-03-12 Thread John Andersen
John Andersen added the comment: I've updated my pull request to do the following: 1. Provide a new AsyncTestCase class which is a subclass of TestCase 2. Run coroutines with a coroutineRunner property. a. In 3.6 this calls get_evet_loop.run_until_complete b. In 3.7 > this calls asyncio.run

[issue22102] Zipfile generates Zipfile error in zip with 0 total number of disk in Zip64 end of central directory locator

2018-03-12 Thread Thomas Kluyver
Thomas Kluyver added the comment: If every Windows 7 computer is generating zipfiles which are invalid in this way, that would be a pretty strong argument for Python (and other tools) to accept it. But if that was the case, I would also expect that there would be many more issues about it. A

[issue22674] RFE: Add signal.strsignal(): string describing a signal

2018-03-12 Thread Ned Deily
Ned Deily added the comment: test_strsignal is failing on macOS. == FAIL: test_strsignal (test.test_signal.PosixTests) -- Traceback (most recent call last):

[issue22674] RFE: Add signal.strsignal(): string describing a signal

2018-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ned, this is why I'd like issue33048 to be solved :-) Having to rely on the buildbot fleet for bugfix iteration is not convenient at all. -- ___ Python tracker _

[issue33057] logging.Manager.logRecordFactory is never used

2018-03-12 Thread Ben Feinstein
New submission from Ben Feinstein : In logging.Manager, the logRecordFactory attribute is never used. One would expect that makeRecord() (in logging.Logger) would generate a record using its manager's logRecordFactory, or fallback to the global _logRecordFactory (if has no manager, or manager.

[issue22674] RFE: Add signal.strsignal(): string describing a signal

2018-03-12 Thread Antoine Pietri
Antoine Pietri added the comment: Yes, sorry, the issue is that we decided with pitrou to remove the osx specific handling. The fix should be: diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index fbb12a5b67..ae0351e992 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_s

[issue12345] Add math.tau

2018-03-12 Thread Mark Dickinson
Mark Dickinson added the comment: Why does this issue keep ending up as the target of unrelated PR notifications? -- ___ Python tracker ___

[issue22674] RFE: Add signal.strsignal(): string describing a signal

2018-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Should I submit a new PR for this? Please do. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue33055] bytes does not implement __bytes__()

2018-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This isn't one exception. For example complex doesn't have the __complex__ method. __str__, __float__, __int__ and __bool__ are implemented in str, float, int and bool because there are corresponding special slots in a type object. But __bytes__ and __comp

[issue22674] RFE: Add signal.strsignal(): string describing a signal

2018-03-12 Thread Antoine Pietri
Change by Antoine Pietri : -- pull_requests: +5846 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue22674] RFE: Add signal.strsignal(): string describing a signal

2018-03-12 Thread Antoine Pietri
Antoine Pietri added the comment: Done, https://github.com/python/cpython/pull/6085 As I said in the PR body, I can't test it myself, I don't have an OSX VM setup. -- ___ Python tracker _

[issue12345] Add math.tau

2018-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because of its lucky number. See https://github.com/python/core-workflow/issues/223 (fixed). -- ___ Python tracker ___

[issue33056] LEaking files in concurrent.futures.process

2018-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 095ee415cee41bf24c3a1108c23307e5baf168dd by Andrew Svetlov (Thomas Moreau) in branch 'master': bpo-33056 FIX leaking fd in concurrent.futures.ProcessPoolExecutor (#6084) https://github.com/python/cpython/commit/095ee415cee41bf24c3a1108c23307e5baf

[issue33048] macOS job broken on Travis CI

2018-03-12 Thread Carol Willing
Change by Carol Willing : -- keywords: +patch pull_requests: +5847 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue22674] RFE: Add signal.strsignal(): string describing a signal

2018-03-12 Thread Ned Deily
Ned Deily added the comment: > Ned, this is why I'd like issue33048 to be solved :-) Having to rely on the > buildbot fleet for bugfix iteration is not convenient at all. I want to see it solved, too. :-) But there are other core-devs out there who are in a better position to solve it at the

[issue33057] logging.Manager.logRecordFactory is never used

2018-03-12 Thread Ben Feinstein
Change by Ben Feinstein : -- keywords: +patch pull_requests: +5848 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue3014] file_dealloc() assumes errno is set when EOF is returned

2018-03-12 Thread Sanyam Khurana
Change by Sanyam Khurana : -- keywords: +patch pull_requests: +5849 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue33014] Clarify str.isidentifier docstring; fix keyword.iskeyword docstring

2018-03-12 Thread Sanyam Khurana
Change by Sanyam Khurana : -- keywords: +patch pull_requests: +5850 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyt

[issue33048] macOS job broken on Travis CI

2018-03-12 Thread Carol Willing
Carol Willing added the comment: I've opened a WIP PR to fix the Travis test config on macOS. Antoine is correct that the recent brew changes related to Python caused the test failure. I will try to get working on Python3 first and then Python2. -- nosy: +willingc ___

[issue33014] Clarify str.isidentifier docstring; fix keyword.iskeyword docstring

2018-03-12 Thread Sanyam Khurana
Sanyam Khurana added the comment: Carol, Yes, I've raised a PR. Currently, I've updated the docs for `str.isidentifier` clarifying the usage of `keyword.iskeyword` For updating the docstring of `keyword.iskeyword`, I saw that `Lib/Keyword.py` defines this on line 55: `iskeyword = frozenset(k

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: float.is_integer() was added 6f34109384f3a78d5f4f8bdd418a89caca19631e (unfortunately no issue number for looking at the discussion preceded it). I don't know reasons. The same changeset added implementations of complex.is_finite(), int.is_finite(), long.is_

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue33014] Clarify str.isidentifier docstring; fix keyword.iskeyword docstring

2018-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The change that will add a docstring to keyword.iskeyword() inevitable will have a negative performance effect. Is it worth it? -- nosy: +rhettinger, serhiy.storchaka ___ Python tracker

[issue30528] ipaddress.IPv{4,6}Network.reverse_pointer is broken

2018-03-12 Thread Ewoud Kohl van Wijngaarden
Ewoud Kohl van Wijngaarden added the comment: It's interesting to note that neither IPv4Network[1] nor IPv4Network docs mention reverse_pointer. That means it could also remove them (which essentially also throws an exception) since they don't make sense for networks. It would be useful to h

[issue22102] Zipfile generates Zipfile error in zip with 0 total number of disk in Zip64 end of central directory locator

2018-03-12 Thread Guillaume Carre
Guillaume Carre added the comment: Yes these were pretty large zip 30 to 60Gb with thousands of small files in them I've fixed locally on our servers and we've been happy even after accepting similar sized files from linux machine. I'm also quite surprised about this not being reported by others

[issue33048] macOS job broken on Travis CI

2018-03-12 Thread Ned Deily
Ned Deily added the comment: Thanks, Carol! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue33057] logging.Manager.logRecordFactory is never used

2018-03-12 Thread Ben Feinstein
Change by Ben Feinstein : Removed file: https://bugs.python.org/file47478/issue_logRecordFactory.py ___ Python tracker ___ ___ Python-bugs-li

[issue22674] RFE: Add signal.strsignal(): string describing a signal

2018-03-12 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue22674] RFE: Add signal.strsignal(): string describing a signal

2018-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 019f5b3e9e4c2a1297580483c3d5a5a10bddb93b by Antoine Pitrou (Antoine Pietri) in branch 'master': bpo-22674: fix test_strsignal on OSX (GH-6085) https://github.com/python/cpython/commit/019f5b3e9e4c2a1297580483c3d5a5a10bddb93b -- ___

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Mark Dickinson
Mark Dickinson added the comment: Ongoing discussion here: https://mail.python.org/pipermail/python-dev/2018-March/152358.html -- ___ Python tracker ___ __

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the use case of float.is_integer() at all? I haven't found its usages in large projects on GitHub. Only in playing examples where it is (mis)used in cases like (x/5).is_integer() (x % 5 == 0 is better) or (x**0.5).is_integer() (wrong for some floats

[issue33014] Clarify str.isidentifier docstring; fix keyword.iskeyword docstring

2018-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I posted above, keywork.iskeyword already has a bizarrely incorrect docstring, so how can there be a performance impact? And why single out such a rarely used function? -- ___ Python tracker

[issue33058] [WIP] Enhancing Python's COUNT_ALLOCS

2018-03-12 Thread Eddie Elizondo
Change by Eddie Elizondo : -- title: Enhancing Python -> [WIP] Enhancing Python's COUNT_ALLOCS ___ Python tracker ___ ___ Python-bugs

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Stefan Krah
Stefan Krah added the comment: I agree with Mark's mailing list statements: There is no ambiguity for decimal, given that the existing predicates ignore the context. -- ___ Python tracker

[issue33058] [WIP] Enhance Python's Memory Instrumentation with COUNT_ALLCOS

2018-03-12 Thread Eddie Elizondo
Change by Eddie Elizondo : -- title: [WIP] Enhancing Python's COUNT_ALLOCS -> [WIP] Enhance Python's Memory Instrumentation with COUNT_ALLCOS ___ Python tracker ___ ___

[issue33058] Enhancing Python

2018-03-12 Thread Eddie Elizondo
Change by Eddie Elizondo : -- nosy: elizondo93 priority: normal severity: normal status: open title: Enhancing Python type: enhancement versions: Python 3.8 ___ Python tracker _

[issue33058] Enhance Python's Memory Instrumentation with COUNT_ALLOCS

2018-03-12 Thread Eddie Elizondo
New submission from Eddie Elizondo : [WIP] -- title: [WIP] Enhance Python's Memory Instrumentation with COUNT_ALLCOS -> Enhance Python's Memory Instrumentation with COUNT_ALLOCS ___ Python tracker ___

[issue33058] Enhance Python's Memory Instrumentation with COUNT_ALLOCS

2018-03-12 Thread Eddie Elizondo
Eddie Elizondo added the comment: Currently, Python has very few instrumentation when it comes to the types of allocations that it's doing. For instance, we currently can't identify how many times an object uses free lists vs actual mallocs. Currently, there's a special build which can be use

[issue33058] Enhance Python's Memory Instrumentation with COUNT_ALLOCS

2018-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could tracemalloc help you? -- nosy: +serhiy.storchaka, vstinner ___ Python tracker ___ ___ Pyth

[issue32972] unittest.TestCase coroutine support

2018-03-12 Thread Petter S
Petter S added the comment: John: inspect.iscoroutinefunction(meth) does not work if the method is decorated with e.g. unittest.mock.patch. -- ___ Python tracker ___ _

[issue33014] Clarify str.isidentifier docstring; fix keyword.iskeyword docstring

2018-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For changing a docstring we have to change the implementation of iskeyword(). It seems to me that the current implementation is the fastest, and any other implementation will be a tiny bit slower. I just wanted to say that this enhancement has a non-zero co

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Robert, would you please update you patch and submit it to Github as a pull request. It is looking like this will likely go forward after all. -- stage: patch review -> needs patch ___ Python tracker

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I would rather deprecate float.is_integer() if it looks as a magnet of bad code. -- ___ Python tracker ___ _

[issue33058] Enhance Python's Memory Instrumentation with COUNT_ALLOCS

2018-03-12 Thread Eddie Elizondo
Eddie Elizondo added the comment: @serhiy.storchaka tracemalloc can't distinguish between the usage of gc allocs, normal mallocs, and free list reuse. -- ___ Python tracker __

[issue32972] unittest.TestCase coroutine support

2018-03-12 Thread Petter S
Petter S added the comment: Personally, I think John's PR is fine. (but the test class could arguably live in asyncio) I like that setUp, tearDown and test methods all can be async. But if setUp and tearDown should never be async as Yury commented above, they don't need runners. That is what

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Robert Smallshire
Robert Smallshire added the comment: Thank you Raymond. I'll work up a PR shortly. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue33014] Clarify str.isidentifier docstring; fix keyword.iskeyword docstring

2018-03-12 Thread Carol Willing
Carol Willing added the comment: I've made an additional suggestion on the open PR to add an example to the `.rst` doc that better clarifies the differences and usage of `iskeyword` and `isidentifier`. Perhaps making that addition and skipping the updates to the C source code would be a reas

[issue32972] unittest.TestCase coroutine support

2018-03-12 Thread Yury Selivanov
Yury Selivanov added the comment: First, John and Peter, let's not have two competing PRs. I'd prefer to have only one to make things easier to review. So far it looks like Peter's is slightly more developed. And this also seems to be a complex issue, so there's plenty of work to be done h

[issue32972] unittest.TestCase coroutine support

2018-03-12 Thread Zachary Ware
Zachary Ware added the comment: 1. I'm still -1 on a separate subclass, especially since the subclass should still be compatible with the base class. 2. This is only in consideration for 3.8 (even 3.7 is past feature freeze at this point), so the version-dependent behavior is unnecessary. 3.

[issue33014] Clarify str.isidentifier docstring; fix keyword.iskeyword docstring

2018-03-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: Too bad we couldn't do: iskeyword = frozenset(kwlist).__contains__ iskeyword.__doc__ = 'Test whether a string is a reserved identifier.' But I'm sure there are reasons for this: AttributeError: attribute '__doc__' of 'builtin_function_or_method' objects is no

[issue32911] Doc strings no longer stored in body of AST

2018-03-12 Thread Łukasz Langa
Łukasz Langa added the comment: Python's AST already doesn't include a lot of syntax that has no runtime effect: - comments; - whitespace and punctuation. The situation is now made "worse" with constant folding. You won't have full line information on the full expression, you don't even fully

[issue32972] unittest.TestCase coroutine support

2018-03-12 Thread Zachary Ware
Zachary Ware added the comment: Ok, Yury clarified a few points before I got my message submitted there, so some of my last message may be a bit misguided. In particular, the problems with just using `asyncio.run` are clearer to me now. To give my answers to Yury's open questions: - We shou

[issue32972] unittest.TestCase coroutine support

2018-03-12 Thread Yury Selivanov
Yury Selivanov added the comment: > - I would say event loop per class. If someone really needs event loop per > method, they can create separate classes per method. It's ugly, but > effective. +1. - We should have an async setUp capability. Maybe we could add a helper method to be calle

[issue33059] netrc module validates file mode only for /home/user/.netrc

2018-03-12 Thread Andreas Költringer
New submission from Andreas Költringer : On my first try to use the netrc module I got back the error: "~/.netrc access too permissive: access permissions must restrict access to only the owner" I changed the file permissions and wrapped this up in try-except and went on to write some un

[issue33060] Installation hangs at "Publishing product information"

2018-03-12 Thread Bob Klahn
New submission from Bob Klahn : I am unable to install Python 2.7.14 on my Windows 7 PC. Using python-2.7.14.amd64.msi . The installation hangs at the "Publishing product information" step. Subsequent installation attempts result in the message "Python 2.7.14 (64-bit) setup was interrupted.

[issue33023] Unable to copy ssl.SSLContext

2018-03-12 Thread Vitaly Kruglikov
Vitaly Kruglikov added the comment: > What would those side-effects be? Christian Heimes suggested that > A context contains elements that can't be cloned easily, e.g. session > resumption tickets. My concern then would be potential side-effects from such session resumption tickets and anyt

[issue33023] Unable to copy ssl.SSLContext

2018-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: You won't have any session resumption tickets until a connection succeeds. And even then, I don't think it would be a problem. By design, SSL contexts are meant to be re-used accross multiple connections. -- ___

[issue33060] Installation hangs at "Publishing product information"

2018-03-12 Thread Carol Willing
Carol Willing added the comment: Hi Bob, Your best option to get timely help information about installation is to visit one of the support channels for Python: - python-help mailing list https://www.python.org/community/lists/ - #python IRC channel https://www.python.org/community/irc/ First

[issue33058] Enhance Python's Memory Instrumentation with COUNT_ALLOCS

2018-03-12 Thread Eddie Elizondo
Change by Eddie Elizondo : -- keywords: +patch pull_requests: +5852 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue33056] LEaking files in concurrent.futures.process

2018-03-12 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +5854 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue33061] NoReturn missing from __all__ in typing.py

2018-03-12 Thread Allen Tracht
Change by Allen Tracht : -- components: Library (Lib) nosy: Allen Tracht priority: normal severity: normal status: open title: NoReturn missing from __all__ in typing.py type: behavior versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 _

[issue33062] ssl_renegotiate() doesn't seem to be exposed

2018-03-12 Thread Vitaly Kruglikov
New submission from Vitaly Kruglikov : I need to write a test for my client to make sure it's non-blocking ssl interactions are able to survive SSL renegotiation. However, I can't seem to find anything in our python ssl API that calls `SSL_renegotiate()` in order to force renegotiation. -

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As for StackOverflow links provided by Robert, it looks to me that float.is_integer() is always used improperly. If keep this method it would be worth to warn against improper use of it. Bad: (x/5).is_integer() Good: x % 5 == 0 or not x % 5

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

2018-03-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: @Arun.Persaud, would you be interested in converting your patch to a Github pull request? -- nosy: +csabella versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker ___

[issue32085] [Security] A New Era of SSRF - Exploiting URL Parser in Trending Programming Languages!

2018-03-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: Since issue 32185 has been patched, should this one be revisited to see if that solution helped fixed this one? -- nosy: +christian.heimes, csabella ___ Python tracker _

[issue24518] json.dumps should accept key function for ``sort_keys``

2018-03-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: As there was interest in this patch, @catherinedevlin would you be able to make a Github pull request for it? Thanks! -- nosy: +csabella stage: -> needs patch versions: +Python 3.8 -Python 3.6 ___ Python tracker

[issue29719] "Date" of what's new is confusing

2018-03-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: I believe this can be closed as 'fixed'? -- nosy: +csabella ___ Python tracker ___ ___ Python-bugs

[issue20917] Idle: Enhance font change notification system

2018-03-12 Thread Cheryl Sabella
Change by Cheryl Sabella : -- dependencies: +IDLE: Add docstrings and tests for codecontext versions: +Python 3.8 -Python 3.6 ___ Python tracker ___

[issue33014] Clarify str.isidentifier docstring; fix keyword.iskeyword docstring

2018-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Separate PRs for doc and code changes will be needed anyway if the code change is restricted to 3.8. To me, changing keyword.iskeyword.__doc__ from the irrelevant Python tautology 'x.__contains__(y) <==> y in x.' to something that says what the function does,

[issue29719] "Date" of what's new is confusing

2018-03-12 Thread Ned Deily
Change by Ned Deily : -- keywords: +patch pull_requests: +5855 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue29719] "Date" of what's new is confusing

2018-03-12 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +5856 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue29719] "Date" of what's new is confusing

2018-03-12 Thread Ned Deily
Ned Deily added the comment: New changeset a34510a4c562b4b23c7f9da6ff6e2318484f5f1a by Ned Deily in branch 'master': bpo-29719: Remove Date and Release field in whatsnew/3.7 and 8 (GH-6093) https://github.com/python/cpython/commit/a34510a4c562b4b23c7f9da6ff6e2318484f5f1a --

[issue29719] "Date" of what's new is confusing

2018-03-12 Thread Ned Deily
Ned Deily added the comment: New changeset d461ed84b57aae0bdccd117dc38109c087444d50 by Ned Deily in branch '3.7': bpo-29719: Remove Date and Release field in whatsnew/3.7 (GH-6094) https://github.com/python/cpython/commit/d461ed84b57aae0bdccd117dc38109c087444d50 -- _

[issue29719] "Date" of what's new is confusing

2018-03-12 Thread Ned Deily
Ned Deily added the comment: > I believe this can be closed as 'fixed'? Well, it *was* fixed! But then I reintroduced the boilerplate when I created the 3.7 and 3.8 whatsnew files - now fixed. Thanks for the reminder! -- assignee: -> docs@python components: +Documentation nosy: +do

[issue33038] GzipFile doesn't always ignore None as filename

2018-03-12 Thread bbayles
Change by bbayles : -- pull_requests: +5857 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

  1   2   >