[issue39301] Specification of bitshift on integers should clearly state floor division used

2020-05-23 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 3.0 -> 4.0 pull_requests: +19610 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20347 ___ Python tracker

Re: Strings: double versus single quotes

2020-05-23 Thread Frank Millman
On 2020-05-23 9:45 PM, DL Neil via Python-list wrote: My habit with SQL queries is to separate them from other code, cf the usual illustration of having them 'buried' within the code, immediately before, or even part of, the query call. I like that idea, as I find that I am embedding more

Re: Strings: double versus single quotes

2020-05-23 Thread Abdur-Rahmaan Janhangeer
Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy | blog github Mauritius On Sun, May 24, 2020 at 12:03 AM DL Neil via Python-list < python-list@python.org> wrote: > > I'm highly

Re: Strings: double versus single quotes

2020-05-23 Thread Abdur-Rahmaan Janhangeer
Greetings, Nice idea >>> '''You said "No it doesn't"''' 'You said "No it doesn\'t"' Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy | blog github Mauritius On Sun, May 24, 2020

Re: Strings: double versus single quotes

2020-05-23 Thread Manfred Lotz
On Sat, 23 May 2020 14:46:04 -0400 Dennis Lee Bieber wrote: > On Sat, 23 May 2020 11:03:09 -0500, Tim Chase > declaimed the following: > > > > > >But when a string contains both, it biases towards single quotes: > > > > >>> "You said \"No it doesn't\"" > > 'You said "No it doesn\'t"'

Re: stderr writting before stdout

2020-05-23 Thread Souvik Dutta
Also this code maintains order i.e. writting is displayed before no errors. Why is that? import sys sys.stdout.write("Writting \n") sys.stderr.write("No errors \n") On Sun, 24 May, 2020, 9:57 am Souvik Dutta, wrote: > Hi, > Is there any precedence or priority order by which sys.stderr.write()

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

2020-05-23 Thread hai shi
Change by hai shi : -- pull_requests: +19609 pull_request: https://github.com/python/cpython/pull/20344 ___ Python tracker ___ ___

Re: Enums are Singletons - but not always?

2020-05-23 Thread Terry Reedy
On 5/23/2020 2:21 PM, Ralf M. wrote: # Code of mod1.py # import enum, mod2 class En(enum.Enum):     A = 1     B = 2 def main():     a = mod2.getA()     print("a is En.A:", a is En.A)     print("a:", repr(a), "    En.A:", repr(En.A))     print("id(a), id(a.__class__)", id(a),

[issue40751] command 'elif' does not work

2020-05-23 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : You're indenting elif inside if clause. The elif should be of same indentation length like if condition. -- nosy: +xtreak ___ Python tracker

[issue40751] command 'elif' does not work

2020-05-23 Thread Jonny Li
Change by Jonny Li : Added file: https://bugs.python.org/file49189/Screen Shot 2020-05-24 at 10.56.10.png ___ Python tracker ___ ___

[issue40751] command 'elif' does not work

2020-05-23 Thread Jonny Li
Change by Jonny Li : -- assignee: terry.reedy components: IDLE files: Screen Shot 2020-05-24 at 10.56.55.png nosy: Jonny Li, terry.reedy priority: normal severity: normal status: open title: command 'elif' does not work type: compile error versions: Python 3.8 Added file:

Re: Strings: double versus single quotes

2020-05-23 Thread Souvik Dutta
This seems to be a life long debate... On Sun, 24 May, 2020, 5:25 am Tim Chase, wrote: > On 2020-05-23 14:46, Dennis Lee Bieber wrote: > > On Sat, 23 May 2020 11:03:09 -0500, Tim Chase > > >But when a string contains both, it biases towards single quotes: > > > > > > >>> "You said \"No it

[issue40160] documentation example of os.walk should be less destructive

2020-05-23 Thread Kyle Stanley
Kyle Stanley added the comment: > I made the suggested change to just print the os.remove() statements (instead > of executing them) and also removed the 'skip news'. I think you may have misunderstood the suggestion. Specifically, the key part was "I would suggest adding succinct comments

[issue40750] Support -d flag in the new parser

2020-05-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +gvanrossum, lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40750] Support -d flag in the new parser

2020-05-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: A piece of the output for the string "1 + 1" with PR 20340: > star_expressions[0-0]: star_expression ',' ✗ star_expressions[0-0]: star_expression ',' failed! > star_expressions[0-0]: star_expression ✓ star_expressions[0-3]:

[issue40750] Support -d flag in the new parser

2020-05-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +19608 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20340 ___ Python tracker

[issue40750] Support -d flag in the new parser

2020-05-23 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Python has a (mostly unknown) -d flag that can only be used in debug builds that emit some debug output for the old parser. The new parser does not support such flag. This is very useful when playing with the grammar as it helps enormously to

[issue22533] Counter with no keys does not compare equal to Counter with keys which zero value

2020-05-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +19607 pull_request: https://github.com/python/cpython/pull/20339 ___ Python tracker ___

[issue40657] Resource leaks with threading.Thread

2020-05-23 Thread Ned Deily
Change by Ned Deily : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40657] Resource leaks with threading.Thread

2020-05-23 Thread Martin Panter
Martin Panter added the comment: Perhaps this is the same as Issue 37788, introduced in 3.7. -- nosy: +martin.panter ___ Python tracker ___

[issue40747] sysconfig.get_config_var("py_version_nodot") should return 3_10

2020-05-23 Thread Ned Deily
Change by Ned Deily : -- nosy: +lukasz.langa, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Strings: double versus single quotes

2020-05-23 Thread Tim Chase
On 2020-05-23 14:46, Dennis Lee Bieber wrote: > On Sat, 23 May 2020 11:03:09 -0500, Tim Chase > >But when a string contains both, it biases towards single quotes: > > > > >>> "You said \"No it doesn't\"" > > 'You said "No it doesn\'t"' > > This is where using triple quotes (or

[issue40748] Tutorial 4 More Control Flow Tools missing screen prompts in some code blocks

2020-05-23 Thread Chas Belov
Chas Belov added the comment: Also in For statements https://docs.python.org/3.10/tutorial/controlflow.html#for-statements (same issue) However, a few of the code blocks having this issue don't exist in the documentation of earlier versions. Do I need a separate issue for each code block

[issue40405] asyncio.as_completed documentation misleading

2020-05-23 Thread Kyle Stanley
Kyle Stanley added the comment: Thanks for bring this to our attention and working on this Bar Harel, and thanks to Yury for the suggestions. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40405] asyncio.as_completed documentation misleading

2020-05-23 Thread miss-islington
miss-islington added the comment: New changeset 9181e2e2f3ade85f65bf2521a5deb898434dfd64 by Miss Islington (bot) in branch '3.9': bpo-40405: Fix asyncio.as_completed docs (GH-19753) https://github.com/python/cpython/commit/9181e2e2f3ade85f65bf2521a5deb898434dfd64 --

[issue40405] asyncio.as_completed documentation misleading

2020-05-23 Thread miss-islington
miss-islington added the comment: New changeset 2fecb48a1d84190c37214eb4b0c8d5460300a78b by Miss Islington (bot) in branch '3.8': bpo-40405: Fix asyncio.as_completed docs (GH-19753) https://github.com/python/cpython/commit/2fecb48a1d84190c37214eb4b0c8d5460300a78b --

[issue40405] asyncio.as_completed documentation misleading

2020-05-23 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +19605 pull_request: https://github.com/python/cpython/pull/20337 ___ Python tracker

[issue40405] asyncio.as_completed documentation misleading

2020-05-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +19606 pull_request: https://github.com/python/cpython/pull/20338 ___ Python tracker ___

[issue40405] asyncio.as_completed documentation misleading

2020-05-23 Thread Kyle Stanley
Kyle Stanley added the comment: New changeset 13206b52d16c2489f4c7dd2dce2a7f48a554b5ed by Bar Harel in branch 'master': bpo-40405: Fix asyncio.as_completed docs (GH-19753) https://github.com/python/cpython/commit/13206b52d16c2489f4c7dd2dce2a7f48a554b5ed --

[issue40749] Consider adding decorator for required inner class

2020-05-23 Thread Elijah Rippeth
New submission from Elijah Rippeth : Sometimes it's desirable to couple classes together by nesting. Currently there's no way to signal to an interface implementer that an inner class is a required attribute to be implemented. I propose a decorator for `abstractnestedclass` to fill this

[issue40748] Tutorial 4 More Control Flow Tools missing screen prompts in some code blocks

2020-05-23 Thread Chas Belov
Chas Belov added the comment: Also in For statements https://docs.python.org/3.10/tutorial/controlflow.html#for-statements (same issue) -- title: Tutorial 4.7 More on Defining Functions missing screen prompts -> Tutorial 4 More Control Flow Tools missing screen prompts in some code

[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-23 Thread YoSTEALTH
YoSTEALTH added the comment: terry.reedy ok, recreated the patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-23 Thread YoSTEALTH
Change by YoSTEALTH : -- pull_requests: +19604 pull_request: https://github.com/python/cpython/pull/20336 ___ Python tracker ___

[issue40748] Tutorial 4.7 More on Defining Functions missing screen prompts

2020-05-23 Thread Chas Belov
New submission from Chas Belov : The tutorial on More on Defining Functions at https://docs.python.org/3.7/tutorial/controlflow.html#more-on-defining-functions is missing most of the >>> and ... screen prompts that show elsewhere in the tutorial. This is potentially confusing to readers. I

[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-23 Thread YoSTEALTH
Change by YoSTEALTH : -- keywords: +patch pull_requests: +19603 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20335 ___ Python tracker

[issue40640] Tutorial for Continue missing ... line

2020-05-23 Thread Chas Belov
Chas Belov added the comment: @Florian Dahlitz, thank you for your help. I have created a PR at https://github.com/python/cpython/pull/20334 and it is awaiting approval of my CLA and of the change itself. -- ___ Python tracker

[issue40640] Tutorial for Continue missing ... line

2020-05-23 Thread Chas Belov
Change by Chas Belov : -- keywords: +patch pull_requests: +19602 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20334 ___ Python tracker ___

[issue34852] Counter-intuitive behavior of Server.close() / wait_closed()

2020-05-23 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25095] test_httpservers hangs since Python 3.5

2020-05-23 Thread William Pickard
William Pickard added the comment: I've made the changes you've requested. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40747] sysconfig.get_config_var("py_version_nodot") should return 3_10

2020-05-23 Thread mattip
Change by mattip : -- keywords: +patch pull_requests: +19601 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20333 ___ Python tracker ___

Re: Strings: double versus single quotes

2020-05-23 Thread DL Neil via Python-list
On 24/05/20 8:39 AM, Skip Montanaro wrote: May I ask why not simply like this: stmt = """ select foo from bar where a = 'bag' and c = 'dog' """ Sorry, I don't recall. I wouldn't be at all surprised that it has something to do with Emacs's Python mode

[issue40747] sysconfig.get_config_var("py_version_nodot") should return 3_10

2020-05-23 Thread mattip
New submission from mattip : Over in packaging, that code expects `sysconfig.get_config_var("py_version_nodot")` to be consistent with `tags._version_nodot`, which expects 3_10 for python 3.10. See https://github.com/pypa/packaging/issues/308. The current value of

Re: Fwd: installed but doesn't boot

2020-05-23 Thread DL Neil via Python-list
On 24/05/20 4:55 AM, Ben Hansen wrote: -- Forwarded message - From: Ben Hansen Date: Sat, May 23, 2020 at 11:44 AM Subject: Fwd: installed but doesn't boot To: -- Forwarded message - From: Ben Hansen Date: Fri, May 22, 2020 at 3:18 PM Subject: installed

Re: Strings: double versus single quotes

2020-05-23 Thread Skip Montanaro
> > > May I ask why not simply like this: > > stmt = """ > select foo from bar > where a = 'bag' > and c = 'dog' > """ > Sorry, I don't recall. I wouldn't be at all surprised that it has something to do with Emacs's Python mode behavior. Emacs wouldn't know what to

Re: Enums are Singletons - but not always?

2020-05-23 Thread Roel Schroeven
Richard Damon schreef op 23/05/2020 om 20:57: On 5/23/20 2:21 PM, Ralf M. wrote: Hello, recently I wrote a small library that uses an Enum. That worked as expected. Then I added a main() and if __name__ == "__main__" to make it runable as script. Now Enum members that should be the same aren't

Subject: Python Open-Source Snippets Newsletter

2020-05-23 Thread Aswin K
Hi, I am creating a Python newsletter showcasing useful code snippets from popular open-source libraries. I will also be providing a runnable demo link to better understand the working. Newsletter subscription link: https://www.pythonninja.xyz/subscribe A sample snippet from the newsletter:

Re: Strings: double versus single quotes

2020-05-23 Thread Roel Schroeven
Skip Montanaro schreef op 23/05/2020 om 13:03: I also agree about SQL. I found that something like this: stmt = ( """select foo from bar""" """ where a = 'bag'""" """and c = 'dog'""" ) worked pretty well, served to both satisfy my brain's desire for semantic indentation

Fwd: installed but doesn't boot

2020-05-23 Thread Ben Hansen
-- Forwarded message - From: Ben Hansen Date: Sat, May 23, 2020 at 11:44 AM Subject: Fwd: installed but doesn't boot To: -- Forwarded message - From: Ben Hansen Date: Fri, May 22, 2020 at 3:18 PM Subject: installed but doesn't boot To: I have installed

Re: Enums are Singletons - but not always?

2020-05-23 Thread Ethan Furman
On 05/23/2020 11:57 AM, Richard Damon wrote: I don't think Python anywhere defines that a enum will be a singleton, and you should be checking for equality (==) not identity (is) If you're not sure, please do a little research first. We have enough bad information on the 'nets already.

Re: Enums are Singletons - but not always?

2020-05-23 Thread Chris Angelico
On Sun, May 24, 2020 at 5:58 AM Kushal Kumaran wrote: > > "Ralf M." writes: > > > Below are a simplified code sample, the results when I run it and my > > thoughts. > > > > # Code of mod1.py # > > import enum, mod2 > > def main(): > > a = mod2.getA() > > # End of mod1.py # >

[issue40367] ImportError: libffi.so.6

2020-05-23 Thread YoSTEALTH
YoSTEALTH added the comment: How did you get the Python installed in /opt/python/3.8.1? - I custom installed python. Maybe it was compiled against libffi 6, then you updated the system to libffi 7, so that Python would need a rebuild. - Yes, you are right about this. So i did rebuild and no

[issue40057] Missing mention of some class attributes in socketserver documentation

2020-05-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +martin.panter versions: +Python 3.10 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue37973] improve docstrings of sys.float_info

2020-05-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: @mark.dickinson, please take a look at the PR when you get a chance. Thanks! -- nosy: +cheryl.sabella ___ Python tracker ___

[issue28859] os.path.ismount sometimes raises FileNotFoundError on Windows

2020-05-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: @steve.dower, please review the changes when you get a chance. Thanks! -- nosy: +cheryl.sabella ___ Python tracker ___

Re: Strings: double versus single quotes

2020-05-23 Thread DL Neil via Python-list
On 24/05/20 4:03 AM, Tim Chase wrote: On 2020-05-24 01:40, Chris Angelico wrote: On Sat, May 23, 2020 at 10:52 PM Abdur-Rahmaan Janhangeer wrote: The interpreter prefers single-quotes "single or double" 'single or double' 'not all that strongly, it doesn\'t' "not all that strongly,

[issue34938] Fix mimetype.init() to account for from import

2020-05-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: @steve.dower, Mariatta had a question for you on the PR. -- nosy: +cheryl.sabella ___ Python tracker ___

Re: Enums are Singletons - but not always?

2020-05-23 Thread Kushal Kumaran
"Ralf M." writes: > Hello, > > recently I wrote a small library that uses an Enum. That worked as > expected. Then I added a main() and if __name__ == "__main__" to make > it runable as script. Now Enum members that should be the same aren't > identical any more, there seem to be two instances

Re: Enums are Singletons - but not always?

2020-05-23 Thread Peter Otten
Peter Otten wrote: >> # Code of mod2.py # > import __main__ as mod1 >> def getA(): >>return mod1.En.A >> # End of mod2.py # > > but that would hardcode the assumption that __main__ is always mod1.py. I should have mentioned the cyclic dependency -- if two modules import each

[issue40133] Provide additional matchers for unittest.mock

2020-05-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: I disagree. Many of these do belong in the stdlib and we don't need a python-ideas bike shedding 300 message thread about something so trivial. We've been using these internally at Google for years. Its on my plate to identify which ones to accept and

Re: Enums are Singletons - but not always?

2020-05-23 Thread Kushal Kumaran
Richard Damon writes: > On 5/23/20 2:21 PM, Ralf M. wrote: >> Hello, >> >> recently I wrote a small library that uses an Enum. That worked as >> expected. Then I added a main() and if __name__ == "__main__" to make >> it runable as script. Now Enum members that should be the same aren't >>

Re: Strings: double versus single quotes

2020-05-23 Thread DL Neil via Python-list
On 23/05/20 11:03 PM, Skip Montanaro wrote: I also agree about SQL. I found that something like this: stmt = ( """select foo from bar""" """ where a = 'bag'""" """and c = 'dog'""" ) worked pretty well, served to both satisfy my brain's desire for semantic indentation (you

[issue1294959] Add sys.platlibdir and configure --with-platlibdir to use /usr/lib64 on Fedora and SuSE

2020-05-23 Thread Michał Górny
Michał Górny added the comment: Ok, it seems that I misunderstood it at first. Judging by the code, it also affects extensions installed into site-packages, so I've tried to make that clear and add one more example to the bullet list. -- ___

[issue1294959] Add sys.platlibdir and configure --with-platlibdir to use /usr/lib64 on Fedora and SuSE

2020-05-23 Thread Michał Górny
Change by Michał Górny : -- pull_requests: +19600 pull_request: https://github.com/python/cpython/pull/20332 ___ Python tracker ___

[issue33388] Support PEP 566 metadata in distutils

2020-05-23 Thread Éric Araujo
Éric Araujo added the comment: Closing as per previous messages. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed title: Support PEP 566 metadata in dist.py -> Support PEP 566 metadata in distutils ___ Python

Re: Enums are Singletons - but not always?

2020-05-23 Thread Peter Otten
Ralf M. wrote: > Hello, > > recently I wrote a small library that uses an Enum. That worked as > expected. Then I added a main() and if __name__ == "__main__" to make it > runable as script. Now Enum members that should be the same aren't > identical any more, there seem to be two instances of

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Could you please turn that into a Github PR? -- ___ Python tracker ___ ___ Python-bugs-list

[issue37630] Investigate replacing SHA3 code with OpenSSL

2020-05-23 Thread Christian Heimes
Christian Heimes added the comment: LibreSSL does neither include SHA3/SHAKE family nor Blake2. Feature requests have been open for 1.5 to almost four years. The first reply on each feature request don't come as a surprise to me... https://github.com/libressl-portable/portable/issues/199

[issue40743] [CMake] It's 2020, where is CMake?

2020-05-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: This was discussed a bit last December 2019 here ("Is there prior discussion around the build system of CPython itself?"): https://discuss.python.org/t/is-there-prior-discussion-around-the-build-system-of-cpython-itself/2813 -- nosy: +chris.jerdonek

[issue38632] setup.py sdist should honor SOURCE_DATE_EPOCH

2020-05-23 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: https://github.com/python/cpython/pull/20331 is a first step toward this. See comments in there, I would love some reviews. If that gets im I'll be happy to send further refactor to make the compression step also respect SOURCE_DATE_EPOCH. For

[issue38632] setup.py sdist should honor SOURCE_DATE_EPOCH

2020-05-23 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +19599 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20331 ___ Python tracker

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-23 Thread Mats Wichmann
On 5/23/20 12:23 AM, Adam Preble wrote: > I wanted to update from 3.6.8 on Windows without necessarily moving on to > 3.7+ (yet), so I thought I'd try 3.6.9 or 3.6.10. > > All I see for both are source archives: > > https://www.python.org/downloads/release/python-369/ >

[issue40743] [CMake] It's 2020, where is CMake?

2020-05-23 Thread Christian Heimes
Christian Heimes added the comment: How about you start with a PEP that compares our current build system with CMake and explores if CMake is a viable option? Is CMake supported on platforms like Solaris, HP-UX, VxWorks? Or are there better options for a new build system for CPython, for

Re: Enums are Singletons - but not always?

2020-05-23 Thread Richard Damon
On 5/23/20 2:21 PM, Ralf M. wrote: > Hello, > > recently I wrote a small library that uses an Enum. That worked as > expected. Then I added a main() and if __name__ == "__main__" to make > it runable as script. Now Enum members that should be the same aren't > identical any more, there seem to be

[issue39686] add dump_json to ast module

2020-05-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38741] Definition of multiple ']' in header configparser

2020-05-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: @lukasz.langa, please take a look at the PR for a review. Thank you! -- nosy: +cheryl.sabella, lukasz.langa versions: +Python 3.10, Python 3.9 -Python 3.7 ___ Python tracker

[issue40746] test_gdb failing on Raspbian on 3.9, regression from 3.8

2020-05-23 Thread Gregory P. Smith
New submission from Gregory P. Smith : https://buildbot.python.org/all/#/builders/727 test_tuples (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of tuples ... ok test_bt (test.test_gdb.PyBtTests) Verify that the "py-bt" command works ... FAIL Stderr: Python Exception Cannot

Enums are Singletons - but not always?

2020-05-23 Thread Ralf M.
Hello, recently I wrote a small library that uses an Enum. That worked as expected. Then I added a main() and if __name__ == "__main__" to make it runable as script. Now Enum members that should be the same aren't identical any more, there seem to be two instances of the same Enum. I think

[issue40745] Typo in library/typing

2020-05-23 Thread Héctor Canto
Héctor Canto added the comment: I'll try ASAP. Héctor Canto On Sat, 23 May 2020 at 19:33, Rémi Lapeyre wrote: > > Rémi Lapeyre added the comment: > > Hi Héctor, can you open a new PR with those changes? > > -- > nosy: +remi.lapeyre > versions: -Python 3.5, Python 3.6, Python 3.7 >

[issue40133] Provide additional matchers for unittest.mock

2020-05-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: @Flameeyes, thank you for the suggestion. As per the other comments, I'm going to close this as it would be more suitable to have it on PyPI. Feel free to have more discussion here or on python-ideas if you want to get more feedback. -- nosy:

[issue40743] [CMake] It's 2020, where is CMake?

2020-05-23 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Can you point to specific issues with the current build system? It seems to me that for 1. it will only make it easier for projects that use CMake, 2. the build system is not the only part needed to support a new OS and for 3. I've not found Python to be

[issue38632] setup.py sdist should honor SOURCE_DATE_EPOCH

2020-05-23 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33294] Support complex expressions for py-print command.

2020-05-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- assignee: -> dmalcolm nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31956] Add start and stop parameters to the array.index()

2020-05-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: I found this SO about reclaiming an orphaned pull request: https://stackoverflow.com/a/53383772 But you may still need to open a new PR for it. -- nosy: +cheryl.sabella ___ Python tracker

[issue40745] Typo in library/typing

2020-05-23 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Héctor, can you open a new PR with those changes? -- nosy: +remi.lapeyre versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

Re: Strings: double versus single quotes

2020-05-23 Thread Abdur-Rahmaan Janhangeer
Nice one, Was requoting: <>> "hello" 'hello'>> from R Hettinger Kind Regards, Abdur-Rahmaan Janhangeer https://www.github.com/Abdur-RahmaanJ Mauritius sent from gmail client on Android, that's why the signature is so ugly. -- https://mail.python.org/mailman/listinfo/python-list

[issue40733] Make IDLE doc more visible, mention in main python docs page

2020-05-23 Thread Ama Aje My Fren
Ama Aje My Fren added the comment: > I think I used duckduckgo to find the docs. Ok, I just checked and when one has scrolled down the search is not seen. In most browsers web search is easier than searching on the docs site. -- Added file:

[issue40745] Typo in library/typing

2020-05-23 Thread Héctor Canto
New submission from Héctor Canto : I found a small typo here: https://docs.python.org/3.8/library/typing.html?highlight=typing#typing.NewType I checked also in other 3.x versions and it is there too. Original: A helper function to indicate a distinct types to a typechecker, see NewType

Re: Strings: double versus single quotes

2020-05-23 Thread Tim Chase
On 2020-05-24 01:40, Chris Angelico wrote: > On Sat, May 23, 2020 at 10:52 PM Abdur-Rahmaan Janhangeer > wrote: > > > > The interpreter prefers single-quotes > > > > >>> "single or double" > > 'single or double' > > > >>> 'not all that strongly, it doesn\'t' > "not all that strongly, it

[issue40744] Explicitly drop support for SQLite version < 3.7.3

2020-05-23 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +19598 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20330 ___ Python tracker ___

[issue40744] Explicitly drop support for SQLite version < 3.7.3

2020-05-23 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Currently, we use sqlite3_create_function_v2() without wrapping it in any #ifdefs, so in practise the sqlite3 module will not build against sqlite3 pre 3.7.3. Despite this, we still wrap parts of the code in #ifdefs for versions 3.6.x and older.

[issue40670] supplying an empty string to timeit causes an IndentationError

2020-05-23 Thread Florian Dahlitz
Florian Dahlitz added the comment: @terry.reedy sorry if I misunderstood you, but it seems to me that you agree with the proposed changes? -- ___ Python tracker ___

[issue40568] Modify -c command-line option to accept multiple inputs

2020-05-23 Thread Florian Dahlitz
Change by Florian Dahlitz : -- nosy: -DahlitzFlorian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-23 Thread Florian Dahlitz
Change by Florian Dahlitz : -- nosy: -DahlitzFlorian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-23 Thread Florian Dahlitz
Change by Florian Dahlitz : -- nosy: -DahlitzFlorian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40738] backspace character \b not processed by IDLE

2020-05-23 Thread Stan Hendryx
Stan Hendryx added the comment: Hello Terry, Thank you for your reply. I understand there are different interpretations of \b. IMHO, since IDLE is part of a python distribution, IDLE needs to be consistent with the native python interpreter on each platform. On Mac, IDLE gives >>>

Re: How to design a class that will listen on stdin?

2020-05-23 Thread Dan Sommers
On Saturday, May 23, 2020, at 07:24 -0400, zljubi...@gmail.com wrote: > I have to talk to outer system by stdin/stdout. > Each line that comes to stdin should be processed and its result returned > back to stdout. Logging should go to stderr. > > How to design a class that will listed to

Re: How to design a class that will listen on stdin?

2020-05-23 Thread Dieter Maurer
zljubi...@gmail.com wrote at 2020-5-23 04:24 -0700: >I have to talk to outer system by stdin/stdout. >Each line that comes to stdin should be processed and its result returned back >to stdout. Logging should go to stderr. > >How to design a class that will listed to stdin and call required

How to design a class that will listen on stdin?

2020-05-23 Thread zljubisic
Hi, I have to talk to outer system by stdin/stdout. Each line that comes to stdin should be processed and its result returned back to stdout. Logging should go to stderr. How to design a class that will listed to stdin and call required methods in order to process the data? Regards --

Re: exiting a while loop

2020-05-23 Thread Grant Edwards
On 2020-05-22, DL Neil via Python-list wrote: > On 23/05/20 4:31 AM, Grant Edwards wrote: >> On 2020-05-22, Peter Otten <__pete...@web.de> wrote: >> >>> If you want to terminate the script you can use exit. However exit >>> is a function, and you have to call it >>> >>> exit() >> >> >> >>

FlaskCon Call For Papers

2020-05-23 Thread Abdur-Rahmaan Janhangeer
Greetings list, The call for papers for FlaskCon is open: https://flaskcon.com/ It is a community-run event, 100% free and remote with reviewers from the Pallets, Flask maintainers and more Feel free to pass the word around! Kind Regards, Abdur-Rahmaan Janhangeer Mauritius --

  1   2   >