[issue15275] isinstance is called a more times that needed in ntpath

2012-07-24 Thread Manuel de la Pena
Manuel de la Pena added the comment: Tests indeed cover the changes made. I don't know about a decent way of doing benchmarks for the changes. Any recommendation? > If this patch is applied I think it would be good to change posixpath too. I agree and I'd love to do it but in

[issue15275] isinstance is called a more times that needed in ntpath

2012-07-08 Thread Manuel de la Pena
Changes by Manuel de la Pena : -- nosy: +brian.curtin ___ Python tracker <http://bugs.python.org/issue15275> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15286] normpath does not work with local literal paths

2012-07-08 Thread Manuel de la Pena
Manuel de la Pena added the comment: Antoine, What the MSDN is stating is that the Windows functions from COM will not normalize the path if it is prefixed by \\?\. That is, if a user wanted to do: path = r'\\?\C:\Users\mandel\..\Desktop\test' with open(path, 'w') as fd:

[issue15286] normpath does not work with local literal paths

2012-07-07 Thread Manuel de la Pena
New submission from Manuel de la Pena : Local literal paths are those paths that do use the \\?\ that allows to have paths longer that the MAX_PATH set by Windows (http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx#short_vs._long_names). While UNC (http

[issue15275] isinstance is called a more times that needed in ntpath

2012-07-07 Thread Manuel de la Pena
Changes by Manuel de la Pena : Removed file: http://bugs.python.org/file26295/f5c57ba1124b.diff ___ Python tracker <http://bugs.python.org/issue15275> ___ ___ Python-bug

[issue15275] isinstance is called a more times that needed in ntpath

2012-07-07 Thread Manuel de la Pena
Changes by Manuel de la Pena : Added file: http://bugs.python.org/file26295/f5c57ba1124b.diff ___ Python tracker <http://bugs.python.org/issue15275> ___ ___ Python-bug

[issue15275] isinstance is called a more times that needed in ntpath

2012-07-07 Thread Manuel de la Pena
New submission from Manuel de la Pena : The problem is simple, the code that allows to use binary strings and unicode is making more calls that needed to isinstance(path, bytes) since the result of the code is not shared. For example, the following calls are present in the module: def

[issue13234] os.listdir breaks with literal paths

2011-10-25 Thread Manuel de la Pena
Manuel de la Pena added the comment: In case of my patch (I don't know about santa4nt case) I did not use shutil.remove because it was not used in the other tests and I wanted to be consistent and not add a new import. Certainly if there is not an issue with that we should u

[issue13234] os.listdir breaks with literal paths

2011-10-25 Thread Manuel de la Pena
Manuel de la Pena added the comment: Indeed, in our code we had to write a number of wrappers around the os calls to be able to work with long path on Windows. At the moment working with long paths on windows and python is broken in a number of places and is a PITA to work with

[issue13234] os.listdir breaks with literal paths

2011-10-20 Thread Manuel de la Pena
New submission from Manuel de la Pena : During the development of an application that needed to write paths longer than 260 chars we opted to use \\?\ as per http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#maxpath. When working with literal paths the following

[issue13207] os.path.expanduser brakes when using unicode character in the username

2011-10-18 Thread Manuel de la Pena
New submission from Manuel de la Pena : During our development we have experience the following: If you have a user in your Windows machine with a name hat uses Japanese characters like “雄鳥お人好し” you will have the following in your system: * The Windows Shell will show the path correctly, that