[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

ANNOUNCE: Thesaurus and ThesaurusCfg - recursive mapping and cfg file data types

2019-11-13 Thread Dave Cinege
This announcement is for a pre-release that I would like people to comment on structure, naming, etc. (Code review maybe not yet. :-) Before you say "It's all been done before." I suggest you take a closer look and I think you may conclude that what I've revised over 7 years is now

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

Re: How to delay until a next increment of time occurs ?

2019-11-13 Thread Dietmar Schwertberger
On 13.11.2019 21:20, R.Wieser wrote: 300us is getting on towards realtime. Not really. Translated to a frequency (toggeling the pin) it would be just 1.6 KHz. Thats rather slow for an ARM machine running on 1.4 Ghz (about a million times as fast). It *is* real-time... Real-time is not

Re: Logistic Regression Define X and Y for Prediction

2019-11-13 Thread Jason Friedman
> > > When I define the X and Y values for prediction in the train and test > data, should I capture all the columns that has been "OneHotEncoded" (that > is all columns with 0 and 1) for the X and Y values??? > You might have better luck asking on Stackoverflow, per the Pandas instructions:

[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

Re: How to delay until a next increment of time occurs ?

2019-11-13 Thread Dietmar Schwertberger
On 13.11.2019 23:20, Dennis Lee Bieber wrote: For Windows it may require coding a busy-wait sleep function using the high-performance counter and computing a counter value (modulo?) on which to exit the loop. time.perf_counter() is using this on Windows. I'm just worried about floating point

[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

Re: How to delay until a next increment of time occurs ?

2019-11-13 Thread R.Wieser
Luciano, > Mr. Wieser, I haven't seen you mention which library you're using > to write to GPIO with Python. To be honest, I took a "blink.py" example as a base, and just went with it. So, I had to look it up. Its the first one you mentioned, RPi.GPIO. Thanks for telling me about WiringPi's

[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

Re: How to delay until a next increment of time occurs ?

2019-11-13 Thread Terry Reedy
On 11/13/2019 9:02 AM, R.Wieser wrote: I'm writing some code to toggle a pin on a Raspberry Pi, and would like to have that happen at (multiples of) 300 uSec increments. If you were looking at increments of multiple milleseconds, such as 1/60 == 16.6..., I would suggest using tkinter's

Re: How to delay until a next increment of time occurs ?

2019-11-13 Thread R.Wieser
Dietmar, > Actually, with such requirements you're usually better off with a > microcontroller. Probably, yes. /Anything/ is better than a multi process mini 'puter for tasks like these. Doesn't mean I'm not going to try though. But honestly, generating a "modulated" 1.6 KHz square-wave

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

Re: How to delay until a next increment of time occurs ?

2019-11-13 Thread R.Wieser
David, > The general simplified idea was run it whenever the time is 0 modulo > your interval. So you ask how long until that next time. Ah, using the perf_counter() as its own reference (no "last time fired" storage needed). Thanks for the explanation. Regards, Rudy Wieser --

Re: How to delay until a next increment of time occurs ?

2019-11-13 Thread R.Wieser
Rob, > 300us is getting on towards realtime. Not really. Translated to a frequency (toggeling the pin) it would be just 1.6 KHz. Thats rather slow for an ARM machine running on 1.4 Ghz (about a million times as fast). > I've never tried it that fast. I've already got it running it using

[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

Re: How to delay until a next increment of time occurs ?

2019-11-13 Thread Luciano Ramalho
Mr. Wieser, I haven't seen you mention which library you're using to write to GPIO with Python. I know of two options: 1) RPi.GPIO: https://sourceforge.net/projects/raspberry-gpio-python/ -- the more popular option 2) WiringPy: https://github.com/WiringPi/WiringPi-Python -- an alternative with

[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

RE: How to delay until a next increment of time occurs ?

2019-11-13 Thread David Raymond
I just used .perf_counter() as it's "a clock with the highest available resolution to measure a short duration" The general simplified idea was run it whenever the time is 0 modulo your interval. So you ask how long until that next time. Run whenever the time is 0 modulo .0003 Current time is

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

Re: How to delay until a next increment of time occurs ?

2019-11-13 Thread Dietmar Schwertberger
On 13.11.2019 19:21, R.Wieser wrote: Yup. But the cost of using that command is generating threads - which some search results warned against (not sure why though). I'm currently looking for a way to have short breaks (in the range of 10us to some ms) on Windows and time.sleep() always seems

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

Re: How to delay until a next increment of time occurs ?

2019-11-13 Thread Rob Gaddi
On 11/13/19 6:02 AM, R.Wieser wrote: Hello all, I'm writing some code to toggle a pin on a Raspberry Pi, and would like to have that happen at (multiples of) 300 uSec increments. I tried time.sleep(), but that one disregards the time after the last one ends and the new one is started. In

Re: How to delay until a next increment of time occurs ?

2019-11-13 Thread R.Wieser
Dennis, > So... you need to adjust for the time spent in processing between > calls to sleep(). That was my first thought too, but any code calculating that adjustment before ultimatily calling sleep itself can also be interrupted.With that in mind I was aiming/hoping for something with a

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

Re: How to delay until a next increment of time occurs ?

2019-11-13 Thread R.Wieser
David, > timeInterval = 0.0003 > time.sleep(timeInterval - (time.perf_counter() % timeInterval)) Possibly: any reason for the performance counter modulo the interval ? Regards, Rudy Wieser -- https://mail.python.org/mailman/listinfo/python-list

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

RE: How to delay until a next increment of time occurs ?

2019-11-13 Thread David Raymond
Maybe something along the lines of this? timeInterval = 0.0003 time.sleep(timeInterval - (time.perf_counter() % timeInterval)) -Original Message- From: Python-list On Behalf Of R.Wieser Sent: Wednesday, November 13, 2019 11:12 AM To: python-list@python.org Subject: Re: How to delay

Re: How to delay until a next increment of time occurs ?

2019-11-13 Thread R.Wieser
Skip, > Take a look at threading.Timer. Thanks. It seems to solve the problem by calling it at the start of the executed code (instead of the end), but costs thread usage ... Regards, Rudy Wieser -- https://mail.python.org/mailman/listinfo/python-list

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

Re: How to delay until a next increment of time occurs ?

2019-11-13 Thread Skip Montanaro
> So, I'm looking for a method that will allow me to wait for a "last time > plus increment". Is there one with the properties of sleep() (not just > burning processor cycles way, blocking all threads), but referencing a > previous time. Take a look at threading.Timer. Skip --

[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

How to delay until a next increment of time occurs ?

2019-11-13 Thread R.Wieser
Hello all, I'm writing some code to toggle a pin on a Raspberry Pi, and would like to have that happen at (multiples of) 300 uSec increments. I tried time.sleep(), but that one disregards the time after the last one ends and the new one is started. In other words, all the time spend in code

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

  1   2   >