By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,548 Members | 1,495 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,548 IT Pros & Developers. It's quick & easy.

Why is there no PyInt_AsInt() ?

P: n/a
....and instead down-cast the result of PyInt_AsLong() when
the PyObject was an integer in the first place??
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Jon Perez wrote:
...and instead down-cast the result of PyInt_AsLong() when
the PyObject was an integer in the first place??

Yes, but a Python integer is "not the same" as a C integer. Python
integers are implemented using a C long.

Vincent Wehren
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.