David Hewitt
517f4a87a9
Merge pull request #2450 from mejrs/misc
...
Fix UB in *_offset functions
2022-06-18 08:53:10 +01:00
Ivan Krivosheev
f19561c745
Allow #[classattr] take Python argument
2022-06-16 13:08:53 +03:00
mejrs
e19c364fc9
Add changelog entry
2022-06-14 12:53:00 +02:00
David Hewitt
7c56a03d64
frompyobject: fix from_py_with
ignored for transparent structs
2022-06-09 06:49:25 +01:00
David Hewitt
866ddaca8a
ffi: tidy descrobject.rs
2022-06-07 19:45:36 +01:00
David Hewitt
6f4e84f25f
ffi: more pypy fixes
2022-06-05 09:24:46 +01:00
David Hewitt
9300bff551
ffi: field fixes from pyo3-ffi-check
2022-06-05 08:17:14 +01:00
David Hewitt
cdf86482d8
ffi: many fixes to pypy definitions
2022-06-04 12:47:40 +01:00
David Hewitt
0d78e88b14
ffi: fix PyTypeObject definition on Python 3.8
2022-06-04 08:12:27 +01:00
David Hewitt
f8a9837c3a
ffi: fix PyFrameObject definition
2022-06-02 17:47:23 +01:00
David Hewitt
78cdc6d6ad
ffi: many fixes caught by pyo3-ffi-check
2022-06-02 16:32:07 +01:00
David Hewitt
c7f13a1f10
CHANGELOG: document #2406 and #2407
2022-06-02 12:42:07 +01:00
David Hewitt
6a9f5fd705
ffi: remove PyArena on 3.10 and up
2022-06-02 09:35:35 +01:00
David Hewitt
6741104762
ffi: fix names of _Base datetime structs
2022-06-02 09:35:35 +01:00
David Hewitt
4090f6b1ae
CHANGELOG: document #2414
2022-06-02 08:54:20 +01:00
Alex Gaynor
f6a24972e9
Added new PyCode and PyFrame objects.
...
They currently do not expose any APIs, but are significantly easier to work with than raw pointers :-)
2022-05-31 16:57:10 -04:00
Bruno Kolenbrander
4f9d3d7306
Protect iterators against concurrent modification ( #2380 )
2022-05-31 20:13:04 +01:00
messense
284c03af62
Add a changelog entry
2022-05-28 16:18:56 +08:00
David Hewitt
eafbbc5417
Merge pull request #2399 from davidhewitt/avoid-duplicate-pymethods
...
pymethods: prevent methods sharing the same name
2022-05-24 22:22:31 +01:00
David Hewitt
879eb14e27
Merge pull request #2395 from davidhewitt/fix-class-raw-ident
...
macros: fix raw-ident pyclasses having r# at the start of the Python name
2022-05-24 22:08:56 +01:00
David Hewitt
71abeeff8b
macros: fix raw-ident pyclasses having r# at the start of the Python name
2022-05-24 21:34:23 +01:00
David Hewitt
a306365db8
pymethods: prevent methods sharing the same name
2022-05-24 21:15:30 +01:00
David Hewitt
126bf49b8b
Merge pull request #2377 from herquan/herquan_cr1
...
Add macro append_to_inittab (issue #2359 )
2022-05-24 08:02:47 +01:00
herquan
2ec477344d
Add macro append_to_inittab
...
Sometimes we need to debug in a real environment with our module installed. `append_to_inittab` will be a wrapper for PyImport_AppendInittab (https://docs.python.org/3/c-api/import.html#c.PyImport_AppendInittab ) and help us to do this
2022-05-24 07:42:15 +01:00
David Hewitt
0de0e3f8d6
Allow #[classattr]
methods to be fallible
2022-05-17 21:19:41 +01:00
David Hewitt
3dcbcb7a95
update main to reflect 0.16.5 release
2022-05-15 20:31:00 +01:00
David Hewitt
8636db67f5
add regression test for PEP 587
2022-05-15 16:08:21 +01:00
David Hewitt
7e638e233f
Merge pull request #2371 from indygreg/initconfig-311
...
ffi: add new 3.11 fields to PyConfig
2022-05-15 06:20:16 +01:00
David Hewitt
7a9e70e2c7
wrap_x: change macros back to macro_rules!
2022-05-14 20:42:07 +01:00
Gregory Szorc
03cb561d41
ffi: add PyConfig::warn_default_encoding to 3.10+
...
This field was added in 3.10 but we missed it. This was causing
offsets of subsequent fields to be wrong. This could lead to
unexpected behavior or even crashes.
2022-05-13 17:49:58 -07:00
messense
5508de8925
Update changelog for #2364
2022-05-12 14:32:55 +08:00
David Hewitt
1482b526de
types: add dict views ( #2358 )
2022-05-11 20:34:22 +01:00
David Hewitt
10b09297b1
ffi: remove eval.rs
2022-05-11 03:44:27 +01:00
Bruno Kolenbrander
c57e5098b8
Fix IntoPyCallbackOutput paper cuts ( #2326 )
...
* Implement IntoPy for arrays of IntoPy
* Improve `IntoPyCallbackOutput` compile error
2022-05-09 18:15:43 +01:00
David Hewitt
5d8fd4d30e
ffi: remove with_thread cfg
2022-05-05 07:26:05 +01:00
Bruno Kolenbrander
dce4377eb4
Allow more methods to take interned arguments ( #2312 )
...
* Allow more methods to take interned arguments
* Changelog
* Unify name bounds
* Resolve merge conflict
* reduce use of py_decref
* Add some attr tests
* Update migration
2022-05-02 11:13:15 +02:00
David Hewitt
8692b9b54b
Update CHANGELOG.md
2022-04-26 08:09:34 +01:00
David Hewitt
1596ab8a4b
Merge pull request #2333 from davidhewitt/remove-toborrowedobject
...
remove `ToBorrowedObject` trait
2022-04-26 06:23:35 +01:00
David Hewitt
71f9f18d54
remove toborrowedobject trait
2022-04-26 05:48:34 +01:00
cuishuang
19e32a0621
fix some typos
...
Signed-off-by: cuishuang <imcusg@gmail.com>
2022-04-24 22:06:32 +08:00
David Hewitt
7e2d3117ce
cleanup: deprecate PyTypeObject trait
2022-04-23 13:36:32 +01:00
David Hewitt
0787b670e8
pyproto: make deprecated feature opt-in
2022-04-21 20:19:14 +01:00
pigeon
dea9eb7af6
Implement ToPyObject for [T; N] ( #2313 )
2022-04-19 15:09:54 +02:00
David Hewitt
ac56be4e23
Merge pull request #2307 from davidhewitt/0.15.2-changelog
...
changelog: add notes from 0.15.2
2022-04-14 19:50:59 +01:00
David Hewitt
3fe38307b8
changelog: add notes from 0.15.2
2022-04-14 19:16:57 +01:00
Adam Reichold
d2caa056e9
release: 0.16.4
2022-04-14 07:56:42 +01:00
David Hewitt
8cd551fdfc
Merge pull request #2293 from ravenexp/abi3-no-python
...
pyo3-build-config: Build "abi3" extensions without an interpreter
2022-04-14 07:55:53 +01:00
Adam Reichold
c2d44ac7e3
Merge pull request #2263 from pickfire/pytzinfoaccess
...
Add PyTzInfoAccess
2022-04-13 11:16:53 +02:00
Adam Reichold
0d0089ea29
Remove redundant use statements and add missing calls to add_function in datetime test.
2022-04-13 09:40:16 +02:00
Sergey Kvachonok
ae7e1f5ee9
pyo3-build-config: Build "abi3" extensions without an interpreter
...
Support compiling portable "abi3" extension modules even when
the build host Python interpreter configuration is not available
or the discovered Python interpreter version is not supported.
Maturin already implements this by building "abi3" extension wheels
with `PYO3_NO_PYTHON` environment veriable set for cargo when
an `abi3-py3*` feature is detected.
Closes #2292
2022-04-13 10:40:08 +03:00