[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-14 Thread PEW's Corner
PEW's Corner added the comment: Seems to work. Thanks! -- ___ Python tracker <https://bugs.python.org/issue45738> ___ ___ Python-bugs-list mailing list Unsub

[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-06 Thread PEW's Corner
New submission from PEW's Corner : When exec'ing code with an illegal character after the line continuation character '\', python 3.11.0a2 raises this strange exception: SystemError: Negative size passed to PyUnicode_New Here's an example where '#' is the illegal character: exec('1

[issue44827] Incomplete 3.10.0rc1 release info

2021-08-04 Thread PEW's Corner
PEW's Corner added the comment: It was probably a caching issue, because another device was just now still displaying the page without files until I forced a refresh. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44827] Incomplete 3.10.0rc1 release info

2021-08-04 Thread PEW's Corner
PEW's Corner added the comment: Yes, they're there now. -- ___ Python tracker <https://bugs.python.org/issue44827> ___ ___ Python-bugs-list mailing list Unsub

[issue44827] Incomplete 3.10.0rc1 release info

2021-08-04 Thread PEW's Corner
New submission from PEW's Corner : The "Files" section is empty on this page: https://www.python.org/downloads/release/python-3100rc1/ Also, the Python Insider blog post contains the outdated b4 text under "And now for something completely different". -- m

[issue43751] await anext() returns None when default is given

2021-04-11 Thread PEW's Corner
PEW's Corner added the comment: Thanks! -- ___ Python tracker <https://bugs.python.org/issue43751> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43751] await anext() returns None when default is given

2021-04-07 Thread PEW's Corner
PEW's Corner added the comment: Regarding the custom async iterator, I don't know if this is the problem you're referring to, but the following code seems to terminate abruptly when running main2() (main1() is fine). This is without your changes, though. import asyncio class

[issue43751] await anext() returns None when default is given

2021-04-06 Thread PEW's Corner
New submission from PEW's Corner : The new anext() builtin in Python 3.10.0a7 doesn't seem to work properly when a default value is provided as the second argument. Here's an example: import asyncio async def f(): yield 'A' yield 'B' async def main(): g = f() print(await

[issue41097] confusing BufferError: Existing exports of data: object cannot be re-sized

2020-06-24 Thread PEW's Corner
PEW's Corner added the comment: I'm getting the same error (in 3.8.3) for this code: o = bytearray(1) o += o There's no error if the second line is replaced with: o += bytearray(1) Not sure if this is related. -- nosy: +pewscorner ___ Python

[issue38537] Python 2.7.17 reports itself as 2.7.16

2019-10-21 Thread PEW's Corner
PEW's Corner added the comment: Yes, the dll now seems to have ended up in c:\windows\syswow64. I have no idea whether I chose "just for me" or "all users" last time (this is a general irritant when having to manually update software on Windows), but I did choose "

[issue38537] Python 2.7.17 reports itself as 2.7.16

2019-10-20 Thread PEW's Corner
PEW's Corner added the comment: After experimenting a bit more, I found that the python27.dll is NOT part of the new installation, but is also NOT removed on upgrade or when uninstalling. After I manually deleted this dll, the new installation correctly reports itself as 2.7.17. So

[issue38537] Python 2.7.17 reports itself as 2.7.16

2019-10-20 Thread PEW's Corner
New submission from PEW's Corner : After upgrading Python 2.7.16 to 2.7.17 using the Windows x86 MSI installer, the new Python still reports itself as version 2.7.16: D:\Python27>.\python.exe Python 2.7.16 (v2.7.16:413a49145e, Mar 4 2019, 01:30:55) [MSC v.1500 32 bit (Intel)] on win32 T

[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

2019-05-31 Thread PEW's Corner
PEW's Corner added the comment: Your proposal sounds good to me, Jeffrey. -- ___ Python tracker <https://bugs.python.org/issue36411> ___ ___ Python-bugs-list m

[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

2019-05-30 Thread PEW's Corner
PEW's Corner added the comment: Great analysis, Jeffrey. Does the kernel position actually move to the end of the file on the f.write() in step 10, or on the flush in step 14? If it's the latter, then f.write() should probably call lseek() to set both the kernel position and internal

[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

2019-05-24 Thread PEW's Corner
PEW's Corner added the comment: But buffers are used - and update tell() correctly - in all other cases than binary append+read mode (and even this case works in Python 2). Also, the implementation clearly tries to keep tell() updated irrespective of the buffer, so isn't it just a matter

[issue36644] Improve documentation of slice.indices()

2019-04-16 Thread PEW's Corner
New submission from PEW's Corner : The slice class is described in the Built-In Functions document: https://docs.python.org/3/library/functions.html#slice ... but that entry fails to mention the indices() method, and states that slice objects "have no other explicit functionality&qu

[issue36416] bytes.rpartition bug in online documentation

2019-03-25 Thread PEW's Corner
Change by PEW's Corner : -- keywords: +patch pull_requests: +12492 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36416> ___ ___ Py

[issue36416] bytes.rpartition bug in online documentation

2019-03-24 Thread PEW's Corner
PEW's Corner added the comment: OK, I can give it a try. I need to read up on the procedures for doing so, first, though, so it may take a while. -- ___ Python tracker <https://bugs.python.org/issue36

[issue36417] unicode.isdecimal bug in online Python 2 documentation

2019-03-24 Thread PEW's Corner
New submission from PEW's Corner : The online Python 2 documentation for unicode.isdecimal (https://docs.python.org/2/library/stdtypes.html#unicode.isdecimal) incorrectly states: "Decimal characters include digit characters". This is wrong (decimal characters are actually a subse

[issue36416] bytes.rpartition bug in online documentation

2019-03-24 Thread PEW's Corner
New submission from PEW's Corner : The online Python 3 documentation for bytes.rpartition and bytearray.rpartition (https://docs.python.org/3/library/stdtypes.html#bytes.rpartition) incorrectly states: "If the separator is not found, return a 3-tuple containing a copy of the ori

[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

2019-03-23 Thread PEW's Corner
New submission from PEW's Corner : When a file is opened in binary append+read mode, i.e. open('file', 'a+b'), and a write (i.e. append) operation is performed while the file pointer is not at the end of the file (e.g. after a seek(0)), tell() will subsequently return the wrong value