Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r77977:f5c8f6b5aca5
Date: 2015-06-09 08:29 +0100
http://bitbucket.org/pypy/pypy/changeset/f5c8f6b5aca5/

Log:    Document who is using this case

diff --git a/rpython/translator/c/node.py b/rpython/translator/c/node.py
--- a/rpython/translator/c/node.py
+++ b/rpython/translator/c/node.py
@@ -932,7 +932,7 @@
             assert fnobj.external == 'CPython'
             return [CExternalFunctionCodeGenerator(fnobj, db)]
     elif hasattr(fnobj._callable, "c_name"):
-        return []
+        return []    # this case should only be used for entrypoints
     else:
         raise ValueError("don't know how to generate code for %r" % (fnobj,))
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to