[Python-Dev] PyRange_New() alternative?
Ralf W. Grosse-Kunstleve
rwgk at yahoo.com
Sat Jun 24 10:22:11 CEST 2006
--- "Martin v. Löwis" <martin at v.loewis.de> wrote:
> Scott David Daniels wrote:
> > I am not sure about your compiler, but if I remember the standard
> > correctly, the following code shouldn't complain:
> >
> > PyObject_CallFunction((PyObject*) (void *) &PyRange_Type,
> > "lll", start, start+len*step, step)
>
> You remember the standard incorrectly.
There are three standards to consider: C89/90, C99, C++97/98. Here you can find
the opinion of one of the authors of the C++ standard in this matter:
http://mail.python.org/pipermail/c++-sig/2005-December/009869.html
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Python-Dev
mailing list