Commit graph

2926 commits

Author SHA1 Message Date
Nikolay Kim 45361c3fc8 cleanup 2017-05-12 22:25:40 -07:00
Nikolay Kim 8a295793a0 include py3 ffi info into crate 2017-05-12 22:05:00 -07:00
Nikolay Kim 3bb7a64db5 drop python27 2017-05-12 19:59:20 -07:00
Nikolay Kim ef5bd982bc add license 2017-05-12 19:49:47 -07:00
Nikolay Kim da310715f4 more exceptions 2017-05-09 13:40:00 -07:00
Nikolay Kim c86a5ff4a3 bloking error exceptions 2017-05-06 23:12:48 -07:00
Nikolay Kim 762708d4d2 added ToPyObject for () 2017-05-05 09:30:58 -07:00
Nikolay Kim e128fa8224 PyString::from_object may fail 2017-05-04 22:03:23 -07:00
Nikolay Kim a3823cec8e Py_DEBUG implies Py_REF_DEBUG, Py_TRACE_REFS, COUNT_ALLOCS 2017-05-04 13:11:00 -07:00
Nikolay Kim 98e66ee329 optional param 2017-05-03 16:38:02 -07:00
Nikolay Kim ac1a3acaa4 py3.5 compat 2017-05-03 12:26:49 -07:00
Nikolay Kim c9904f045a added coro and asyncgen types 2017-05-02 23:15:20 -07:00
Nikolay Kim c4e3be6772 add generator methods 2017-05-02 22:52:41 -07:00
Nikolay Kim 83632604ae create unicode object from object with buffer api support 2017-05-02 21:19:51 -07:00
Nikolay Kim a65f9e03fc fix __buffer_get__ return type 2017-04-30 01:17:22 -07:00
Nikolay Kim 257be7119c added convinience method 2017-04-29 21:31:35 -07:00
Nikolay Kim 8d728663d7 introduce ToPyTuple trait, that simplifies ObjectProtoco.call method 2017-04-28 16:30:46 -07:00
Nikolay Kim f651b442ba add PyByteArray 2017-04-27 21:22:15 -07:00
Nikolay Kim 665921e84e add PySlice 2017-04-27 19:44:56 -07:00
Nikolay Kim 8ccb749c1e add PyErr to io::Error convert 2017-04-27 19:39:47 -07:00
Nikolay Kim ffe774a8cc add class properties 2017-04-06 19:20:06 -07:00
Nikolay Kim d7ce1c0af0 reference python27-sys directly 2017-04-06 18:59:10 -07:00
Nikolay Kim 364d7af69c pass Py_3_x cfg var with links 2017-04-06 18:59:10 -07:00
Nikolay Kim 23c36f5714 pyclass can provide buffer interface 2017-04-06 18:59:10 -07:00
Nikolay Kim 9bb6ec20a1 add PyAsyncMethods support 2017-04-06 18:59:10 -07:00
Nikolay Kim 582b9e4e0f depepndencies 2017-04-06 18:59:10 -07:00
Daniel Grunwald 4b6b82037e Support compare() in Python 3; and add rich_compare(). 2017-04-06 18:59:10 -07:00
Daniel Grunwald 4bbea03301 Add link to setuptools-rust 2017-03-12 12:54:21 +01:00
Daniel Grunwald 508937bada PyModule::add_class(): set __module__ on the type object 2017-02-19 16:15:33 +01:00
Daniel Grunwald b6939f158b Merge pull request #84 from naufraghi/issue/79/python-interpreter
Issue/79/python interpreter
2017-02-01 23:11:44 +01:00
Daniel Grunwald 362fe73298 Merge pull request #85 from jturner314/fix-dependency-in-readme
Fix cpython dependency in README.md
2017-01-31 21:46:43 +01:00
Jim Turner ca7280fded Fix cpython dependency in README.md 2017-01-30 18:40:58 -05:00
Daniel Grunwald e638b2654a Avoid Rust->Python->Rust roundtrip when using default value in argparse! optional parameter with reference extraction. 2017-01-27 23:21:57 +01:00
Daniel Grunwald d7a94ba4b1 Add cargo categories. 2017-01-27 22:42:07 +01:00
Daniel Grunwald a6e1133ac4 Update CHANGELOG.md 2017-01-27 22:38:33 +01:00
Daniel Grunwald 32e0d35603 Update documentation 2017-01-27 21:52:04 +01:00
Daniel Grunwald f5130e51eb Merge pull request #81 from Luthaf/optional
Implement optional values in argparse
2017-01-27 21:49:53 +01:00
Matteo Bertini 654f86cf51 Ignore binaries and makefile stamps 2017-01-27 11:33:09 +01:00
Matteo Bertini e7abe40cd1 build.rs: use PYTHON_SYS_EXECUTABLE as python executable
Add and env variable to force an exact python executable.
2017-01-27 11:33:03 +01:00
Matteo Bertini 1cf4f275e1 py27/build.rs: generated from py3/build.rs
Add Makefile `cog `task and `cog` annotation to keep the build.rs files in sync.
2017-01-27 11:22:02 +01:00
Matteo Bertini 278ce85913 Merge python*-sys/build.rs
- use `py_version_short` in 2.7 where `LDVERSION` is missing
 - manage PEP_384 only if Python version.major is 3
2017-01-27 11:06:16 +01:00
Luthaf d615c319f6 Implement optional parameters for reference types 2017-01-26 21:35:16 +01:00
Guillaume Fraux 9707c5ab72 Implement optional values in argparse 2017-01-26 21:19:38 +01:00
Daniel Grunwald 3b0ec638b0 Create CHANGELOG.md 2017-01-21 17:39:58 +01:00
Daniel Grunwald ca4203e4db Add PyBuffer::to_vec(). Avoids unnecessary zero-initialization when creating a Vec from a buffer. 2017-01-21 00:40:32 +01:00
Daniel Grunwald e3d6ac2ca8 Test extracting Vec<u8> using bytearray instead of bytes: On Python 2.7, the sequence protocol on bytes returns characters, not integers. 2017-01-20 23:22:45 +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
Daniel Grunwald af8131f858 Initial attempt at the buffer protocol.
Does not yet provide a safe way of accessing the buffer contents.
2017-01-20 01:08:51 +01:00
Daniel Grunwald a48d74c62c Fix #19: allow extracting a Vec from anything implementing the sequence protocol, not just from list. 2017-01-20 01:08:12 +01:00
Daniel Grunwald fbe1a07d10 Mention pub class in the documentation. 2017-01-19 21:56:06 +01:00