[issue23970] Update distutils.msvccompiler for VC14

2015-04-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 17.04.2015 00:06, Steve Dower wrote: > > So it looks like what I should do is use the include_dirs and library_dirs > members from CCompiler so they can be set through other properties. I see that you're basically reading the include and lib dirs from t

[issue23985] Crash when deleting slices from duplicated bytearray

2015-04-17 Thread Ned Deily
Ned Deily added the comment: Above was in 64-bit mode (x86_64). Same run in 32-bit (i386): $ ./bin/python3.5-32 /tmp/b/bytearray_bug.py buf2: 13 2 bytearray(b'1234567890123') buf1: 13 11 bytearray(b'1234567890123') buf2: 24 16 bytearray(b'345678901231234567890123') buf1: 15 4 bytearray(b'231234

[issue23974] random.randrange() biased output

2015-04-17 Thread Mark Dickinson
Mark Dickinson added the comment: In the #9025 discussion, reproducibility was a key concern. Though I note that despite the comments there, we *still* have no documented guarantees of reproducibility, so maybe it's safe to go ahead and change this. Raymond? IMO, the fix from #9025 should be

[issue23985] Crash when deleting slices from duplicated bytearray

2015-04-17 Thread Ned Deily
Ned Deily added the comment: Reproduced with top of trunk default branch on OS X (so, not Windows-specific). With debug enabled: $ ./bin/python3.5 /tmp/b/bytearray_bug.py buf2: 13 5 bytearray(b'1234567890123') buf1: 13 3 bytearray(b'1234567890123') buf2: 21 2 bytearray(b'678901231234567890123'

[issue23987] docs about containers membership testing wrong for broken objects

2015-04-17 Thread Ethan Furman
New submission from Ethan Furman: https://docs.python.org/3/reference/expressions.html#comparisons: The operators 'in' and 'not in' test for membership. 'x in s' evaluates to true if x is a member of s, and false otherwise. 'x not

[issue23980] Documentation for format units starting with 'e' is inconsistent

2015-04-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 17.04.2015 05:50, Larry Hastings wrote: > > Larry Hastings added the comment: > >> The "e" variants (typically) allocate a buffer for you, since it's pretty >> much unknown how long the encoded data will be. > > All four will do it if you pass in a NULL

[issue23980] Documentation for format units starting with 'e' is inconsistent

2015-04-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 17.04.2015 06:42, Larry Hastings wrote: > > Larry Hastings added the comment: > > One more idea. We annotate with an & when you pass in a pointer to a > variable. So format unit 'i' would get [& int], 's' would get [& char *], > and 'es#' would get [

[issue23986] Inaccuracy about "in" keyword for list and tuple

2015-04-17 Thread wim glenn
New submission from wim glenn: The comparisons section of the python 2 docs says: --- https://docs.python.org/2/reference/expressions.html#comparisons For the list and tuple types, x in y is true if and only if there exists an index i such that x == y[i] is true. --- But it's not strictly

<    1   2