Alex Gaynor
5061b501a9
Remove IntoPyPointer
...
it wasn't used in any public APIs following #3359
2023-08-14 16:28:20 -04:00
David Hewitt
64adab1a76
add as_ptr and into_ptr inherent methods
2023-08-11 10:49:42 +01:00
David Hewitt
46942b9a14
docs: remove workarounds for `#[doc = concat!(...)]` following msrv bump
2023-06-08 21:04:49 +01:00
David Hewitt
5bc3e6f15e
fix clippy warnings uncovered by msrv bump
2023-06-05 07:08:27 +01:00
David Hewitt
45b5ede26a
remove copyright headers from source files
2023-06-03 22:38:54 +01:00
David Hewitt
996305ac62
remove other deprecations from 0.17
2023-05-09 09:39:23 +02:00
Adam Reichold
48f79718f9
Fix redundant imports in doc tests thereby fixing the careful CI job.
2023-04-10 08:09:06 +02:00
Antoine Romero-Romero
a629e8267a
feat: add #[pyo3(get, set)] for Cell
2023-03-09 23:09:30 +00:00
David Hewitt
20ca3be659
inspect: gate behind `experimental-inspect` feature
2023-01-15 12:41:23 +00:00
Ivan “CLOVIS” Canet
d7c1a2906a
IntoPy and FromPyObject allow the retrieval of the type information
2022-09-06 21:30:36 +02:00
Bruno Kolenbrander
58d4ba833e
Rust 1.62 ( #2489 )
...
* Rust 1.62
* Make rust happy
* Just use a doctest instead
Co-authored-by: mejrs <>
2022-07-02 16:08:01 +01:00
David Hewitt
7725f17c46
pyclass: switch from immutable to frozen
2022-06-19 21:18:15 +01:00
mejrs
f34b92a368
Expand conversions documentation
2022-05-03 00:46:53 +02:00
David Hewitt
71f9f18d54
remove toborrowedobject trait
2022-04-26 05:48:34 +01:00
mejrs
086424b88c
Merge branch 'main' of https://github.com/mejrs/pyo3 into immutable
2022-04-01 23:11:02 +02:00
mejrs
6f1cf1b662
Add more lints
2022-03-23 08:07:28 +01:00
Georg Brandl
03dc96bff1
Py/PyAny: remove PartialEq impl and add is() ( #2183 )
2022-02-25 19:39:45 +00:00
David Hewitt
d8ee35e19c
Merge pull request #2165 from mejrs/auto_trait
...
Implement Auto trait
2022-02-23 07:16:17 +00:00
mejrs
9e29c1058c
Gut specialization and implement auto trait
...
Implement auto trait
Implement auto trait
Undo oopsie
Fix versions
Fix CI errors
Fix CI
Remove more specialization remnants
2022-02-22 22:43:23 +01:00
David Hewitt
c5ef24bbea
fix: memory leak in Option<T>::as_ptr
2022-02-11 22:18:11 +00:00
mejrs
7520b49ac1
Implement opt-in immutable pyclasses
2022-02-08 18:08:18 +00:00
David Hewitt
4c8abd1426
rust: support 1.57
2021-12-08 07:10:16 +00:00
David Hewitt
f801c19efe
err: add `PyErr::take`
2021-11-02 23:12:36 +00:00
Bruno Kolenbrander
8a57fe2d20
Clean up doctests, deny some lints ( #1900 )
...
* Clean up doctests, deny some lints
* Apply suggestions from review.
* replace \" with '
* Fix some more doc examples
* Fix formatting
* Fix some more things
* Remove unused parentheses
* Only test class sig on supported abi/platforms
* Only test class signature on correct versions
* Fix tests to compile on msrv
* msrv strikes yet again
* Add feedback
* Pin `half` to 1.7.1 on msrv
2021-10-14 22:15:25 +01:00
David Hewitt
03ba4a5597
ffi: use _Py_NewRef for clarity
2021-09-29 08:02:08 +01:00
mejrs
d6973b1b6a
clean up lib.rs
2021-09-13 22:58:15 +02:00
David Hewitt
388c2552f8
Merge pull request #1786 from mejrs/with_gil2
...
tests: switch to python_with_gil
2021-08-13 12:39:17 +01:00
mejrs
f55a9c8ab0
tests: switch to python_with_gil
2021-08-12 02:47:41 +02:00
messense
9d0b92bf32
Change `PyErr::fetch` to return an `Option<PyErr>`
2021-08-11 23:44:40 +01:00
David Hewitt
a7244b864d
testing: use `mod tests` instead of `mod test`
2021-07-26 18:19:53 +01:00
mejrs
40dd618c46
added doc alias for intopy
2021-05-03 20:31:53 +02:00
mejrs
f4b11f61d5
impl docs for conversions
2021-05-03 20:03:41 +02:00
mejrs
3691bf29a5
fixed tabs in doc comment
2021-04-27 21:16:39 +02:00
mejrs
5e75dfa9f7
documentation for IntoPy
2021-04-27 15:56:49 +02:00
kngwyu
aedd6352e3
Use with_gil instead of acquire_gil in examples
2021-03-20 19:02:50 +09:00
kngwyu
e31fb70399
Correct `# Examples` in documents
2021-03-20 16:45:56 +09:00
Nicholas Sim
5eeeb2cca9
Update doc links based on review
2021-01-16 22:11:11 +08:00
Nicholas Sim
d2dfb141b1
Update new safety notes with requested changes
2021-01-16 21:31:16 +08:00
Nicholas Sim
bb61680c58
Update src/conversion.rs
...
Co-authored-by: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>
2021-01-16 21:16:14 +08:00
Nicholas Sim
66dc262949
add some safety notes
2021-01-15 22:31:40 +08:00
kngwyu
7d217d2f1f
Use some more anonymous lifetimes
2020-11-20 14:55:24 +09:00
kngwyu
830c68648c
Support conversion between char and PyString
2020-11-20 14:42:26 +09:00
David Hewitt
1ce14d77e4
pytypeinfo: rename is_instance to is_type_of
2020-11-15 18:35:16 +00:00
David Hewitt
20959ecc92
Rewrite documentation for FromPy and PyObject changes
2020-08-09 12:29:25 +01:00
David Hewitt
f29e6bae7a
Replace PyObject with type alias for Py<T>
2020-08-09 12:28:21 +01:00
David Hewitt
7901890974
Remove `FromPy`
2020-08-09 12:28:21 +01:00
Sebastian Puetz
77d03d01f3
Remove explicit matches in conversions.
...
Don't explicitly match Options and Results if only one of the
variants is changed.
2020-07-19 13:26:59 +02:00
David Hewitt
a058eb5201
Remove redundant lifetimes
2020-07-19 11:23:07 +01:00
Sebastian Puetz
63d6d4c0e2
Add type info to conversion errors.
2020-07-19 12:08:14 +02:00
kngwyu
a78a832431
Refactor around the nightly feature
2020-06-26 19:29:37 +09:00