473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

PyBool_FromLong

In the C API Docs, the signature of PyBool from long seems to be incorrect.

int PyBool_FromLong(long v)
Returns Py_True or Py_False depending on the truth value of v. New in version 2.3.

The description would suggest:

PyObject* PyBool_FromLong(long v)

Sep 2 '05 #1
2 3749
Andrew MacKeith wrote:
In the C API Docs, the signature of PyBool from long seems to be incorrect.

int PyBool_FromLong(long v)
Returns Py_True or Py_False depending on the truth value of v. New
in version 2.3.

The description would suggest:

PyObject* PyBool_FromLong(long v)


That's in the source too (dist/src/Objects/boolobject.c,
dist/src/Include/boolobject.h). Want to submit a documentation bug?
--
Michael Hoffman
Sep 2 '05 #2
Michael Hoffman wrote:
Andrew MacKeith wrote:
In the C API Docs, the signature of PyBool from long seems to be incorrect.

int PyBool_FromLong(long v)
Returns Py_True or Py_False depending on the truth value of v. New
in version 2.3.

The description would suggest:

PyObject* PyBool_FromLong(long v)


That's in the source too (dist/src/Objects/boolobject.c,
dist/src/Include/boolobject.h). Want to submit a documentation bug?


Not necessary. I just fixed it.

Reinhold
Sep 3 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ames Andreas (MPA/DF) | last post by:
Hi all, besides PyUnicode_(From)|(As)WideChar I haven't found specific support for wchar_t in the python api. Is there a default codec that produces wchar_t* (in a platform-neutral way) or...
0
by: siddharthram | last post by:
Hello, I'd appreciate some help figuring out what I might be doing wrong. I am trying to extend Python to add some modules. However, when the code appended below runs, the conversion always...
2
by: goetzie | last post by:
I am using Python 2.4.1 and Numeric 23.8 and running on Windows XP. I am passing a Numeric array of strings (objects) to a C Extension module using the following python code: import Numeric...
2
by: hannibal.holm | last post by:
Hi, I have a few problems with the C-API. I am trying to embed Python in a simulator that I am writing (I am replacing my previous Guile-based scripting system (mostly as pyrex is a lot nicer...
7
by: Samuel | last post by:
Hi, I am looking for some recommendations for client/server technologies and for the communication involved. I am currently planning to port a Perl application that has grown out of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.