[issue39840] FileNotFoundError et al show b-prefix on filepaths if passed as bytes

2020-03-03 Thread Augie Fackler
New submission from Augie Fackler : I'm not really sure if this is a bug per se, so please feel encouraged to close as WAI if you like, but: >>> open(b'foo', 'rb') Traceback (most recent call last): File "", line 1, in FileNotFoundError: [Errno 2

[issue27664] Allow specifying prefix for thread name in concurrent.futures.ThreadPoolExecutor

2016-08-01 Thread Augie Fackler
New submission from Augie Fackler: This is mostly useful for when you've got a large number of threads and want to try and identify what threadpool is going nuts. -- components: Library (Lib) files: cpython.patch keywords: patch messages: 271790 nosy: durin42 priority: normal sev

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-22 Thread Augie Fackler
Augie Fackler added the comment: I just removed my hack that gave us unicode to hand to mkdtemp() and everything still passes with your new commit. Thanks much for the quick response! -- ___ Python tracker <http://bugs.python.org/issue24

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-20 Thread Augie Fackler
Augie Fackler added the comment: I'll build a patched Python3.5 tomorrow (I'm on the road today) and let you know if this does everything we need. I'd be shocked if it wasn't plenty. -- ___ Python tracker <http://bug

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-20 Thread Augie Fackler
Augie Fackler added the comment: > In any way Mercurial people need their own wrapper if they want to support > Python <3.5. We need format operations on bytes objects, so we have no plans to support Python3 for any version b

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread Augie Fackler
Augie Fackler added the comment: Today we're doing something like this: tmpdir = tempfile.mkdtemp('', 'hgtests.', d and d.decode('utf-8')).encode('utf-8') but would rather have tmpdir = tempfile.mkdtemp(b'', b'hgtests.', d) #

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread Augie Fackler
New submission from Augie Fackler: Many things in the OS module work with bytestrings for paths in Python 3, but tempfile isn't so happy. It'd be very useful to be able to have the same bytes-in-bytes-out behavior in tempfile as for the os.path.* methods. This is something we&

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-15 Thread Augie Fackler
Augie Fackler added the comment: Changes to 3.4 aren't going to help Mercurial. Given that bytes formatting is new in 3.5, I won't be attempting a port that supports a version of Python 3 any older than 3.5. At this point, just a difflib.diff_bytes method in 3.5 would be sufficient

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-13 Thread Augie Fackler
Augie Fackler added the comment: (For values of "our" == "Mercurial".) -- ___ Python tracker <http://bugs.python.org/issue17445> ___ ___ Pyt

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-13 Thread Augie Fackler
Augie Fackler added the comment: Friendly ping. With bytes formatting in Python 3.5a3, this is now the biggest pain port for getting our test runner working cleanly on Python 3. -- ___ Python tracker <http://bugs.python.org/issue17

[issue13405] Add DTrace probes

2015-01-14 Thread Augie Fackler
Changes by Augie Fackler : -- nosy: +durin42 ___ Python tracker <http://bugs.python.org/issue13405> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21590] Systemtap and DTrace support

2015-01-14 Thread Augie Fackler
Changes by Augie Fackler : -- nosy: +durin42 ___ Python tracker <http://bugs.python.org/issue21590> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14099] ZipFile.open() should not reopen the underlying file

2015-01-07 Thread Augie Fackler
Changes by Augie Fackler : -- nosy: +durin42 ___ Python tracker <http://bugs.python.org/issue14099> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-07 Thread Augie Fackler
Augie Fackler added the comment: Why not treat the filename as opaque bytes, and let the client fetch it anyway? -- ___ Python tracker <http://bugs.python.org/issue22

[issue17621] Create a lazy import loader mixin

2014-03-26 Thread Augie Fackler
Changes by Augie Fackler : -- nosy: +durin42 ___ Python tracker <http://bugs.python.org/issue17621> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19510] lib2to3.fixes.fix_import gets confused if implicit relative imports and absolute imports are on the same line

2013-11-05 Thread Augie Fackler
New submission from Augie Fackler: While tinkering (again) with Mercurial Python 3 messes, I ran across this gem: import error, osutil, encoding, collections (http://selenic.com/hg/file/e1317d3e59e1/mercurial/util.py#l17) That import statement contains 3 relative imports (that is

[issue3982] support .format for bytes

2013-10-08 Thread Augie Fackler
Augie Fackler added the comment: On Oct 8, 2013, at 6:28 PM, "Terry J. Reedy" wrote: > http://www.python.org/dev/peps/pep-0383/ > One point of the pep is round-trip filenames without loss on all systems, > which is just what you say you need. At a quick skim, likely not g

[issue3982] support .format for bytes

2013-10-08 Thread Augie Fackler
Augie Fackler added the comment: On Oct 8, 2013, at 6:19 PM, Glyph Lefkowitz wrote: > Glyph Lefkowitz added the comment: > > On Oct 8, 2013, at 2:35 PM, Eric V. Smith wrote: > >> What proposal is actually on the table here? > > Sorry Eric, you're right, ther

[issue3982] support .format for bytes

2013-10-08 Thread Augie Fackler
Augie Fackler added the comment: On Oct 8, 2013, at 5:24 PM, STINNER Victor wrote: > > STINNER Victor added the comment: > > 2013/10/8 Augie Fackler : >> sys.stdout.write('%(state)s %(path)s\n' % {'state': 'M', 'path': >> 

[issue3982] support .format for bytes

2013-10-08 Thread Augie Fackler
Augie Fackler added the comment: On Tue, Oct 8, 2013 at 5:11 PM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > > > > Punting this to 3.5 basically means we'll have to either wait for > > > > 3.5, or do something awful like use cffi to

[issue3982] support .format for bytes

2013-10-08 Thread Augie Fackler
Augie Fackler added the comment: On Tue, Oct 8, 2013 at 11:08 AM, Antoine Pitrou wrote: > > Is there any chance we could just have it work for bytes, ints, and > > floats? That'd solve the immediate need, and it'd be obviously > > correct how to have those behav

[issue3982] support .format for bytes

2013-10-08 Thread Augie Fackler
Augie Fackler added the comment: Is there any chance we could just have it work for bytes, ints, and floats? That'd solve the immediate need, and it'd be obviously correct how to have those behave. Punting this to 3.5 basically means we'll have to either wait for 3.5, or do

[issue3982] support .format for bytes

2013-09-19 Thread Augie Fackler
Augie Fackler added the comment: I'd like to put a nudge towards supporting the __mod__ interface on bytes - for Mercurial this is the single biggest impediment to even getting our testrunner working, much less starting the porting process. -- nosy: +du

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-26 Thread Augie Fackler
Changes by Augie Fackler : -- nosy: +durin42 ___ Python tracker <http://bugs.python.org/issue7946> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2770] Subversion 1.5 Working Copies Break Setuptools

2008-05-05 Thread Augie Fackler
New submission from Augie Fackler <[EMAIL PROTECTED]>: Subversion 1.5 adds some fields to the entries file in the working copy administrative area. As a result of this, the way in which setuptools checks the entries files results in a raised exception. Having read the spec for the e