No subject
Thu Apr 29 17:22:33 UTC 2010
right, and there's no need to introduce a new, confusing spelling for these
APIs. For the record, the following aliases are already defined in Python 2.6
and upper:
$ grep PyBytes Include/*
Include/bytes_methods.h: * The internal implementation behind PyString (bytes)
and PyBytes (buffer)
Include/bytesobject.h:#define PyBytesObject PyStringObject
Include/bytesobject.h:#define PyBytes_Type PyString_Type
Include/bytesobject.h:#define PyBytes_Check PyString_Check
[etc.]
(this is from an SVN checkout of the Python 2.6 tree)
Unrelated, but C++-style comments will break with some C compilers:
+#else // Python version < 3.0
+
[snip]
+
+#endif // PY_MAJOR_VERSION
+
+#endif // _HG_UTIL_H_
Regards
Antoine.
More information about the Mercurial-devel
mailing list