[issue41344] SharedMemory crash when size is 0

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: No, I think ValueError on all systems is better. I have no idea what 'wnsm_4ab39616' is about other than something internal to Windows. It does not say what to do to correct the call. -- ___ Python tracker

[issue41344] SharedMemory crash when size is 0

2020-07-24 Thread Vinay Sharma
Vinay Sharma added the comment: Also, Linux created the shared memory with the passed name if size = 0, but threw error when it was being mapped to the process's virtual memory. Therefore, this scenario should be prevented before actually creating the shared memory segment in cases of

[issue41387] Escape needed in the email documentation example

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Antonio, when replying by email, please delete the quoted message (except possibly for a line or two that you want to quote). When posted on the web page, the quote is distracting noise that takes up vertical space. -- nosy: +terry.reedy

[issue41344] SharedMemory crash when size is 0

2020-07-24 Thread Vinay Sharma
Vinay Sharma added the comment: Hi, The patch aims to raise a value error, because before the patch also, ValueError was being raised in case size was negative. That's why I thought it would be correct behaviour if I raise ValueError in case size is 0. Do you mean to say, that OSError

[issue41380] Add snake example to turtledemo

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ehsonjon, 'fixed' means the the PR has be merged. -- resolution: fixed -> ___ Python tracker ___

[issue41380] Add snake example to turtledemo

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: It has been awhile since we added anything to turtledemo, so this is plausible. It might be more interesting than some of the others. I will take a look. Until I do, I won't worry about maintenance. I and someone else fixed up the driver in summer 2014

[issue41340] Not very good strcpy implementation in cpython/Python/strdup.c

2020-07-24 Thread hai shi
hai shi added the comment: What's change for the performance benchmark? -- nosy: +shihai1991 ___ Python tracker ___ ___

[issue41336] Sporadic segfaults during zoneinfo object creation stopped using Ctrl-C

2020-07-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing it as resolved. Thanks Zackery. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39830] zipfile.Path is not included in __all__

2020-07-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing it as resolved. Thanks Zackery and jaraco. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41381] Google chat handler in Logging module

2020-07-24 Thread Anand Tripathi
Anand Tripathi added the comment: Got it, thanks! Yeah this enhancement is so particular to Google and cannot be a part of core library. I will create a pypi library of that. Thanks a lot for quick responses. Best, Anand Tripathi On Sat, 25 Jul 2020, 03:30 Vinay Sajip, wrote: > > Vinay

[issue41350] Use of zipfile.Path causes attempt to write after ZipFile is closed

2020-07-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Not sure if it's related to this issue there is an existing issue with ZipFile.__del__ : issue37773 -- nosy: +xtreak ___ Python tracker

[issue41349] idle not going full screen when I rotate screen 90° on mac

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: What is 'it' in 'it works even after restart'? -- ___ Python tracker ___ ___ Python-bugs-list

[issue41390] Errors and warnings on generate bytecode files

2020-07-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The warnings are from lib2to3 test data files that explicitly contain Python 2 syntax to verify if running 2to3 over those files does correct transformation. The other errors are test files for syntax error. -- nosy: +xtreak

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset a667e1c66a62d509c39d30abf11778213a1e1ca0 by Terry Jan Reedy in branch '3.8': [3.8] bpo-37309: NEWS for #41373 (GH-21612) https://github.com/python/cpython/commit/a667e1c66a62d509c39d30abf11778213a1e1ca0 --

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2020-07-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +20756 pull_request: https://github.com/python/cpython/pull/21614 ___ Python tracker ___

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset af08db7bac3087aac313d052c1a6302bee7c9c89 by Terry Jan Reedy in branch 'master': bpo-37309: NEWS for #41373 (GH-21612) https://github.com/python/cpython/commit/af08db7bac3087aac313d052c1a6302bee7c9c89 --

[issue41344] SharedMemory crash when size is 0

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python 3.10.0a0 Jul 23 2020, win32 (without patch) >>> from multiprocessing import shared_memory >>> shm_a = shared_memory.SharedMemory(create=True, size=0) Traceback (most recent call last): File "", line 1, in shm_a =

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2020-07-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +20755 pull_request: https://github.com/python/cpython/pull/21613 ___ Python tracker ___

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2020-07-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +20754 pull_request: https://github.com/python/cpython/pull/21612 ___ Python tracker ___

[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2020-07-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hugo, I'd welcome such a change. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41328] In unittest doc, replace Hudson CI with Travis and Appveyor

2020-07-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Hudson CI is not available anymore -> In unittest doc, replace Hudson CI with Travis and Appveyor ___ Python tracker ___

[issue41328] Hudson CI is not available anymore

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: After reading the Wikipedia article, I agree with removing Hudson. The text is the same in the master branch (future 3.10), so make a PR against master. We will backport to 3.9 and 3.8 from there. Jenkins is already mentioned. So replace 'or Hudson' with

[issue41373] IDLE: edit/save files created by Windows Explorer

2020-07-24 Thread miss-islington
miss-islington added the comment: New changeset 15fdbb7145ee99abd98b4968307d4b89dd71a988 by Miss Islington (bot) in branch '3.9': bpo-41373: IDLE: Fix saving files loaded with no newlines or mixed newlines (GH-21597)

[issue41373] IDLE: edit/save files created by Windows Explorer

2020-07-24 Thread miss-islington
miss-islington added the comment: New changeset 1c562ced2123f4d5a250fe9072ac93504cc41967 by Miss Islington (bot) in branch '3.8': bpo-41373: IDLE: Fix saving files loaded with no newlines or mixed newlines (GH-21597)

[issue41373] IDLE: edit/save files created by Windows Explorer

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 0dd463c8a4269137ebed7cc29605c555030df94f by Serhiy Storchaka in branch 'master': bpo-41373: IDLE: Fix saving files loaded with no newlines or mixed newlines (GH-21597)

[issue41373] IDLE: edit/save files created by Windows Explorer

2020-07-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +20753 pull_request: https://github.com/python/cpython/pull/21611 ___ Python tracker ___

[issue41373] IDLE: edit/save files created by Windows Explorer

2020-07-24 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +20752 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/21610 ___ Python tracker

[issue41390] Errors and warnings on generate bytecode files

2020-07-24 Thread Tomasz Kloczko
Change by Tomasz Kloczko : -- title: Errors and warnings on generate butecode files -> Errors and warnings on generate bytecode files ___ Python tracker ___

[issue41388] IDLE fails to detect corresponding opening parenthesis

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Lewis, removing you was an accident. Your post is correct. -- ___ Python tracker ___ ___

[issue41388] IDLE fails to detect corresponding opening parenthesis

2020-07-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +Lewis Ball ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41388] IDLE fails to detect corresponding opening parenthesis

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Without rereading hyperparser and pyparse, I don't understand why a previous _synchre match prevents subsequent failures. It does suggest that when matching parentheses, a fix would be to temporarily prepend 'else\n' to the text, or otherwise simulating

[issue41388] IDLE fails to detect corresponding opening parenthesis

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: (While I wrote the following, Lewis Ball posted some of the same conclusions.) 0. I verified the failure with 3.8.5 and current master. 1. I reduced the failing example to a minimum of 7 chars on 2 lines. ( else) 1a. Deleting '\n' or any letter of 'else'

[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2020-07-24 Thread hudelgado
hudelgado added the comment: Ok, I'm thinking in also replace the os.popen calls with subprocess.Popen to keep consistency with existing tests. Do you think it's a good approach? Or should be better to just add some tests around the current implementation? --

[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2020-07-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hugo, please go ahead and a test for this patch. -- assignee: -> orsenthil ___ Python tracker ___

[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2020-07-24 Thread Hugo Delgado
Hugo Delgado added the comment: I've bumped into this and won't mind working on it, is it ok for me to try to finish it? -- nosy: +Hugo Delgado ___ Python tracker ___

[issue41386] Popen.wait does not account for negative return codes

2020-07-24 Thread Eryk Sun
Eryk Sun added the comment: In the Windows API, errors and exit status codes are all unsigned 32-bit integers. See SetLastError, GetLastError, ExitThread, ExitProcess, GetExitCodeThread, and GetExitCodeProcess. Even signed NTSTATUS and HRESULT values are commonly displayed as non-negative

[issue41388] IDLE fails to detect corresponding opening parenthesis

2020-07-24 Thread Lewis Ball
Lewis Ball added the comment: A minimal example of the same issue seems to be: ``` (1 if x else 0) ``` In this case the parentheses matching also fails. It only ever seems to fail when `else` is the first word on a newline inside brackets, and adding the line break elsewhere in the above

[issue22431] Change format of test runner output

2020-07-24 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 8.0 -> 9.0 pull_requests: +20751 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21609 ___ Python tracker

[issue41387] Escape needed in the email documentation example

2020-07-24 Thread Lewis Ball
Lewis Ball added the comment: Okay no worries, glad it is all sorted now :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41381] Google chat handler in Logging module

2020-07-24 Thread Vinay Sajip
Vinay Sajip added the comment: Agreed that a library on PyPI is the appropriate way to resolve this. -- stage: -> resolved status: pending -> closed ___ Python tracker ___

[issue38628] Issue with ctypes in AIX

2020-07-24 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41389] Garbage Collector Ignoring Some (Not All) Circular References of Identical Type

2020-07-24 Thread Tim Peters
Tim Peters added the comment: What makes you think that? Your own output shows that the number of "Active" objects does NOT monotonically increase across output lines. It goes up sometimes, and down sometimes. Whether it goes up or down is entirely due to accidents of when your monitoring

[issue41389] Garbage Collector Ignoring Some (Not All) Circular References of Identical Type

2020-07-24 Thread Ian O'Shaughnessy
Ian O'Shaughnessy added the comment: For a long running process (greatly exceeding a million iterations) the uncollected garbage will become too large for the system (many gigabytes). A manual execution of the gc would be required. That seems flawed given that Python is a garbage collected

[issue41389] Garbage Collector Ignoring Some (Not All) Circular References of Identical Type

2020-07-24 Thread Tim Peters
Tim Peters added the comment: I see no evidence of a bug here. To the contrary, the output proves that __del__ methods are getting called all along. And if garbage weren't being collected, after allocating a million objects each with its own megabyte string object, memory use at the end

[issue41387] Escape needed in the email documentation example

2020-07-24 Thread R. David Murray
Change by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41386] Popen.wait does not account for negative return codes

2020-07-24 Thread Nico
Nico added the comment: We apparently need a flag to ensure compatibility with the windows return codes == FAIL: test_disable_windows_exc_handler (test.test_faulthandler.FaultHandlerTests)

[issue41387] Escape needed in the email documentation example

2020-07-24 Thread Antonio Gutierrez
Antonio Gutierrez added the comment: OK, first I am sorry , I did try again when I read your message( because it has all the sense), and yes it works, probably I corrected something else that made it work, i don't know. I'll try to make better reports in the future. El vie., 24 jul. 2020 a las

[issue41389] Garbage Collector Ignoring Some (Not All) Circular References of Identical Type

2020-07-24 Thread Ian O'Shaughnessy
New submission from Ian O'Shaughnessy : Using a script that has two classes A and B which contain a circular reference variable, it is possible to cause a memory leak that is not captured by default gc collection. Only by running gc.collect() manually do the circular references get

[issue41386] Popen.wait does not account for negative return codes

2020-07-24 Thread Nico
Nico added the comment: I don't know if it should be a good idea to add a flag to turn off the negative conversation? -- ___ Python tracker ___

[issue32958] socket module calls with long host names can fail with idna codec error

2020-07-24 Thread Aaron Black
Aaron Black added the comment: joseph.hackman I don't think that the 63 character limit on a label is the problem specifically, merely it's application. The crux of my issue was that credentials passed with the url in a basic-authy fashion (as some services require) count against the

[issue41387] Escape needed in the email documentation example

2020-07-24 Thread Antonio Gutierrez
Antonio Gutierrez added the comment: I forget to mention that I am receiving the mails with gmail, I don't know if that is important or not. It shouldn't be different right, but for me it is, if i don't use the escape the image is send and I can get it from the attachment, but I am unable to

[issue41386] Popen.wait does not account for negative return codes

2020-07-24 Thread Nico
Change by Nico : -- versions: -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41387] Escape needed in the email documentation example

2020-07-24 Thread Lewis Ball
Lewis Ball added the comment: So I have just tried it out and the example seems to work fine for me as it is (tested using 3.8.2). Note that escaping the " in this case makes no difference to the string: ``` >>> "" == "" True ``` -- nosy: +Lewis Ball

[issue41388] IDLE fails to detect corresponding opening parenthesis

2020-07-24 Thread Alexey Burdin
New submission from Alexey Burdin : ``` answers_field_order=sorted( set(j for i in data['items'] for j in i), key=cmp_to_key(lambda x,y:( -1 if (x,y) in answer_order else (0 if x==y else 1))) ) ``` when the cursor is placed in line 5 col 31 (between `)` and `))`

[issue41381] Google chat handler in Logging module

2020-07-24 Thread Éric Araujo
Éric Araujo added the comment: The difference is that SMTP is a universal, documented, vendor-independent Internet standard. Google chat products are specific to one company, pose a maintenance issue (stable Python branches could not accept big changes if the API changes), and risk becoming

[issue41380] Add snake example to turtledemo

2020-07-24 Thread Guido van Rossum
Guido van Rossum added the comment: There already is a decent set of examples. I think a Snake game is a worthy addition. -- nosy: +gvanrossum ___ Python tracker ___

[issue41381] Google chat handler in Logging module

2020-07-24 Thread Anand Tripathi
Anand Tripathi added the comment: Yeah, it will be as same as the SMTP Handler. But yeah creating a library wrapper around the logging package is also a good idea. [image: image.png] Thanks for the support. Best, Anand Tripathi On Fri, Jul 24, 2020 at 3:20 PM Rémi Lapeyre wrote: > > Rémi

[issue41377] memoryview of str (unicode)

2020-07-24 Thread Guido van Rossum
Guido van Rossum added the comment: We should not do this, it would expose internals that we need to keep private. The right approach would be to keep things as bytes. -- nosy: +gvanrossum resolution: -> wont fix stage: -> resolved status: open -> closed

[issue41362] Regenerating parser table fails (windows)

2020-07-24 Thread Guido van Rossum
Guido van Rossum added the comment: Is this really worth our attention? In 3.10 this will be irrelevant. -- nosy: +gvanrossum ___ Python tracker ___

[issue41345] Remote end closed connection without response

2020-07-24 Thread Guido van Rossum
Guido van Rossum added the comment: This surely is some application corner case. Closing. -- nosy: +gvanrossum resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue41340] Not very good strcpy implementation in cpython/Python/strdup.c

2020-07-24 Thread Guido van Rossum
Guido van Rossum added the comment: Either remove it or close this issue as won’t fix. -- nosy: +gvanrossum ___ Python tracker ___

[issue41328] Hudson CI is not available anymore

2020-07-24 Thread Guido van Rossum
Guido van Rossum added the comment: Why not add Travis-CI and AppVeyor? -- nosy: +gvanrossum ___ Python tracker ___ ___

[issue41387] Escape needed in the email documentation example

2020-07-24 Thread SilentGhost
Change by SilentGhost : -- nosy: +barry, maxking, r.david.murray title: Wrong example, need scpae \" -> Escape needed in the email documentation example ___ Python tracker

[issue41386] Popen.wait does not account for negative return codes

2020-07-24 Thread Nico
Change by Nico : -- components: +Library (Lib) -Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41350] Use of zipfile.Path causes attempt to write after ZipFile is closed

2020-07-24 Thread Angel Siblani
Change by Angel Siblani : -- components: +Demos and Tools, XML, email -Library (Lib) nosy: +angelsb, barry, r.david.murray type: behavior -> resource usage versions: -Python 3.8, Python 3.9 ___ Python tracker

[issue41387] Wrong example, need scpae \"

2020-07-24 Thread Antonio Gutierrez
Change by Antonio Gutierrez : -- assignee: -> docs@python components: +Documentation nosy: +docs@python versions: +Python 3.8 ___ Python tracker ___

[issue41387] Wrong example, need scpae \"

2020-07-24 Thread Antonio Gutierrez
New submission from Antonio Gutierrez : In the main documentation, the example: #!/usr/bin/env python3 import smtplib from email.message import EmailMessage from email.headerregistry import Address from email.utils import make_msgid # Create the base text message. msg = EmailMessage()

[issue41350] Use of zipfile.Path causes attempt to write after ZipFile is closed

2020-07-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: This routine will repro the issue without relying on garbage collection to trigger the error: ``` import io import zipfile buf = io.BytesIO() zf = zipfile.ZipFile(buf, mode='w') zp = zipfile.Path(zf) with zp.joinpath('zile-a').open('w') as fp:

[issue41385] test_executable_without_cwd fails on appx test run in Azure pipelines

2020-07-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch nosy: +serhiy.storchaka nosy_count: 5.0 -> 6.0 pull_requests: +20750 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21608 ___ Python tracker

[issue41386] Popen.wait does not account for negative return codes

2020-07-24 Thread Nico
Nico added the comment: I suggest implementing a singed conversation into _wait -- keywords: +patch message_count: 1.0 -> 2.0 pull_requests: +20749 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21607 ___ Python

[issue41386] Popen.wait does not account for negative return codes

2020-07-24 Thread Nico
New submission from Nico : Following problem occurred. A C style program can have negative return codes. However this is not correctly implemented in the Windows API. Therefore it is being returned as unsigned long by the API hence it leads to ambiguity while comparing return codes. For

[issue41382] print() unpredictable behaviour

2020-07-24 Thread n-io
n-io added the comment: Redirecting the stdout of the command to a file (script.py > out) shows the output being produced correctly. The bug seems therefore unrelated to python, my apologies. Thanks though! FYI, "$cat out" will reproduce the bug, while "$vi out" will show the correct

[issue41383] Provide a limit arguments for __repr__

2020-07-24 Thread Bernat Gabor
Bernat Gabor added the comment: Thanks Rémi, did not know about it. Played around with it, and is not entirely what we'd need here. That class still generates the long string repr, just truncates it afterwards. That is unless teh Repr implements custom formatting for the types, however the

[issue38628] Issue with ctypes in AIX

2020-07-24 Thread Tony Reix
Tony Reix added the comment: # pwd /opt/freeware/src/packages/BUILD/libffi-3.2.1 # grep -R ffi_closure_ASM * powerpc-ibm-aix7.2.0.0/.libs/libffi.exp: ffi_closure_ASM powerpc-ibm-aix7.2.0.0/include/ffitarget.h:void * code_pointer; /* Pointer to ffi_closure_ASM */

[issue41382] print() unpredictable behaviour

2020-07-24 Thread Eric V. Smith
Eric V. Smith added the comment: It would help if you could pare this down to a simpler example, hopefully removing the '$'. For example, does the problem still occur if you '$'s? What if you make all of the non-numeric strings 1 character long? What if you delete the non-numeric strings?

[issue41384] tkinter raises TypeError when it's supposed to raise TclError

2020-07-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gpolo, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41385] test_executable_without_cwd fails on appx test run in Azure pipelines

2020-07-24 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : https://dev.azure.com/Python/cpython/_build/results?buildId=66688=logs=0fcf9c9b-89fc-526f-8708-363e467e119e=fa5ef4ee-3911-591e--19482ab189b7=740 == ERROR:

[issue41384] tkinter raises TypeError when it's supposed to raise TclError

2020-07-24 Thread Akuli
New submission from Akuli : from Lib:tkinter/__init__.py: raise TclError('unknown option -'+kwargs.keys()[0]) This is no longer valid in Python 3. -- components: Tkinter messages: 374188 nosy: Akuli priority: normal pull_requests: 20748 severity: normal status: open title:

[issue41382] print() unpredictable behaviour

2020-07-24 Thread n-io
n-io added the comment: The first call you requested (as hinted before, this looks fine to me): $ python3.8 Python 3.8.3 (default, May 14 2020, 22:09:32) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>>

[issue41371] test_zoneinfo fails when lzma module is unavailable

2020-07-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- title: test_zoneinfo fails -> test_zoneinfo fails when lzma module is unavailable ___ Python tracker ___

[issue41371] test_zoneinfo fails

2020-07-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I got this error as well. Since lzma is needed to decode the test data the ImportError can be captured to skip the test in setUpModule [0] like other test module setup with similar approach for required cases. I am adding easy tag. Feel free to

[issue32528] Change base class for futures.CancelledError

2020-07-24 Thread miss-islington
miss-islington added the comment: New changeset ba07d4a0c30b4d817b4c31a052388a68cc17bc3b by Miss Islington (bot) in branch '3.9': bpo-32528: Document the change in inheritance of asyncio.CancelledError (GH-21474)

[issue38628] Issue with ctypes in AIX

2020-07-24 Thread Tony Reix
Tony Reix added the comment: AIX: difference between 32bit and 64bit. After the second print, the stack is: 32bit: #0 0xd01407e0 in memchr () from /usr/lib/libc.a(shr.o) #1 0xd438f480 in ffi_call_AIX () from /opt/freeware/lib/libffi.a(libffi.so.6) #2 0xd438effc in ffi_call () from

[issue32528] Change base class for futures.CancelledError

2020-07-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +20747 pull_request: https://github.com/python/cpython/pull/21606 ___ Python tracker ___

[issue38628] Issue with ctypes in AIX

2020-07-24 Thread Tony Reix
Tony Reix added the comment: On AIX in 32bit, we have: Thread 2 hit Breakpoint 2, 0xd01407e0 in memchr () from /usr/lib/libc.a(shr.o) (gdb) where #0 0xd01407e0 in memchr () from /usr/lib/libc.a(shr.o) #1 0xd438f480 in ffi_call_AIX () from /opt/freeware/lib/libffi.a(libffi.so.6) #2

[issue41383] Provide a limit arguments for __repr__

2020-07-24 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Bernat, have you looked into reprlib.repr()? It's an alternative implementation of repr() made for cases like this. You may be interested in this PR too: https://github.com/python/cpython/pull/20925 Alternatively, I think pprint.pformat() may be useful for

[issue38628] Issue with ctypes in AIX

2020-07-24 Thread Tony Reix
Tony Reix added the comment: On Fedora/PPC64LE, where it is OK, the same debug with gdb gives: (gdb) where #0 0x77df03b0 in __memchr_power8 () from /lib64/libc.so.6 #1 0x7fffea167680 in ?? () from /lib64/libffi.so.6 #2 0x7fffea166284 in ffi_call () from /lib64/libffi.so.6

[issue41382] print() unpredictable behaviour

2020-07-24 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: On MacOS with Python 3.8.2 I get the correct results. Can you give more details about the platform and send the result of: >>> "\t".join(['arith_int_512-cuda.sfeat', '__hipsyclkernel$wrapped_kernelname$MicroBenchArithmeticKernel_512_1', '578', '65', '5',

[issue41383] Provide a limit arguments for __repr__

2020-07-24 Thread Bernat Gabor
New submission from Bernat Gabor : Quoting Elizaveta Shashkova from EuroPython 2020 chat about how can we improve debug experience for users: I would like to have a lazy repr evaluation for the objects! Sometimes users have many really large objects, and when debugger is trying to show them

[issue38628] Issue with ctypes in AIX

2020-07-24 Thread Tony Reix
Tony Reix added the comment: On Fedora/x86_64, in order to get the core, one must do: coredumpctl -o /tmp/core dump /usr/bin/python3.8 -- ___ Python tracker ___

[issue41350] Use of zipfile.Path causes attempt to write after ZipFile is closed

2020-07-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: I'm a little surprised from Nick's original post that the behavior is triggered. After all, the code [already has a protection for a previously-closed

[issue41382] print() unpredictable behaviour

2020-07-24 Thread n-io
New submission from n-io : There seems to be a behavioural issue with the print() function. Using python3.8 and the following line: >>> print("\t".join(['arith_int_512-cuda.sfeat', >>> '__hipsyclkernel$wrapped_kernelname$MicroBenchArithmeticKernel_512_1', >>> '578', '65', '5', '64', '4',

[issue38628] Issue with ctypes in AIX

2020-07-24 Thread Tony Reix
Tony Reix added the comment: On AIX: root@castor4## gdb /opt/freeware/bin/python3 ... (gdb) run -m pdb Pb.py ... (Pdb) n b'def' > /home2/freeware/src/packages/BUILD/Python-3.8.5/32bit/Pb.py(35)() -> print( (Pdb) n > /home2/freeware/src/packages/BUILD/Python-3.8.5/32bit/Pb.py(36)() ->

[issue38628] Issue with ctypes in AIX

2020-07-24 Thread Tony Reix
Tony Reix added the comment: Fedora32/x86_64 [root@destiny10 tmp]# gdb /usr/bin/python3.8 core ... Core was generated by `python3 ./Pb.py'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x7f898a02a1d8 in __memchr_sse2 () from /lib64/libc.so.6 Missing separate debuginfos,

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

2020-07-24 Thread hai shi
Change by hai shi : -- pull_requests: +20746 pull_request: https://github.com/python/cpython/pull/21605 ___ Python tracker ___

[issue38628] Issue with ctypes in AIX

2020-07-24 Thread Tony Reix
Tony Reix added the comment: On Fedora32/PPC64LE (5.7.9-200.fc32.ppc64le), with little change: libc = CDLL('/usr/lib64/libc.so.6') I get the correct answer: b'def' b'def' b'def' # python3 --version Python 3.8.3 libffi : 3.1-24 On Fedora32/x86_64 (5.7.9-200.fc32.x86_64), with a little

[issue41380] Add snake example to turtledemo

2020-07-24 Thread E. Paine
E. Paine added the comment: @Ehsonjon Gadoev, thank you for the patch. I would appreciate if you could explain in a little more detail why you think adding this example would be beneficial to the CPython project, as it would inevitably increase the maintenance load on the core-devs (please

[issue41350] Use of zipfile.Path causes attempt to write after ZipFile is closed

2020-07-24 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- keywords: +patch pull_requests: +20745 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21604 ___ Python tracker

[issue41373] IDLE: edit/save files created by Windows Explorer

2020-07-24 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41350] Use of zipfile.Path causes attempt to write after ZipFile is closed

2020-07-24 Thread Rajarishi Devarajan
Rajarishi Devarajan added the comment: Hi all, I have a working patch for this. Could I submit it for review ? -- nosy: +rishi93 ___ Python tracker ___

  1   2   >