[issue43395] os.path states that bytes can't represent all MBCS paths under Windows

2021-03-04 Thread Eric L.
Eric L. added the comment: Very confusing but very interesting. I'm trying to follow as I'm the main maintainer of the rdiff-backup software, which goes cross-platforms, so these small differences might become important. Now, looking into the docs, following your explanations, I noticed

[issue43395] os.path states that bytes can't represent all MBCS paths under Windows

2021-03-03 Thread Eric L.
New submission from Eric L. : The os.path documentation at https://docs.python.org/3/library/os.path.html states that: > Vice versa, using bytes objects cannot represent all file names on Windows > (in the standard mbcs encoding), hence Windows applications should use string >

[issue40831] Wrong statement that bytes paths are deprecated under Windows regarding MAX_PATH docs

2020-05-31 Thread Eric L.
Eric L. added the comment: The question is if only the statement that bytes are deprecated is wrong, but also if the long path feature is supported with bytes or not. As written, I'm a Linux guy, I don't feel like I have the pre-requisites to check this properly

[issue40831] Wrong statement that bytes paths are deprecated under Windows regarding MAX_PATH docs

2020-05-30 Thread Eric L.
New submission from Eric L. : In chapter 3.1.2. Removing the MAX_PATH Limitation of https://docs.python.org/3/using/windows.html#removing-the-max-path-limitation (also in 3.9 and 3.10), it is written that "(Use of bytes as paths is deprecated on Windows, and this feature is not avai

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-26 Thread Eric L.
Eric L. added the comment: Well, your decision but, as a user of the library, it didn't feel like a new feature just like a bug to be fixed, the main issue being the inconsistent handling of bytes vs. str. -- ___ Python tracker <ht

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-24 Thread Eric L.
Eric L. added the comment: On 24/05/2020 20:30, Serhiy Storchaka wrote: > Maybe just document that tempdir should be a string? I would definitely prefer to have bytes paths considered as 1st class citizen. -- ___ Python tracker <

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-24 Thread Eric L.
Eric L. added the comment: On 23/05/2020 21:41, Gregory P. Smith wrote: > Could you please turn that into a Github PR? I can, if you don't tell me that I need to setup a full-blown Python development environment to do this. -- ___ Python trac

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-23 Thread Eric L.
Eric L. added the comment: Sorry, I uploaded by mistake an early version of the patch. The new one is the one I had actually tested (the old one would fail with mixing bytes and string under certain circumstances, I can't remember any more). -- Added file: https://bugs.python.org

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-21 Thread Eric L.
Eric L. added the comment: In the meantime, I noticed the following in addition: [ericl@tuxedo ~]$ python3.9 Python 3.9.0a6 (default, Apr 28 2020, 00:00:00) [GCC 10.0.1 20200430 (Red Hat 10.0.1-0.14)] on linux Type "help", "copyright", "credits" or "licens

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-20 Thread Eric L.
New submission from Eric L. : tempfile fails on mixed str and bytes when setting tempfile.tempdir to a non-existent bytes path but succeeds when set to an existing bytes path. $ python3.9 Python 3.9.0a6 (default, Apr 28 2020, 00:00:00) [GCC 10.0.1 20200430 (Red Hat 10.0.1-0.14)] on linux

[issue3467] sqlite3 path is hard coded in setup.py

2008-07-30 Thread Eric L. Frederich
Eric L. Frederich [EMAIL PROTECTED] added the comment: If we put the following one liner right after sqlite_inc_paths is defined it will add include directories based on the PATH environment variable. sqlite_inc_paths.extend([re.sub('/bin[/]?$', '/include', p) for p in os.environ.get('PATH

[issue3467] sqlite3 path is hard coded in setup.py

2008-07-29 Thread Eric L. Frederich
New submission from Eric L. Frederich [EMAIL PROTECTED]: In setup.py, the paths that it searches for sqlite in is hard coded in a list sqlite_inc_paths. This should also search any path in either $PATH or $LD_LIBRARY_PATH. This is necessary for non-default installations of sqlite for users