Nikolay Kim
fdd9ac7ae9
various improvements
2017-06-11 18:30:56 -07:00
Nikolay Kim
805429e0f4
remove unneeded macro
2017-06-11 16:49:25 -07:00
Nikolay Kim
05d4a0a9a4
rename ffi to ffi3
2017-06-11 16:47:27 -07:00
Nikolay Kim
3b4d147219
initial impl for py2
2017-06-11 16:35:24 -07:00
messense
cb68cd23a2
Fix some clippy warnings ( #26 )
2017-06-11 23:46:23 +08:00
Nikolay Kim
c28a619efd
add free list support
2017-06-09 14:27:37 -07:00
messense
e12e98a7c1
Convert some std error types to PyErr ( #22 )
...
* Convert some std error types to PyErr
* Add ToPyErr trait
2017-06-08 09:40:30 +08:00
Nikolay Kim
a584ce12e5
release py objects aftre use
2017-06-06 19:26:59 -07:00
Nikolay Kim
84f5578997
varios cleanups
2017-06-05 20:25:00 -07:00
Nikolay Kim
a448aa54cc
clone_ref return Self
2017-06-03 17:42:12 -07:00
Nikolay Kim
57cc139c81
drop Py pointer
2017-06-03 17:27:26 -07:00
Nikolay Kim
b75160daf3
remove pyobject lifetime
2017-06-02 18:58:16 -07:00
Nikolay Kim
27bd365f5c
cleanups
2017-06-02 09:23:48 -07:00
Nikolay Kim
cbfdfa2d07
better naming
2017-06-01 15:06:48 -07:00
Nikolay Kim
fc762288fe
use From instead of as_object; fix type object
2017-06-01 13:34:46 -07:00
Nikolay Kim
9176dc4df1
consistent naming for pointers
2017-06-01 10:35:02 -07:00
Nikolay Kim
6834a18a5b
add ptr support to class
2017-05-31 20:50:40 -07:00
Nikolay Kim
2f3ea202b3
add mirror ptr types for native py classes
2017-05-31 15:52:13 -07:00
Nikolay Kim
92bf7b9c05
rename pptr to PyObjectPtr
2017-05-31 01:08:39 -07:00
Nikolay Kim
5d25c7deea
simplify Py and PyPtr objects
2017-05-30 18:57:36 -07:00
Nikolay Kim
3040ac12b9
refactor ToPyObject
2017-05-30 17:23:23 -07:00
Nikolay Kim
b8913a3705
refactor IntoPyObject trait; rename pptr into pyptr, introduce pptr pointers
2017-05-30 16:29:13 -07:00
Nikolay Kim
61b8bd0695
fix ptr borrowing PyTuple::get_item
2017-05-29 18:36:44 -07:00
Nikolay Kim
51ac8c9c78
better gil token scope
2017-05-29 13:30:38 -07:00
Nikolay Kim
ea8ccf190a
special treatment for native python objects
2017-05-29 02:47:27 -07:00
Nikolay Kim
55d0d58734
added pptr pointer
2017-05-28 21:19:29 -07:00
Nikolay Kim
969cba2c16
remove Token
2017-05-28 08:57:34 -07:00
Nikolay Kim
6c87c9b77b
introduce python token system
2017-05-27 22:45:48 -07:00
Nikolay Kim
6205be98b8
introduce PythonToken; cleanup number protocol
2017-05-27 10:49:38 -07:00
Nikolay Kim
d165dbe4d4
fixed gil lifetime; pass py object into protocol methods
2017-05-26 14:43:28 -07:00
Nikolay Kim
0979653b98
various cleanups
2017-05-25 08:06:10 -07:00
Nikolay Kim
f3176dacfc
use pyptr for everything
2017-05-25 08:06:06 -07:00
Nikolay Kim
d6fb90bdc2
stopping point
2017-05-25 07:58:25 -07:00
Nikolay Kim
56d93249ab
pyptr
2017-05-25 07:58:25 -07:00
Nikolay Kim
1f2c927bd5
update buffer proto tests
2017-05-19 23:18:54 -07:00
Nikolay Kim
0c7293125c
simplify class generation
2017-05-18 23:29:09 -07:00
Nikolay Kim
8b3c280450
fix optional arg generation
2017-05-18 11:15:06 -07:00
Nikolay Kim
04168ab86e
added fn spec for args parsing
2017-05-18 00:05:49 -07:00
Nikolay Kim
c9aefd7e5f
drop py_class
2017-05-16 23:43:39 -07:00
Nikolay Kim
34e4d956f1
basic object customization interface
2017-05-16 16:54:27 -07:00
Nikolay Kim
521a91fbc2
remove unused imports
2017-05-16 14:18:31 -07:00
Nikolay Kim
5427a33c75
stopping point
2017-05-15 22:24:06 -07:00
Nikolay Kim
f4feade487
add PyAsyncProtocol
2017-05-14 18:55:04 -07:00
Nikolay Kim
088d44f8d1
simplify ToPyObject trait
2017-05-14 14:42:56 -07:00
Nikolay Kim
3e20979f3f
implement buffer protocol with proc macro
2017-05-14 12:52:30 -07:00
Nikolay Kim
03a3817878
update readme and travis
2017-05-12 23:01:54 -07:00
Nikolay Kim
a95de027c1
update tests
2017-05-12 22:43:17 -07:00
Nikolay Kim
8a295793a0
include py3 ffi info into crate
2017-05-12 22:05:00 -07:00
Luthaf
d615c319f6
Implement optional parameters for reference types
2017-01-26 21:35:16 +01:00
Daniel Grunwald
3152ef22f0
Expand on the buffer protocol.
...
When compiling with --feature nightly, we now use specialization to optimize extract::<Vec<PrimititeType>>() from an object implementing the buffer protocol.
2017-01-20 23:14:29 +01:00