[issue16625] Exception on mode 'br'

2012-12-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue16625] Exception on mode 'br'

2012-12-06 Thread Sworddragon
Sworddragon added the comment: > Is this issue just for 2.7? 3.3 was selected as the affected version, but > the error message text seems limited to 2.7 You have given me a good hint. My script is running on python3 with the shbang line "#!/usr/bin/python3 -OOtt". But it makes a subcall to py

[issue16625] Exception on mode 'br'

2012-12-06 Thread Chris Jerdonek
Chris Jerdonek added the comment: Is this issue just for 2.7? 3.3 was selected as the affected version, but the error message text seems limited to 2.7: http://hg.python.org/cpython/file/0adfbafe8a99/Objects/fileobject.c#l303 The exception can be reproduced simply using 2.7: >>> open('foo',

[issue16625] Exception on mode 'br'

2012-12-05 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue16625] Exception on mode 'br'

2012-12-05 Thread Sworddragon
New submission from Sworddragon: The mode 'br' on open() can cause an exception with the following message: "ValueError: mode string must begin with one of 'r', 'w', 'a' or 'U', not 'br'". Curriously most times the mode 'br' is working fine and I'm not able to create a simple test case where i