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
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
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
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'
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
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
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 [
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
101 - 108 of 108 matches
Mail list logo