[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-02-04 Thread hai shi
Change by hai shi : -- pull_requests: +17733 pull_request: https://github.com/python/cpython/pull/18358 ___ Python tracker ___

[issue39557] ThreadPoolExecutor is busy-waiting when idle.

2020-02-04 Thread Avraham Mahfuda
New submission from Avraham Mahfuda : In concurrent.futures.thread line 78 is busy-waiting if the queue is empty, which may cause the CPU to spin to 100% when idle. -- messages: 361410 nosy: Avraham Mahfuda priority: normal severity: normal status: open title: ThreadPoolExecutor is

[issue39556] Different objects of the same class references the same dictionary

2020-02-04 Thread Kevin Young
Kevin Young added the comment: Thank you, Ammar! I thought the default values were locally scoped under the __init__() function. -- ___ Python tracker ___

Re: How to make a cross platform python app with pyinstaller??

2020-02-04 Thread Abdur-Rahmaan Janhangeer
Use the Dev version of pyinstaller. pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip Yours, Abdur-Rahmaan Janhangeer pythonmembers.club | github Mauritius On Wed, Feb 5, 2020 at 7:31 AM Souvik Dutta

[issue39556] Different objects of the same class references the same dictionary

2020-02-04 Thread Ammar Askar
Ammar Askar added the comment: This is a common mistake, you'll find the FAQ entry for it here: https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects It's not necessarily a "feature" but default values in functions are only created once, when the

Mauritius UG (pymug) 2019 End of Year Report

2020-02-04 Thread Abdur-Rahmaan Janhangeer
Greetings list, Today our User Group published it's first ever end-of-year report: https://www.pymug.com/assets/pymug_2019_report.pdf Feel free to ask me anything! Yours, Abdur-Rahmaan Janhangeer pythonmembers.club | github

[issue39556] Different objects of the same class references the same dictionary

2020-02-04 Thread Kevin Young
New submission from Kevin Young : Test code: class Test(object): def __init__(self, a={}): self._a = a def put(self, k, v): self._a[k] = v if __name__ == '__main__': t1 = Test() t1.put('aa', '11') t1.put('bb', '22') t2 = Test()

Re: How to make a cross platform python app with pyinstaller??

2020-02-04 Thread Cameron Simpson
On 04Feb2020 21:27, Michael Torrie wrote: On 2/4/20 8:33 PM, Chris Angelico wrote: On Wed, Feb 5, 2020 at 2:32 PM Souvik Dutta wrote: I made a python gui with pyqt5 and packed it with pyinstaller. It is running well in my computer but when I gave it to a friend who doesn't have any python

[issue39555] test_distutils fails for Windows debug build

2020-02-04 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +17732 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18357 ___ Python tracker

[issue39555] test_distutils fails for Windows debug build

2020-02-04 Thread Steve Dower
New submission from Steve Dower : >From https://buildbot.python.org/all/#/builders/129/builds/306 == FAIL: test_unicode_module_names (distutils.tests.test_build_ext.BuildExtTestCase)

[issue39553] Delete HAVE_SXS protected code

2020-02-04 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

Re: How to make a cross platform python app with pyinstaller??

2020-02-04 Thread Michael Torrie
On 2/4/20 8:33 PM, Chris Angelico wrote: > On Wed, Feb 5, 2020 at 2:32 PM Souvik Dutta wrote: >> >> Hi, >> I made a python gui with pyqt5 and packed it with pyinstaller. It is >> running well in my computer but when I gave it to a friend who doesn't have >> any python version installed and it

[issue39554] @functools.lru_cache() not respecting typed=False

2020-02-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: I understand the confusion, but this isn't a bug. Specifying "typed=True" means that the cache is required to treat the calls f(1) and f(1.0) as distinct. However, specifying or defaulting to "typed=False" means that the cache isn't required to do so,

[issue39554] @functools.lru_cache() not respecting typed=False

2020-02-04 Thread Benoit B
New submission from Benoit B : I don't know if I'm missing something, but there's a behavior of functools.lru_cache() that I currently don't understand. As the documentation states: "If typed is set to true, function arguments of different types will be cached separately. For example, f(3)

Re: How to make a cross platform python app with pyinstaller??

2020-02-04 Thread Chris Angelico
On Wed, Feb 5, 2020 at 2:32 PM Souvik Dutta wrote: > > Hi, > I made a python gui with pyqt5 and packed it with pyinstaller. It is > running well in my computer but when I gave it to a friend who doesn't have > any python version installed and it didn't run. The message was "This app > cannot be

How to make a cross platform python app with pyinstaller??

2020-02-04 Thread Souvik Dutta
Hi, I made a python gui with pyqt5 and packed it with pyinstaller. It is running well in my computer but when I gave it to a friend who doesn't have any python version installed and it didn't run. The message was "This app cannot be run on your pc.". How can I solve this??? --

[issue36199] libzmq.dll causes uncontrollable screen flickering when accessing windows 2012 R2 server through remote desktop

2020-02-04 Thread Gustavo
Gustavo added the comment: Hi! I want to help you, leaving a useful guide about https://remotedesktopwindows10.net;>how to use remote desktop to connect to a Windows PC. -- nosy: +gustavoxo ___ Python tracker

[issue39553] Delete HAVE_SXS protected code

2020-02-04 Thread miss-islington
miss-islington added the comment: New changeset b439a715cb75e2663df32588fd004c7528b9f83b by Zackery Spytz in branch 'master': bpo-39553: Delete HAVE_SXS protected code (GH-18356) https://github.com/python/cpython/commit/b439a715cb75e2663df32588fd004c7528b9f83b -- nosy:

[issue36136] Windows: python._pth sets isolated mode late during Python initialization

2020-02-04 Thread Steve Dower
Steve Dower added the comment: Sorry I missed seeing this - I rarely browse new issues unless they're "Windows" tagged. Reading what's in master, I don't *think* there's any regression in the main case, since the values from pathconfig override config and AFAICT they aren't used in

[issue10572] Move test sub-packages to Lib/test

2020-02-04 Thread Ido Michael
Ido Michael added the comment: Thanks Brett, I'll check this out over the week. Let's take this module for instance: Lib/distutils. I looked on this one test file by now, it looks decoupled (test_bdist.py), 1.What to look for 2.Once decided it's not the right path, just migrate to

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-02-04 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39553] Delete HAVE_SXS protected code

2020-02-04 Thread Zackery Spytz
Zackery Spytz added the comment: I had worked on bpo-37025, so I have submitted a patch for this issue. Please consider taking a look. -- ___ Python tracker ___

[issue28901] Windows: document that site is not imported by default by embeddable distribution

2020-02-04 Thread Steve Dower
Change by Steve Dower : -- resolution: -> not a bug stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue33698] `._pth` does not allow to populate `sys.path` with empty entry

2020-02-04 Thread Steve Dower
Change by Steve Dower : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39553] Delete HAVE_SXS protected code

2020-02-04 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +17731 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18356 ___ Python tracker

Re: How to instlal pyodbc, without pip

2020-02-04 Thread Souvik Dutta
You might use chocolatey if you like. On Tue, 4 Feb, 2020, 11:05 pm , wrote: > Hi, > > Pip won't work on my desktop, because of the firewalls we have set up. > > I have the version from github. Assuming my Python 3.8.1 Home Directory > is C:\Python, How can I install pyodbc pyodbc-master.zip?

[issue39491] Import PEP 593 (Flexible function and variable annotations) support already implemented in typing_extensions

2020-02-04 Thread Guido van Rossum
New submission from Guido van Rossum : New changeset cf5b109dbb39bcff1bc5b5d22036866d11de971b by Jakub Stasiak in branch 'master': bpo-39491: Merge PEP 593 (typing.Annotated) support (#18260) https://github.com/python/cpython/commit/cf5b109dbb39bcff1bc5b5d22036866d11de971b --

[issue34841] Script’s directory not in sys.path with embeddable Windows distribution

2020-02-04 Thread Sam Clegg
Sam Clegg added the comment: Thanks for the info. If we run into any more difficulties I'll look into nuget. I should indeed have read the docs more closely. Apologies. -- ___ Python tracker

[issue39185] Add quiet and detailed verbosity levels to build.bat

2020-02-04 Thread miss-islington
miss-islington added the comment: New changeset 6470a7643018b357adcd88f77ae2a196f41cb351 by Miss Islington (bot) in branch '3.8': bpo-39185 Add the d[etailed] and q[uiet] verbosity levels for msbuild (GH-17791) https://github.com/python/cpython/commit/6470a7643018b357adcd88f77ae2a196f41cb351

[issue39185] Add quiet and detailed verbosity levels to build.bat

2020-02-04 Thread miss-islington
miss-islington added the comment: New changeset 6ba8dc6aae6fa0a7e29ba4ac18227beb38872392 by Miss Islington (bot) in branch '3.7': bpo-39185 Add the d[etailed] and q[uiet] verbosity levels for msbuild (GH-17791) https://github.com/python/cpython/commit/6ba8dc6aae6fa0a7e29ba4ac18227beb38872392

[issue37025] Misleading error message "Python failed to load the default activation context"

2020-02-04 Thread Steve Dower
Steve Dower added the comment: Fixed in 2.7 - using issue39553 for removing the code in master. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39553] Delete HAVE_SXS protected code

2020-02-04 Thread Steve Dower
New submission from Steve Dower : We no longer support SXS manifests, so rather than fixing issue37025 in master, let's just delete the code covered by HAVE_SXS completely. -- components: Windows keywords: easy (C) messages: 361393 nosy: ZackerySpytz, paul.moore, steve.dower,

[issue38439] Python needs higher resolution app/menu icons

2020-02-04 Thread Steve Dower
Steve Dower added the comment: Copying my comment from the PR: Could someone with the SVG also create 44x44 and 150x150 sized versions? (Like the pythonx44.png and pythonx150.png files in PC/icons.) These are the sizes used for the tiles created by the Microsoft Store installer, and

[issue39184] Many command execution functions are not raising auditing events

2020-02-04 Thread miss-islington
miss-islington added the comment: New changeset 3498ac55bcfc18d698ea605424ec65a6e1457a39 by Miss Islington (bot) in branch '3.8': bpo-39184: Add audit events to command execution functions in os and pty modules (GH-17824)

[issue39185] Add quiet and detailed verbosity levels to build.bat

2020-02-04 Thread Steve Dower
Steve Dower added the comment: Thanks! Nice change -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue39185] Add quiet and detailed verbosity levels to build.bat

2020-02-04 Thread Steve Dower
Steve Dower added the comment: New changeset 89ae20b30e4543f379ee647c965eb46200556496 by Anthony Shaw in branch 'master': bpo-39185 Add the d[etailed] and q[uiet] verbosity levels for msbuild (GH-17791) https://github.com/python/cpython/commit/89ae20b30e4543f379ee647c965eb46200556496

[issue39185] Add quiet and detailed verbosity levels to build.bat

2020-02-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +17729 pull_request: https://github.com/python/cpython/pull/18354 ___ Python tracker ___

[issue39185] Add quiet and detailed verbosity levels to build.bat

2020-02-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +17730 pull_request: https://github.com/python/cpython/pull/18355 ___ Python tracker ___

[issue34841] Script’s directory not in sys.path with embeddable Windows distribution

2020-02-04 Thread Steve Dower
Steve Dower added the comment: The install page (https://docs.python.org/3/using/windows.html - linked from the download page) covers non-interactive installs, as well as describing the embeddable distro in detail (https://docs.python.org/3/using/windows.html#windows-embeddable). It sounds

[issue37224] test__xxsubinterpreters fails randomly

2020-02-04 Thread Kyle Stanley
Kyle Stanley added the comment: > Thanks, Kyle. That helps at least a little. :) No problem. (: I'll certainly spend some additional time investigating the main issue when I have the chance to, but in the meantime that test change should make it slightly easier to determine the point of

[issue39184] Many command execution functions are not raising auditing events

2020-02-04 Thread Steve Dower
Steve Dower added the comment: Thanks for the spawn patch, I've merged it. On the second list, I'd say go for it. The only one I'd skip are the stat() calls (and those that just do a stat call, such as exists/isfile, etc.), and getcwd() (which has many other ways to implicitly use the

[issue39184] Many command execution functions are not raising auditing events

2020-02-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +17728 pull_request: https://github.com/python/cpython/pull/18353 ___ Python tracker ___

[issue39184] Many command execution functions are not raising auditing events

2020-02-04 Thread Steve Dower
Steve Dower added the comment: New changeset 95f60010219e142a436fae18e1695cbc45407afe by Saiyang Gou in branch 'master': bpo-39184: Add audit events to command execution functions in os and pty modules (GH-17824)

[issue39542] Cleanup object.h header

2020-02-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 40e547dfbb9052ca0c667b242f6825ed1c23c195 by Victor Stinner in branch 'master': bpo-39542: Make _Py_NewReference() opaque in C API (GH-18346) https://github.com/python/cpython/commit/40e547dfbb9052ca0c667b242f6825ed1c23c195 --

[issue39469] Support for relative home path in pyvenv.cfg

2020-02-04 Thread Steve Dower
Change by Steve Dower : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34841] Script’s directory not in sys.path with embeddable Windows distribution

2020-02-04 Thread Sam Clegg
Sam Clegg added the comment: In our case we ended up stripping the .pth file and distributing that modified .zip files. I guess the main problem here is that its really not clear that this version of python doesn't work like the others, or needs to be modified before use. It can be very

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2020-02-04 Thread STINNER Victor
STINNER Victor added the comment: > (as noted above) make dealloc() for singletons a noop I expect issues with negative reference count value. As you wrote, it triggers a fatal error when Python is built in release mode. > make the initial refcount sufficiently large such that it is

[issue39279] Don't allow non-Ascii digits in platform.py

2020-02-04 Thread Steve Dower
Steve Dower added the comment: Without a source stating that version numbers will only ever contain ASCII digits (or a real-world counterexample), I see no reason to make a change here. Thanks for working on this, Ram! -- nosy: +steve.dower resolution: -> rejected stage: patch

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2020-02-04 Thread STINNER Victor
STINNER Victor added the comment: > The other approach is to leave the current static singletons alone and > only use them for the main interpreter. Each subinterpreter would get > its own copy, created when that interpreter is initialized. Which API should be used in C extensions to be

[issue8901] Windows registry path not ignored with -E option

2020-02-04 Thread Steve Dower
Change by Steve Dower : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34841] Script’s directory not in sys.path with embeddable Windows distribution

2020-02-04 Thread Steve Dower
Steve Dower added the comment: This is intentional. When embedding the Python runtime, you should limit the import directories to those you want to allow - we do not infer *any* from how it is started, due to the security risks. Modifying the ._pth file after you extract the distro and

[issue34841] Script’s directory not in sys.path with embeddable Windows distribution

2020-02-04 Thread Sam Clegg
Change by Sam Clegg : -- components: +Installation ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34841] Script’s directory not in sys.path with embeddable Windows distribution

2020-02-04 Thread Sam Clegg
Sam Clegg added the comment: We just ran into the same issue trying to use this zip as part of the emscripten SDK (https://github.com/emscripten-core/emsdk/pull/349). Seems like a fairly fundamental problem with the windows embeddable zip file. Is there any downside to simply removing the

[issue39551] mock patch should match behavior of import from when module isn't present in sys.modules

2020-02-04 Thread Dino Viehland
Dino Viehland added the comment: My actual scenario involves a custom module loader where the modules are published are completely immutable (it ends up publishing an object which isn't a subtype of module). It can still have normal Python modules as a child which aren't immutable, so they

[issue39552] shell scripts use legacy

2020-02-04 Thread Frazer Clews
Change by Frazer Clews : -- keywords: +patch pull_requests: +17726 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18351 ___ Python tracker ___

[issue39552] shell scripts use legacy

2020-02-04 Thread Frazer Clews
Change by Frazer Clews : -- components: Installation nosy: frazerclews priority: normal severity: normal status: open title: shell scripts use legacy type: enhancement versions: Python 3.9 ___ Python tracker

[issue39551] mock patch should match behavior of import from when module isn't present in sys.modules

2020-02-04 Thread Chris Withers
Chris Withers added the comment: I'm afraid I don't understand "immutable package which doesn't allow it's children to be published on it", can you give an example? -- ___ Python tracker

[issue39510] use-after-free in BufferedReader.readinto()

2020-02-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset c352e6c7446c894b13643f538db312092b351789 by Miss Islington (bot) in branch '3.6': closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH-18350) https://github.com/python/cpython/commit/c352e6c7446c894b13643f538db312092b351789

[issue39551] mock patch should match behavior of import from when module isn't present in sys.modules

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

[issue39510] use-after-free in BufferedReader.readinto()

2020-02-04 Thread miss-islington
miss-islington added the comment: New changeset 97d2a9832494e4c85da124ceab18802eed9a4ab1 by Miss Islington (bot) in branch '3.7': closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH-18295) https://github.com/python/cpython/commit/97d2a9832494e4c85da124ceab18802eed9a4ab1

[issue38628] Issue with ctypes in AIX

2020-02-04 Thread David Edelsohn
David Edelsohn added the comment: Is this a legal use of Python ctypes? I don't see anything in the Python documentation that one can call a ctypes function with an argument list that does not match the function signature and expect it to work. Maybe this works on x86 by accident, but

Re: How to instlal pyodbc, without pip

2020-02-04 Thread Terry Reedy
On 2/4/2020 12:34 PM, dcwhat...@gmail.com wrote: Pip won't work on my desktop, because of the firewalls we have set up. I have the version from github. Assuming my Python 3.8.1 Home Directory is C:\Python, How can I install pyodbc pyodbc-master.zip? If you have dependencies installed, you

[issue39510] use-after-free in BufferedReader.readinto()

2020-02-04 Thread miss-islington
miss-islington added the comment: New changeset 30e769382dfb67a68fe8e6bfe8509addb4aa9514 by Miss Islington (bot) in branch '3.8': closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH-18295) https://github.com/python/cpython/commit/30e769382dfb67a68fe8e6bfe8509addb4aa9514

Re: How to instlal pyodbc, without pip

2020-02-04 Thread DL Neil via Python-list
On 5/02/20 6:34 AM, dcwhat...@gmail.com wrote: Pip won't work on my desktop, because of the firewalls we have set up. I have the version from github. Assuming my Python 3.8.1 Home Directory is C:\Python, How can I install pyodbc pyodbc-master.zip? Which folders should I unzip it into?

[issue39550] isinstance accepts subtypes of tuples as second argument

2020-02-04 Thread STINNER Victor
STINNER Victor added the comment: Joachim: > It's possible to use a tuple subclass, though, and while it doesn't break the > function because it reads , the tuple is not explored through the __iter__ > interface: (...) I don't think that the example from the first message is an issue in

[issue39551] mock patch should match behavior of import from when module isn't present in sys.modules

2020-02-04 Thread Dino Viehland
Dino Viehland added the comment: It's related to bpo-39336. If you have an immutable package which doesn't allow it's children to be published on it when following the chain of packages it ends up not arriving at the final module. But you can also hit it if you end up doing the patch

[issue39510] use-after-free in BufferedReader.readinto()

2020-02-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset cb1c0746f277052e45a60d6c436a765e34722821 by Philipp Gesang in branch 'master': closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH-18295) https://github.com/python/cpython/commit/cb1c0746f277052e45a60d6c436a765e34722821

[issue39510] use-after-free in BufferedReader.readinto()

2020-02-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +17725 pull_request: https://github.com/python/cpython/pull/18350 ___ Python tracker ___

[issue39510] use-after-free in BufferedReader.readinto()

2020-02-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +17724 pull_request: https://github.com/python/cpython/pull/18349 ___ Python tracker ___

[issue39510] use-after-free in BufferedReader.readinto()

2020-02-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +17723 pull_request: https://github.com/python/cpython/pull/18348 ___ Python tracker ___

[issue39551] mock patch should match behavior of import from when module isn't present in sys.modules

2020-02-04 Thread Chris Withers
Chris Withers added the comment: What's the real world use case for this? -- nosy: +cjw296 ___ Python tracker ___ ___

[issue39550] isinstance accepts subtypes of tuples as second argument

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

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2020-02-04 Thread Dino Viehland
Change by Dino Viehland : -- pull_requests: +17722 pull_request: https://github.com/python/cpython/pull/18347 ___ Python tracker ___

[issue39551] mock patch should match behavior of import from when module isn't present in sys.modules

2020-02-04 Thread Dino Viehland
Change by Dino Viehland : -- keywords: +patch pull_requests: +17721 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18347 ___ Python tracker

[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2020-02-04 Thread Mikko Korkalo
Mikko Korkalo added the comment: I disagree about whether this should be fixed or not. It's definitely a bug. If you ask whether a bind mount destination is a mount, it should return true. I wrote a logic that does bind mounting. The logic cannot use ismount() because it does not work for

[issue39551] mock patch should match behavior of import from when module isn't present in sys.modules

2020-02-04 Thread Dino Viehland
New submission from Dino Viehland : The fix for bpo-17636 added support for falling back to sys.modules when a module isn't directly present on the module. But mock doesn't have the same behavior - it'll try the import, and then try to get the value off the object. If it's not there it

[issue39550] isinstance accepts subtypes of tuples as second argument

2020-02-04 Thread Paul Ganssle
Paul Ganssle added the comment: Serhiy: I think at least a test for this particular corner case should be added, so that no implementations of `isinstance` that use the CPython test suite hit an infinite recursion in that event, I guess? Though I think it's maybe an open question as to what

[issue39516] ++ does not throw a SyntaxError

2020-02-04 Thread Marco Sulla
Marco Sulla added the comment: > this is the sort of thing that is usually best suited to be reported by > linters, not the Python runtime. TL;DR: if you write something like `a -- b`, it's quite extraordinary that you really wanted to write this. You probably wanted to write `a - -b` or,

[issue39550] isinstance accepts subtypes of tuples as second argument

2020-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not understand what the problem is. If the isinstance tuple iteration were to start using __iter__ in the future, it should start to handle all corner cases. But what is wrong now? -- nosy: +serhiy.storchaka

[issue38826] Regular Expression Denial of Service in urllib.request.AbstractBasicAuthHandler

2020-02-04 Thread Anselmo Melo
Change by Anselmo Melo : -- nosy: +Anselmo Melo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39550] isinstance accepts subtypes of tuples as second argument

2020-02-04 Thread Joachim Jablon
New submission from Joachim Jablon : (Not really sure it is a bug, but better informed people might find it worthy still) isinstance can accept, as second argument, a type or a potentially nested tuple of types. Only tuples are accepted, as opposed to generic iterables. The reasoning behind

[issue39384] Email parser creates a message object that can't be flattened as bytes.

2020-02-04 Thread R. David Murray
R. David Murray added the comment: message_from_bytes -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39384] Email parser creates a message object that can't be flattened as bytes.

2020-02-04 Thread R. David Murray
R. David Murray added the comment: If we can get an actual reproducer using message_as_bytes I'd feel more comfortable with the fix. I worry that there is some other bug this is exposing that should be fixed instead. -- ___ Python tracker

How to instlal pyodbc, without pip

2020-02-04 Thread dcwhatthe
Hi, Pip won't work on my desktop, because of the firewalls we have set up. I have the version from github. Assuming my Python 3.8.1 Home Directory is C:\Python, How can I install pyodbc pyodbc-master.zip? Which folders should I unzip it into? Regards, --

[issue39384] Email parser creates a message object that can't be flattened as bytes.

2020-02-04 Thread Mark Sapiro
Mark Sapiro added the comment: Other Mailman3 installations are also encountering this issue. See https://lists.mailman3.org/archives/list/mailman-us...@mailman3.org/message/VQZORIDL5PNQ4W33KIMVTFTANSGZD46S/ -- ___ Python tracker

Re: ERROR in loading data

2020-02-04 Thread Joel Goldstick
On Tue, Feb 4, 2020 at 9:51 AM wrote: > > #load the training and testing data, then scale it into the > # range [0, 1] > print("[INFO] loading ADNI data...") > ((trainX, trainY), (testX, testY)) = '/content/gdrive/My > Drive/3_Classes/'.loads_data() What is the class of

[issue34788] ipaddress module fails on rfc4007 scoped IPv6 addresses

2020-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nick, can you comment on this and review the revised PR? -- nosy: +ncoghlan versions: -Python 2.7 ___ Python tracker ___

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2020-02-04 Thread Eric Snow
Eric Snow added the comment: > This is pretty much one of the two approaches I have been considering. The other approach is to leave the current static singletons alone and only use them for the main interpreter. Each subinterpreter would get its own copy, created when that interpreter is

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2020-02-04 Thread Eric Snow
Eric Snow added the comment: On Sun, Feb 2, 2020 at 3:32 PM Raymond Hettinger wrote: > Random idea (not carefully thought-out): Would it be simpler to have these > objects just > ignore their refcount by having dealloc() be a null operation or having it > set the refcount > back to a

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2020-02-04 Thread Eric Snow
Eric Snow added the comment: On Sun, Feb 2, 2020 at 2:53 PM Raymond Hettinger wrote: > Is the sub-interpreter PEP approved? PEP 554 is not approved yet (and certainly is not guaranteed, though I'm hopeful). However, that PEP is exclusively about exposing subinterpreters in the stdlib.

[issue37224] test__xxsubinterpreters fails randomly

2020-02-04 Thread Eric Snow
Eric Snow added the comment: Thanks, Kyle. That helps at least a little. :) -- ___ Python tracker ___ ___ Python-bugs-list

[issue37224] test__xxsubinterpreters fails randomly

2020-02-04 Thread miss-islington
miss-islington added the comment: New changeset 9a740b6c7e7a88185d79128b8a1993ac387d5091 by Miss Islington (bot) in branch '3.8': bpo-37224: Improve test__xxsubinterpreters.DestroyTests (GH-18058) https://github.com/python/cpython/commit/9a740b6c7e7a88185d79128b8a1993ac387d5091 --

[issue39432] Distutils generates the wrong export symbol for unicode module names

2020-02-04 Thread miss-islington
miss-islington added the comment: New changeset 9538bc9185e934bee2bd5ae2cda2b2e92a61906d by Stefan Behnel in branch 'master': bpo-39432: Implement PEP-489 algorithm for non-ascii "PyInit_*" symbol names in distutils (GH-18150)

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-04 Thread STINNER Victor
STINNER Victor added the comment: > No, int/int is more accurate here. Should _PyFloat_FromPyTime() implementation be modified to reuse long_true_divide()? -- ___ Python tracker

Re: ERROR in loading data

2020-02-04 Thread Rhodri James
On 04/02/2020 14:49, laiba.zubai...@gmail.com wrote: #load the training and testing data, then scale it into the # range [0, 1] print("[INFO] loading ADNI data...") ((trainX, trainY), (testX, testY)) = '/content/gdrive/My Drive/3_Classes/'.loads_data() trainX =

[issue39516] ++ does not throw a SyntaxError

2020-02-04 Thread Eric Snow
Eric Snow added the comment: FWIW, this is the sort of thing that is usually best suited to be reported by linters, not the Python runtime. -- nosy: +eric.snow ___ Python tracker

[issue39543] Py_DECREF(): use inlined _Py_Dealloc()

2020-02-04 Thread STINNER Victor
STINNER Victor added the comment: To declare _Py_Dealloc() as a static inline function in Include/object.h, we need to define the PyTypeObject in object.h which requires tons on other type definitions: PyNumberMethods, PySequenceMethods, etc. If possible, I would prefer to not move back

ERROR in loading data

2020-02-04 Thread laiba . zubair96
#load the training and testing data, then scale it into the # range [0, 1] print("[INFO] loading ADNI data...") ((trainX, trainY), (testX, testY)) = '/content/gdrive/My Drive/3_Classes/'.loads_data() trainX = trainX.astype("float") / 255.0 testX =

[issue39545] await is not supported in f-string in 3.6

2020-02-04 Thread Rohit Sanjay
Rohit Sanjay added the comment: Hey, I'd like to work on this issue. Seems like an easy fix. Can you please help me out with where I will need to add the documentation for this? -- nosy: +rohitsanjay ___ Python tracker

[issue39543] Py_DECREF(): use inlined _Py_Dealloc()

2020-02-04 Thread STINNER Victor
STINNER Victor added the comment: For _Py_NewReference(), I proposed PR 18346 to make it opaque (hide implementation details). -- ___ Python tracker ___

  1   2   >