2013/7/19 Ethan Furman et...@stoneleaf.us:
While working on issue #18508 I stumbled across this:
Traceback (most recent call last):
...
File /usr/local/lib/python3.4/enum.py, line 417, in __new__
if value in cls._value2member_map:
TypeError: unhashable type: 'list'
I'll wrap it in a
On 20 July 2013 09:47, Ethan Furman et...@stoneleaf.us wrote:
While working on issue #18508 I stumbled across this:
Traceback (most recent call last):
...
File /usr/local/lib/python3.4/enum.py, line 417, in __new__
if value in cls._value2member_map:
TypeError: unhashable type: 'list'
On 20 Jul, 2013, at 1:47, Ethan Furman et...@stoneleaf.us wrote:
While working on issue #18508 I stumbled across this:
Traceback (most recent call last):
...
File /usr/local/lib/python3.4/enum.py, line 417, in __new__
if value in cls._value2member_map:
TypeError: unhashable type:
On Fri, 19 Jul 2013 16:47:36 -0700
Ethan Furman et...@stoneleaf.us wrote:
While working on issue #18508 I stumbled across this:
Traceback (most recent call last):
...
File /usr/local/lib/python3.4/enum.py, line 417, in __new__
if value in cls._value2member_map:
TypeError:
19.07.13 22:32, Ben Finney написав(ла):
Serhiy Storchaka storch...@gmail.com writes:
I'm asking only about this case, when the dash is used to denote a
break in a sentence or to set off parenthetical statements.
That's two separate cases:
* denote a break in a sentence
* set off
20.07.13 15:12, christian.heimes написав(ла):
http://hg.python.org/cpython/rev/c92f4172d122
changeset: 84723:c92f4172d122
user:Christian Heimes christ...@cheimes.de
date:Sat Jul 20 14:11:28 2013 +0200
summary:
Use strncat() instead of strcat() to silence some warnings.
CID
On Sat, 20 Jul 2013 15:23:46 +0300
Serhiy Storchaka storch...@gmail.com wrote:
20.07.13 15:12, christian.heimes написав(ла):
http://hg.python.org/cpython/rev/c92f4172d122
changeset: 84723:c92f4172d122
user:Christian Heimes christ...@cheimes.de
date:Sat Jul 20 14:11:28
20.07.13 15:36, Antoine Pitrou написав(ла):
On Sat, 20 Jul 2013 15:23:46 +0300
Serhiy Storchaka storch...@gmail.com wrote:
20.07.13 15:12, christian.heimes написав(ла):
http://hg.python.org/cpython/rev/c92f4172d122
changeset: 84723:c92f4172d122
user:Christian Heimes
On Sat, 20 Jul 2013 15:48:09 +0300
Serhiy Storchaka storch...@gmail.com wrote:
20.07.13 15:36, Antoine Pitrou написав(ла):
On Sat, 20 Jul 2013 15:23:46 +0300
Serhiy Storchaka storch...@gmail.com wrote:
20.07.13 15:12, christian.heimes написав(ла):
This will wrong when strlen(fname) is 30. strncat() will copy only 30
bytes, without terminal NUL.
That's not how strncat() works. strncat(dest, src, n) writes n+1 chars
to the end of dest: n chars from src and +1 for the final NUL char. For
this reason dest must be large enough to hold
Am 20.07.2013 14:23, schrieb Serhiy Storchaka:
This will wrong when strlen(fname) is 30. strncat() will copy only 30
bytes, without terminal NUL.
http://linux.die.net/man/3/strncat
The strncat() function is similar, except that
* it will use at most n bytes from src; and
* src does not need
20.07.13 16:27, Christian Heimes написав(ла):
This will wrong when strlen(fname) is 30. strncat() will copy only 30
bytes, without terminal NUL.
That's not how strncat() works. strncat(dest, src, n) writes n+1 chars
to the end of dest: n chars from src and +1 for the final NUL char. For
this
Am 20.07.2013 15:56, schrieb Serhiy Storchaka:
Oh, true. strncat() always results NUL-terminated string. It's strncpy()
can produce not NUL-terminated string. Sorry for noise.
You're welcome! Better safe than sorry. :)
___
Python-Dev mailing list
On 07/20/2013 03:21 AM, Ronald Oussoren wrote:
On 20 Jul, 2013, at 1:47, Ethan Furman et...@stoneleaf.us wrote:
While working on issue #18508 I stumbled across this:
Traceback (most recent call last):
...
File /usr/local/lib/python3.4/enum.py, line 417, in __new__
if value in
On Sat, Jul 20, 2013 at 6:37 PM, Ethan Furman et...@stoneleaf.us wrote:
On 07/20/2013 03:21 AM, Ronald Oussoren wrote:
On 20 Jul, 2013, at 1:47, Ethan Furman et...@stoneleaf.us wrote:
While working on issue #18508 I stumbled across this:
Traceback (most recent call last):
...
File
15 matches
Mail list logo