Commit graph

1375 commits

Author SHA1 Message Date
Yuji Kanagawa cf4cfe20f8
Merge pull request #297 from PyO3/dependabot/cargo/indoc-0.3.1
Update indoc requirement from 0.2.8 to 0.3.1
2018-12-03 22:58:57 +09:00
dependabot[bot] a3c7cdfd98
Update indoc requirement from 0.2.8 to 0.3.1
Updates the requirements on [indoc](https://github.com/dtolnay/indoc) to permit the latest version.
- [Release notes](https://github.com/dtolnay/indoc/releases)
- [Commits](https://github.com/dtolnay/indoc/commits/0.3.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-03 06:57:55 +00:00
ijl b8a6d67e31 PyTryFrom::try_from_mut_unchecked() 2018-12-01 10:27:48 -05:00
ijl d18ebea1c2 PyTryFrom::try_from_unchecked()
This allows casting a PyObjectRef to a specific type of PyObject
with no overhead.
2018-12-01 10:12:27 -05:00
konstin 790a103753
Merge pull request #291 from PyO3/exception_macros
Refactor the exception macros
2018-12-01 13:04:06 +01:00
Yuji Kanagawa 27b4c8a0b2
Merge pull request #293 from tiagoantao/master
upgrade version reference
2018-12-01 12:55:17 +09:00
Tiago Antao a5de9dcf00
Update building-and-distribution.md 2018-11-30 09:40:28 -05:00
Yuji Kanagawa 15f5df4572
Merge pull request #290 from kngwyu/remove-some-defaults
Remove default from ReturnTypeIntoPyResult
2018-11-30 23:37:28 +09:00
Tiago Rodrigues Antao 08e61694b3 upgrade version reference 2018-11-30 08:50:15 -05:00
kngwyu 7a83c1dc0f Revert removing default from impl FromPyObject for &T and &mut T 2018-11-29 22:45:36 +09:00
konstin 9102f2e364 Refactor the exception macros
* Renamed `py_exception` to `create_exception`
  * The split up of the macros makes it possible to create exception structs with bodies to mimic python exceptions' members
  * Used `Once` to fix a (theoretical) race condition with the is_null check
2018-11-27 23:07:15 +01:00
kngwyu b8f1373bec Remove default for impl PyTryFrom for &T and &mut T 2018-11-27 14:42:09 +09:00
kngwyu 2539acc1e8 Remove default from ReturnTypeIntoPyResult 2018-11-27 14:31:00 +09:00
konstin 8d2fbd9e18
Merge pull request #286 from kngwyu/README-apt
Add installation notes on Ubuntu18.04
2018-11-26 11:06:38 +01:00
kngwyu ea6364b98c Add installation notes on Ubuntu18.04 2018-11-26 13:31:49 +09:00
konstin de2108d719 Update changelog 2018-11-26 00:16:47 +01:00
konstin ece59c92f0 Update changelog 2018-11-24 13:17:42 +01:00
konstin 13e7e3968a
Merge pull request #284 from ijl/py37
Travis uses 3.7 instead of 3.7-dev
2018-11-24 13:04:39 +01:00
konstin 9938eb9375
Merge pull request #281 from kngwyu/list
Use linked list in ReleasePool
2018-11-24 12:52:28 +01:00
Yuji Kanagawa 473635bd20
Merge pull request #283 from ijl/add-lib
Document orjson lib as user/example
2018-11-24 13:02:33 +09:00
ijl 2c75c42b61 Travis uses 3.7 instead of 3.7-dev
It requires xenial for support per
https://docs.travis-ci.com/user/languages/python/

I tried specifying 3.8-dev in allow_failures, but it was not
picked up.
2018-11-23 19:49:12 +00:00
ijl e3d528980d Document orjson lib as user/example 2018-11-23 19:28:36 +00:00
kngwyu 119e0abde2 Fix ArrayList::truncate 2018-11-21 16:28:26 +09:00
kngwyu 949097874f Fix bug in ArrayList::pop_back 2018-11-21 16:00:26 +09:00
kngwyu 63ec65d5ac Refactor ReleasePool 2018-11-21 16:00:26 +09:00
kngwyu acbab2b3f0 Use ArrayList::truncate for borrowed pointers 2018-11-21 16:00:26 +09:00
kngwyu 4c38b21e49 Fix ArrayList::push_back 2018-11-21 16:00:26 +09:00
kngwyu be77846979 Use LinkedList<[T; 256]> in ReleasePool 2018-11-21 16:00:26 +09:00
kngwyu 25a5b74ba6 Use linked list in ReleasePool 2018-11-21 16:00:26 +09:00
konstin f62ccfbe2a
Merge pull request #277 from PyO3/doc_link_args
Add Documentation on build and linker args
2018-11-19 23:14:44 +01:00
konstin 9035d54035 Add Documentation on build and linker args 2018-11-19 23:14:21 +01:00
konstin 13d4d66fdb cargo fmt 2018-11-15 21:58:22 +01:00
konstin d618ca401a
Merge pull request #274 from kngwyu/releasepool-nonnull
Use NonNull in ReleasePool and add bench_dict
2018-11-15 20:27:06 +01:00
konstin f645720fe5
Merge pull request #270 from PyO3/module
Treat modules as normal objects
2018-11-15 20:26:46 +01:00
konstin 9c8c5a6063 Rename #[pymodinit] to #[pymodule] 2018-11-15 19:43:29 +01:00
konstin 863ffb161f Add wrap_module macro 2018-11-15 19:43:29 +01:00
konstin 195f5c30d1
Merge pull request #275 from PyO3/clippy
Add clippy to travis
2018-11-15 15:36:11 +01:00
konstin 42f84ff881 Add clippy to travis 2018-11-15 15:23:45 +01:00
konstin 3de622cdfd Better explaination for the cast 2018-11-15 12:10:16 +01:00
konstin 287a168b18 Fix test failure 2018-11-15 12:08:22 +01:00
kngwyu a73bd06c1f Replace NonNull::new_unchecked with new().unwrap() in test 2018-11-15 13:40:35 +09:00
konstin 5f175a41cf Make clippy happy 2018-11-14 16:49:48 +01:00
kngwyu 6222232c21 Add bench_dict 2018-11-14 15:40:28 +09:00
kngwyu 6d442e5969 Use NonNull in release pool 2018-11-14 15:39:07 +09:00
konstin 0890f24391
Merge pull request #272 from calculator154/patch-1
Fix typo in defs.rs?
2018-11-13 13:36:14 +01:00
Chitsanu 19a9b7ef32
Fix typo in defs.rs
Are these typos?
2018-11-13 13:01:25 +01:00
Yuji Kanagawa 42dbaeb913
Merge pull request #268 from kngwyu/fix-dict-iter
Fix PyDictIterator's segfault(for #159)
2018-11-13 14:29:42 +09:00
kngwyu 1081ba9447 Fix import module name in test_dict_iter 2018-11-13 11:50:13 +09:00
konstin d4f4f2f517 Fix tox config 2018-11-12 22:30:43 +01:00
konstin 3614f38154 Remove some transmute 2018-11-12 21:38:20 +01:00