-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed float-printing in numpy: Added support for compare and richcomp…
…are in PyCPeer. Added support for PySeqIter and iter-methods in PyCPeer.
- Loading branch information
Showing
20 changed files
with
1,073 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* This File is based on iterobject.h from CPython 2.7.11 release. | ||
* It has been modified to suit JyNI needs. | ||
* | ||
* | ||
* Copyright of JyNI: | ||
* Copyright (c) 2013, 2014, 2015, 2016 Stefan Richthofer. | ||
* All rights reserved. | ||
* | ||
* | ||
* Copyright of Python and Jython: | ||
* Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, | ||
* 2010, 2011, 2012, 2013, 2014, 2015, 2016 Python Software Foundation. | ||
* All rights reserved. | ||
* | ||
* | ||
* This file is part of JyNI. | ||
* | ||
* JyNI is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as | ||
* published by the Free Software Foundation, either version 3 of | ||
* the License, or (at your option) any later version. | ||
* | ||
* JyNI is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with JyNI. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
|
||
#ifndef Py_ITEROBJECT_H | ||
#define Py_ITEROBJECT_H | ||
/* Iterators (the basic kind, over a sequence) */ | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
PyAPI_DATA(PyTypeObject) PySeqIter_Type; | ||
|
||
#define PySeqIter_Check(op) (Py_TYPE(op) == &PySeqIter_Type) | ||
|
||
PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *); | ||
|
||
PyAPI_DATA(PyTypeObject) PyCallIter_Type; | ||
|
||
#define PyCallIter_Check(op) (Py_TYPE(op) == &PyCallIter_Type) | ||
|
||
PyAPI_FUNC(PyObject *) PyCallIter_New(PyObject *, PyObject *); | ||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif /* !Py_ITEROBJECT_H */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.