PyBool_FromLong

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew MacKeith

    #1

    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)

  • Michael Hoffman

    #2
    Re: PyBool_FromLong

    Andrew MacKeith wrote:[color=blue]
    > 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)[/color]

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

    Comment

    • Reinhold Birkenfeld

      #3
      Re: PyBool_FromLong

      Michael Hoffman wrote:[color=blue]
      > Andrew MacKeith wrote:[color=green]
      >> 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)[/color]
      >
      > That's in the source too (dist/src/Objects/boolobject.c,
      > dist/src/Include/boolobject.h). Want to submit a documentation bug?[/color]

      Not necessary. I just fixed it.

      Reinhold

      Comment

      Working...