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
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,
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?
--
___
P
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
Diego Argueta added the comment:
However I do see your point about the speed.
--
___
Python tracker
<https://bugs.python.org/issue33593>
___
___
Python-bug
Diego Argueta 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
<https://bugs.python.org/issue33
New submission from Diego Argueta :
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 range(10)))
heapq.heapif
Diego Argueta 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, Python 3.7
___
Python tracker
<ht
Diego Argueta 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
<https://bugs.python.org/is
Diego Argueta 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
Diego Argueta 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"as
New submission from Diego Argueta :
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 example:
```
from __future__ import
Diego Argueta added the comment:
Yeah that's fine. Thanks!
--
___
Python tracker
<https://bugs.python.org/issue33038>
___
___
Python-bugs-list mailing list
New submission from Diego Argueta :
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 `name`
a
14 matches
Mail list logo