platform/upstream/python-cython.git
11 years agoChange tp_clear generation to clear to NULL.
Torsten Landschoff [Thu, 1 Aug 2013 21:37:30 +0000 (23:37 +0200)]
Change tp_clear generation to clear to NULL.

Better to crash early than to never know that the reference changed to
None. See discussion here:

http://article.gmane.org/gmane.comp.python.cython.devel/14833

11 years agodisable report output in build log
Stefan Behnel [Sat, 27 Jul 2013 18:03:20 +0000 (20:03 +0200)]
disable report output in build log

11 years agoloosen source line constraints in pylintrc
Stefan Behnel [Sat, 27 Jul 2013 18:01:14 +0000 (20:01 +0200)]
loosen source line constraints in pylintrc

11 years agoreformat code
Stefan Behnel [Sat, 27 Jul 2013 17:57:43 +0000 (19:57 +0200)]
reformat code

11 years agoadd prliminary pylint configuration
Stefan Behnel [Sat, 27 Jul 2013 17:21:19 +0000 (19:21 +0200)]
add prliminary pylint configuration

11 years agofix unknown name error
Stefan Behnel [Sat, 27 Jul 2013 16:51:18 +0000 (18:51 +0200)]
fix unknown name error

11 years agofix NormalizeTree transform
Stefan Behnel [Sat, 27 Jul 2013 16:49:39 +0000 (18:49 +0200)]
fix NormalizeTree transform

11 years agofix type declaration in parser
Stefan Behnel [Sat, 27 Jul 2013 15:17:32 +0000 (17:17 +0200)]
fix type declaration in parser

11 years agoproperly handle expressions at the beginning of func/class/etc. blocks that start...
Stefan Behnel [Sat, 27 Jul 2013 13:31:42 +0000 (15:31 +0200)]
properly handle expressions at the beginning of func/class/etc. blocks that start with a string literal but are not docstrings

11 years agochangelog
Stefan Behnel [Sat, 27 Jul 2013 06:05:25 +0000 (08:05 +0200)]
changelog

11 years agochangelog
Stefan Behnel [Sat, 27 Jul 2013 05:55:43 +0000 (07:55 +0200)]
changelog

11 years agoavoid traversing/clearing exttype attributes with simple types during garbage collection
Stefan Behnel [Sat, 27 Jul 2013 05:52:50 +0000 (07:52 +0200)]
avoid traversing/clearing exttype attributes with simple types during garbage collection

11 years agoprevent simple builtin typed exttype attributes from triggering GC support
Stefan Behnel [Sat, 27 Jul 2013 05:27:46 +0000 (07:27 +0200)]
prevent simple builtin typed exttype attributes from triggering GC support

11 years agominor cleanup, use set for efficient name lookup
Stefan Behnel [Sat, 27 Jul 2013 04:50:34 +0000 (06:50 +0200)]
minor cleanup, use set for efficient name lookup

11 years agoadd test tag
Stefan Behnel [Sat, 27 Jul 2013 04:14:44 +0000 (06:14 +0200)]
add test tag

11 years agoalways set __path__ for compiled packages and in Py3.3 actually implement finding...
Stefan Behnel [Fri, 26 Jul 2013 19:26:43 +0000 (21:26 +0200)]
always set __path__ for compiled packages and in Py3.3 actually implement finding the file path at module init time by rerunning the import lookup

11 years agoImplement warn.all (or any_directive.all).
Robert Bradshaw [Fri, 26 Jul 2013 17:54:18 +0000 (10:54 -0700)]
Implement warn.all (or any_directive.all).

11 years agoundo translating Tempita package, apparently doesn't work in Py3.3+
Stefan Behnel [Fri, 26 Jul 2013 10:21:04 +0000 (12:21 +0200)]
undo translating Tempita package, apparently doesn't work in Py3.3+

11 years agofix imports in compiled Tempita for Py3
Stefan Behnel [Fri, 26 Jul 2013 10:00:36 +0000 (12:00 +0200)]
fix imports in compiled Tempita for Py3

11 years agouse absolute imports in Visitor.py
Stefan Behnel [Fri, 26 Jul 2013 09:20:22 +0000 (11:20 +0200)]
use absolute imports in Visitor.py

11 years agomicro optimisation in globals()
Stefan Behnel [Fri, 26 Jul 2013 09:02:07 +0000 (11:02 +0200)]
micro optimisation in globals()

11 years agouse branch hint in getattr3()
Stefan Behnel [Fri, 26 Jul 2013 08:39:37 +0000 (10:39 +0200)]
use branch hint in getattr3()

11 years agomove getattr() utility code from Builtins.c to ObjectHandling.c as it deals with...
Stefan Behnel [Fri, 26 Jul 2013 08:38:49 +0000 (10:38 +0200)]
move getattr() utility code from Builtins.c to ObjectHandling.c as it deals with object protocols and is not a required replacement

11 years agoadd comments to utility files
Stefan Behnel [Fri, 26 Jul 2013 08:14:07 +0000 (10:14 +0200)]
add comments to utility files

11 years agooptimise list.extend()
Stefan Behnel [Fri, 26 Jul 2013 08:05:46 +0000 (10:05 +0200)]
optimise list.extend()

11 years agocompile Tempita
Stefan Behnel [Fri, 26 Jul 2013 06:58:42 +0000 (08:58 +0200)]
compile Tempita

11 years agominor code cleanup in Tempita
Stefan Behnel [Fri, 26 Jul 2013 06:50:24 +0000 (08:50 +0200)]
minor code cleanup in Tempita

11 years agospeed up Tempita's parser a little
Stefan Behnel [Fri, 26 Jul 2013 06:35:45 +0000 (08:35 +0200)]
speed up Tempita's parser a little

11 years agoC-ify some internal globals in Parsing.py, convert in-test tuples to faster sets
Stefan Behnel [Thu, 25 Jul 2013 20:40:09 +0000 (22:40 +0200)]
C-ify some internal globals in Parsing.py, convert in-test tuples to faster sets

11 years agosupport 'object' as type in cython.declare()
Stefan Behnel [Thu, 25 Jul 2013 20:06:40 +0000 (22:06 +0200)]
support 'object' as type in cython.declare()

11 years agomerge branch 0.19.x
Stefan Behnel [Thu, 18 Jul 2013 04:35:32 +0000 (06:35 +0200)]
merge branch 0.19.x

11 years agofix some declarations in numpy.pxd
Stefan Behnel [Thu, 18 Jul 2013 04:35:17 +0000 (06:35 +0200)]
fix some declarations in numpy.pxd

11 years agomerge branch 0.19.x
Stefan Behnel [Thu, 18 Jul 2013 04:11:17 +0000 (06:11 +0200)]
merge branch 0.19.x

11 years agoPy3 fix
Stefan Behnel [Thu, 18 Jul 2013 04:10:57 +0000 (06:10 +0200)]
Py3 fix

11 years agomerge branch 0.19.x
Stefan Behnel [Wed, 17 Jul 2013 19:24:37 +0000 (21:24 +0200)]
merge branch 0.19.x

11 years agosupport parsed directive values also inside of code, not only in the top-level module...
Stefan Behnel [Wed, 17 Jul 2013 19:24:04 +0000 (21:24 +0200)]
support parsed directive values also inside of code, not only in the top-level module comment

11 years agouse faster method call helper function in PyDict method helper functions
Stefan Behnel [Sun, 14 Jul 2013 12:51:10 +0000 (14:51 +0200)]
use faster method call helper function in PyDict method helper functions

11 years agodisable C compiler warning about unused helper function in Py2
Stefan Behnel [Sun, 14 Jul 2013 12:39:29 +0000 (14:39 +0200)]
disable C compiler warning about unused helper function in Py2

11 years agorevert last commit
Stefan Behnel [Sun, 14 Jul 2013 12:37:13 +0000 (14:37 +0200)]
revert last commit

11 years agodisable C compiler warning about unused helper function in Py2
Stefan Behnel [Sun, 14 Jul 2013 12:21:16 +0000 (14:21 +0200)]
disable C compiler warning about unused helper function in Py2

11 years agochangelog
Stefan Behnel [Sun, 14 Jul 2013 11:58:24 +0000 (13:58 +0200)]
changelog

11 years agoMerge branch '0.19.x'
Stefan Behnel [Sun, 14 Jul 2013 11:49:35 +0000 (13:49 +0200)]
Merge branch '0.19.x'

11 years agoMerge branch '0.19.x' of git+ssh://github.com/cython/cython into 0.19.x
Stefan Behnel [Sun, 14 Jul 2013 11:48:51 +0000 (13:48 +0200)]
Merge branch '0.19.x' of git+ssh://github.com/cython/cython into 0.19.x

11 years agoMerge branch 'master' of git+ssh://github.com/cython/cython
Stefan Behnel [Sun, 14 Jul 2013 11:48:00 +0000 (13:48 +0200)]
Merge branch 'master' of git+ssh://github.com/cython/cython

11 years agofake merge branch '0.19.x'
Stefan Behnel [Sun, 14 Jul 2013 11:46:30 +0000 (13:46 +0200)]
fake merge branch '0.19.x'

11 years agowhitespace
Stefan Behnel [Mon, 8 Jul 2013 16:41:33 +0000 (18:41 +0200)]
whitespace

11 years agoremove another reference to the old distutils build (in quickstart!) and clarify...
Stefan Behnel [Mon, 8 Jul 2013 15:57:54 +0000 (17:57 +0200)]
remove another reference to the old distutils build (in quickstart!) and clarify the description of the Sage notebook a bit

11 years agorst fix
Stefan Behnel [Sat, 6 Jul 2013 05:30:27 +0000 (07:30 +0200)]
rst fix

11 years agoupdate userguide to use cythonize() for building
Stefan Behnel [Sat, 6 Jul 2013 05:27:41 +0000 (07:27 +0200)]
update userguide to use cythonize() for building

11 years agofix sphinx markup
Stefan Behnel [Tue, 4 Jun 2013 19:27:38 +0000 (21:27 +0200)]
fix sphinx markup

11 years agoadd hint on when C++ strings are useful
Stefan Behnel [Sun, 2 Jun 2013 13:50:33 +0000 (15:50 +0200)]
add hint on when C++ strings are useful

11 years agoadd explicit section on Cython's Python string types
Stefan Behnel [Sun, 2 Jun 2013 13:48:01 +0000 (15:48 +0200)]
add explicit section on Cython's Python string types

11 years agoEven more clarification on cythonize().
Robert Bradshaw [Sat, 25 May 2013 05:12:44 +0000 (22:12 -0700)]
Even more clarification on cythonize().

11 years agoUpdate compilation instructions.
Wichert Akkerman [Fri, 24 May 2013 22:07:24 +0000 (00:07 +0200)]
Update compilation instructions.

11 years agoDocument cythonize accepts Extension arguments.
Wichert Akkerman [Fri, 24 May 2013 07:24:07 +0000 (09:24 +0200)]
Document cythonize accepts Extension arguments.

11 years agomore visibly mark for-from loop as deprecated in the docs
Stefan Behnel [Fri, 17 May 2013 08:26:48 +0000 (10:26 +0200)]
more visibly mark for-from loop as deprecated in the docs

--HG--
extra : rebase_source : 305a362b2f79e4b7982a188ff5912a6621ea56a7

11 years agoMerge pull request #230 from nnemkin/pxd_errors_fix
scoder [Sun, 14 Jul 2013 11:26:46 +0000 (04:26 -0700)]
Merge pull request #230 from nnemkin/pxd_errors_fix

Do not abort .pxd processing due to previous unrelated errors.

11 years agomerge branch 0.19.x
Stefan Behnel [Sun, 14 Jul 2013 09:39:10 +0000 (11:39 +0200)]
merge branch 0.19.x

11 years agochangelog
Stefan Behnel [Sun, 14 Jul 2013 09:38:48 +0000 (11:38 +0200)]
changelog

11 years agochangelog
Stefan Behnel [Sun, 14 Jul 2013 09:37:50 +0000 (11:37 +0200)]
changelog

11 years agoMerge branch '0.19.x'
Stefan Behnel [Sun, 14 Jul 2013 09:33:08 +0000 (11:33 +0200)]
Merge branch '0.19.x'

11 years agoDissallow bint type for memoryviews.
Robert Bradshaw [Thu, 27 Jun 2013 05:23:07 +0000 (22:23 -0700)]
Dissallow bint type for memoryviews.

11 years agoPerform typecheck for (typechecking) builtin casts.
Robert Bradshaw [Sun, 16 Jun 2013 04:54:23 +0000 (21:54 -0700)]
Perform typecheck for (typechecking) builtin casts.

11 years agoPyArray_FROM_OTF and PyArray_FROM_OT should return type `object`
Robert David Grant [Thu, 13 Jun 2013 18:21:24 +0000 (14:21 -0400)]
PyArray_FROM_OTF and PyArray_FROM_OT should return type `object`

They were declared as returning type `bint`, but this appears to be incorrect.

http://docs.scipy.org/doc/numpy/reference/c-api.array.html#PyArray_FROM_OTF

http://docs.scipy.org/doc/numpy/reference/c-api.array.html#PyArray_FROM_OT

11 years agoFix external reference assignment
Vitja Makarov [Thu, 23 May 2013 15:56:19 +0000 (19:56 +0400)]
Fix external reference assignment

11 years agoAdded tests for some stdio functions.
Josh Ayers [Sun, 26 May 2013 01:06:02 +0000 (18:06 -0700)]
Added tests for some stdio functions.

11 years agoAdded some missing declarations to libc/stdio.pxd.
Josh Ayers [Sat, 25 May 2013 23:18:17 +0000 (16:18 -0700)]
Added some missing declarations to libc/stdio.pxd.

11 years agoFix compatibility with msvc < 1400
Christoph Gohlke [Sat, 11 May 2013 17:51:06 +0000 (10:51 -0700)]
Fix compatibility with msvc < 1400

Visual Studio .NET 2003, used by Python 2.5 32 bit, does not support the '__restrict' keyword.

11 years agoclean up Pyrex comparison doc page
Stefan Behnel [Sun, 14 Jul 2013 08:59:53 +0000 (10:59 +0200)]
clean up Pyrex comparison doc page

11 years agomove Cython tutorial from user guide to tutorial part
Stefan Behnel [Sun, 14 Jul 2013 07:24:59 +0000 (09:24 +0200)]
move Cython tutorial from user guide to tutorial part

--HG--
rename : docs/src/userguide/tutorial.rst => docs/src/tutorial/cython_tutorial.rst

11 years agomerge overview page from user guide into quickstart and delete it
Stefan Behnel [Sun, 14 Jul 2013 07:00:51 +0000 (09:00 +0200)]
merge overview page from user guide into quickstart and delete it

11 years agofix copyright year in docs
Stefan Behnel [Sun, 14 Jul 2013 06:39:54 +0000 (08:39 +0200)]
fix copyright year in docs

11 years agoMerge pull request #242 from gvol/master
Robert Bradshaw [Mon, 8 Jul 2013 19:00:14 +0000 (12:00 -0700)]
Merge pull request #242 from gvol/master

Improvements to cython-mode.el

11 years agomove some build docs from user guide to reference to reduce redundancy
Stefan Behnel [Mon, 8 Jul 2013 16:42:18 +0000 (18:42 +0200)]
move some build docs from user guide to reference to reduce redundancy

11 years agowhitespace
Stefan Behnel [Mon, 8 Jul 2013 16:41:33 +0000 (18:41 +0200)]
whitespace

11 years agoremove another reference to the old distutils build (in quickstart!) and clarify...
Stefan Behnel [Mon, 8 Jul 2013 15:57:54 +0000 (17:57 +0200)]
remove another reference to the old distutils build (in quickstart!) and clarify the description of the Sage notebook a bit

11 years agomerge 0.19.x branch into master
Stefan Behnel [Sat, 6 Jul 2013 19:54:58 +0000 (21:54 +0200)]
merge 0.19.x branch into master

11 years agoyet another Py2.5 fix
Stefan Behnel [Sat, 6 Jul 2013 19:54:46 +0000 (21:54 +0200)]
yet another Py2.5 fix

11 years agomerge 0.19.x branch into master
Stefan Behnel [Sat, 6 Jul 2013 17:00:46 +0000 (19:00 +0200)]
merge 0.19.x branch into master

11 years agoremove unused condition
Stefan Behnel [Sat, 6 Jul 2013 15:52:27 +0000 (17:52 +0200)]
remove unused condition

11 years agowhitespace
Stefan Behnel [Sat, 6 Jul 2013 15:48:44 +0000 (17:48 +0200)]
whitespace

11 years agoanother Py2.5 test fix
Stefan Behnel [Sat, 6 Jul 2013 15:33:48 +0000 (17:33 +0200)]
another Py2.5 test fix

--HG--
extra : transplant_source : %B0%FFOZ%A1%AE%0F%18%A1%D9N%15W%11%5C%60%5E%02%FD%E6

11 years agoanother Py2.5 test fix
Stefan Behnel [Sat, 6 Jul 2013 15:33:48 +0000 (17:33 +0200)]
another Py2.5 test fix

11 years agoavoid repeated substring replacing for PYIDENT() entries in utility code
Stefan Behnel [Sat, 6 Jul 2013 15:27:14 +0000 (17:27 +0200)]
avoid repeated substring replacing for PYIDENT() entries in utility code

11 years agoprevent utility code C-#include externalisation when it contains PYIDENT() place...
Stefan Behnel [Sat, 6 Jul 2013 14:54:01 +0000 (16:54 +0200)]
prevent utility code C-#include externalisation when it contains PYIDENT() place holders

11 years agomerge 0.19.x branch into master
Stefan Behnel [Sat, 6 Jul 2013 14:09:01 +0000 (16:09 +0200)]
merge 0.19.x branch into master

11 years agoPy2.5 test fix
Stefan Behnel [Sat, 6 Jul 2013 14:08:50 +0000 (16:08 +0200)]
Py2.5 test fix

11 years agomerge 0.19.x branch into master
Stefan Behnel [Sat, 6 Jul 2013 11:21:12 +0000 (13:21 +0200)]
merge 0.19.x branch into master

11 years agochangelog
Stefan Behnel [Sat, 6 Jul 2013 11:18:25 +0000 (13:18 +0200)]
changelog

11 years agomerge 0.19.x branch into master
Stefan Behnel [Sat, 6 Jul 2013 11:11:38 +0000 (13:11 +0200)]
merge 0.19.x branch into master

11 years agofix glitch in dict.keys/values/items() optimisation for subtype calls under Python...
Stefan Behnel [Sat, 6 Jul 2013 11:11:17 +0000 (13:11 +0200)]
fix glitch in dict.keys/values/items() optimisation for subtype calls under Python 3: called object method instead of supertype method

11 years agorst fix
Stefan Behnel [Sat, 6 Jul 2013 05:30:27 +0000 (07:30 +0200)]
rst fix

11 years agoupdate userguide to use cythonize() for building
Stefan Behnel [Sat, 6 Jul 2013 05:27:41 +0000 (07:27 +0200)]
update userguide to use cythonize() for building

11 years agomerge 0.19.x branch into master
Stefan Behnel [Fri, 5 Jul 2013 18:22:16 +0000 (20:22 +0200)]
merge 0.19.x branch into master

11 years agofix test
Stefan Behnel [Fri, 5 Jul 2013 18:22:02 +0000 (20:22 +0200)]
fix test

11 years agomerge 0.19.x branch into master
Stefan Behnel [Fri, 5 Jul 2013 18:05:51 +0000 (20:05 +0200)]
merge 0.19.x branch into master

11 years agoenable support for yield in return expressions
Stefan Behnel [Fri, 5 Jul 2013 18:00:49 +0000 (20:00 +0200)]
enable support for yield in return expressions

--HG--
extra : transplant_source : %94%87%D7e%B9%82%EF%926%26o%C0%8E%0DcY%C3%E3n%DB

11 years agoenable support for yield in return expressions
Stefan Behnel [Fri, 5 Jul 2013 18:00:49 +0000 (20:00 +0200)]
enable support for yield in return expressions

--HG--
extra : rebase_source : 562b717b9c1e078b3f83e3febc8addc1a29d85fe

11 years agoAdded cython-current-defun for add-log-current-defun-function
Ivan Andrus [Sun, 30 Jun 2013 00:48:53 +0000 (18:48 -0600)]
Added cython-current-defun for add-log-current-defun-function

11 years agoAdded cython-beginning-of-defun and cython-end-of-defun
Ivan Andrus [Sun, 30 Jun 2013 00:46:43 +0000 (18:46 -0600)]
Added cython-beginning-of-defun and cython-end-of-defun