Stefan Behnel [Fri, 8 Mar 2013 20:49:01 +0000 (21:49 +0100)]
fix special case in for-from loop with object loop variable by adding yet another hack to the existing hack
Stefan Behnel [Fri, 8 Mar 2013 20:16:00 +0000 (21:16 +0100)]
remove comment
Stefan Behnel [Fri, 8 Mar 2013 19:46:20 +0000 (20:46 +0100)]
remove unused utility code annotation
Stefan Behnel [Fri, 8 Mar 2013 14:25:10 +0000 (15:25 +0100)]
add another failing test for iterable lookup in generators
Stefan Behnel [Fri, 8 Mar 2013 10:35:10 +0000 (11:35 +0100)]
changelog
Stefan Behnel [Fri, 8 Mar 2013 08:38:10 +0000 (09:38 +0100)]
cdef some imported names in the parser
Stefan Behnel [Fri, 8 Mar 2013 07:07:36 +0000 (08:07 +0100)]
use new PyDict_SetDefault() C-API function in Py3.4
Stefan Behnel [Thu, 7 Mar 2013 22:20:53 +0000 (23:20 +0100)]
use freelists for closure classes
Stefan Behnel [Thu, 7 Mar 2013 21:40:32 +0000 (22:40 +0100)]
use direct call to tp_new() slot function in closure creation
Stefan Behnel [Thu, 7 Mar 2013 21:00:01 +0000 (22:00 +0100)]
speed up lookup of Python object attributes a little
Stefan Behnel [Thu, 7 Mar 2013 20:08:00 +0000 (21:08 +0100)]
revert last two commits - does not work for negative indices
Stefan Behnel [Thu, 7 Mar 2013 19:56:56 +0000 (20:56 +0100)]
use more direct C-API call for slice assignments on lists
Stefan Behnel [Thu, 7 Mar 2013 19:39:15 +0000 (20:39 +0100)]
speed up slicing of lists and tuples
scoder [Thu, 7 Mar 2013 08:16:36 +0000 (00:16 -0800)]
Merge pull request #193 from nnemkin/pyunicode_string_fix
Compatibility fix for Py_UNICODE* support.
Nikita Nemkin [Thu, 7 Mar 2013 07:37:12 +0000 (13:37 +0600)]
Pass-through single surrogates in Py_UNICODE[] literal encoding routine.
Stefan Behnel [Thu, 7 Mar 2013 07:18:27 +0000 (08:18 +0100)]
fix name lookup in class scope
Stefan Behnel [Wed, 6 Mar 2013 23:30:37 +0000 (00:30 +0100)]
factor out builtin access code
Stefan Behnel [Wed, 6 Mar 2013 23:17:37 +0000 (00:17 +0100)]
speed up access to module globals
Robert Bradshaw [Wed, 6 Mar 2013 22:32:39 +0000 (14:32 -0800)]
Merge pull request #192 from alexis-mignon/master
Adding +/- operators for c++ vector iterators
Stefan Behnel [Wed, 6 Mar 2013 22:14:30 +0000 (23:14 +0100)]
compare test result with CPython
--HG--
rename : tests/run/ref2global.pyx => tests/run/ref2global.py
Stefan Behnel [Wed, 6 Mar 2013 22:00:07 +0000 (23:00 +0100)]
fix test
Stefan Behnel [Wed, 6 Mar 2013 18:34:25 +0000 (19:34 +0100)]
fix exception message
Nikita Nemkin [Wed, 6 Mar 2013 18:05:32 +0000 (00:05 +0600)]
Compatibility fix: no UTF-32 codec in Python 2.4/2.5.
Alexis Mignon [Wed, 6 Mar 2013 14:48:06 +0000 (15:48 +0100)]
Adding +/- operators for iterators
Robert Bradshaw [Wed, 6 Mar 2013 09:31:59 +0000 (01:31 -0800)]
Merge branch 'master' of github.com:cython/cython
Robert Bradshaw [Wed, 6 Mar 2013 09:31:16 +0000 (01:31 -0800)]
Document drawbacks of excessive typing.
scoder [Tue, 5 Mar 2013 18:11:36 +0000 (10:11 -0800)]
Merge pull request #191 from nnemkin/py_unicode_strings
Py_UNICODE* string support
Nikita Nemkin [Tue, 5 Mar 2013 16:44:28 +0000 (22:44 +0600)]
More pyunicode_ptr renames.
Nikita Nemkin [Tue, 5 Mar 2013 12:33:34 +0000 (18:33 +0600)]
Documentation for Py_UNICODE* string support.
Nikita Nemkin [Tue, 5 Mar 2013 12:25:22 +0000 (18:25 +0600)]
Renamed Py_UNICODE* entities to use "pyunicode_ptr" prefix; fixed small issues in Py_UNICODE* support.
scoder [Mon, 4 Mar 2013 18:05:08 +0000 (10:05 -0800)]
Merge pull request #188 from pv/pyxbuild-fixes
pyximport: fix a bug crashing other processes
scoder [Mon, 4 Mar 2013 18:03:45 +0000 (10:03 -0800)]
Merge pull request #189 from intellimath/master
Add datetime.pxd to cython.cpython
Stefan Behnel [Mon, 4 Mar 2013 06:30:30 +0000 (07:30 +0100)]
minor code cleanup
Stefan Behnel [Mon, 4 Mar 2013 06:07:32 +0000 (07:07 +0100)]
provide better error message for unknown globals (copied from CPython)
--HG--
rename : tests/broken/ref2global.pyx => tests/run/ref2global.pyx
Stefan Behnel [Mon, 4 Mar 2013 06:06:21 +0000 (07:06 +0100)]
remove redundant utility code from ExprNodes.py
Stefan Behnel [Sun, 3 Mar 2013 20:27:22 +0000 (21:27 +0100)]
fix reversed order of operands in constant calculation for 'in' and 'not in' operator
Nikita Nemkin [Sun, 3 Mar 2013 16:08:16 +0000 (22:08 +0600)]
Fixed a silly typo.
Zaur Shibzukhov [Sun, 3 Mar 2013 13:45:43 +0000 (16:45 +0300)]
Fix missing `void`
Zaur Shibzukhov [Sun, 3 Mar 2013 13:44:03 +0000 (16:44 +0300)]
Change test to initialize by `import_datetime`
Zaur Shibzukhov [Sun, 3 Mar 2013 13:42:32 +0000 (16:42 +0300)]
Change test to initialize by `import_datetime`
Zaur Shibzukhov [Sun, 3 Mar 2013 13:40:47 +0000 (16:40 +0300)]
Change test to initialize by `import_datetime`
Nikita Nemkin [Sun, 3 Mar 2013 13:38:15 +0000 (19:38 +0600)]
Full support for Py_UNICODE[] literals with non-BMP characters.
Zaur Shibzukhov [Sun, 3 Mar 2013 13:38:11 +0000 (16:38 +0300)]
Add function `import_datetime`
Add inline function `import_datetime` for initialization of PyDateTime C API.
Nikita Nemkin [Fri, 1 Mar 2013 19:57:52 +0000 (01:57 +0600)]
Fixed explicit coercion of ctypedef'ed C types.
Robert Bradshaw [Sun, 3 Mar 2013 07:35:45 +0000 (23:35 -0800)]
Warn on C++ exception declarations for non-extern functions.
This will be made an error.
Robert Bradshaw [Sun, 3 Mar 2013 07:34:25 +0000 (23:34 -0800)]
MSVC fixes.
Nikita Nemkin [Sun, 3 Mar 2013 06:23:17 +0000 (12:23 +0600)]
Tests for Py_UNICODE* string support.
Nikita Nemkin [Sun, 3 Mar 2013 06:01:06 +0000 (12:01 +0600)]
Basic support for Py_UNICODE* strings.
Robert Bradshaw [Sat, 2 Mar 2013 23:39:28 +0000 (15:39 -0800)]
Revert "Disallow C++ exception declarations for non-extern functions."
This reverts commit
496c0fd91bdaab3de3df7d084db95d5c90101104.
Stefan Behnel [Sat, 2 Mar 2013 21:11:50 +0000 (22:11 +0100)]
correct name for basestring in Py3 to 'str' (not 'unicode')
Stefan Behnel [Sat, 2 Mar 2013 20:53:59 +0000 (21:53 +0100)]
fix C compiler warnings about unused parameters
Stefan Behnel [Sat, 2 Mar 2013 18:45:35 +0000 (19:45 +0100)]
optimise isinstance(obj, basestring) and map basestring to unicode in Py3
Stefan Behnel [Sat, 2 Mar 2013 13:59:34 +0000 (14:59 +0100)]
minor code cleanup
Stefan Behnel [Sat, 2 Mar 2013 10:30:03 +0000 (11:30 +0100)]
use constant flags to move wraparound/boundscheck evaluation into inlined Get/Set/DelItemInt() utility functions
Robert Bradshaw [Fri, 1 Mar 2013 20:59:11 +0000 (12:59 -0800)]
Disallow C++ exception declarations for non-extern functions.
Stefan Behnel [Fri, 1 Mar 2013 12:22:42 +0000 (13:22 +0100)]
reduce freelist sizes below the number of created objects
Stefan Behnel [Fri, 1 Mar 2013 12:21:52 +0000 (13:21 +0100)]
add freelist test for exttype with vtable
zaur [Thu, 28 Feb 2013 08:23:16 +0000 (11:23 +0300)]
Add missing files
zaur [Thu, 28 Feb 2013 08:22:09 +0000 (11:22 +0300)]
Add test for date/time/datetime/timedelta members
Robert Bradshaw [Wed, 27 Feb 2013 20:44:44 +0000 (12:44 -0800)]
Remove no-gil cdivision error test.
zaur [Wed, 27 Feb 2013 11:19:24 +0000 (14:19 +0300)]
Fix inline getters for timedelta
zaur [Wed, 27 Feb 2013 09:54:48 +0000 (12:54 +0300)]
Add new line at the end of file
zaur [Wed, 27 Feb 2013 09:46:26 +0000 (12:46 +0300)]
Add datetime.pxd to cython.cpython. Part II
Robert Bradshaw [Wed, 27 Feb 2013 08:42:02 +0000 (00:42 -0800)]
Don't require the GIL for cdivision(False).
Stefan Behnel [Wed, 27 Feb 2013 07:49:32 +0000 (08:49 +0100)]
properly integrate pyximport into setup.py
--HG--
extra : rebase_source :
d0e52d3a06b2734287cc30fe9ef9ebd0a641b05a
Stefan Behnel [Wed, 27 Feb 2013 07:47:33 +0000 (08:47 +0100)]
delete unused file
--HG--
extra : rebase_source :
3998c84c9c2a646d9588103205666d37731c41a7
Stefan Behnel [Mon, 25 Feb 2013 18:16:21 +0000 (19:16 +0100)]
use a couple of branch prediction macros in tp_new() function, just in case
--HG--
extra : rebase_source :
32ab400fc7cf381d2267ae01b3ada7065d706ed2
Stefan Behnel [Mon, 25 Feb 2013 17:53:23 +0000 (18:53 +0100)]
initialise all fields to 0 when using object structs from the freelist
--HG--
extra : rebase_source :
346e99306b247c116d988b58802ed7e7eb62754c
Robert Bradshaw [Tue, 26 Feb 2013 23:56:14 +0000 (15:56 -0800)]
enum switch test
Robert Bradshaw [Tue, 26 Feb 2013 23:52:01 +0000 (15:52 -0800)]
Allow enums in switch statement optimization.
Robert Bradshaw [Tue, 26 Feb 2013 10:12:55 +0000 (02:12 -0800)]
Merge remote-tracking branch 'main/master'
Conflicts:
Cython/Compiler/Options.py
Robert Bradshaw [Tue, 26 Feb 2013 10:09:30 +0000 (02:09 -0800)]
Docs for c_string_type and c_string_encoding
.# Please enter the commit message for your changes. Lines starting
Robert Bradshaw [Tue, 26 Feb 2013 09:54:11 +0000 (01:54 -0800)]
multiple-choice directive type
Robert Bradshaw [Tue, 26 Feb 2013 09:47:20 +0000 (01:47 -0800)]
support 'default' encoding
Robert Bradshaw [Tue, 26 Feb 2013 09:00:50 +0000 (01:00 -0800)]
Cleanup default encoding.
Stefan Behnel [Sun, 24 Feb 2013 17:54:02 +0000 (18:54 +0100)]
extend test case
Stefan Behnel [Sun, 24 Feb 2013 17:38:01 +0000 (18:38 +0100)]
describe ways for fast exttype instantiation in docs
Stefan Behnel [Sun, 24 Feb 2013 16:53:34 +0000 (17:53 +0100)]
changelog
Stefan Behnel [Sun, 24 Feb 2013 16:35:43 +0000 (17:35 +0100)]
extend freelist support to all subtypes that have the same object struct size
Stefan Behnel [Sun, 24 Feb 2013 16:31:38 +0000 (17:31 +0100)]
clarify error message
Pauli Virtanen [Sun, 24 Feb 2013 13:34:33 +0000 (15:34 +0200)]
pyximport: fix a bug crashing other processes
pyxbuild overwrites .so file contents, corrupting any mmapped code image
loaded. If pyximporting the same module from two different processes, on
Linux this leads to crashes with bus error.
This commit fixes the issue by unlinking the file first. On Linux et
al., this does not change the file contents of any open FDs. On
Windows, unlinking fails, and we just switch to using a different file
name.
Stefan Behnel [Sun, 24 Feb 2013 12:41:53 +0000 (13:41 +0100)]
inline freelist call to PyObject_Init()
Stefan Behnel [Sun, 24 Feb 2013 12:25:26 +0000 (13:25 +0100)]
warn about ignored freelist() decorator on subtypes
Stefan Behnel [Sun, 24 Feb 2013 11:14:09 +0000 (12:14 +0100)]
test and fix tp_new() calling of cimported types
Stefan Behnel [Sun, 24 Feb 2013 11:01:32 +0000 (12:01 +0100)]
slightly improve test
Stefan Behnel [Sat, 23 Feb 2013 22:10:03 +0000 (23:10 +0100)]
try a potentially safer way to find out if we know the tp_new slot function of a type
Stefan Behnel [Sat, 23 Feb 2013 21:51:42 +0000 (22:51 +0100)]
make sure we always have a set of directives on CClassScope instances
Stefan Behnel [Sat, 23 Feb 2013 21:51:10 +0000 (22:51 +0100)]
prevent external base types from generating cleanup code for freelist
Stefan Behnel [Sat, 23 Feb 2013 21:32:38 +0000 (22:32 +0100)]
implement freelist support for extension types with a @cython.freelist(N) decorator
Stefan Behnel [Sat, 23 Feb 2013 21:19:27 +0000 (22:19 +0100)]
minor cleanup
Stefan Behnel [Sat, 23 Feb 2013 20:40:56 +0000 (21:40 +0100)]
simplify code for directly calling module internal tp_new() slot function
Stefan Behnel [Sat, 23 Feb 2013 20:36:48 +0000 (21:36 +0100)]
minor cleanup
Stefan Behnel [Sat, 23 Feb 2013 20:14:42 +0000 (21:14 +0100)]
changelog
Stefan Behnel [Sat, 23 Feb 2013 17:20:53 +0000 (18:20 +0100)]
optimise tp_new() for module-internally defined types by calling the tp_new slot function directly
Stefan Behnel [Sat, 23 Feb 2013 16:23:59 +0000 (17:23 +0100)]
implement tp_new() optimisation with args/kwargs
Stefan Behnel [Sat, 23 Feb 2013 16:20:12 +0000 (17:20 +0100)]
make call signature of method dispatch usable for both simple and general call nodes
Stefan Behnel [Sat, 23 Feb 2013 15:47:55 +0000 (16:47 +0100)]
move tp_new() utility code into ObjectHandling.c
Stefan Behnel [Sat, 23 Feb 2013 15:44:16 +0000 (16:44 +0100)]
move string related utility functions from Optimize.c and Optimize.py to StringTools.c
Stefan Behnel [Sat, 23 Feb 2013 15:25:33 +0000 (16:25 +0100)]
only include CythonFunction utility code if it's really used, might be unused if .pxd overrides all def functions to cdef
Stefan Behnel [Sat, 23 Feb 2013 13:54:41 +0000 (14:54 +0100)]
refactor constant string slicing and guard it against platform specific unicode string length