Commit Graph

4591 Commits

Author SHA1 Message Date
David Hewitt f8a9837c3a ffi: fix PyFrameObject definition 2022-06-02 17:47:23 +01:00
David Hewitt 4f490a01d6
Merge pull request #2423 from davidhewitt/ffi-fixes
ffi: many fixes caught by pyo3-ffi-check
2022-06-02 16:54:08 +01:00
David Hewitt 78cdc6d6ad ffi: many fixes caught by pyo3-ffi-check 2022-06-02 16:32:07 +01:00
David Hewitt 62e110cdcf
Merge pull request #2419 from davidhewitt/more-changelog
CHANGELOG: document #2406 and #2407
2022-06-02 14:33:35 +01:00
David Hewitt a746411b24
Merge pull request #2422 from davidhewitt/frompyobject-fixes
frompyobject: improve error messages of derived impls
2022-06-02 13:30:03 +01:00
David Hewitt f50406a034
Merge pull request #2413 from davidhewitt/simpler-interned
macros: simpler expansion for `intern!`
2022-06-02 12:54:11 +01:00
David Hewitt c7f13a1f10 CHANGELOG: document #2406 and #2407 2022-06-02 12:42:07 +01:00
David Hewitt f34b9a3fc4
Merge pull request #2421 from davidhewitt/ffi-fixes
ffi: small corrections
2022-06-02 12:20:54 +01:00
David Hewitt 425808e632
Merge pull request #2420 from davidhewitt/more-ci-updates
ci: update more actions
2022-06-02 11:14:43 +01:00
David Hewitt 0aa4f95a98 frompyobject: improve error messages of derived impls 2022-06-02 11:13:35 +01:00
David Hewitt 261c0c5f56 macros: simpler expansion for `intern!` 2022-06-02 09:57:58 +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 a388901fc6
Merge pull request #2414 from davidhewitt/frompyobject-fixes
`#[derive(FromPyObject)]`: clean up generated code
2022-06-02 09:33:07 +01:00
David Hewitt 58f4042e4f ci: update more actions 2022-06-02 09:18:35 +01:00
David Hewitt 1d50ffd500
Merge pull request #2407 from alex/patch-2
Make Py_tracefunc an unsafe func
2022-06-02 08:55:07 +01:00
David Hewitt 4090f6b1ae CHANGELOG: document #2414 2022-06-02 08:54:20 +01:00
David Hewitt e4ec720d51 frompyobject: tidy up generated code 2022-06-02 08:54:20 +01:00
David Hewitt cfb91057af frompyobject: improve error message for tuple case 2022-06-02 08:54:20 +01:00
David Hewitt 2769963536
Merge pull request #2418 from davidhewitt/update-actions
ci: update action versions
2022-06-02 08:52:07 +01:00
David Hewitt 02e6d486ea ci: update action versions 2022-06-02 07:32:51 +01:00
David Hewitt 53fd6db4e4
Merge pull request #2415 from davidhewitt/pin-3.11
ci: pin to 3.11.0-beta.1
2022-06-01 20:36:06 +01:00
David Hewitt 1fbde0e4d0 ci: pin to 3.11.0-beta.1 2022-06-01 16:03:48 +01:00
messense 8191153eba
Merge pull request #2408 from alex/frame-code-objects
Added new PyCode and PyFrame objects.
2022-06-01 10:11:59 +08: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 f84c740e41
Merge pull request #2406 from alex/patch-1
Expose PyFrame_GetCode
2022-05-29 11:30:13 +08:00
Alex Gaynor 7a7926c0ff
Update pyframe.rs 2022-05-28 22:45:50 -04:00
messense 25d2db9058
Merge pull request #2404 from messense/fixup-lib_name
Fixup `lib_name` when using `PYO3_CONFIG_FILE`
2022-05-29 10:36:04 +08:00
Alex Gaynor c2faef4b64
Make Py_tracefunc an unsafe func
There's basically no way to safely write a function with raw pointers for parameters.
2022-05-28 22:28:19 -04:00
Alex Gaynor b651502c11
Expose PyFrame_GetCode 2022-05-28 15:47:47 -04:00
messense 284c03af62
Add a changelog entry 2022-05-28 16:18:56 +08:00
messense 2bd24565c4
Rename `fixup_import_libs` to `generate_import_libs` 2022-05-28 15:07:10 +08:00
messense 4787ad75c9
Add a `default_lib_name_for_target` function 2022-05-28 14:59:10 +08:00
messense 4986d8ee7f
Fixup `lib_name` when using `PYO3_CONFIG_FILE` 2022-05-28 13:58:54 +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 a21bd6f967
Merge pull request #2385 from davidhewitt/classattr-results
Allow `#[classattr]` methods to be fallible
2022-05-21 19:09:07 +01:00
David Hewitt 48690525e1
Merge pull request #2386 from davidhewitt/datetime-docs
datetime: remove reference to leap seconds
2022-05-19 06:29:52 +01:00
David Hewitt 82b26b7cfa datetime: remove reference to leap seconds 2022-05-17 21:21:15 +01:00
David Hewitt 0de0e3f8d6 Allow `#[classattr]` methods to be fallible 2022-05-17 21:19:41 +01:00
David Hewitt e16dad3dd6
Merge pull request #2387 from davidhewitt/fix-internal-docs
docs: fix nightly build
2022-05-17 20:11:36 +01:00
David Hewitt 570107d103 docs: fix nightly build 2022-05-17 19:48:40 +01:00
David Hewitt 23a3069d53
Merge pull request #2376 from davidhewitt/changelog-0.16.5
update main to reflect 0.16.5 release
2022-05-16 06:00:40 +01:00
David Hewitt 3dcbcb7a95 update main to reflect 0.16.5 release 2022-05-15 20:31:00 +01:00
David Hewitt 3544b61390
Merge pull request #2374 from davidhewitt/test-initconfig
add regression test for PEP 587
2022-05-15 17:16:00 +01:00