| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
208 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,7 @@ | |||
| 1 | + John Hunter <jdh2358@gmail.com> jdh2358 <jdh2358@gmail.com> | ||
| 2 | + Michael Droettboom <mdboom@gmail.com> Michael Droettboom <mdroe@stsci.edu> | ||
| 3 | + Jouni K. Seppänen <jks@iki.fi> Jouni K. Seppänen <jks@iki.fi> | ||
| 4 | + Ben Root <ben.v.root@gmail.com> Benjamin Root <ben.v.root@gmail.com> | ||
| 5 | + Michiel de Hoon <mjldehoon@yahoo.com> Michiel de Hoon <mdehoon@michiel-de-hoons-computer.local> | ||
| 6 | + Kevin Davies <kdavies4@gmail.com> Kevin Davies <daviesk24@yahoo.com> | ||
| 7 | + Christoph Gohlke <cgohlke@uci.edu> cgohlke <cgohlke@uci.edu> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,7 @@ | |||
| 1 | + 2011-10-25 added support for \operatorname to mathtext, | ||
| 2 | + including the ability to insert spaces, such as | ||
| 3 | + $\operatorname{arg\,max}$ - PI | ||
| 4 | + | ||
| 1 | 5 | 2011-08-18 Change api of Axes.get_tightbbox and add an optional | |
| 2 | 6 | keyword parameter *call_axes_locator*. - JJL | |
| 3 | 7 | ||
@@ -29,6 +33,14 @@ | |||
| 29 | 33 | Significant revisions to the documentation as well. | |
| 30 | 34 | - BVR | |
| 31 | 35 | ||
| 36 | + 2011-07-07 Added compatibility with IPython strategy for picking | ||
| 37 | + a version of Qt4 support, and an rcParam for making | ||
| 38 | + the choice explicitly: backend.qt4. - EF | ||
| 39 | + | ||
| 40 | + 2011-07-07 Modified AutoMinorLocator to improve automatic choice of | ||
| 41 | + the number of minor intervals per major interval, and | ||
| 42 | + to allow one to specify this number via a kwarg. - EF | ||
| 43 | + | ||
| 32 | 44 | 2011-06-28 3D versions of scatter, plot, plot_wireframe, plot_surface, | |
| 33 | 45 | bar3d, and some other functions now support empty inputs. - BVR | |
| 34 | 46 | ||
@@ -39,10 +51,16 @@ | |||
| 39 | 51 | 2011-06-22 Add axes.labelweight parameter to set font weight to axis | |
| 40 | 52 | labels - MGD. | |
| 41 | 53 | ||
| 54 | + 2011-06-20 Add pause function to pyplot. - EF | ||
| 55 | + | ||
| 42 | 56 | 2011-06-16 Added *bottom* keyword parameter for the stem command. | |
| 43 | 57 | Also, implemented a legend handler for the stem plot. | |
| 44 | 58 | - JJL | |
| 45 | 59 | ||
| 60 | + 2011-06-16 Added legend.frameon rcParams. - Mike Kaufman | ||
| 61 | + | ||
| 62 | + 2011-05-31 Made backend_qt4 compatible with PySide . - Gerald Storer | ||
| 63 | + | ||
| 46 | 64 | 2011-04-17 Disable keyboard auto-repeat in qt4 backend by ignoring | |
| 47 | 65 | key events resulting from auto-repeat. This makes | |
| 48 | 66 | constrained zoom/pan work. - EF | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -136,11 +136,19 @@ namespace Py | |||
| 136 | 136 | { | |
| 137 | 137 | MethodDefExt<T> *method_def = (*i).second; | |
| 138 | 138 | ||
| 139 | - static PyObject *self = PyCObject_FromVoidPtr( this, do_not_dealloc ); | ||
| 139 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 140 | + static PyObject *self = PyCObject_FromVoidPtr( this, do_not_dealloc ); | ||
| 141 | + #else | ||
| 142 | + static PyObject *self = PyCapsule_New( this, NULL, NULL ); | ||
| 143 | + #endif | ||
| 140 | 144 | ||
| 141 | 145 | Tuple args( 2 ); | |
| 142 | 146 | args[0] = Object( self ); | |
| 143 | - args[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ) ); | ||
| 147 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 148 | + args[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ) ); | ||
| 149 | + #else | ||
| 150 | + args[1] = Object( PyCapsule_New( method_def, NULL, NULL ) ); | ||
| 151 | + #endif | ||
| 144 | 152 | ||
| 145 | 153 | PyObject *func = PyCFunction_New | |
| 146 | 154 | ( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -178,8 +178,11 @@ namespace Py | |||
| 178 | 178 | Tuple self( 2 ); | |
| 179 | 179 | ||
| 180 | 180 | self[0] = Object( this ); | |
| 181 | - self[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ), true ); | ||
| 182 | - | ||
| 181 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 182 | + self[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ), true ); | ||
| 183 | + #else | ||
| 184 | + self[1] = Object( PyCapsule_New( method_def, NULL, NULL ), true ); | ||
| 185 | + #endif | ||
| 183 | 186 | PyObject *func = PyCFunction_New( &method_def->ext_meth_def, self.ptr() ); | |
| 184 | 187 | ||
| 185 | 188 | return Object(func, true); | |
@@ -235,8 +238,12 @@ namespace Py | |||
| 235 | 238 | ||
| 236 | 239 | PyObject *self_in_cobject = self_and_name_tuple[0].ptr(); | |
| 237 | 240 | T *self = static_cast<T *>( self_in_cobject ); | |
| 238 | - MethodDefExt<T> *meth_def = reinterpret_cast<MethodDefExt<T> *>( | ||
| 239 | - PyCObject_AsVoidPtr( self_and_name_tuple[1].ptr() ) ); | ||
| 241 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 242 | + void *capsule = PyCObject_AsVoidPtr( self_and_name_tuple[1].ptr() ); | ||
| 243 | + #else | ||
| 244 | + void *capsule = PyCapsule_GetPointer( self_and_name_tuple[1].ptr(), NULL ); | ||
| 245 | + #endif | ||
| 246 | + MethodDefExt<T> *meth_def = reinterpret_cast<MethodDefExt<T> *>( capsule ); | ||
| 240 | 247 | Object result; | |
| 241 | 248 | ||
| 242 | 249 | // Adding try & catch in case of STL debug-mode exceptions. | |
@@ -271,8 +278,12 @@ namespace Py | |||
| 271 | 278 | PyObject *self_in_cobject = self_and_name_tuple[0].ptr(); | |
| 272 | 279 | T *self = static_cast<T *>( self_in_cobject ); | |
| 273 | 280 | ||
| 274 | - MethodDefExt<T> *meth_def = reinterpret_cast<MethodDefExt<T> *>( | ||
| 275 | - PyCObject_AsVoidPtr( self_and_name_tuple[1].ptr() ) ); | ||
| 281 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 282 | + void *capsule = PyCObject_AsVoidPtr( self_and_name_tuple[1].ptr() ); | ||
| 283 | + #else | ||
| 284 | + void *capsule = PyCapsule_GetPointer( self_and_name_tuple[1].ptr(), NULL ); | ||
| 285 | + #endif | ||
| 286 | + MethodDefExt<T> *meth_def = reinterpret_cast<MethodDefExt<T> *>( capsule ); | ||
| 276 | 287 | Tuple args( _args ); | |
| 277 | 288 | ||
| 278 | 289 | Object result; | |
@@ -308,8 +319,12 @@ namespace Py | |||
| 308 | 319 | PyObject *self_in_cobject = self_and_name_tuple[0].ptr(); | |
| 309 | 320 | T *self = static_cast<T *>( self_in_cobject ); | |
| 310 | 321 | ||
| 311 | - MethodDefExt<T> *meth_def = reinterpret_cast<MethodDefExt<T> *>( | ||
| 312 | - PyCObject_AsVoidPtr( self_and_name_tuple[1].ptr() ) ); | ||
| 322 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 323 | + void *capsule = PyCObject_AsVoidPtr( self_and_name_tuple[1].ptr() ); | ||
| 324 | + #else | ||
| 325 | + void *capsule = PyCapsule_GetPointer( self_and_name_tuple[1].ptr(), NULL ); | ||
| 326 | + #endif | ||
| 327 | + MethodDefExt<T> *meth_def = reinterpret_cast<MethodDefExt<T> *>( capsule ); | ||
| 313 | 328 | ||
| 314 | 329 | Tuple args( _args ); | |
| 315 | 330 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,7 +42,9 @@ namespace Py | |||
| 42 | 42 | bool _Buffer_Check( PyObject *op ) { return (op)->ob_type == _Buffer_Type(); } | |
| 43 | 43 | bool _CFunction_Check( PyObject *op ) { return (op)->ob_type == _CFunction_Type(); } | |
| 44 | 44 | bool _Class_Check( PyObject *op ) { return (op)->ob_type == _Class_Type(); } | |
| 45 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 45 | 46 | bool _CObject_Check( PyObject *op ) { return (op)->ob_type == _CObject_Type(); } | |
| 47 | + #endif | ||
| 46 | 48 | bool _Complex_Check( PyObject *op ) { return (op)->ob_type == _Complex_Type(); } | |
| 47 | 49 | bool _Dict_Check( PyObject *op ) { return (op)->ob_type == _Dict_Type(); } | |
| 48 | 50 | bool _File_Check( PyObject *op ) { return (op)->ob_type == _File_Type(); } | |
@@ -123,7 +125,9 @@ static PyObject *ptr__PyTrue = NULL; | |||
| 123 | 125 | static PyTypeObject *ptr__Buffer_Type = NULL; | |
| 124 | 126 | static PyTypeObject *ptr__CFunction_Type = NULL; | |
| 125 | 127 | static PyTypeObject *ptr__Class_Type = NULL; | |
| 128 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 126 | 129 | static PyTypeObject *ptr__CObject_Type = NULL; | |
| 130 | + #endif | ||
| 127 | 131 | static PyTypeObject *ptr__Complex_Type = NULL; | |
| 128 | 132 | static PyTypeObject *ptr__Dict_Type = NULL; | |
| 129 | 133 | static PyTypeObject *ptr__File_Type = NULL; | |
@@ -310,7 +314,9 @@ bool InitialisePythonIndirectInterface() | |||
| 310 | 314 | ptr__Buffer_Type = GetPyTypeObject_As_PyTypeObjectPointer( "PyBuffer_Type" ); | |
| 311 | 315 | ptr__CFunction_Type = GetPyTypeObject_As_PyTypeObjectPointer( "PyCFunction_Type" ); | |
| 312 | 316 | ptr__Class_Type = GetPyTypeObject_As_PyTypeObjectPointer( "PyClass_Type" ); | |
| 317 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 313 | 318 | ptr__CObject_Type = GetPyTypeObject_As_PyTypeObjectPointer( "PyCObject_Type" ); | |
| 319 | + #endif | ||
| 314 | 320 | ptr__Complex_Type = GetPyTypeObject_As_PyTypeObjectPointer( "PyComplex_Type" ); | |
| 315 | 321 | ptr__Dict_Type = GetPyTypeObject_As_PyTypeObjectPointer( "PyDict_Type" ); | |
| 316 | 322 | ptr__File_Type = GetPyTypeObject_As_PyTypeObjectPointer( "PyFile_Type" ); | |
@@ -398,7 +404,9 @@ PyObject * _True() { return ptr__PyTrue; } | |||
| 398 | 404 | PyTypeObject * _Buffer_Type() { return ptr__Buffer_Type; } | |
| 399 | 405 | PyTypeObject * _CFunction_Type(){ return ptr__CFunction_Type; } | |
| 400 | 406 | PyTypeObject * _Class_Type() { return ptr__Class_Type; } | |
| 407 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 401 | 408 | PyTypeObject * _CObject_Type() { return ptr__CObject_Type; } | |
| 409 | + #endif | ||
| 402 | 410 | PyTypeObject * _Complex_Type() { return ptr__Complex_Type; } | |
| 403 | 411 | PyTypeObject * _Dict_Type() { return ptr__Dict_Type; } | |
| 404 | 412 | PyTypeObject * _File_Type() { return ptr__File_Type; } | |
@@ -542,7 +550,9 @@ PyObject * _True() { return Py_True; } | |||
| 542 | 550 | PyTypeObject * _Buffer_Type() { return &PyBuffer_Type; } | |
| 543 | 551 | PyTypeObject * _CFunction_Type() { return &PyCFunction_Type; } | |
| 544 | 552 | PyTypeObject * _Class_Type() { return &PyClass_Type; } | |
| 553 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 545 | 554 | PyTypeObject * _CObject_Type() { return &PyCObject_Type; } | |
| 555 | + #endif | ||
| 546 | 556 | PyTypeObject * _Complex_Type() { return &PyComplex_Type; } | |
| 547 | 557 | PyTypeObject * _Dict_Type() { return &PyDict_Type; } | |
| 548 | 558 | PyTypeObject * _File_Type() { return &PyFile_Type; } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -113,8 +113,10 @@ bool _Instance_Check( PyObject *op ); | |||
| 113 | 113 | PyTypeObject * _Method_Type(); | |
| 114 | 114 | bool _Method_Check( PyObject *op ); | |
| 115 | 115 | ||
| 116 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 116 | 117 | PyTypeObject * _CObject_Type(); | |
| 117 | 118 | bool _CObject_Check( PyObject *op ); | |
| 119 | + #endif | ||
| 118 | 120 | ||
| 119 | 121 | PyTypeObject * _Complex_Type(); | |
| 120 | 122 | bool _Complex_Check( PyObject *op ); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1719,7 +1719,11 @@ extern "C" PyObject *method_keyword_call_handler( PyObject *_self_and_name_tuple | |||
| 1719 | 1719 | Tuple self_and_name_tuple( _self_and_name_tuple ); | |
| 1720 | 1720 | ||
| 1721 | 1721 | PyObject *self_in_cobject = self_and_name_tuple[0].ptr(); | |
| 1722 | - void *self_as_void = PyCObject_AsVoidPtr( self_in_cobject ); | ||
| 1722 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 1723 | + void *self_as_void = PyCObject_AsVoidPtr( self_in_cobject ); | ||
| 1724 | + #else | ||
| 1725 | + void *self_as_void = PyCapsule_GetPointer( self_in_cobject, NULL ); | ||
| 1726 | + #endif | ||
| 1723 | 1727 | if( self_as_void == NULL ) | |
| 1724 | 1728 | return NULL; | |
| 1725 | 1729 | ||
@@ -1735,7 +1739,11 @@ extern "C" PyObject *method_keyword_call_handler( PyObject *_self_and_name_tuple | |||
| 1735 | 1739 | ( | |
| 1736 | 1740 | self->invoke_method_keyword | |
| 1737 | 1741 | ( | |
| 1738 | - PyCObject_AsVoidPtr( self_and_name_tuple[1].ptr() ), | ||
| 1742 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 1743 | + PyCObject_AsVoidPtr( self_and_name_tuple[1].ptr() ), | ||
| 1744 | + #else | ||
| 1745 | + PyCapsule_GetPointer( self_and_name_tuple[1].ptr(), NULL ), | ||
| 1746 | + #endif | ||
| 1739 | 1747 | args, | |
| 1740 | 1748 | keywords | |
| 1741 | 1749 | ) | |
@@ -1751,7 +1759,11 @@ extern "C" PyObject *method_keyword_call_handler( PyObject *_self_and_name_tuple | |||
| 1751 | 1759 | ( | |
| 1752 | 1760 | self->invoke_method_keyword | |
| 1753 | 1761 | ( | |
| 1754 | - PyCObject_AsVoidPtr( self_and_name_tuple[1].ptr() ), | ||
| 1762 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 1763 | + PyCObject_AsVoidPtr( self_and_name_tuple[1].ptr() ), | ||
| 1764 | + #else | ||
| 1765 | + PyCapsule_GetPointer( self_and_name_tuple[1].ptr(), NULL ), | ||
| 1766 | + #endif | ||
| 1755 | 1767 | args, | |
| 1756 | 1768 | keywords | |
| 1757 | 1769 | ) | |
@@ -1773,7 +1785,11 @@ extern "C" PyObject *method_varargs_call_handler( PyObject *_self_and_name_tuple | |||
| 1773 | 1785 | Tuple self_and_name_tuple( _self_and_name_tuple ); | |
| 1774 | 1786 | ||
| 1775 | 1787 | PyObject *self_in_cobject = self_and_name_tuple[0].ptr(); | |
| 1776 | - void *self_as_void = PyCObject_AsVoidPtr( self_in_cobject ); | ||
| 1788 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 1789 | + void *self_as_void = PyCObject_AsVoidPtr( self_in_cobject ); | ||
| 1790 | + #else | ||
| 1791 | + void *self_as_void = PyCapsule_GetPointer( self_in_cobject, NULL ); | ||
| 1792 | + #endif | ||
| 1777 | 1793 | if( self_as_void == NULL ) | |
| 1778 | 1794 | return NULL; | |
| 1779 | 1795 | ||
@@ -1784,7 +1800,11 @@ extern "C" PyObject *method_varargs_call_handler( PyObject *_self_and_name_tuple | |||
| 1784 | 1800 | ( | |
| 1785 | 1801 | self->invoke_method_varargs | |
| 1786 | 1802 | ( | |
| 1787 | - PyCObject_AsVoidPtr( self_and_name_tuple[1].ptr() ), | ||
| 1803 | + #if PY_VERSION_HEX < 0x02070000 | ||
| 1804 | + PyCObject_AsVoidPtr( self_and_name_tuple[1].ptr() ), | ||
| 1805 | + #else | ||
| 1806 | + PyCapsule_GetPointer( self_and_name_tuple[1].ptr(), NULL ), | ||
| 1807 | + #endif | ||
| 1788 | 1808 | args | |
| 1789 | 1809 | ) | |
| 1790 | 1810 | ); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments