[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-01 Thread Irit Katriel
Irit Katriel added the comment: It’s fixed now. The tests failed when we merged this old PR. I guess they passed a few months ago but something changed in the meantime. I don’t know if there’s something to do in the CI to prevent this (expire the test run after a while?) If we want to

[issue37804] Remove Thread.isAlive in Python 3.9

2021-04-01 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: The threading documentation for 3.9 still claims "While they are not listed below, the camelCase names used for some methods and functions in this module in the Python 2.x series are still supported by this module." It would be better to mention when

[issue43702] [Windows] correctly sort and remove duplicates in _winapi getenvironment()

2021-04-01 Thread Eryk Sun
New submission from Eryk Sun : getenvironment() in Modules/_winapi.c needs to sort variables in the environment block and remove duplicates case insensitively [1]. The sort order used to matter with SetEnvironmentVairableW(). As soon as it reached a name in the environment block that

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23892 pull_request: https://github.com/python/cpython/pull/25145 ___ Python tracker ___

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-04-01 Thread Guido van Rossum
Guido van Rossum added the comment: Jiaxin: "Resolution: works for me" is meant for the triager to indicate that there is no bug, or at least that the repro given in the bug report doesn't trigger the bug in the triager's environment. It does *not* mean that a patch works for the submitter

[issue43700] Replace Zulip badge with Discourse badge in README

2021-04-01 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the patch! -- nosy: +zach.ware resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.8, Python 3.9 ___ Python tracker

[issue43700] Replace Zulip badge with Discourse badge in README

2021-04-01 Thread miss-islington
miss-islington added the comment: New changeset 154f86f056c0f68cadd310e68fd2855f9fc9a5a8 by Miss Islington (bot) in branch '3.8': bpo-43700: Replace Zulip badge with Discourse badge (GH-25141) https://github.com/python/cpython/commit/154f86f056c0f68cadd310e68fd2855f9fc9a5a8 --

[issue43700] Replace Zulip badge with Discourse badge in README

2021-04-01 Thread miss-islington
miss-islington added the comment: New changeset a217e0ab98e883a550da001e95cb3452c1a6b9da by Miss Islington (bot) in branch '3.9': bpo-43700: Replace Zulip badge with Discourse badge (GH-25141) https://github.com/python/cpython/commit/a217e0ab98e883a550da001e95cb3452c1a6b9da --

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset 8bbfeb3330c10d52274bb85fce59ae614f0500bf by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25142) https://github.com/python/cpython/commit/8bbfeb3330c10d52274bb85fce59ae614f0500bf --

[issue43701] Add this optionality

2021-04-01 Thread Masoud Azizi
New submission from Masoud Azizi : I want to rediuse two var togeder! When i do that buy sum is rediuse to zero and not effect the sellsum buySum[pair] -= sellSum[pair] sellSum[pair] -= buySum[pair] Cuz of that i try this statment but its not work! Its a simple code that will python support

[issue43700] Replace Zulip badge with Discourse badge in README

2021-04-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +23891 pull_request: https://github.com/python/cpython/pull/25144 ___ Python tracker ___

[issue43700] Replace Zulip badge with Discourse badge in README

2021-04-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +23890 pull_request: https://github.com/python/cpython/pull/25143 ___ Python tracker ___

[issue43700] Replace Zulip badge with Discourse badge in README

2021-04-01 Thread miss-islington
miss-islington added the comment: New changeset bef7b26f7229f8b7cde843118a7bc7e2b00f0372 by Erlend Egeberg Aasland in branch 'master': bpo-43700: Replace Zulip badge with Discourse badge (GH-25141) https://github.com/python/cpython/commit/bef7b26f7229f8b7cde843118a7bc7e2b00f0372 --

[issue43691] Comparison of OrderedDict() and dict()

2021-04-01 Thread Марк Коренберг
Марк Коренберг added the comment: Shame on me. You are right. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue43691] Comparison of OrderedDict() and dict()

2021-04-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: > There are no specifications regarding the question. >From the OrderedDict docs: """ Equality tests between OrderedDict objects are order-sensitive and are implemented as list(od1.items())==list(od2.items()). Equality tests between OrderedDict objects

[issue43691] Comparison of OrderedDict() and dict()

2021-04-01 Thread Марк Коренберг
Марк Коренберг added the comment: https://mail.python.org/pipermail/python-ideas/2015-December/037472.html -- ___ Python tracker ___

[issue43691] Comparison of OrderedDict() and dict()

2021-04-01 Thread Марк Коренберг
Марк Коренберг added the comment: I don't agree. There are no specifications regarding the question. Since anything relying on specific implementation (not specification) should not be considered as something we should support or take care of. Raising exception is the best thing since it

[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-01 Thread Guido van Rossum
Guido van Rossum added the comment: Do you need my help here? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43549] Outdated descriptions for configuring valgrind.

2021-04-01 Thread Xinmeng Xia
Change by Xinmeng Xia : -- type: behavior -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27129] Wordcode, part 2

2021-04-01 Thread David Bolen
David Bolen added the comment: Unfortunately, not at the moment - what's in the buildbot log is what's available. The RTL assertion aborts the process. The tests involved (such as test_clinic) do seem reproducible in a few separate tries, though again, all they do is terminate. As the

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23889 pull_request: https://github.com/python/cpython/pull/25142 ___ Python tracker ___

[issue27129] Wordcode, part 2

2021-04-01 Thread Mark Shannon
Mark Shannon added the comment: That assertion is correct, and hasn't changed. Do you have a traceback? The buildbot just shows the assertion message with no context. -- ___ Python tracker

[issue43677] Descriptor.rst - Reference to Py_MethodType is not up to date

2021-04-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the bug report. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker

[issue43677] Descriptor.rst - Reference to Py_MethodType is not up to date

2021-04-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset d104a786fff5980360056d908a2d952b42306171 by Miss Islington (bot) in branch '3.9': bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (GH-25123) (#25140) https://github.com/python/cpython/commit/d104a786fff5980360056d908a2d952b42306171

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset 80017752ba938852d53f9d83a404b4ecd9ff2baa by Inada Naoki in branch 'master': bpo-43651: Fix test_compileall with PEP 597 (GH-25128) https://github.com/python/cpython/commit/80017752ba938852d53f9d83a404b4ecd9ff2baa --

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset c0ec4486dc7dd70fea39d1473ac9a9ac568378fe by Inada Naoki in branch 'master': bpo-43651: Fix EncodingWarning in lib2to3/pgen2/pgen.py (GH-25127) https://github.com/python/cpython/commit/c0ec4486dc7dd70fea39d1473ac9a9ac568378fe --

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset 036fc7de24cc961d65b60fba266104009feb2797 by Inada Naoki in branch 'master': bpo-43651: Fix EncodingWarning in test_warnings (GH-25126) https://github.com/python/cpython/commit/036fc7de24cc961d65b60fba266104009feb2797 --

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-01 Thread dn via Python-list
On 02/04/2021 10.13, Chris Angelico wrote: > On Fri, Apr 2, 2021 at 7:52 AM David L Neil via Python-list > wrote: >> Officially April-Fools Day is over (here), but... > This wasn't a prank post, although it was intended to give amusement > rather than real education or debate or anything. So

[issue43695] Improve `=` in f-strings

2021-04-01 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this. I agree with Serhiy that it's pushing f-strings too far. If you really want to pursue this, you'll need to specify the semantics much more clearly, and then bring it up on the python-ideas mailing list. But I don't want to give you

Re: A 35mm film camera represented in Python object

2021-04-01 Thread Eli the Bearded
In comp.lang.python, Richard Damon wrote: > On 4/1/21 6:41 PM, 2qdxy4rzwzuui...@potatochowder.com wrote: >> Richard Damon wrote: >>> If you keep track of the positions as a floating point number, the >>> precision will be more than you could actually measure it. >> I won't disagree with

[issue27129] Wordcode, part 2

2021-04-01 Thread David Bolen
David Bolen added the comment: Note that this commit appears to be causing exceptions for the Win10 buildbot, failing the PyCode_Addr2Line assertion in codeobject.c line 1252. The assertion seems to pop up at differing points during each test run, but the builder has yet to complete a full

Re: A 35mm film camera represented in Python object

2021-04-01 Thread Richard Damon
On 4/1/21 6:41 PM, 2qdxy4rzwzuui...@potatochowder.com wrote: > On 2021-04-01 at 18:10:46 -0400, > Richard Damon wrote: > >> On 4/1/21 5:47 PM, D.M. Procida wrote: >>> D.M. Procida wrote: >>> Hi everyone, I've created - a representation of a

Re: XanaNews Statistic for comp.lang.python. 4/1/2021 5:52:47 AM

2021-04-01 Thread Abdur-Rahmaan Janhangeer
So, is that mail spam or ...? -- https://mail.python.org/mailman/listinfo/python-list

Re: A 35mm film camera represented in Python object

2021-04-01 Thread Chris Angelico
On Fri, Apr 2, 2021 at 9:43 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2021-04-01 at 18:10:46 -0400, > Richard Damon wrote: > > > On 4/1/21 5:47 PM, D.M. Procida wrote: > > > D.M. Procida wrote: > > > > > >> Hi everyone, I've created - > >

[issue43700] Replace Zulip badge with Discourse badge in README

2021-04-01 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +23888 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25141 ___ Python tracker

[issue43700] Replace Zulip badge with Discourse badge in README

2021-04-01 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Suggesting to follow the dev guide and replace the Zulip badge with a Discourse badge in README.rst. Quoting the dev guide, section 2.4. Zulip: "This is no longer actively monitored by core devs. Consider asking your questions on Discourse or on

Re: A 35mm film camera represented in Python object

2021-04-01 Thread 2QdxY4RzWzUUiLuE
On 2021-04-01 at 18:10:46 -0400, Richard Damon wrote: > On 4/1/21 5:47 PM, D.M. Procida wrote: > > D.M. Procida wrote: > > > >> Hi everyone, I've created - > >> a representation of a Canonet G-III QL17 in Python. > >> > >> There's also documentation:

Re: A 35mm film camera represented in Python object

2021-04-01 Thread Mike Dewhirst
On 2/04/2021 8:47 am, D.M. Procida wrote: D.M. Procida wrote: Hi everyone, I've created - a representation of a Canonet G-III QL17 in Python. There's also documentation: . It's a pure Python model of the

[issue43699] ERROR: Could not find a version that satisfies the requirement MetaTrader5

2021-04-01 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> third party status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43699] ERROR: Could not find a version that satisfies the requirement MetaTrader5

2021-04-01 Thread Irit Katriel
Irit Katriel added the comment: Why do you think this is a python bug? -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Brett Cannon
Brett Cannon added the comment: > What I've never really got clear in my mind is how dotted names get handled. Essentially: 1. Check if parent is imported; if not then import (working your way all the way back to the top if necessary) 2. Ask the sys.meta_path finders if they can handle the

Re: A 35mm film camera represented in Python object

2021-04-01 Thread Richard Damon
On 4/1/21 5:47 PM, D.M. Procida wrote: > D.M. Procida wrote: > >> Hi everyone, I've created - >> a representation of a Canonet G-III QL17 in Python. >> >> There's also documentation: . >> >> It's a pure Python

Re: A 35mm film camera represented in Python object

2021-04-01 Thread D.M. Procida
D.M. Procida wrote: > Hi everyone, I've created - > a representation of a Canonet G-III QL17 in Python. > > There's also documentation: . > > It's a pure Python model of the physical sub-systems of a camera

[issue41638] Error message: sqlite3.ProgrammingError: You did not supply a value for binding # might be improved

2021-04-01 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Can this be closed, Serhiy? -- nosy: +erlendaasland ___ Python tracker ___ ___

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-01 Thread Chris Angelico
On Fri, Apr 2, 2021 at 7:52 AM David L Neil via Python-list wrote: > > Officially April-Fools Day is over (here), but... This wasn't a prank post, although it was intended to give amusement rather than real education or debate or anything. So there's nothing wrong with keeping it going. :) > On

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Paul Moore
Paul Moore added the comment: > if they return a spec they can, if they don't then they can't What I've never really got clear in my mind is how dotted names get handled. But that's probably just a matter of needing to experiment a bit (I don't think it's particularly complicated, I just

[issue17519] unittest should not try to run abstract classes

2021-04-01 Thread Stephen Thorne
Stephen Thorne added the comment: I have done some experimentation here and thought through this feature request. The concept we are trying to deliver is: "I would like to share functionality between test classes, by having an abstract parent, with concrete leaves" The metaclass abc.ABCMeta

Re: XanaNews Statistic for comp.lang.python. 4/1/2021 5:52:47 AM

2021-04-01 Thread Chris Angelico
On Fri, Apr 2, 2021 at 7:55 AM dn via Python-list wrote: > > On 02/04/2021 01.19, Chris Angelico wrote: > > On Thu, Apr 1, 2021 at 10:56 PM The Doctor via Python-list > > wrote: > >> Top Posters > >> > >> Ranking Articles NameMost Used Newsreader > >> ---

Re: XanaNews Statistic for comp.lang.python. 4/1/2021 5:52:47 AM

2021-04-01 Thread dn via Python-list
On 02/04/2021 01.19, Chris Angelico wrote: > On Thu, Apr 1, 2021 at 10:56 PM The Doctor via Python-list > wrote: >> Top Posters >> >> Ranking Articles NameMost Used Newsreader >> --- -- >> 1 167

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-01 Thread David L Neil via Python-list
Officially April-Fools Day is over (here), but... On 01/04/2021 19.25, Chris Angelico wrote: > On Thu, Apr 1, 2021 at 3:36 PM dn via Python-list > wrote: >> >> On 01/04/2021 13.54, Chris Angelico wrote: >>> Real and imaginary are the same thing, just rotated a quarter turn >> >> In which

[issue43699] ERROR: Could not find a version that satisfies the requirement MetaTrader5

2021-04-01 Thread André Luís Lopes da Silva
New submission from André Luís Lopes da Silva : Dear, I am trying to install MetaTrader5 via pip. But this return this message: Defaulting to user installation because normal site-packages is not writeable WARNING: Keyring is skipped due to an exception: Failed to unlock the keyring! ERROR:

Re: Unable to use pip to install packages

2021-04-01 Thread MRAB
On 2021-04-01 19:42, Md Sohail Ansari via Python-list wrote: Hi Team, Thanks for your support. I am having trouble installing any packages using pip in Python 3.x (earlier had Python 3.8.3, so changed to 3.8.8) in Windows 10. Please help me with below issues:

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Brett Cannon
Change by Brett Cannon : -- assignee: brett.cannon -> docs@python nosy: +docs@python ___ Python tracker ___ ___ Python-bugs-list

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread A_D
A_D added the comment: Thanks so much for your help. To anyone in the future trying to figure this out: Apparently the default opensuse fonts (which are noto) are _not_ scalable. In my testing the following is enough to solve the issue. ```

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Brett Cannon
Brett Cannon added the comment: > I'm not sure where namespace packages are documented https://docs.python.org/3/reference/import.html#namespace-packages > I'm not at all sure what would happen if we have meta path finders A and B > on sys.meta_path in that order, and A.find_spec("foo.bar")

[issue43692] Raise SyntaxError on implicit string concatentation in list

2021-04-01 Thread Carsten Docktor
Carsten Docktor added the comment: I'd consider this a bug, because I find it quite error prone. But I get the point that it might be currently used. Thank you for your response. I'll rely on third party checkers for this. -- resolution: -> rejected stage: -> resolved status:

Unable to use pip to install packages

2021-04-01 Thread Md Sohail Ansari via Python-list
Hi Team, Thanks for your support. I am having trouble installing any packages using pip in Python 3.x (earlier had Python 3.8.3, so changed to 3.8.8) in Windows 10. Please help me with below issues: ---C:\Users\mohsohai>pip install pytestTraceback

[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset bd4ab8e73906a4f12d5353f567228b7c7497baf7 by Irit Katriel in branch 'master': bpo-26053: Fix test_pdb.test_issue26053() (GH-25139) https://github.com/python/cpython/commit/bd4ab8e73906a4f12d5353f567228b7c7497baf7 -- nosy: +vstinner

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: AFAIK X Window uses two font systems: for bitmap fonts and for scalable fonts. If default fonts on your system are bitmap fonts, they are not scaled. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue43698] Use syntactically correct examples on abc package page

2021-04-01 Thread Vladimir Ryabtsev
New submission from Vladimir Ryabtsev : There are code snippets on the package's page (https://docs.python.org/3.10/library/abc.html) like this: class C(ABC): @classmethod @abstractmethod def my_abstract_classmethod(cls, ...): ... Here, the author probably wanted to

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Paul Moore
Paul Moore added the comment: OK, cool. That might be worth explaining somewhere in the docs (although I don't really know where, as I'm not sure where namespace packages are documented, either :-)) I'm not at all sure what would happen if we have meta path finders A and B on

Re: [ANN] Free Python tutorial with exercises, cscx.org

2021-04-01 Thread Chris Angelico
On Fri, Apr 2, 2021 at 2:14 AM Rudy Matela wrote: > > Hello python-list members, > > I would like to announce the following educational project: > > Computer Science by Example https://cscx.org/ is a collection of short > programming exercises. The site can automatically grade students' >

Re: NOT ABLE TO DOWNLOAD speech_recognition ON MY COMPUTER

2021-04-01 Thread Igor Korot
Hi, On Thu, Apr 1, 2021 at 12:23 PM ᗷᑌᑎᑎY wrote: > >Hello everyone. I am not able to download speech_recognition . I am not >professional just a beggnier but I decided and started developing a voice >commanding software and I need to download speech_recognition. When I >enter

NOT ABLE TO DOWNLOAD speech_recognition ON MY COMPUTER

2021-04-01 Thread ᗷᑌᑎᑎY
Hello everyone. I am not able to download speech_recognition . I am not professional just a beggnier but I decided and started developing a voice commanding software and I need to download speech_recognition. When I enter the command pip install speech_recognition it say's we cannot

Re: Issues in starting Python application

2021-04-01 Thread Grant Edwards
On 2021-04-01, Mahira Pamnani wrote: > I have been trying hard to install Python on my PC since a long time. The > application gets installed but, for reasons unknown, it doesn't start. > It keeps asking to repair, modify or uninstall the application. That's because you're re-running the

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file49927/bench.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file49926/bench_testcapi.py ___ Python tracker ___ ___ Python-bugs-list

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file49925/bench_limited.py ___ Python tracker ___ ___ Python-bugs-list

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-01 Thread STINNER Victor
STINNER Victor added the comment: I wrote a microbenchmark on Py_INCREF()+Py_DECREF(): $ python3 -m pyperf compare_to ref.json limited.json Mean +- std dev: [ref] 3.45 ns +- 0.17 ns -> [limited] 6.03 ns +- 0.21 ns: 1.75x slower If a function is only made of Py_INCREF() and Py_DECREF(), it

[issue43677] Descriptor.rst - Reference to Py_MethodType is not up to date

2021-04-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +23887 pull_request: https://github.com/python/cpython/pull/25140 ___ Python tracker

[issue43677] Descriptor.rst - Reference to Py_MethodType is not up to date

2021-04-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset e689cdca3c14aab8d2d454b79ddd661b238fd301 by Zackery Spytz in branch 'master': bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (#25123) https://github.com/python/cpython/commit/e689cdca3c14aab8d2d454b79ddd661b238fd301 --

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Brett Cannon
Brett Cannon added the comment: There is no mechanism as the entire concept of a namespace package is implemented in importlib.machinery.PathFinder itself and not the generic import system (see

[issue43677] Descriptor.rst - Reference to Py_MethodType is not up to date

2021-04-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43691] Comparison of OrderedDict() and dict()

2021-04-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Unfortunately, the existing behaviors are guaranteed and cannot be changing without breaking code — the OrderedDict class was designed to be mostly substitutable for regular dicts in existing code. Personally, I think it would have been better if

Re: Issues in starting Python application

2021-04-01 Thread Mats Wichmann
On 4/1/21 9:08 AM, Mahira Pamnani wrote: Sir I have been trying hard to install Python on my PC since a long time. The application gets installed but, for reasons unknown, it doesn't start. It keeps asking to repair, modify or uninstall the application. I have tried doing that too, but it still

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread A_D
A_D added the comment: Okay that makes sense to me. But then my next question is, why does this work on some linux systems and not others without having a specified font? Something funky about the font size? because I'd expect the platform defaults to at least be the same on different

Re: NOT ABLE TO DOWNLOAD speech_recognition ON MY COMPUTER

2021-04-01 Thread Marco Ippolito
On 2021-04-01, ᗷᑌᑎᑎY wrote: > When I enter the command pip install speech_recognition it say’s we cannot > find a compatible version. Try: ``` pip install SpeechRecognition ``` What's the output? -- https://mail.python.org/mailman/listinfo/python-list

[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-01 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +23886 pull_request: https://github.com/python/cpython/pull/25139 ___ Python tracker ___

Re: Issues in starting Python application

2021-04-01 Thread Igor Korot
Hi, On Thu, Apr 1, 2021 at 10:41 AM Marco Ippolito wrote: > > On 2021-04-01, Mahira Pamnani wrote: > > Sir > > I have been trying hard to install Python on my PC since a long time. The > > application gets installed but, for reasons unknown, it doesn't start. > > It keeps asking to repair,

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: memory consumption

2021-04-01 Thread Sam
On 3/29/21 5:12 AM, Alexey wrote: Hello everyone! I'm experiencing problems with memory consumption. I have a class which is doing ETL job. What`s happening inside: - fetching existing objects from DB via SQLAchemy - iterate over raw data - create new/update existing objects - commit

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Paul Moore
New submission from Paul Moore : I am trying to write a meta path finder that "redirects" module loads to a different part of the filesystem. There's not much information in the importlib documentation, but PEP 451 says "find_spec() must return a spec with "loader" set to None (a.k.a. not

Re: Issues in starting Python application

2021-04-01 Thread Marco Ippolito
On 2021-04-01, Mahira Pamnani wrote: > Sir > I have been trying hard to install Python on my PC since a long time. The > application gets installed but, for reasons unknown, it doesn't start. > It keeps asking to repair, modify or uninstall the application. > I have tried doing that too, but it

[issue12657] Cannot override JSON encoding of basic type subclasses

2021-04-01 Thread Samuel Freilich
Samuel Freilich added the comment: A fully general solution for this might require a separate way to override the behavior for serializing dict keys (since those have to be serialized as strings). -- ___ Python tracker

[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-01 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 652bfdee9495dca241d48278742fe035b7a82bdb by Irit Katriel in branch 'master': bpo-26053: Fix args echoed by pdb run command (#22033) https://github.com/python/cpython/commit/652bfdee9495dca241d48278742fe035b7a82bdb -- nosy:

Issues in starting Python application

2021-04-01 Thread Mahira Pamnani
Sir I have been trying hard to install Python on my PC since a long time. The application gets installed but, for reasons unknown, it doesn't start. It keeps asking to repair, modify or uninstall the application. I have tried doing that too, but it still doesn't give any results. Please guide me

Re: memory consumption

2021-04-01 Thread Alexey
четверг, 1 апреля 2021 г. в 15:56:23 UTC+3, Marco Ippolito: > > > Are you running with systemd? > > > > I really don't know. > An example of how to check: > > ``` > $ readlink /sbin/init > /lib/systemd/systemd > ``` > > You want to check which program runs as PID 1. Thank you Marco --

Re: memory consumption

2021-04-01 Thread Alexey
четверг, 1 апреля 2021 г. в 15:46:21 UTC+3, Marco Ippolito: > I suspect the high watermark of `` needs to be reachable still and, > secondly, that a forceful constraint whilst running would crash the > container? Exactly. -- https://mail.python.org/mailman/listinfo/python-list

[issue12657] Cannot override JSON encoding of basic type subclasses

2021-04-01 Thread Samuel Freilich
Samuel Freilich added the comment: > A modern solution for this is to define a singledispatch function (with > implementations for your custom types) and pass it as the `default` parameter > to the dump functions. Does that work? I thought the default function only got called for

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-04-01 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +23885 pull_request: https://github.com/python/cpython/pull/25138 ___ Python tracker ___

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-01 Thread Chris Angelico
On Thu, Apr 1, 2021 at 3:36 PM dn via Python-list wrote: > > On 01/04/2021 13.54, Chris Angelico wrote: > > Real and imaginary are the same thing, just rotated a quarter turn > > In which dimension(s)? Cartesian. > >> Without looking into the details/context: surely there's a more > >>

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-01 Thread Alan Gauld via Python-list
On 01/04/2021 00:14, Chris Angelico wrote: > On a scale of 1 to "submit this to The Daily WTF immediately", how bad > is this code? :) The only worthwhile test of code quality is whether a new member of the team, competent in the language but not an expert can understand the code in two readings

[issue31466] No easy way to change float formatting when subclassing encoder.JSONEncoder

2021-04-01 Thread Samuel Freilich
Samuel Freilich added the comment: I think the less-minor issue, of which this is a small subset, is that JSONEncoder doesn't allow changing the behavior for default-serializable types at all. That means you can't choose to lose less information in round-trip serialization/deserialization,

[issue43692] Raise SyntaxError on implicit string concatentation in list

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is valid Python syntax, so SyntaxErorr cannot be raised. SyntaxWarning is an option, but the Python compiler only emits it if we absolutely sure that the code contains a bug (either it does not work as intended or can work differently on other

[ANN] Free Python tutorial with exercises, cscx.org

2021-04-01 Thread Rudy Matela
Hello python-list members, I would like to announce the following educational project: Computer Science by Example https://cscx.org/ is a collection of short programming exercises. The site can automatically grade students' solutions and it accepts submissions in Python. The exercises start

[issue27129] Wordcode, part 2

2021-04-01 Thread Mark Shannon
Mark Shannon added the comment: New changeset fcb55c0037baab6f98f91ee38ce84b6f874f034a by Mark Shannon in branch 'master': bpo-27129: Use instruction offsets, not byte offsets, in bytecode and internally. (GH-25069)

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The size of of the window is determined by the size of its components. The size of the label and the munu is determined by the size of the font. If font has the same size and you output the same string (or string containing characters of the same

Re: memory consumption

2021-04-01 Thread Alexey
четверг, 1 апреля 2021 г. в 17:21:59 UTC+3, Mats Wichmann: > On 4/1/21 5:50 AM, Alexey wrote: > > Found it. As I said before the problem was lurking in the cache. > > Few days ago I read about circular references and things like that and > > I thought to myself that it might be the case. To

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread A_D
A_D added the comment: I'd expect the windows themselves to change size based on the percentage requested. eg as shown here https://user-images.githubusercontent.com/4589845/95577562-0a794500-0a3b-11eb-914e-9a5afc500b65.png (semirelated issue:

[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What did you expect to get? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

  1   2   >