[issue46572] Unicode identifiers not necessarily unique

2022-01-29 Thread Diego Argueta
Diego Argueta added the comment: I did read PEP-3131 before posting this but I still thought the behavior was counterintuitive. -- ___ Python tracker <https://bugs.python.org/issue46

[issue46572] Unicode identifiers not necessarily unique

2022-01-29 Thread Diego Argueta
New submission from Diego Argueta : The way Python 3 handles identifiers containing mathematical characters appears to be broken. I didn't test the entire range of U+1D400 through U+1D59F but I spot-checked them and the bug manifests itself there: Python 3.9.7 (default, Sep 10 2021, 14:59

[issue33361] readline() + seek() on codecs.EncodedFile breaks next readline()

2019-05-26 Thread Diego Argueta
Diego Argueta added the comment: > though #32110 ("Make codecs.StreamReader.read() more compatible with read() > of other files") may have fixed more (all?) of it. Still seeing this in 3.7.3 so I don't think so? -- ___ Python

[issue33361] readline() + seek() on codecs.EncodedFile breaks next readline()

2018-07-13 Thread Diego Argueta
Diego Argueta added the comment: Bug still present in 3.7.0, now seeing it in 3.8.0a0 as well. -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue33

[issue33593] Support heapq on typed arrays?

2018-05-22 Thread Diego Argueta
Diego Argueta <diego.argu...@gmail.com> added the comment: However I do see your point about the speed. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33593] Support heapq on typed arrays?

2018-05-22 Thread Diego Argueta
Diego Argueta <diego.argu...@gmail.com> added the comment: I was referring to the C arrays in the Python standard library: https://docs.python.org/3/library/array.html -- ___ Python tracker <rep...@bugs.python.org> <https://

[issue33593] Support heapq on typed arrays?

2018-05-21 Thread Diego Argueta
New submission from Diego Argueta <diego.argu...@gmail.com>: It'd be really great if we could have support for using the `heapq` module on typed arrays from `array`. For example: ``` import array import heapq import random a = array.array('I', (random.randrange(10) for _ in ra

[issue33361] readline() + seek() on io.EncodedFile breaks next readline()

2018-05-21 Thread Diego Argueta
Diego Argueta <diego.argu...@gmail.com> added the comment: Update: Tested this on Python 3.5.4, 3.4.8, and 3.7.0b3 on OSX 10.13.4. They also exhibit the bug. Updating the ticket accordingly. -- versions: +Python 3.4, Python 3.5, Pyth

[issue33038] GzipFile doesn't always ignore None as filename

2018-05-01 Thread Diego Argueta
Diego Argueta <diego.argu...@gmail.com> added the comment: Did this make it into 2.7.15? There aren't any release notes for it on the download page like usual. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33361] readline() + seek() on io.EncodedFile breaks next readline()

2018-04-26 Thread Diego Argueta
Diego Argueta <diego.argu...@gmail.com> added the comment: Update: If I run your exact code it still breaks for me: ``` Got header: 'abc\n' Skipping the header. 'def\n' Line 2: 'ghi\n' Line 3: 'abc\n' Line 4: 'def\n' Line 5: 'ghi\n' ``` I'm running Python 2.7.14 and 3.6.5 on OSX 1

[issue33361] readline() + seek() on io.EncodedFile breaks next readline()

2018-04-26 Thread Diego Argueta
Diego Argueta <diego.argu...@gmail.com> added the comment: That's because the stream isn't transcoding, since UTF-8 is ASCII-compatible. Try using something not ASCII-compatible as the codec e.g. 'ibm500' and it'll give incorrect results. ``` b = io.BytesIO(u'a,b\r\n"asdf",&q

[issue33361] readline() + seek() on io.EncodedFile breaks next readline()

2018-04-25 Thread Diego Argueta
New submission from Diego Argueta <diego.argu...@gmail.com>: It appears that calling readline() on a codecs.EncodedFile stream breaks seeking and causes subsequent attempts to iterate over the lines or call readline() to backtrack and return already consumed lines. A minimal e

[issue33038] GzipFile doesn't always ignore None as filename

2018-03-11 Thread Diego Argueta
Diego Argueta <diego.argu...@gmail.com> added the comment: Yeah that's fine. Thanks! -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33038] GzipFile doesn't always ignore None as filename

2018-03-09 Thread Diego Argueta
New submission from Diego Argueta <diego.argu...@gmail.com>: The Python documentation states that if the GzipFile can't determine a filename from `fileobj` it'll use an empty string and won't be included in the header. Unfortunately, this doesn't work for SpooledTemporaryFile which has a