Staging
v0.5.1
https://github.com/python/cpython
Revision 70cea58c84165460683b12e60331b4a90550e313 authored by Neal Norwitz on 28 March 2008, 06:34:03 UTC, committed by Neal Norwitz on 28 March 2008, 06:34:03 UTC
reliable, but I'm not convinced it is the right solution.  We need
to determine if this causes the test to hang on any platforms or do
other bad things.

Even if it gets the test to pass reliably, it might be that we want
to fix this in socket.  The socket returned from accept() is different
on different platforms (inheriting attributes or not) and we might
want to ensure that the attributes (at least blocking) is the same
across all platforms.
1 parent 9fdfaaf
Raw File
Tip revision: 70cea58c84165460683b12e60331b4a90550e313 authored by Neal Norwitz on 28 March 2008, 06:34:03 UTC
Bug 1503: Get the test to pass on OSX. This should make the test more
Tip revision: 70cea58
rangeobject.h

/* Range object interface */

#ifndef Py_RANGEOBJECT_H
#define Py_RANGEOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

/* This is about the type 'xrange', not the built-in function range(), which
   returns regular lists. */

/*
A range object represents an integer range.  This is an immutable object;
a range cannot change its value after creation.

Range objects behave like the corresponding tuple objects except that
they are represented by a start, stop, and step datamembers.
*/

PyAPI_DATA(PyTypeObject) PyRange_Type;

#define PyRange_Check(op) (Py_TYPE(op) == &PyRange_Type)

#ifdef __cplusplus
}
#endif
#endif /* !Py_RANGEOBJECT_H */
back to top