Showing content from http://mail.python.org/pipermail/python-dev/attachments/20140805/396bdbee/attachment.html below:
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 08/05/2014 03:53 AM, Antoine Pitrou
wrote:<br>
</div>
<blockquote cite="mid:lrohaf$9l6$1@ger.gmane.org" type="cite">Le
04/08/2014 13:36, Alexander Belopolsky a écrit :
<br>
<blockquote type="cite">
If the receiving type is
PyObject*, either NULL or Py_None is a valid choice.
<br>
</blockquote>
But here the receiving type can be an int.<br>
</blockquote>
<br>
Just to be precise: in the case where the receiving type *would*
have been an int, and "nullable=True", the receiving type is
actually a structure containing an int and a "you got a None" flag.Â
I can't stick a magic value in the int and say "that represents you
getting a None" because any integer value may be valid.<br>
<br>
Also, I'm pretty sure there are places in builtin argument parsing
that accept either NULL or Py_None, and I *think* maybe in one or
two of them they actually mean different things. What fun!<br>
<br>
<br>
For small values of "fun",<br>
<br>
<br>
<i>/arry</i><br>
</body>
</html>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4