API : constness ?

Discussion in 'Python' started by =?iso-8859-1?q?Beno=EEt_Dejean?=, May 30, 2004.

  1. i don't understand why the ANSI const keyword is never used in the API. eg

    PyArg_ParseTuple( PyObject *args, char *format, ...)

    should be

    PyArg_ParseTuple( PyObject *args, const char *format, ...)

    or

    PyArg_ParseTuple( const PyObject *args, const char *format, ...)


    so i spend my time casting my format argument ...
    =?iso-8859-1?q?Beno=EEt_Dejean?=, May 30, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Martin Magnusson

    Casting away constness

    Martin Magnusson, Nov 17, 2003, in forum: C++
    Replies:
    1
    Views:
    383
    tom_usenet
    Nov 17, 2003
  2. Richard Hayden
    Replies:
    1
    Views:
    742
    Rob Williscroft
    Nov 23, 2003
  3. Tim Peters

    RE: API : constness ?

    Tim Peters, May 30, 2004, in forum: Python
    Replies:
    12
    Views:
    585
    Isaac To
    Jun 2, 2004
  4. Delaney, Timothy C (Timothy)

    RE: API : constness ?

    Delaney, Timothy C (Timothy), May 31, 2004, in forum: Python
    Replies:
    5
    Views:
    285
    Andrea Griffini
    Jun 12, 2004
  5. Replies:
    14
    Views:
    826
    Ian Collins
    Apr 4, 2006
Loading...

Share This Page