[issue16618] Different glob() results for strings and bytes

2012-12-27 Thread Hynek Schlawack
Hynek Schlawack added the comment: Thanks Serhiy! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue16618] Different glob() results for strings and bytes

2012-12-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 62f67a52b0c2 by Hynek Schlawack in branch '3.2': #16618: Make glob.glob match consistently across strings and bytes http://hg.python.org/cpython/rev/62f67a52b0c2 New changeset fa8c4f96d990 by Hynek Schlawack in branch '3.3': #16618: Make glob.glob m

[issue16618] Different glob() results for strings and bytes

2012-12-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is an updated patches. I hope it satisfies Antoine's comments. -- Added file: http://bugs.python.org/file28398/glob_dotfiles_3.patch Added file: http://bugs.python.org/file28399/glob_tests-2.7_3.patch ___ Pytho

[issue16618] Different glob() results for strings and bytes

2012-12-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Aha! It's OS/2 where glob('*/') returns result without trailing slash. Here also glob() can return str (on 2.7) result for unicode pattern. -- ___ Python tracker ___

[issue16618] Different glob() results for strings and bytes

2012-12-22 Thread Hynek Schlawack
Hynek Schlawack added the comment: Serhiy, are you going to update your patches? I can implement the feedback of our Q4 Community Service Award awardee too in case you’re busy. -- ___ Python tracker __

[issue16618] Different glob() results for strings and bytes

2012-12-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file28336/glob_tests-2.7_2.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue16618] Different glob() results for strings and bytes

2012-12-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file28335/glob_dotfiles_2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue16618] Different glob() results for strings and bytes

2012-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yet one attempt. -- Added file: http://bugs.python.org/file28338/glob_dotfiles_2.patch Added file: http://bugs.python.org/file28339/glob_tests-2.7_2.patch ___ Python tracker

[issue16618] Different glob() results for strings and bytes

2012-12-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file28334/glob_tests-2.7_2.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue16618] Different glob() results for strings and bytes

2012-12-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file28333/glob_dotfiles_2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue16618] Different glob() results for strings and bytes

2012-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patches updated. Unrelated changes removed. -- Added file: http://bugs.python.org/file28335/glob_dotfiles_2.patch Added file: http://bugs.python.org/file28336/glob_tests-2.7_2.patch ___ Python tracker

[issue16618] Different glob() results for strings and bytes

2012-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patches updated to resolve conflicts with recent commits. Some minor test errors fixed. -- Added file: http://bugs.python.org/file28333/glob_dotfiles_2.patch Added file: http://bugs.python.org/file28334/glob_tests-2.7_2.patch

[issue16618] Different glob() results for strings and bytes

2012-12-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch doesn't apply cleanly. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue16618] Different glob() results for strings and bytes

2012-12-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: See also issue16696. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue16618] Different glob() results for strings and bytes

2012-12-16 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue16618] Different glob() results for strings and bytes

2012-12-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16618] Different glob() results for strings and bytes

2012-12-05 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16618] Different glob() results for strings and bytes

2012-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python 2.7 is not needed the fix, however additional tests can be useful. Here is a patch. -- components: +Tests versions: +Python 2.7 Added file: http://bugs.python.org/file28212/glob_tests-2.7.patch ___ Python tr

[issue16618] Different glob() results for strings and bytes

2012-12-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: glob ignores names which starts with dot if pattern is not starts with dot. But this is wrong for bytes pattern in Python 3. >>> import glob >>> glob.glob('*hg') [] >>> glob.glob(b'*hg') [b'.hg'] The proposed patch fixes this inconsistency. Also it contain