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

2020-08-28 Thread Wolfgang Fahl
Wolfgang Fahl added the comment: Indeed this a request for improvement. Technically the software works as expected. Just thousands of programmers have extra debug effort at this tate of affairs as can be deducted from the view count in the stackoverflow questions. The extra step of looking

[issue36172] csv module internal consistency

2020-08-28 Thread Josh Rosenberg
Change by Josh Rosenberg : -- resolution: -> not a bug stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

Re: Fwd: Issue in installing Python (Windows 10)

2020-08-28 Thread 2QdxY4RzWzUUiLuE
On 2020-08-28 at 18:38:03 -0500, Debasis Chatterjee wrote: > By the way, is there a site where I can login to see such mails and > also manage mail notification options? Better than that, you can have the emails themselves delivered directly to your inbox:

[issue41655] New Node may not be visited in lib2to3.refactor.RefactoringTool.traverse_by

2020-08-28 Thread Chrome
Chrome added the comment: you can run example.py to reproduce this bug. -- Added file: https://bugs.python.org/file49434/example.py ___ Python tracker ___

[issue31749] Request: Human readable byte amounts in the standard library

2020-08-28 Thread Avram
Avram added the comment: I looked through a lot of the suggested libraries and they all seemed either too specific to an implementation or didn't fully implement compatibility. So I created Prefixed to prove out the implementation of of an expanded format specification for float would look

[issue41660] multiprocessing.Manager objects lose connection info

2020-08-28 Thread Tim Peters
Tim Peters added the comment: Weird. If I insert these between the two process starts: import time time.sleep(2) then the producer produces the expected output: at start: 666 at producer start: 666 and the program blows up instead when it gets to print("in consumer:",

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

2020-08-28 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +21101 pull_request: https://github.com/python/cpython/pull/21995 ___ Python tracker ___

[issue41655] New Node may not be visited in lib2to3.refactor.RefactoringTool.traverse_by

2020-08-28 Thread Chrome
Change by Chrome : -- versions: +Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue41659] PEG discrepancy on 'if {x} {a}: pass'

2020-08-28 Thread Chrome
Change by Chrome : -- versions: +Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41659] PEG discrepancy on 'if {x} {a}: pass'

2020-08-28 Thread Chrome
Change by Chrome : -- versions: -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue41660] multiprocessing.Manager objects lose connection info

2020-08-28 Thread Tim Peters
New submission from Tim Peters : This started on StackOverflow: https://stackoverflow.com/questions/63623651/how-to-properly-share-manager-dict-between-processes Here's a simpler program. Short course: an object of a subclass of mp.Process has an attribute of seemingly any type obtained

Fwd: Issue in installing Python (Windows 10)

2020-08-28 Thread Debasis Chatterjee
-- Forwarded message - From: Debasis Chatterjee Date: Fri, Aug 28, 2020 at 3:41 AM Subject: Re: Issue in installing Python (Windows 10) To: Terry Reedy Hi Terry, OK. I think the issue is now solved. I used "pip uninstall" and then "pip install". With that I can run Python

[issue24160] Pdb sometimes raises exception when trying to remove a breakpoint defined in a different debugger session

2020-08-28 Thread Irit Katriel
Change by Irit Katriel : -- title: Pdb sometimes crashes when trying to remove a breakpoint defined in a different debugger sessoon -> Pdb sometimes raises exception when trying to remove a breakpoint defined in a different debugger session versions: +Python 3.10 -Python 2.7, Python

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

2020-08-28 Thread Evens Fortuné
Evens Fortuné added the comment: I don't think this is a bug. As I have explained in the answer I have provided on StackOverflow (https://stackoverflow.com/posts/comments/112539410?noredirect=1), it seems that sqlite3 uses by default the qmark parameter substitution style for their query

[issue20119] pdb c(ont(inue)) optional one-time-only breakpoint (like perl debugger)

2020-08-28 Thread Irit Katriel
Irit Katriel added the comment: Pdb already has this, it's the tbreak command. -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue41513] High accuracy math.hypot()

2020-08-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +21100 pull_request: https://github.com/python/cpython/pull/21994 ___ Python tracker ___

[issue41659] PEG discrepancy on 'if {x} {a}: pass'

2020-08-28 Thread Guido van Rossum
New submission from Guido van Rossum : I just noticed a subtle discrepancy between the old parser and the PEG parser. Consider this syntax error: ``` if x {a}: pass ``` The old parser places the caret at the '{': ``` $ python3.8 -c 'if x { a } : pass' File "", line 1 if x { a } : pass

Re: Didn't understand the output of the following Python 3 code with reduce function?

2020-08-28 Thread Ben Bacarisse
Shivlal Sharma writes: > I have seen this code on one of competative programming site but I > didn't get it, Why output is 9? > > from functools import * > > def ADDS(a,b): > return a+1 > nums = [1, 2, 3, 4, 5, 6, 7, 8, 9] > add = reduce(ADDS, nums) > print(add) > > output: 9 Hint:

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Cameron Simpson
On 28Aug2020 12:26, Chris Green wrote: >Cameron Simpson wrote: >> POP3 is presumably handing you bytes containing a message. If the >> Python >> email.BytesParser doesn't handle it, stash the raw bytes _elsewhere_ in >> a distinct file in some directory. >> >> with open('evil_msg_bytes',

[issue41658] http.client not allowing non-ascii in headers

2020-08-28 Thread Aliona Matveeva
New submission from Aliona Matveeva : http.client trying to decode any header with 'latin-1', which fails when there is any non-ascii symbols in it, for example, Cyrillic. I propose to check if it's non-ascii and then decode it with 'utf-8', works perfectly. -- components: Library

[issue41657] Refactor for object source files variable in Makefile

2020-08-28 Thread Elian Mariano Gabriel
Change by Elian Mariano Gabriel : -- keywords: +patch pull_requests: +21099 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21993 ___ Python tracker

RE: How do I place a preset into the text box?

2020-08-28 Thread Steve
Works like a charm, special thanks. Steve = Footnote: He called his wife to see if he should pick up Fish and Chips on the way home. She hung up on him. She is still fuming over letting him name the kids. -Original Message- From:

RE: How do I place a preset into the text box?

2020-08-28 Thread Steve
Yes, the form/window now closes properly. Removal of sys.exit() and inserting window.destroy() cleared up the exiting problem. Thanks. I saw several variations on that but I guess I just never twerked it enough. Footnote: "What rhymes with orange?" "No it doesn't.." From: Colin

[issue33337] Provide a supported Concrete Syntax Tree implementation in the standard library

2020-08-28 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- nosy: +lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41059] Large number of Coverity reports for parser.c

2020-08-28 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> works for me stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue41059] Large number of Coverity reports for parser.c

2020-08-28 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: I propose that we take no further action and close this. -- ___ Python tracker ___ ___

[issue41657] Refactor for object source files variable in Makefile

2020-08-28 Thread Elian Mariano Gabriel
New submission from Elian Mariano Gabriel : Refactoring in the Makefile is needed due a hard coded declaration to the 'OBJECT_OBJS' variable in the line 388. This hard coded declaration can be replaced by a pattern substitution function which assigns the 'OBJECT_OBJS' variable in this much

[issue24160] Pdb sometimes crashes when trying to remove a breakpoint defined in a different debugger sessoon

2020-08-28 Thread Irit Katriel
Irit Katriel added the comment: I've submitted a patch that I believe fixes this problem. It adds in Bdb's __init__ a call to a function that reads the Breakpoint's 'bplist' and 'bpbynumber' class attributes and populates the new instances' 'breaks' dict. --

[issue24160] Pdb sometimes crashes when trying to remove a breakpoint defined in a different debugger sessoon

2020-08-28 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 4.0 -> 5.0 pull_requests: +21098 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21989 ___ Python tracker

Re: Video file to subtitles file

2020-08-28 Thread Chris Angelico
On Sat, Aug 29, 2020 at 3:24 AM Barry wrote: > > > > > On 28 Aug 2020, at 17:37, Muskan Sanghai wrote: > > > > On Friday, August 28, 2020 at 12:27:25 AM UTC+5:30, Barry Scott wrote: > On 27 Aug 2020, at 18:00, Muskan Sanghai wrote: > >>> > >>> I would be really thankful if someone can

Re: Video file to subtitles file

2020-08-28 Thread Barry
> On 28 Aug 2020, at 17:37, Muskan Sanghai wrote: > > On Friday, August 28, 2020 at 12:27:25 AM UTC+5:30, Barry Scott wrote: On 27 Aug 2020, at 18:00, Muskan Sanghai wrote: >>> >>> I would be really thankful if someone can suggest me how can I generate >>> subtitles file (srt format)

[issue41487] Builtin bigint modulo operation can be made faster when the base is divisible by a large power of 2 (i.e: has many trailing 0 digits in binary)

2020-08-28 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

Re: Video file to subtitles file

2020-08-28 Thread Muskan Sanghai
On Friday, August 28, 2020 at 12:27:25 AM UTC+5:30, Barry Scott wrote: > > On 27 Aug 2020, at 18:00, Muskan Sanghai wrote: > > > > I would be really thankful if someone can suggest me how can I generate > > subtitles file (srt format) from a video or audio without using Google > > cloud and

[issue41649] Can't pass Path like objects to subprocess api's on Windows.

2020-08-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not understand how you get this result. At that line of code arg can only be string, because it is a result of os.fsdecode(). Are you sure that you use Python version which includes issue31961 changes? What exactly Python version do you use?

[issue41624] typing.Coroutine documentation

2020-08-28 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41624] typing.Coroutine documentation

2020-08-28 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset c01a7edc67e2c2e13a6d9513f111f27761786e27 by Karthikeyan Singaravelan in branch '3.9': [3.9] bpo-41624: fix documentation of typing.Coroutine (GH-21952) (#21982) https://github.com/python/cpython/commit/c01a7edc67e2c2e13a6d9513f111f27761786e27

[issue41624] typing.Coroutine documentation

2020-08-28 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 838316db08a8e3174e4cf8db233ff69d388b3f5c by Karthikeyan Singaravelan in branch '3.8': [3.8] bpo-41624: fix documentation of typing.Coroutine (GH-21952). (#21983)

Re: Didn't understand the output of the following Python 3 code with reduce function?

2020-08-28 Thread Peter Otten
Shivlal Sharma wrote: > I have seen this code on one of competative programming site but I didn't > get it, Why output is 9? > > from functools import * > > def ADDS(a,b): > return a+1 > nums = [1, 2, 3, 4, 5, 6, 7, 8, 9] > add = reduce(ADDS, nums) > print(add) > > output: 9 Rewrite the

RE: Didn't understand the output of the following Python 3 code with reduce function?

2020-08-28 Thread David Raymond
All the numbers in the nums list don't matter and aren't used. Only the first number, and how many there are. https://docs.python.org/3.8/library/functools.html#functools.reduce Basically it's doing ADDS(1, 2) which returns 2 that 2 gets fed back into ADDS(2, 3) which returns 3 that 3 gets fed

[issue41656] Sets are storing elements in sorted order.

2020-08-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: Here's another example: py> set([1, 2**63, 4, -5, 6, 5]) {1, 9223372036854775808, 4, 6, 5, -5} By the way, in the future, please don't post screen shots of text, copy the code and output and paste it as text into your bug report. Screenshots make it

Didn't understand the output of the following Python 3 code with reduce function?

2020-08-28 Thread Shivlal Sharma
I have seen this code on one of competative programming site but I didn't get it, Why output is 9? from functools import * def ADDS(a,b): return a+1 nums = [1, 2, 3, 4, 5, 6, 7, 8, 9] add = reduce(ADDS, nums) print(add) output: 9 -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Richard Damon
On 8/28/20 8:44 AM, Chris Green wrote: > Stefan Ram wrote: >> Chris Green writes: >>> Therein lies the problem, the incoming byte stream *isn't* ASCII, it's >>> an E-Mail message which may, for example, have UTF-8 or other encoded >>> characters in it. Hopefully it will have an encoding given

[issue41656] Sets are storing elements in sorted order.

2020-08-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: "Unordered" means that the language doesn't promise any specific order, it doesn't mean that there is no order at all. Try strings: py> set("abcdef") {'b', 'f', 'c', 'e', 'd', 'a'} or different ints: py> set([1, 0, -2]) {0, 1, -2} -- nosy:

[issue41642] Buildbot: workers detached every minute and "no space left on device" issue

2020-08-28 Thread David Edelsohn
David Edelsohn added the comment: I can provide some information from the logs of one of the buildbots, or change a parameter. Let me know. -- ___ Python tracker ___

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Chris Angelico
On Fri, Aug 28, 2020 at 11:24 PM Chris Green wrote: > > Chris Angelico wrote: > > > > Also, if you're parsing an email message, you can and should be doing > > so with respect to the encoding(s) stipulated in the headers, after > > which you will have valid Unicode text. > > > But not all E-Mail

[issue41655] New Node may not be visited in lib2to3.refactor.RefactoringTool.traverse_by

2020-08-28 Thread Chrome
Change by Chrome : -- title: new Node may not visited in lib2to3.refactor.RefactoringTool.traverse_by -> New Node may not be visited in lib2to3.refactor.RefactoringTool.traverse_by ___ Python tracker

[issue41656] Sets are storing elements in sorted order.

2020-08-28 Thread Piyush Pravin
New submission from Piyush Pravin : In documentation it is written that " Sets are unordered collection", but actually it is storing the elements in sorted order. -- assignee: docs@python components: Documentation files: dndndgndghbdgngdndgngtn.PNG messages: 376037 nosy: docs@python,

[issue41651] Pip: Wrong Showing of Progressbar when Downloading Modules

2020-08-28 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

Re: Aw: Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread D'Arcy Cain
On 2020-08-28 08:30, Richard Damon wrote: > This might be one of the cases where Python 2's lack handling of string > vs bytes was an advantage. For English speaking Americans. > Python2 handled that sort of case quite easily. Python 3 on the other > hand, will have issue converting the byte

[issue41655] new Node may not visited in lib2to3.refactor.RefactoringTool.traverse_by

2020-08-28 Thread Chrome
Change by Chrome : -- keywords: +patch pull_requests: +21097 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21988 ___ Python tracker ___

[issue41655] new Node may not visited in lib2to3.refactor.RefactoringTool.traverse_by

2020-08-28 Thread Chrome
Chrome added the comment: `lib2to3.refactor.RefactoringTool.traverse_by` do a pre-order or post-order traverse algorithm, and apply every candidate fixer to each node when traverse the tree. when a prior fixer add a new node that contains children, these children won't be visited by

[issue41655] new Node may not visited in lib2to3.refactor.RefactoringTool.traverse_by

2020-08-28 Thread Chrome
New submission from Chrome : `lib2to3.refactor.RefactoringTool.traverse_by` do a pre-order or post-order, and apply every candidate fixer to each node when traverse the tree. when a prior fixer add a new node that contains children, these children won't be visited by posterior fixers.

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Chris Green
Chris Angelico wrote: > > Also, if you're parsing an email message, you can and should be doing > so with respect to the encoding(s) stipulated in the headers, after > which you will have valid Unicode text. > But not all E-Mail messages are 'well behaved', the above works fine if the headers

Aw: Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Karsten Hilbert
> I want to transport the message into my mbox and Python 3 won't do it > without knowing how it's encoded whereas Python 2 just stuffed it in > there 'as is'. > > I want Python 3's mailbox class to juyst put what I tell it (even if > mis-formatted or mis-encoded) into the mbox. I guess using the

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Richard Damon
On 8/28/20 8:39 AM, Chris Green wrote: > Richard Damon wrote: >> On 8/28/20 7:50 AM, Karsten Hilbert wrote: > No interpreation requires, since parsing failed. Then you can start > dealing with these exceptions. _Do not_ write unparsable messages into > an mbox! > Maybe I

[issue41654] Segfault when raising MemoryError

2020-08-28 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Chris Angelico
On Fri, Aug 28, 2020 at 10:51 PM Chris Green wrote: > > > One possible solution in Python3 is to decode the byte string using an > > encoding that allows all 256 byte values, so it won't raise any encoding > > errors, just give your possibly non-sense characters for non-ASCII text. > > > But this

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Chris Green
Stefan Ram wrote: > Chris Green writes: > >Therein lies the problem, the incoming byte stream *isn't* ASCII, it's > >an E-Mail message which may, for example, have UTF-8 or other encoded > >characters in it. Hopefully it will have an encoding given in the > >header but that's only if the sender

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Chris Green
Richard Damon wrote: > On 8/28/20 7:50 AM, Karsten Hilbert wrote: > >>> No interpreation requires, since parsing failed. Then you can start > >>> dealing with these exceptions. _Do not_ write unparsable messages into > >>> an mbox! > >>> > >> Maybe I shouldn't but Python 2 has been managing to do

Re: Aw: Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Chris Angelico
On Fri, Aug 28, 2020 at 10:32 PM Richard Damon wrote: > > This might be one of the cases where Python 2's lack handling of string > vs bytes was an advantage. > > If he was just scanning the message for specific ASCII strings, then not > getting the full message decoded write is unlikely to have

Re: Aw: Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Richard Damon
On 8/28/20 7:50 AM, Karsten Hilbert wrote: >>> No interpreation requires, since parsing failed. Then you can start >>> dealing with these exceptions. _Do not_ write unparsable messages into >>> an mbox! >>> >> Maybe I shouldn't but Python 2 has been managing to do so for several >> years without

Re: Aw: Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Richard Damon
On 8/28/20 7:50 AM, Karsten Hilbert wrote: >>> No interpreation requires, since parsing failed. Then you can start >>> dealing with these exceptions. _Do not_ write unparsable messages into >>> an mbox! >>> >> Maybe I shouldn't but Python 2 has been managing to do so for several >> years without

[issue41652] An Advice on Turning Ellipsis into Keyword

2020-08-28 Thread Josh Rosenberg
Josh Rosenberg added the comment: I'm closing this as not being worth the costs of adding new keywords. You're welcome to propose it on the python-ideas list (a more appropriate place to propose and suss out the details of significant language changes), but you'll need to formulate a much

[issue35228] Index search in CHM help crashes viewer

2020-08-28 Thread Ma Lin
Ma Lin added the comment: > when I delete the file %APPDATA%\Microsoft\HTML Help\hh.dat, > the problem seems to go away. It doesn't work for me. Moreover, `Binary Index=Yes` no longer works on my PC. A few days ago, I installed a clean Windows 10 2004, then CHM's index cannot be used.

[issue36207] robotsparser deny all with some rules

2020-08-28 Thread calamina
calamina added the comment: I have a problem with my robot.txt on https://www.sondage-remunere.com/ -- nosy: +calamina ___ Python tracker ___

[issue41654] Segfault when raising MemoryError

2020-08-28 Thread STINNER Victor
STINNER Victor added the comment: Aha, interesting bug report. I attached a simplified reproducer. Output with a Python built in debug mode: --- Objects/frameobject.c:590: _Py_NegativeRefcount: Assertion failed: object has negative ref count Fatal Python error: _PyObject_AssertFailed:

Aw: Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Karsten Hilbert
> > No interpreation requires, since parsing failed. Then you can start > > dealing with these exceptions. _Do not_ write unparsable messages into > > an mbox! > > > Maybe I shouldn't but Python 2 has been managing to do so for several > years without any issues. I am inclined to congratulate you

Re: How do I place a preset into the text box?

2020-08-28 Thread Cousin Stanley
Steve wrote: > The following program compiles but does not quite do what I would like it to > do. Line 19 is the preset information but I do not seem to be able to get it > into the form by code. My purpose is to let the user make changes without > having to re-enter the entire code. > You

Re: How do I place a preset into the text box?

2020-08-28 Thread Colin McPhail via Python-list
Hi Steve, > On 28 Aug 2020, at 11:03, Steve wrote: > > > The following program compiles but does not quite do what I would like it to > do. Line 19 is the preset information but I do not seem to be able to get it > into the form by code. My purpose is to let the user make changes without >

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Chris Green
Cameron Simpson wrote: > On 28Aug2020 08:56, Chris Green wrote: > >Stefan Ram wrote: > >> Chris Angelico writes: > >> >But this is a really good job for a list comprehension: > >> >sss = [str(word) for word in bbb] > >> > >> Are you all sure that "str" is really what you all want? > >> >

[issue41654] Segfault when raising MemoryError

2020-08-28 Thread Oleg Hoefling
Oleg Hoefling added the comment: If this is of any help, I've set up an example repository containing the snippet: https://github.com/hoefling/bpo-issue-41654 Here are the results of running the snippet in Travis with Python 3.{5-10} and Pypy 3.6:

[issue41651] Pip: Wrong Showing of Progressbar when Downloading Modules

2020-08-28 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: Thanks for the report, that does look like unfriendly UX. pip is maintained separately and then vendored (included/packaged in). Could you please file an issue here instead: https://github.com/pypa/pip/issues (I would do so myself, but as I do not

[issue41654] Segfault when raising MemoryError

2020-08-28 Thread Oleg Hoefling
New submission from Oleg Hoefling : First of all, I guess this is a somewhat obscure error that is unlikely to occur in a usual context, nevertheless IMO worth reporting. We observed this when unit-testing custom exception reporting mechanism, raising different exceptions in different

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Cameron Simpson
On 28Aug2020 08:56, Chris Green wrote: >Stefan Ram wrote: >> Chris Angelico writes: >> >But this is a really good job for a list comprehension: >> >sss = [str(word) for word in bbb] >> >> Are you all sure that "str" is really what you all want? >> >Not absolutely, you no doubt have been

[issue15443] datetime module has no support for nanoseconds

2020-08-28 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 20.0 -> 21.0 pull_requests: +21096 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21987 ___ Python tracker

How do I place a preset into the text box?

2020-08-28 Thread Steve
The following program compiles but does not quite do what I would like it to do. Line 19 is the preset information but I do not seem to be able to get it into the form by code. My purpose is to let the user make changes without having to re-enter the entire code. Suggestions welcome. Steve

[issue41642] Buildbot: workers detached every minute and "no space left on device" issue

2020-08-28 Thread STINNER Victor
STINNER Victor added the comment: On the server side, it seems like the "edelsohn-rhel8-z" worker is detached because its TCP connection is closed, only 87 seconds after the worker was attached. I added some debug traces: 2020-08-28 09:44:02+ [Broker,2,10.132.169.156] worker

[issue41642] Buildbot: workers detached every minute and "no space left on device" issue

2020-08-28 Thread STINNER Victor
STINNER Victor added the comment: There are multiple errors in the buildbot server logs. I'm not sure if it's related or not. 2020-08-28 09:16:25+ [-] while invoking > Traceback (most recent call last): File

[issue22577] local variable changes lost after pdb jump command

2020-08-28 Thread Irit Katriel
Irit Katriel added the comment: This is now resolved, on Python 3.10 I get: >python -m pdb tmp1.py Running Release|Win32 interpreter... > c:\users\user\src\cpython\tmp1.py(1)() -> def foo(x): (Pdb) jump 4 > c:\users\user\src\cpython\tmp1.py(4)() -> lineno = 4 (Pdb) q

[issue41649] Can't pass Path like objects to subprocess api's on Windows.

2020-08-28 Thread Jani Mikkonen
Jani Mikkonen added the comment: @xtreak I went thru the comments of the report you linked. It definitely looks like the discussion was related but it didnt really fix the issue here. https://bugs.python.org/issue31961#msg311775 without trying out, that comment actually touches the

[issue41642] Buildbot: workers detached every minute and "no space left on device" issue

2020-08-28 Thread STINNER Victor
STINNER Victor added the comment: I added keepalive_interval=60 parameter to Worker() in the server configuration: https://github.com/python/buildmaster-config/commit/2d28a4cfe77a3e206028613524a1e938801a1655 -- ___ Python tracker

[issue41642] Buildbot: workers detached every minute and "no space left on device" issue

2020-08-28 Thread STINNER Victor
STINNER Victor added the comment: > The buildbot server migrated to a new machine and is now behind a load > balancer. tcp/80 (buildbot web page, HTTP) and tcp/9020 (used by buildbot > workers) are both behind the load balancer. > (...) > Buildbot workers have a TCP keepalive option of 1

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Chris Green
Cameron Simpson wrote: > On 27Aug2020 23:54, Marco Sulla wrote: > >Are you sure you want `str()`? > > > str(b'aaa') > >"b'aaa'" > > > >Probably you want: > > > >map(lambda x: x.decode(), bbb) > > _And_ you need to know the encoding of the text in the bytes. The above > _assumes_ UTF-8

Re: How do I do this in Python 3 (string.join())?

2020-08-28 Thread Chris Green
Cameron Simpson wrote: [snip] > > >The POP3 processing is solely to collect E-Mail that ends up in the > >'catchall' mailbox on my hosting provider. It empties the POP3 > >catchall mailbox, checks for anything that *might* be for me or other > >family members then just deletes the rest. > >

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Chris Green
Chris Angelico wrote: > On Fri, Aug 28, 2020 at 6:36 AM Chris Green wrote: > > > > This sounds quite an easy thing to do but I can't find how to do it > > elegantly. > > > > I have a list of bytes class objects (i.e. a list containing sequences > > of bytes, which are basically text) and I want

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Chris Green
Stefan Ram wrote: > Chris Angelico writes: > >But this is a really good job for a list comprehension: > >sss = [str(word) for word in bbb] > > Are you all sure that "str" is really what you all want? > Not absolutely, you no doubt have been following other threads related to this one. :-)

Aw: Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread Karsten Hilbert
> >Are you sure you want `str()`? > > > str(b'aaa') > >"b'aaa'" > > > >Probably you want: > > > >map(lambda x: x.decode(), bbb) > > _And_ you need to know the encoding of the text in the bytes. The above > _assumes_ UTF-8 because that is the default for bytes.decode, and if > that is _not_

[issue41652] An Advice on Turning Ellipsis into Keyword

2020-08-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is Ellipsis class in the ast module. Although it is deprecated now. But I there may be Ellipsis names also in third-party libraries. Making Ellipsis a keyword would break them. -- nosy: +serhiy.storchaka

[issue41652] An Advice on Turning Ellipsis into Keyword

2020-08-28 Thread Josh Rosenberg
Josh Rosenberg added the comment: You can do the same thing to replace int, float, dict, len, and all the other built-in classes and functions. Why is Ellipsis so special that it needs protection, especially when, as you note, ... is an available unoverrideable way to refer to it? Making