[issue38609] Trashcan mechanism segfault during interpreter finalization in Python 3.7.5

2019-11-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: You only have to check, using a public API, if you have no control over when C++ objects are destructed. I'd personally try to structure code to make sure that C++ objects owning references to Python objects get destructed before the interpreter is

[issue38791] readline history file is hard-coded

2019-11-13 Thread Jonathan Conder
Jonathan Conder added the comment: I agree. Did a cursory search before posting but missed it somehow -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue17642] IDLE add font resizing hot keys and wheel

2019-11-13 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26353] IDLE: Saving Shell should not add \n

2019-11-13 Thread Zackery Spytz
Zackery Spytz added the comment: Thank you, Terry, for modifying the PR and merging it. -- nosy: +ZackerySpytz ___ Python tracker ___

[issue38775] Cloudpickle.py file is crashing due to data type incompatibility.

2019-11-13 Thread Kafeel Ansari
Kafeel Ansari added the comment: Hi @xtreak , Thank you for the reply . Please find below detailed description. I was using python 3.8 and installed pyspark 2.4.4 . I encountered error related to cloudpickle file. Please find the attached snapshot. I tried to convert the value of

[issue38791] readline history file is hard-coded

2019-11-13 Thread Zackery Spytz
Zackery Spytz added the comment: This issue seems like a duplicate of bpo-29779 (which has a pull request). -- nosy: +ZackerySpytz ___ Python tracker ___

[issue38792] IDLE calltips may not properly close on KeyboardInterrupt

2019-11-13 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +16659 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17150 ___ Python tracker ___

[issue38792] IDLE calltips may not properly close on KeyboardInterrupt

2019-11-13 Thread Zackery Spytz
New submission from Zackery Spytz : If a KeyboardInterrupt occurs while an IDLE calltip is being displayed, the calltip will persist until a new calltip event. The calltip should be removed immediately in this case. -- assignee: terry.reedy components: IDLE messages: 356580 nosy:

[issue38789] difflib lacks a way to check if results are empty

2019-11-13 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> tim.peters nosy: +tim.peters versions: +Python 3.9 -Python 3.7 ___ Python tracker ___

[issue38758] @dataclass defaults

2019-11-13 Thread Guido van Rossum
Guido van Rossum added the comment: This should not have been an issue but a discussion on python-list or perhaps python-ideas. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue38758] @dataclass defaults

2019-11-13 Thread Anthony
Anthony added the comment: Vedran thank you for the detailed comments. I want to separate the idea side and implementation: The idea is having defaults expressed in a way of least surprise and in the least amount of code. Specifically that [1] makes more sense then

[issue38758] @dataclass defaults

2019-11-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Vedran and recommend this proposal be rejected. During training and code review, we spend a lot of time trying to get people to not write code like this. By making dataclasses behave differently than the rest of language, we would would

[issue38791] readline history file is hard-coded

2019-11-13 Thread Jonathan Conder
Change by Jonathan Conder : -- keywords: +patch pull_requests: +16658 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17149 ___ Python tracker ___

[issue38724] Implement subprocess.Popen.__repr__

2019-11-13 Thread Debi Mishra
Debi Mishra added the comment: Hi @Jason.Killen. I am new to cpython and would like to try this one out. Thank you. -- nosy: +mdebi ___ Python tracker ___

[issue26389] Expand traceback module API to accept just an exception as an argument

2019-11-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: It would be nice to see this one come to fruition. -- nosy: +rhettinger ___ Python tracker ___

[issue26389] Expand traceback module API to accept just an exception as an argument

2019-11-13 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > were you interested in continuing with Brett's (and your) suggestion for the > API by making the first argument positional-only and the others optional? Yes, but I currently do not have the time; if someone else want to take over; or if you need to

[issue38791] readline history file is hard-coded

2019-11-13 Thread pmp-p
Change by pmp-p : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38791] readline history file is hard-coded

2019-11-13 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38791] readline history file is hard-coded

2019-11-13 Thread Jonathan Conder
New submission from Jonathan Conder : Other tools such as bash and less allow their history file to be customised with an environment variable. Will add a patch for this in a bit. This could also be customised using PYTHONSTARTUP, but then the user has to duplicate a bunch of code which is

[issue38758] @dataclass defaults

2019-11-13 Thread Vedran Čačić
Vedran Čačić added the comment: It seems to me that what you're missing is that "class declarations" are still perfectly normal executable statements (in most other superficially similar programming languages, they are not). So, when you say class A: b = [] it is actually executed, a

[issue38630] subprocess.Popen.send_signal() should poll the process

2019-11-13 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: To further elaborate on the creation time solution, the idea in pseudo-code is the following: class Popen: def __init__(self, ...): self._execute_child(...) try: self._ctime = get_create_time(self.pid) except

[issue38692] add a pidfd child process watcher

2019-11-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 3ccdd9b180f9a3f29c8ddc8ad1b331fe8df26519 by Benjamin Peterson in branch 'master': closes bpo-38692: Add a pidfd child process watcher to asyncio. (GH-17069) https://github.com/python/cpython/commit/3ccdd9b180f9a3f29c8ddc8ad1b331fe8df26519

[issue38692] add a pidfd child process watcher

2019-11-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks everyone for the reviews. I will go ahead and merge the PR. Shall we return to #38591 for planning the future of child watching? -- ___ Python tracker

[issue38609] Trashcan mechanism segfault during interpreter finalization in Python 3.7.5

2019-11-13 Thread ysnt27
ysnt27 added the comment: Thanks for making the issue clear. My understanding is that, all C++ destructors have to check Python interpreter before Py_DECREF, like this. ``` cplusplus ~something() { // PyThreadState *_tstate = PyThreadState_GET(); PyThreadState *_tstate =

[issue38529] Python 3.8 improperly warns about closing properly closed streams

2019-11-13 Thread Alexander Mohr
Change by Alexander Mohr : -- nosy: +thehesiod ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38692] add a pidfd child process watcher

2019-11-13 Thread Kyle Stanley
Kyle Stanley added the comment: > > The child watchers API has to go. It's confusing, painful to use, it's not > > compatible with third-party event loops. It increases the API surface > > without providing us with enough benefits. > +1 Also, adding to this, the child watchers are one of

[issue38692] add a pidfd child process watcher

2019-11-13 Thread Kyle Stanley
Kyle Stanley added the comment: > We can merge this PR as is (Benjamin, thanks for working on this!), but I > think that as soon as we merge it we should do some refactoring and > deprecations. > The child watchers API has to go. It's confusing, painful to use, it's not > compatible with

[issue38790] test_fcntl failing on macOS CI

2019-11-13 Thread Steve Dower
New submission from Steve Dower : See https://dev.azure.com/Python/cpython/_build/results?buildId=53812=ms.vss-test-web.build-test-results-tab Traceback (most recent call last): File "/Users/runner/runners/2.160.0/work/1/s/Lib/unittest/case.py", line 60, in testPartExecutor yield

[issue38724] Implement subprocess.Popen.__repr__

2019-11-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for a more informative repr (like we did with regex match objects). There are a lot of parameters to subprocess.Popen(). RR is on the right track suggesting that only a small, useful subset of those be included: args and the return code. We could

[issue38781] Clear buffer in MemoryHandler flush

2019-11-13 Thread Daniel Andersson
Daniel Andersson added the comment: The suggested change has been merged. I'm closing this issue. Thank you Vinay Sajip for reviewing. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38758] @dataclass defaults

2019-11-13 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not sure what you're proposing. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38724] Implement subprocess.Popen.__repr__

2019-11-13 Thread Jason Killen
Jason Killen added the comment: I think this sounds great and I'll take a crack at it over the next few days. If anybody wants to jump ahead of me I don't mind. -- ___ Python tracker

[issue38785] Segmentation fault in asyncio

2019-11-13 Thread miss-islington
miss-islington added the comment: New changeset 694c03fabb5cf3df0102cc317670a10fc39c6786 by Miss Islington (bot) in branch '3.8': bpo-38785: Prevent asyncio from crashing (GH-17144) https://github.com/python/cpython/commit/694c03fabb5cf3df0102cc317670a10fc39c6786 --

[issue38785] Segmentation fault in asyncio

2019-11-13 Thread miss-islington
miss-islington added the comment: New changeset 87b4d3994e4f81d6e39a5e86c1b7040df065ea37 by Miss Islington (bot) in branch '3.7': bpo-38785: Prevent asyncio from crashing (GH-17144) https://github.com/python/cpython/commit/87b4d3994e4f81d6e39a5e86c1b7040df065ea37 --

[issue38785] Segmentation fault in asyncio

2019-11-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 ___ Python tracker ___

[issue38785] Segmentation fault in asyncio

2019-11-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +16657 pull_request: https://github.com/python/cpython/pull/17148 ___ Python tracker ___

[issue38785] Segmentation fault in asyncio

2019-11-13 Thread miss-islington
miss-islington added the comment: New changeset dad6be5ffe48beb74fad78cf758b886afddc7aed by Miss Islington (bot) (Andrew Svetlov) in branch 'master': bpo-38785: Prevent asyncio from crashing (GH-17144) https://github.com/python/cpython/commit/dad6be5ffe48beb74fad78cf758b886afddc7aed

[issue38785] Segmentation fault in asyncio

2019-11-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +16656 pull_request: https://github.com/python/cpython/pull/17147 ___ Python tracker ___

[issue11354] argparse: nargs could accept range of options count

2019-11-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Do we have examples of real world APIs that actually need this functionality? Offhand, I don't recall having worked with any command-line tool that would accept "at least two but no more than four filenames" for example. Given that this isn't trivial to

[issue38692] add a pidfd child process watcher

2019-11-13 Thread Yury Selivanov
Yury Selivanov added the comment: We can merge this PR as is (Benjamin, thanks for working on this!), but I think that as soon as we merge it we should do some refactoring and deprecations. The child watchers API has to go. It's confusing, painful to use, it's not compatible with

[issue38758] @dataclass defaults

2019-11-13 Thread Anthony
Anthony added the comment: Hey Eric, I think our emails crossed in the wind, please see my comment that includes (as a sub component) a similar idea to what's proposed in the article you linked. -- ___ Python tracker

[issue38758] @dataclass defaults

2019-11-13 Thread Eric V. Smith
Eric V. Smith added the comment: The problem is that what you wrote isn't what most people want. Here's your example without dataclasses. I've added an "append_to_x" method, which does the obvious thing: >>> class C: ... def __init__(self, x=[]): ... self.x = x ... ... def

[issue38758] @dataclass defaults

2019-11-13 Thread Anthony
Anthony added the comment: To clarify, A major assumption I'm making is that the default is empty, or the "copying" is handled as some separately coupled concept. A motivation here is wanting to do operations like .append() that depend on the object existing. On Wed, Nov 13, 2019 at 1:04 PM

[issue38758] @dataclass defaults

2019-11-13 Thread Anthony
Anthony added the comment: Thanks for adding it, I read it now. And sorry to back track a moment - I love the idea of @dataclass and I can only imagine how must work it was to implement as I am only a beginner. I'm looking at this primarily from the narrow view point of a user - not so much

[issue11354] argparse: nargs could accept range of options count

2019-11-13 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25866] Reference 3. Data Model: miscellaneous minor cleanups on the word "sequence".

2019-11-13 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38724] Implement subprocess.Popen.__repr__

2019-11-13 Thread Tal Einat
Change by Tal Einat : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD

2019-11-13 Thread Dmitry Marakasov
Dmitry Marakasov added the comment: > What happens if you instead write: It survived more than 4000 runs, it looks like it doesn't experience the problem. -- ___ Python tracker

[issue38724] Implement subprocess.Popen.__repr__

2019-11-13 Thread Tal Einat
Tal Einat added the comment: I agree that this could be nice. A PR (with tests!) would be welcome! -- keywords: +easy ___ Python tracker ___

[issue38724] Implement subprocess.Popen.__repr__

2019-11-13 Thread Jason Killen
Change by Jason Killen : -- nosy: +Jason.Killen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38722] runpy should use io.open_code() instead of open()

2019-11-13 Thread Jason Killen
Jason Killen added the comment: I'll plan on tackling this one. I already did pdb. -- nosy: +Jason.Killen ___ Python tracker ___

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-11-13 Thread Steve Dower
Steve Dower added the comment: My latest push to PR 16967 is a significant change to what ntpath.realpath will return for broken symlinks, but I think it's the right change. Basically, if the OS fully resolves the path, great! We'll return that (and handle \\?\ stripping) If the OS

[issue38721] modulefinder should use import hooks properly

2019-11-13 Thread Dominic Littlewood
Dominic Littlewood <11dlittlew...@gmail.com> added the comment: Okay, I've started putting together a proper PR, and I've had some thoughts. There's a useful script at the bottom of the importlib documentation that readers should consult. This can be used to correctly find the spec for a

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD

2019-11-13 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD

2019-11-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: What happens if you instead write: with Pool() as pool: pool.map(sleep, [0.01] * 10) -- ___ Python tracker ___

[issue38686] WWW-Authenticate qop="auth,auth-int" rejected by urllib

2019-11-13 Thread Senthil Kumaran
Change by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38758] @dataclass defaults

2019-11-13 Thread Vedran Čačić
Vedran Čačić added the comment: Have you read https://github.com/ericvsmith/dataclasses/issues/3? -- nosy: +veky ___ Python tracker ___

[issue34716] MagicMock.__divmod__ should return a pair

2019-11-13 Thread Vedran Čačić
Vedran Čačić added the comment: Yes, this is impossible using only "universal Python" (independent of implementation). Though, of course, it's possible in CPython if you analyze the source code (or AST) and count the targets on the left side. -- nosy: +veky

[issue38707] Multiprocessing: bug with Native ID for threading.mainthread()

2019-11-13 Thread Jake Tesler
Jake Tesler added the comment: PR was updated with tests and is ready for core developer review and then the merge to cpython:master. After that (if I understand correctly) a backport will automatically get picked into the 3.8 branch if there aren't any conflicts. --

[issue25866] Reference 3. Data Model: miscellaneous minor cleanups on the word "sequence".

2019-11-13 Thread Alex
Alex added the comment: Hi, I've taken a look at these suggestions and the documentation and I've posted a patch to get things moving :) A couple of points about the suggested changes that I haven't included in the patch: 1) I think changing the documentation for __dir__() to say it can

[issue37564] ArgumentParser should support bool type according to truth values

2019-11-13 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38786] Add parsing of https links to pydoc

2019-11-13 Thread Tal Einat
Tal Einat added the comment: Thanks for bringing this up and making the PR, python273! -- ___ Python tracker ___ ___

[issue38786] Add parsing of https links to pydoc

2019-11-13 Thread Tal Einat
Tal Einat added the comment: New changeset 61289d436661025a3111065482275d49a4850b8d by Tal Einat (Kirill) in branch 'master': bpo-38786: Add parsing of https links to pydoc (GH-17143) https://github.com/python/cpython/commit/61289d436661025a3111065482275d49a4850b8d --

[issue38786] Add parsing of https links to pydoc

2019-11-13 Thread Tal Einat
Change by Tal Einat : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38524] functools.cached_property is not supported for setattr

2019-11-13 Thread Tal Einat
Tal Einat added the comment: I agree with Nick: While possible, this would be unnecessarily confusing. As Serhiy wrote, the proper way to address the situation seems to be improving the documentation. A PR would be welcome! -- keywords: +easy nosy: +taleinat

[issue38517] functools.cached_property should support partial functions and partialmethod's

2019-11-13 Thread Tal Einat
Tal Einat added the comment: According to issue38524, this should be closed. -- ___ Python tracker ___ ___ Python-bugs-list

[issue38517] functools.cached_property should support partial functions and partialmethod's

2019-11-13 Thread Tal Einat
Change by Tal Einat : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38517] functools.cached_property should support partial functions and partialmethod's

2019-11-13 Thread Tal Einat
Tal Einat added the comment: Note that it is already possible, though awkward, to create cached properties dynamically. Using the example from PR GH-16838: class ProcNet: pass for proto in ('icmp', 'icmp6', 'raw', 'raw6', 'tcp', 'tcp6', 'udp', 'udp6', 'udplite', 'udplite6'):

[issue38789] difflib lacks a way to check if results are empty

2019-11-13 Thread Simon Friedberger
New submission from Simon Friedberger : It seems there is no easy way to use difflib to show a diff but only when there actually are differences. The SequenceMatcher has ratio() but that isn't really available through Differ or any of the convenience functions. Vice versa, when using

[issue38789] difflib lacks a way to check if results are empty

2019-11-13 Thread Simon Friedberger
Change by Simon Friedberger : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38786] Add parsing of https links to pydoc

2019-11-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -16652 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38738] Fix formatting of True and False

2019-11-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Vinay, Kyle and Terry for your review! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38788] Inconsistent documentation of tell/seek on textiobase/textiowrapper

2019-11-13 Thread Ulrik Haugen
New submission from Ulrik Haugen : The class hierarchy suggests the only tell/seek implementations one needs to look up are in iobase and those have the semantics i was expecting: https://docs.python.org/3.8/library/io.html#class-hierarchy Plowing on one might discover that there are separate

[issue38787] PEP 573: Module State Access from C Extension Methods

2019-11-13 Thread Marcel Plch
Change by Marcel Plch : -- keywords: +patch pull_requests: +16655 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17145 ___ Python tracker ___

[issue38787] PEP 573: Module State Access from C Extension Methods

2019-11-13 Thread Marcel Plch
New submission from Marcel Plch : Currently, there is not way to access per-module state from the methods of types defined in extension modules. This PEP provides a fix to this issue. PEP 573 - https://www.python.org/dev/peps/pep-0573/ Reference implementation -

[issue38785] Segmentation fault in asyncio

2019-11-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +16654 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17144 ___ Python tracker ___

[issue38784] ip_network does not clear/update the broadcast_address cache when network_address is changed.

2019-11-13 Thread Inada Naoki
Inada Naoki added the comment: It is documented, if you read it carefully. "Network objects are hashable, so they can be used as keys in dictionaries." https://docs.python.org/3/library/ipaddress.html#network-objects """ An object is hashable if it has a hash value which never changes

[issue38784] ip_network does not clear/update the broadcast_address cache when network_address is changed.

2019-11-13 Thread Johannes Erwerle
Johannes Erwerle added the comment: since it hasn't been documented that those classes are all designed to be immutable (and many things work when they are mutable) many people probably use it that way. Declaring them immutable via the docs now would "break" existing code. --

[issue38786] Add parsing of https links to pydoc

2019-11-13 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +16652 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/2975 ___ Python tracker

[issue38786] Add parsing of https links to pydoc

2019-11-13 Thread Tal Einat
New submission from Tal Einat : See latest PR, GH-17143. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38786] Add parsing of https links to pydoc

2019-11-13 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +16653 pull_request: https://github.com/python/cpython/pull/17143 ___ Python tracker ___

[issue38786] Add parsing of https links to pydoc

2019-11-13 Thread Tal Einat
Change by Tal Einat : -- components: Library (Lib) nosy: python273, taleinat priority: normal severity: normal stage: needs patch status: open title: Add parsing of https links to pydoc type: enhancement versions: Python 3.9 ___ Python tracker

[issue38784] ip_network does not clear/update the broadcast_address cache when network_address is changed.

2019-11-13 Thread Inada Naoki
Inada Naoki added the comment: All classes in the ipaddress module are designed as immutable. While it is not documented, you can see __hash__ is overridden. It means you must not change the object state. -- assignee: -> docs@python components: +Documentation nosy: +docs@python,

[issue38785] Segmentation fault in asyncio

2019-11-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looks like get_future_loop() function misses ENSURE_FUTURE_ALIVE macro call. -- ___ Python tracker ___

[issue38785] Segmentation fault in asyncio

2019-11-13 Thread STINNER Victor
STINNER Victor added the comment: The crash occurs in _asyncio_Future_get_loop(): (gdb) frame #0 0x7fffea2fe689 in _Py_INCREF (op=0x0) at ./Include/object.h:459 459 op->ob_refcnt++; (gdb) up #1 0x7fffea301b14 in _asyncio_Future_get_loop_impl (self=0x7fffea2615f0) at

[issue38785] Segmentation fault in asyncio

2019-11-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the report! I would say that deriving from the future class without calling super().__init__() is an error. After fixing this the snippet raises expected "RuntimeError: yield was used instead of yield from in task" error. --

[issue34716] MagicMock.__divmod__ should return a pair

2019-11-13 Thread Jackson Riley
Jackson Riley added the comment: On second thoughts, perhaps option 2 is best (more in keeping with the usual behaviour of MagicMock). Alternatively, could I propose a fourth option: 4. Change the behaviour of MagicMock more generally such that trying to unpack a MagicMock instance into two

[issue38785] Segmentation fault in asyncio

2019-11-13 Thread Alex
Alex added the comment: Get seg fault on running script in attachment: root@fake:/opt/securisync/be# python3.7 scratch_15.py In tratata before In tratata2 before Segmentation fault -- ___ Python tracker

[issue38785] Segmentation fault in asyncio

2019-11-13 Thread Alex
New submission from Alex : Get Segmentation fault on run script in attachment. -- components: asyncio files: scratch_15.py messages: 356523 nosy: akayunov, asvetlov, yselivanov priority: normal severity: normal status: open title: Segmentation fault in asyncio type: crash versions:

[issue38784] ip_network does not clear/update the broadcast_address cache when network_address is changed.

2019-11-13 Thread Johannes Erwerle
Change by Johannes Erwerle : -- title: ip_network does not clear/update the broadcast_address cache when the IP address is changed. -> ip_network does not clear/update the broadcast_address cache when network_address is changed. ___ Python

[issue38784] ip_network does not clear/update the broadcast_address cache when the IP address is changed.

2019-11-13 Thread Johannes Erwerle
New submission from Johannes Erwerle : The ip_network class in the ipaddress module does cache the broadcast_address attribute. But when the network address is changed the cache is not cleared/updated. Example: > from ipaddress import ip_network > > print("--") >

[issue38784] ip_network does not clear/update the broadcast_address cache when the IP address is changed.

2019-11-13 Thread Johannes Erwerle
Change by Johannes Erwerle : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: