[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-06-19 Thread schen

schen added the comment:

The usage text in build.bat still mentions that svn.exe is required for the 
'-e' flag. I think it should be updated to reflect the changes made.

--
nosy: +schen

___
Python tracker 
<http://bugs.python.org/issue30450>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30477] tuple.index error message improvement

2017-05-26 Thread schen

schen added the comment:

What is the rationale for the inconsistency between tuples and lists here?

().index(0)
ValueError: tuple.index(x): x not in tuple

[].index(0)
ValueError: 0 is not in list

In this simple artificial case, it seems clear to me that the list version 
(which is similar to the proposed change) is superior.

However, it is often not sufficient to use such cases as the basis for making a 
decision. Raymond raises some very good points.

In particular, I noticed that printing the repr quickly becomes unwieldy for 
more complex objects. For example, I tried the following:
[].index(''.join(chr(randrange(97, 97+26)) for _ in range(1000)))
[].index(Counter(randrange(10) for _ in range(1)))

--
nosy: +schen

___
Python tracker 
<http://bugs.python.org/issue30477>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com