<div dir="ltr">I suppose it's related to this checkin:<br><br>changeset:   88792:d6311829da15<br>parent:      88788:6b37e6aff9ef<br>user:        Larry Hastings <<a href="mailto:larry@hastings.org">larry@hastings.org</a>><br>

date:        Tue Jan 28 05:00:08 2014 -0800<br>files:       Include/object.h Lib/idlelib/idle_test/test_calltips.py Lib/inspect.py Lib/test/test_capi.py Lib/test/test_generators.py Lib/test/test_genexps.py Misc/NEWS Modules/_bz2module.c Modules/_cryp\<br>

tmodule.c Modules/_cursesmodule.c Modules/_datetimemodule.c Modules/_dbmmodule.c Modules/_lzmamodule.c Modules/_lzmamodule.clinic.c Modules/_opcode.c Modules/_pickle.c Modules/_sre.c Modules/_testcapimod\<br>ule.c Modules/_weakref.c Modules/audioop.c Modules/binascii.c Modules/clinic/_bz2module.c.h Modules/clinic/_lzmamodule.c.h Modules/clinic/_pickle.c.h Modules/clinic/audioop.c.h Modules/clinic/binascii.c.\<br>

h Modules/clinic/zlibmodule.c.h Modules/posixmodule.c Modules/unicodedata.c Modules/zlibmodule.c Objects/descrobject.c Objects/dictobject.c Objects/methodobject.c Objects/typeobject.c Objects/unicodeobje\<br>ct.c Python/import.c Tools/clinic/clinic.py<br>

description:<br>Issue #20326: Argument Clinic now uses a simple, unique signature to<br>annotate text signatures in docstrings, resulting in fewer false<br>positives.  "self" parameters are also explicitly marked, allowing<br>

inspect.Signature() to authoritatively detect (and skip) said parameters.<br><br>Issue #20326: Argument Clinic now generates separate checksums for the<br>input and output sections of the block, allowing external tools to verify<br>

that the input has not changed (and thus the output is not out-of-date).<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 29, 2014 at 10:25 PM, Stefan Behnel <span dir="ltr"><<a href="mailto:stefan_ml@behnel.de" target="_blank">stefan_ml@behnel.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
for two days now, the signature embedding tests in Cython have been failing<br>
with this (doctest) error:<br>
<br>
"""<br>
Expected:<br>
    f_D(long double D) -> long double<br>
Got:<br>
    f_DNone<br>
    f_D(long double D) -> long double<br>
"""<br>
<br>
<a href="https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests/1869/ARCH=m64,BACKEND=c,PYVERSION=py3km/testReport/junit/doctest/DocTestCase/Doctest__embedsignatures/" target="_blank">https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests/1869/ARCH=m64,BACKEND=c,PYVERSION=py3km/testReport/junit/doctest/DocTestCase/Doctest__embedsignatures/</a><br>


<br>
The first line that Cython writes into the docstring is the "expected" one<br>
above. So far, all CPython versions have ignored it, Py3.4 then started<br>
picking it up at some point due to the argument clinic changes, but<br>
properly copied it over to the (IIRC) "__signature__" attribute. However,<br>
the recent change now lead to the above being dumped into the docstring.<br>
<br>
Could someone please quickly explain what the purpose of the first line is<br>
and why it says "None" at the end?<br>
<br>
Is there anything we should do on our side in order to fix this? Since many<br>
of our users embed their signatures for documentation purposes (it was the<br>
only way to make them visible in previous CPython versions and is supported<br>
by several tools, e.g. epydoc), this is a rather annoying result for them.<br>
<br>
Stefan<br>
<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" target="_blank">https://mail.python.org/mailman/options/python-dev/guido%40python.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)
</div>