Re: python and numpy

2020-04-21 Thread joseph pareti
FWIW, I installed Anaconda on Windows 10. Then besides Python you also get SPIDER, Jupyter and more, all out of the box. Am Mittwoch, 22. April 2020 schrieb Souvik Dutta : > First head over to the official python download page. Then choose the > version and type of installer you want. After you

Re: Escaping confusion with Python 3 + MySQL

2020-04-21 Thread moorthy . rs
On Sunday, March 26, 2017 at 7:55:09 PM UTC+5:30, Νίκος Βέργος wrote: > Τη Κυριακή, 26 Μαρτίου 2017 - 5:19:27 μ.μ. UTC+3, ο χρήστης Ian έγραψε: > > > You need to change the placeholders back. The poster who told you to > > replace them was misinformed. > > okey altered them back to > >

[issue32966] Python 3.7.2 - 0x80070643 - Fatal Error during installation

2020-04-21 Thread Jacob Melendrez
Jacob Melendrez added the comment: I am trying to uninstall python 3.7.2 because I think it is preventing me from correctly using python 3.8.2. When I go to my program list on windows 10 and try to uninstall it, it gets approximately 10% in and then gives me the message that No python 3.7

Re: Something annoying about method __set_name__ in descriptors

2020-04-21 Thread ast
Le 21/04/2020 à 18:32, Dieter Maurer a écrit : ast wrote at 2020-4-21 14:27 +0200: I recently read the Python (3.9a5) documentation - and there I found clearly expressed this behaviour (I no longer can tell you exactly where I read this). The reason comes from the implementation: when the

[issue40222] "Zero cost" exception handling

2020-04-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is an exciting prospect. Am looking forward to it :-) -- nosy: +rhettinger ___ Python tracker ___

[issue40358] pathlib's relative_to should behave like os.path.relpath

2020-04-21 Thread Bowie Chen
Change by Bowie Chen : -- nosy: +bowiechen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +18969 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19645 ___ Python tracker

[issue40222] "Zero cost" exception handling

2020-04-21 Thread Shantanu
Change by Shantanu : -- nosy: +hauntsaninja ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40346] Redesign random.Random class inheritance

2020-04-21 Thread Tim Peters
Tim Peters added the comment: This wasn't written with subclassing in mind to begin with. A class was just an obvious way to allow advanced users to construct instances with their own states (e.g., so they could build pseudo-independent generators for parallel programming). When

[issue40314] python code order of magnitude faster than equivalent CPython code for simple import statement

2020-04-21 Thread deekay
deekay added the comment: The times are correct. It's very noticeable even without using a stopwatch. The C version actually takes 23 seconds to execute. -- ___ Python tracker

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- components: +2to3 (2.x to 3.x conversion tool) stage: -> needs patch ___ Python tracker ___ ___

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-21 Thread Gregory P. Smith
New submission from Gregory P. Smith : Based on the PEP 617 acceptance thread on python-dev, lib2to3 is eventually going to run into trouble parsing modern syntax a few releases from now. It would be better off maintained outside of the standard library. It gets used by a lot of things and

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread Ned Deily
Ned Deily added the comment: New changeset 7ad3adda9bff8a9055eaf0b66489e8204f1e7cc6 by Miss Islington (bot) in branch '3.7': bpo-40164: Update macOS installer builds to use OpenSSL 1.1.1g. (GH-19642) (GH-19644)

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread miss-islington
miss-islington added the comment: New changeset 9e51aab37e9af6fa0fe406fd56184a0aded28e11 by Miss Islington (bot) in branch '3.8': bpo-40164: Update macOS installer builds to use OpenSSL 1.1.1g. (GH-19642) https://github.com/python/cpython/commit/9e51aab37e9af6fa0fe406fd56184a0aded28e11

[issue40358] pathlib's relative_to should behave like os.path.relpath

2020-04-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread Ned Deily
Ned Deily added the comment: New changeset 783a673f23c5e9ffafe12fe172e119dc0fa2abda by Ned Deily in branch 'master': bpo-40164: Update macOS installer builds to use OpenSSL 1.1.1g. (GH-19642) https://github.com/python/cpython/commit/783a673f23c5e9ffafe12fe172e119dc0fa2abda --

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +18967 pull_request: https://github.com/python/cpython/pull/19643 ___ Python tracker

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +18968 pull_request: https://github.com/python/cpython/pull/19644 ___ Python tracker ___

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +18966 pull_request: https://github.com/python/cpython/pull/19642 ___ Python tracker ___

[issue40260] modulefinder traceback regression starting on Windows

2020-04-21 Thread Anthony Sottile
Anthony Sottile added the comment: actually I said that backwards in the previous message -- it was a text file and now it's a binary file -- ___ Python tracker ___

[issue40260] modulefinder traceback regression starting on Windows

2020-04-21 Thread Anthony Sottile
Change by Anthony Sottile : -- pull_requests: +18965 pull_request: https://github.com/python/cpython/pull/19641 ___ Python tracker ___

[issue40260] modulefinder traceback regression starting on Windows

2020-04-21 Thread Anthony Sottile
Anthony Sottile added the comment: The failure above is `fp` is now a text file but before it was a binary file. this causes `fp.read()` + `b'\n'` to fail I can send a patch -- I don't think the `b'\n'` is necessary any more (as far as I can tell it used to be there for an old version of

[issue40260] modulefinder traceback regression starting on Windows

2020-04-21 Thread Anthony Sottile
Anthony Sottile added the comment: This is still failing, but now in a different way: Traceback (most recent call last): File "../debian/pymindeps.py", line 185, in main(sys.argv[1:]) File "../debian/pymindeps.py", line 178, in main mf.run_script(arg) File

[issue40359] email.parse part.get_filename() fails to unwrap long attachment file names

2020-04-21 Thread Matthew Davis
Matthew Davis added the comment: 36041 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40359] email.parse part.get_filename() fails to unwrap long attachment file names

2020-04-21 Thread Matthew Davis
Matthew Davis added the comment: Ah woops, I mistyped the relevant ticket. It's issue 36401 https://bugs.python.org/issue36041 -- ___ Python tracker ___

Re: python and numpy

2020-04-21 Thread Souvik Dutta
First head over to the official python download page. Then choose the version and type of installer you want. After you download it click on the installer to install it. Don't forget to click on the check boxes that says add python to path and download pip. Then search for idle in the search menu.

[issue39939] PEP 616: Add str methods to remove prefix or suffix

2020-04-21 Thread Dennis Sweeney
Dennis Sweeney added the comment: Oops -- I now see the message on Python-Dev. -- ___ Python tracker ___ ___ Python-bugs-list

[issue40359] email.parse part.get_filename() fails to unwrap long attachment file names

2020-04-21 Thread Matthew Davis
New submission from Matthew Davis : # Summary When parsing emails with long attachment file names, part.get_filename() often returns \n or \r\n. It should strip those characters out. # Steps to reproduce I have attached a minimal working example. The relevant part of the raw email is:

[issue40346] Redesign random.Random class inheritance

2020-04-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: -1 I am opposed to this redesign. There is no problem being solved that warrants changing a long standing public API. It is irresponsible to just guess at whether anyone is using the API. To add randbytes() could have just been a simple two line

[issue40354] problem when using yield

2020-04-21 Thread xie
xie added the comment: Okay,I agree with you.I did not get the priority. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue39939] PEP 616: Add str methods to remove prefix or suffix

2020-04-21 Thread Dennis Sweeney
Dennis Sweeney added the comment: I'm personally -0 for underscores -- they might slightly improve readability of the function name in isolation but may also add confusion about which methods have underscores. Only one out of the 45 non-dunder str methods has an underscore right now:

[issue33065] IDLE debugger: failure stepping through module loading

2020-04-21 Thread Timothy Geiser
Timothy Geiser added the comment: It looks like the IDLE debugger seems to call repr on objects to present in the Locals list, even before they've been properly initialized. If __repr__ needs to refer to variables that don't exist until __init__ is done (and I don't think it's unreasonable

[issue39423] Process finished with exit code -1073741819 (0xC0000005) when trying to access data from a pickled file

2020-04-21 Thread Furkan Onder
Furkan Onder added the comment: Hi, Can you share the program codes to better understand the problem? -- nosy: +furkanonder ___ Python tracker ___

[issue40358] pathlib's relative_to should behave like os.path.relpath

2020-04-21 Thread Domenico Ragusa
New submission from Domenico Ragusa : Can we improve pathlib.relative_to(other) so that it handles the case of a path not being a direct child of other, like os.path.relpath? For example: Path('/some/thing').relative_to('/foo') -> Path('../some/thing') At the moment it just raises an

[issue38770] Pickle handle self references in classes

2020-04-21 Thread Furkan Onder
Furkan Onder added the comment: Ahh. I misunderstood the problem. Pickle behaves differently when it is a circular reference. If you have a solution, I am waiting with curiosity. -- ___ Python tracker

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread Ned Deily
Ned Deily added the comment: > Are we even impacted by the issue though? Certainly we use a check_chain function at least indirectly but, whether that path is vulnerable, dunno. But, in any case, we will no doubt be pinged about it so best to be ahead of the curve, I think. --

[issue40356] OverflowError: mktime argument out of range

2020-04-21 Thread Eric V. Smith
Eric V. Smith added the comment: FWIW, that time.struct_time value is: >>> d time.struct_time(tm_year=2020, tm_mon=4, tm_mday=16, tm_hour=19, tm_min=12, tm_sec=35, tm_wday=3, tm_yday=107, tm_isdst=1) I don't get an error on 3.7.4 from Cygwin or 3.7.6 from stock Fedora. --

[issue39817] CRITICAL: TypeError: cannot pickle 'generator'

2020-04-21 Thread Furkan Onder
Furkan Onder added the comment: Can you send your code? -- nosy: +furkanonder ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40327] list(sys.modules.items()) can throw RuntimeError: dictionary changed size during iteration

2020-04-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 75bedbe2ed4119ff18a2ea86c544b3cf08a92e75 by Raymond Hettinger in branch 'master': bpo-40327: Improve atomicity, speed, and memory efficiency of the items() loop (GH-19628)

[issue40327] list(sys.modules.items()) can throw RuntimeError: dictionary changed size during iteration

2020-04-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +18964 pull_request: https://github.com/python/cpython/pull/19640 ___ Python tracker

[issue34204] Bump the default pickle protocol in shelve

2020-04-21 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 4.0 -> 5.0 pull_requests: +18963 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19639 ___ Python tracker

[issue38770] Pickle handle self references in classes

2020-04-21 Thread Furkan Onder
Furkan Onder added the comment: I ran your script and didn't get RecursionError. The issue seems to be fixed. Python 3.8.2 (default, Apr 8 2020, 14:31:25) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from __future__ import print_function

[issue32912] Raise non-silent warning for invalid escape sequences

2020-04-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27635] pickle documentation says that unpickling may not call __new__

2020-04-21 Thread Furkan Onder
Furkan Onder added the comment: The problem is fixed, issue can be closed. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread Steven D'Aprano
Steven D'Aprano added the comment: > independent class Oops, sorry I mean independent implementation. -- ___ Python tracker ___

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread Steven D'Aprano
Steven D'Aprano added the comment: I don't think this is needed in the builtin zip at all. I think that there is no consensus on Python-Ideas that this is needed or desirable. I especially don't think the API should be a keyword flag on zip. Flag arguments which change the behaviour of

[issue40357] asyncio: will shutdown_default_executor work in single step (stop, run_forever) mode?

2020-04-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40357] asyncio: will shutdown_default_executor work in single step (stop, run_forever) mode?

2020-04-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +aeros ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40138] Windows implementation of os.waitpid() truncates the exit status (status << 8)

2020-04-21 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18962 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19637 ___ Python tracker ___

[issue38870] Expose ast.unparse in the ast module

2020-04-21 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +18961 pull_request: https://github.com/python/cpython/pull/19636 ___ Python tracker ___

[issue33065] IDLE debugger: failure stepping through module loading

2020-04-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Timothy, this is already more helpful than a simple 'me too'. Can you reduce pgdata.dump to a truly minimal file that exhibits the bug? and then upload it? Installing any package into my local copy of the master CPython repository is problemmatical.

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread Brandt Bucher
Brandt Bucher added the comment: Slight edit: if the shortest iterator is "first", one additional item will have to be drawn from the next non-exhausted iterator. I missed that, initially. > It would be better to implement it as a separate function. I disagree. It's not intrusive here; I

[issue40357] asyncio: will shutdown_default_executor work in single step (stop, run_forever) mode?

2020-04-21 Thread Chris Meyer
New submission from Chris Meyer : Is the new asyncio.loop.shutdown_default_executor() suitable for event loops that are run in single-step mode? event_loop.create_task(event_loop.shutdown_default_executor()) event_loop.stop() event_loop.run_forever() I don't see how it will work since

[issue40356] OverflowError: mktime argument out of range

2020-04-21 Thread darkman66
New submission from darkman66 : example test import time, pickle d=pickle.loads(b'\x80\x03ctime\nstruct_time\nq\x00(M\xe4\x07K\x04K\x10K\x13K\x0cK#K\x03KkK\x01tq\x01}q\x02(X\x07\x00\x00\x00tm_zoneq\x03NX\t\x00\x00\x00tm_gmtoffq\x04Nu\x86q\x05Rq\x06.') time.mktime(d) on macox python compiled

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2020-04-21 Thread Kyle Stanley
Kyle Stanley added the comment: PR-19634 should address the primary issue of documenting in the 3.9 whatsnew that alternative event loops should implement loop.shutdown_default_executor(). For reference, here's the implementation in BaseEventLoop:

[issue39943] Meta: Clean up various issues in C internals

2020-04-21 Thread STINNER Victor
STINNER Victor added the comment: > Yes, it is a consequence of PR 19345. But it looks like a compiler bug. It > complains about implicit conversion from `const void **` to `void *` in > memcpy() and PyMem_Del(). Is it possible to add an explicit cast to make the compiler warnings quiet?

[issue40355] The ast module fails to reject certain malformed nodes

2020-04-21 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: See https://bugs.python.org/msg360767 for ast.unparse's point of view regarding malformed nodes. -- nosy: +BTaskaya, pablogsal ___ Python tracker

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread Steve Dower
Steve Dower added the comment: That'll teach me for being so quick on this... Are we even impacted by the issue though? I don't see any calls to SSL_check_chain() in our code or the SSL sources. Advisory: https://www.openssl.org/news/secadv/20200421.txt Full diff: https://github.com

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread Chris Angelico
On Wed, Apr 22, 2020 at 6:51 AM wrote: > > I'm pretty much there ; just have to account for other types of > Authentication. E.g., for NTLM, I have this: > > response.raise_for_status Be aware that this line of code won't actually do anything. That's a method. ChrisA --

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2020-04-21 Thread Kyle Stanley
Kyle Stanley added the comment: New changeset 9c82ea7868a1c5ecf88891c627b5c399357eb05e by Kyle Stanley in branch 'master': bpo-34037: Add Python API whatsnew for loop.shutdown_default_executor() (#19634) https://github.com/python/cpython/commit/9c82ea7868a1c5ecf88891c627b5c399357eb05e

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread dcwhatthe
On Tuesday, April 21, 2020 at 4:38:52 PM UTC-4, Chris Angelico wrote: > On Wed, Apr 22, 2020 at 6:30 AM Barry Scott barr wrote: > > > > > > > > > On 21 Apr 2020, at 20:47, dc wrote: > > > > > > On Tuesday, April 21, 2020 at 3:16:51 PM UTC-4, Barry Scott wrote: > > >>> On 21 Apr 2020, at 18:11, dc

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread dcwhatthe
On Tuesday, April 21, 2020 at 4:25:54 PM UTC-4, Barry Scott wrote: > > On 21 Apr 2020, at 20:47, dc wrote: > > > > On Tuesday, April 21, 2020 at 3:16:51 PM UTC-4, Barry Scott wrote: > >>> On 21 Apr 2020, at 18:11, dc wrote: > >>> > >>> On Tuesday, April 21, 2020 at 12:40:25 PM UTC-4, Dieter

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread Chris Angelico
On Wed, Apr 22, 2020 at 6:30 AM Barry Scott wrote: > > > > > On 21 Apr 2020, at 20:47, dcwhat...@gmail.com wrote: > > > > On Tuesday, April 21, 2020 at 3:16:51 PM UTC-4, Barry Scott wrote: > >>> On 21 Apr 2020, at 18:11, dc wrote: > >>> > >>> On Tuesday, April 21, 2020 at 12:40:25 PM UTC-4,

[issue40355] The ast module fails to reject certain malformed nodes

2020-04-21 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread Barry Scott
> On 21 Apr 2020, at 20:47, dcwhat...@gmail.com wrote: > > On Tuesday, April 21, 2020 at 3:16:51 PM UTC-4, Barry Scott wrote: >>> On 21 Apr 2020, at 18:11, dc wrote: >>> >>> On Tuesday, April 21, 2020 at 12:40:25 PM UTC-4, Dieter Maurer wrote: dc wrote at 2020-4-20 14:48 -0700: > ...

Re: Why is a generator expression called a expression?

2020-04-21 Thread Chris Angelico
On Wed, Apr 22, 2020 at 6:12 AM Barry Scott wrote: > > > > > On 20 Apr 2020, at 10:29, Veek M wrote: > > > > On Mon, 20 Apr 2020 19:19:31 +1000, Chris Angelico wrote: > > > >> In the case of a genexp, the expression has a value which is a generator > >> object. When you pass that to all(), it

Re: Why is a generator expression called a expression?

2020-04-21 Thread Barry Scott
> On 20 Apr 2020, at 10:29, Veek M wrote: > > On Mon, 20 Apr 2020 19:19:31 +1000, Chris Angelico wrote: > >> In the case of a genexp, the expression has a value which is a generator >> object. When you pass that to all(), it takes it and then iterates over > > but an object is NOT THE SAME

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2020-04-21 Thread Kyle Stanley
Change by Kyle Stanley : -- pull_requests: +18960 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/19634 ___ Python tracker ___

[issue40355] The ast module fails to reject certain malformed nodes

2020-04-21 Thread Brandt Bucher
New submission from Brandt Bucher : There are several places in the ast module where the use of zip is allowing malformed nodes to have unpaired children silently thrown away. A couple of short examples: >>> from ast import Constant, Dict, literal_eval, unparse >>> nasty_dict =

Re: Getting the dependencies of a function from a library

2020-04-21 Thread Barry Scott
> On 20 Apr 2020, at 22:40, elisha hollander wrote: > > I have a python library with a function. > This function call some other functions, classes and variable from the > library (and those functions and classes call other ones, etc)... > Can I automatically create a file with all of the

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread dcwhatthe
On Tuesday, April 21, 2020 at 3:16:51 PM UTC-4, Barry Scott wrote: > > On 21 Apr 2020, at 18:11, dc wrote: > > > > On Tuesday, April 21, 2020 at 12:40:25 PM UTC-4, Dieter Maurer wrote: > >> dc wrote at 2020-4-20 14:48 -0700: > >>> ... > >>> I tried telneting the landing page, i.e. without the

[issue40235] confusing documentation for IOBase.__exit__

2020-04-21 Thread Daniel Holth
Daniel Holth added the comment: Possibly the best io module example I've found https://github.com/python/cpython/blob/master/Lib/_compression.py -- ___ Python tracker ___

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread Barry Scott
> On 21 Apr 2020, at 18:11, dcwhat...@gmail.com wrote: > > On Tuesday, April 21, 2020 at 12:40:25 PM UTC-4, Dieter Maurer wrote: >> dc wrote at 2020-4-20 14:48 -0700: >>> ... >>> I tried telneting the landing page, i.e. without the specific node that >>> requires the login. So e.g. >>> >>>

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2020-04-21 Thread Kyle Stanley
Kyle Stanley added the comment: > Kyle: Can you please add a short sentence there to document the new > requirement? Yep, I'll open a PR soon. I'm glad this is coming up now rather than post-release, thanks for bringing attention to it. -- ___

[issue33065] IDLE debugger: failure stepping through module loading

2020-04-21 Thread Timothy Geiser
Timothy Geiser added the comment: I wish I could be more helpful than to just pipe up with a "this bug affects me, too," note, but wanted to poke this bug report since it's been dormant for 14 months. With Python 3.8.2 I tried using the pgpdump module (version 1.5, installed from pip) on

Re: Python dependences

2020-04-21 Thread Grant Edwards
On 2020-04-21, jorge.confo...@inpe.br wrote: > I've already used the python list to clear up some doubts. It's > been about a year since I started using Python in my projects and I > still have some doubts. For those who have always used IDL, this > change is a little difficult. I already have

Re: Python dependences

2020-04-21 Thread Juergen Brendel
Hello! I always use 'pip', but I heard many people like 'conda'. So far I'm doing ok with 'pip' and many/most instructions or documentation just refers to that as well. Still seems to be the most standard way of installing Python dependencies. The trick is to always create a nice virtual

python and numpy

2020-04-21 Thread Derek Vladescu via Python-list
I’ve just begun a serious study of using Python as an aspiring programmer/data scientist. Can someone please walk me through how to download Python, SO THAT I will be able to import numpy? Thanks, Derek Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-04-21 Thread Kjell Braden
Kjell Braden added the comment: Please let me know if there is anything else I can do to get this going. -- ___ Python tracker ___

[issue40354] problem when using yield

2020-04-21 Thread Mark Dickinson
Mark Dickinson added the comment: Which part of the behaviour do you think is a bug? In version1, you want to think of the yield expression as though it were bracketed like this: result = yield (a+100 if b>100 else (yield a)) With the particular values of a and b that you have, that

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread Ned Deily
Ned Deily added the comment: And today (2020-04-21) 1.1.1g is released with a high severity fix. -- title: Upgrade Windows and macOS installer builds to OpenSSL 1.1.1f -> Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g ___ Python

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread dcwhatthe
On Tuesday, April 21, 2020 at 12:40:25 PM UTC-4, Dieter Maurer wrote: > dc wrote at 2020-4-20 14:48 -0700: > > ... > >I tried telneting the landing page, i.e. without the specific node that > >requires the login. So e.g. > > > >Telnet thissite.oh.gov 80 > > > >, but it returns a 400 Bad Request.

Announcement: pip 20.1b1 beta release

2020-04-21 Thread Sumana Harihareswara
On behalf of the PyPA, I am pleased to announce that a beta release of pip, pip 20.1b1, has been released. The highlights for this release are: * Significant speedups when building local directories, by changing behavior to perform in-place builds, instead of copying to temporary

[issue40354] problem when using yield

2020-04-21 Thread xie
New submission from xie : --version1:-- def func1(): a=0 b=10 for i in range(4): result = yield a+100 if b>100 else (yield a) print(result) f1 = func1() print("value:%s" % next(f1)) print("--") print("value:%s" % next(f1))

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Getting a 401 from requests.get, but not when logging in via the browser.

2020-04-21 Thread Dieter Maurer
dcwhat...@gmail.com wrote at 2020-4-20 14:48 -0700: > ... >I tried telneting the landing page, i.e. without the specific node that >requires the login. So e.g. > >Telnet thissite.oh.gov 80 > >, but it returns a 400 Bad Request. Before that, the Telnet screen is >completely blank ; I have to

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread Ram Rachum
Ram Rachum added the comment: Here are the tests I made: https://github.com/cool-RR/cpython/commit/766409748a107f290997b0cfab5aa19d0c2888e5 -- ___ Python tracker ___

[issue40352] SocketHandler silently drops log messages on re-connect

2020-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If sending log messages is not guaranteed, we could use UDP. But when we use TCP it is expected that log messages will not be lost. -- nosy: +serhiy.storchaka ___ Python tracker

Re: Getting the dependencies of a function from a library

2020-04-21 Thread Dieter Maurer
elisha hollander wrote at 2020-4-21 00:40 +0300: >I have a python library with a function. >This function call some other functions, classes and variable from the >library (and those functions and classes call other ones, etc)... >Can I automatically create a file with all of the dependencies (and

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Also you can just get a ready implementation from more-tertools. -- ___ Python tracker ___ ___

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread Brandt Bucher
New submission from Brandt Bucher : As discussed on Python-ideas: https://mail.python.org/archives/list/python-id...@python.org/thread/6GFUADSQ5JTF7W7OGWF7XF2NH2XUTUQM/ When a keyword-only argument "strict=True" is passed to zip's constructor, a ValueError will be raised in the case where

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be better to implement it as a separate function. -- nosy: +serhiy.storchaka ___ Python tracker ___

Re: Something annoying about method __set_name__ in descriptors

2020-04-21 Thread Dieter Maurer
ast wrote at 2020-4-21 14:27 +0200: > From python version 3.6, there is a useful new method >__set_name__ which could be implemented in descriptors. > >This method is called after a descriptor is instantiated >in a class. Parameter "name" is filled with the name >of the attribute refering to the

[issue40352] SocketHandler silently drops log messages on re-connect

2020-04-21 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: On one hand it's bad messages get lost, one the other retrying to send the message would take a lot of time and make `SocketHandler` very slow. Maybe we could had the record to a very short queue so we can retry to send it with the next message? --

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-21 Thread STINNER Victor
STINNER Victor added the comment: Brett: > The historical background is code coverage of C code seemed like a good idea, > so we set it up. :) Not much else to it. If there is no user of code coverage *on pull requests*, maybe the simplest fix is to remove this job. There is also Codecov

[issue40346] Redesign random.Random class inheritance

2020-04-21 Thread STINNER Victor
STINNER Victor added the comment: > It may be time to start emitting a warning if a Random subclass overrides > random() but not getrandbits() or vice versa. Does someone know if there are users outside the stdlib of random subclass which only implements random()? I guess that a deprecation

[issue40346] Redesign random.Random class inheritance

2020-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It may be time to start emitting a warning if a Random subclass overrides random() but not getrandbits() or vice versa. If you only override random(), methods which rely on generating random integers will use worse algorithm (slightly less uniform). If

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-21 Thread hai shi
hai shi added the comment: > The historical background is code coverage of C code seemed like a good idea, > so we set it up. :) Not much else to it. Hm, code coverage of C code including two parts: 1) coverage of inner c code; 2) extension modules built by distutils; If I understand

[issue40352] SocketHandler silently drops log messages on re-connect

2020-04-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Python dependences

2020-04-21 Thread jorge . conforte
Hi, I've already used the python list to clear up some doubts. It's been about a year since I started using Python in my projects and I still have some doubts. For those who have always used IDL, this change is a little difficult. I already have Ptyhon 3.8 installed, on Linux. To clear up any

  1   2   >