Matt Mackall added the comment:
Another way of putting it is:
os.listdir() -> [,...]
os.listdir() -> [,...]
is the usual pattern, and tempfile isn't following it.
--
nosy: +Matt.Mackall
___
Python tracker
<http://bugs.python.
Matt Mackall added the comment:
We already presize the output dict and have for ages. The question here is what
size to use. In the current state, we use twice as much memory and CPU as
necessary quite often because we end up spilling and growing... even though we
apparently intentionally
Matt Mackall added the comment:
Changeset 26ec62 regressed Mercurial.
http://bz.selenic.com/show_bug.cgi?id=4557
Before:
>>> ntpath.join(r'\\foo\bar\baz', '')
'foo\\bar\\baz\\'
>>> ntpath.join(r'\\foo\bar', '')
'\\\
Matt Mackall added the comment:
The committed fix breaks Mercurial.
http://bz.selenic.com/show_bug.cgi?id=4492
The "underlying file-like object" in our case is a wsgirequest but anything
else trying to serve a dynamically-generated zip file on the web will probably
die.
Matt Mackall added the comment:
Actually, no, all the size_t types are 64-bit on Windows 64:
https://en.wikipedia.org/wiki/64-bit_computing#64-bit_data_models
To confirm this, I found someone nearby with a 64-bit Windows and he had no
trouble allocating a 3G string with a = b'a' *
New submission from Matt Mackall:
Python's file_read uses an 'l' type to parse its args which results in a 31-bit
size limit on reads on 64-bit Windows. It should instead use an ssize_t.
Related Mercurial bug:
http://bz.selenic.com/show_bug.cgi?id=4215
--
componen
Changes by Matt Mackall :
--
nosy: -Matt.Mackall
___
Python tracker
<http://bugs.python.org/issue1602>
___
___
Python-bugs-list mailing list
Unsubscribe:
Matt Mackall added the comment:
The underlying cause of Python's write exceptions with cp65001 is:
The ANSI C write() function as implemented by the Windows console returns the
number of _characters_ written rather than the number of _bytes_, which Python
reasonably interprets as a &
Matt Mackall added the comment:
Ok, we need a change that will work with Python 2.4 through 2.7.
--
___
Python tracker
<http://bugs.python.org/issue8688>
___
___
Matt Mackall added the comment:
This change just wrecked Mercurial's release build process.
We've been building Mercurial release tarballs with a Makefile target wrapped
around sdist for most of five years, and we've never had or wanted a
MANIFEST.in file. We generate an exact
10 matches
Mail list logo