Python — arguments to builtin_print method in bltinmodule.c
<p>This question follows from my previous <a href="http://stackoverflow.com/questions/13098524/need-to-find-the-source-code-for-print-or-printf-in-python">question</a>.</p>

<p>I don't have to change the entire implementation of builtin_print(). I simply need to look for a particular argument for e.g. --- 'python'.</p>

<p>For the following statement —</p>

<pre><code>from __future__ import print_function
print('python')
</code></pre>

<p>whenever there's a print for 'python', I want my code to do something else. The issue is:</p>

<pre><code>builtin_print(PyObject *self, PyObject *args, PyObject *kwds)
</code></pre>

<p>args is a PyObject type. I've no way to strcmp or memcmp args[1] with 'Python'.</p>

<p>Any ideas?</p>
