David Hewitt
bf32986b1d
Merge pull request #3751 from mkovaxx/fix_ugly_enum_example
...
docs: make complex enum example in class.md more readable
2024-01-20 08:19:33 +00:00
Mate Kovacs
f32becacc7
fix ugly example
2024-01-20 11:47:27 +09:00
David Hewitt
d1b072222a
Merge pull request #3582 from mkovaxx/pyclass_complex_enum
...
Full ADT support with pyclass for complex enums
2024-01-19 14:17:28 +00:00
Mate Kovacs
3ed5ddb0ec
feat: support pyclass on complex enums
2024-01-18 22:04:42 +09:00
David Hewitt
4e24e680e8
update set benchmarks
2024-01-17 10:49:21 +00:00
David Hewitt
06c95432c6
set & frozenset bound constructors
2024-01-17 09:45:41 +00:00
David Hewitt
43504cd15a
Merge pull request #3742 from samuelcolvin/int-extraction-performance
...
improve performance of successful int extract by ~30% by avoiding calls to `__index__` where redundant
2024-01-16 17:14:39 +00:00
Samuel Colvin
0e876d94d6
improve performance of successful int extract by ~30%
...
add newsfragment
formatting
skip slow path on 3.8+
formatting
cfg if,else
formatting again
dedicated macro, change int_convert_u64_or_i64 too
add float tests
force index call for PyLong_AsUnsignedLongLong
perform PyLong check for 3.8 too
perform PyLong check for <3.10
2024-01-16 13:51:19 +00:00
David Hewitt
7366b1a386
Merge pull request #3730 from Tpt/chrono-tz
...
Conversion between chrono_tz::Tz and zoneinfo.ZoneInfo
2024-01-15 14:48:27 +00:00
David Hewitt
48e74b7829
Merge pull request #3734 from jadedpasta/ffi-pytype-getmodulebydef
...
ffi: Add definition for PyType_GetModuleByDef
2024-01-13 08:49:36 +00:00
jadedpasta
83f0f22efe
ffi: Add definition for PyType_GetModuleByDef
...
This API is available starting in 3.11. It is not part of the Stable ABI.
PyType_GetModuleByDef searches the MRO of the given type for a module
matching the given module spec. It can be useful for users use that
`pyo3_ffi` directly and want to support multiple interpreters/per
interpreter GIL. It is useful to obtain access to the module state from
special methods like `tp_new` that can't use the METH_METHOD calling
convention.
This API is not supported on PyPy yet, but guess the symbol name for the future.
2024-01-12 22:13:33 -06:00
David Hewitt
f8878a7440
Merge pull request #3731 from PyO3/dependabot/github_actions/actions/setup-python-5
...
Bump actions/setup-python from 4 to 5
2024-01-12 17:51:13 +00:00
David Hewitt
590ce70bed
Merge pull request #3740 from davidhewitt/nightly-lints
...
allow dead_code in `IPowModulo`
2024-01-12 16:27:24 +00:00
David Hewitt
0db6dce9ce
Merge pull request #3739 from davidhewitt/pypy-buffer-hidden-fields
...
fix size of pypy private fields in Py_buffer definition
2024-01-12 16:27:10 +00:00
David Hewitt
8fef7a5848
fix size of pypy private fields in Py_buffer definition
2024-01-12 15:59:14 +00:00
David Hewitt
ab699a0727
allow dead_code in IPowModulo
2024-01-12 15:55:21 +00:00
David Hewitt
1520b058e8
Merge pull request #3738 from davidhewitt/nightly-lints
...
fix some nightly lints 2024-01-12
2024-01-12 13:52:50 +00:00
David Hewitt
4504a7c96e
fix some nightly lints 2024-01-12
2024-01-12 13:34:17 +00:00
dependabot[bot]
800943ab2d
Bump actions/setup-python from 4 to 5
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-08 20:14:38 +00:00
Tpt
72f0c73925
Conversion between chrono_tz::Tz and zoneinfo.ZoneInfo
2024-01-08 15:19:49 +01:00
David Hewitt
4b172874dc
Merge pull request #3727 from davidhewitt/relnotes-0.20.2
...
release notes for 0.20.2
2024-01-05 07:26:23 +00:00
David Hewitt
026c0daf57
release notes for 0.20.2
2024-01-04 21:34:07 +00:00
David Hewitt
58746bb4f9
Merge pull request #3711 from davidhewitt/call-bound
...
add `call_bound` and `call_method_bound`
2024-01-03 13:43:30 +00:00
David Hewitt
50e33d86c7
add call_bound
and call_method_bound
2024-01-03 13:24:14 +00:00
Adam Reichold
f2eb121f76
Merge pull request #3723 from davidhewitt/fix-doc-build
...
Fix doc build
2024-01-02 21:02:27 +00:00
Adam Reichold
68240e16a7
Include the experimental-inspect feature for the docs.rs build thereby making it equivalent to a full build.
2024-01-02 20:47:52 +00:00
Adam Reichold
c1c62f1f3c
Add CI job to test the equivalent of a docs.rs build.
2024-01-02 20:47:46 +00:00
Adam Reichold
e2c6eb86f9
Fix missing feature flags in implementation of Either conversion.
2024-01-02 20:47:42 +00:00
David Hewitt
eceb28bc79
Merge pull request #3702 from davidhewitt/bound-iterator-constructor
...
introduce PyIterator::from_bound_object
2024-01-02 15:34:54 +00:00
David Hewitt
783e98b1a8
introduce PyIterator::from_bound_object
2024-01-02 14:11:26 +00:00
David Hewitt
febf7a061d
Merge pull request #3721 from PyO3/fix-build-config-dep
...
Use a definite version specification when depending on pyo3-build-config.
2024-01-02 14:00:02 +00:00
Adam Reichold
03285835bb
Use a definite version specification when depending on pyo3-build-config.
...
We already do this for other internal pyo3-* dependencies and it seems prudent
to apply this to pyo3-build-config as well.
2024-01-02 09:32:38 +01:00
David Hewitt
5ea2e5c048
Merge pull request #3715 from davidhewitt/relnotes-0.20.1
...
release notes for 0.20.1
2023-12-31 08:59:01 +00:00
David Hewitt
0ca97b5e53
Merge pull request #3681 from davidhewitt/tuple2-try2
...
implement `PyTupleMethods`
2023-12-30 22:07:43 +00:00
David Hewitt
4cf58c8303
implement IntoPy<Py<PyTuple>>
for Bound<PyTuple>
2023-12-30 21:37:46 +00:00
David Hewitt
823b5feed3
improve tuple methods test coverage
2023-12-30 21:37:46 +00:00
David Hewitt
53d25f7ff2
add new PyTuple
constructors
2023-12-30 21:37:46 +00:00
David Hewitt
375e3d4eee
implement PyTupleMethods
2023-12-30 21:37:46 +00:00
David Hewitt
8fa5294d93
release notes for 0.20.1
2023-12-30 21:34:45 +00:00
Alex Gaynor
54390bc50b
Merge pull request #3712 from alex/binops
...
add PyAnyMethods for binary operators
2023-12-30 13:56:45 +00:00
Alex Gaynor
339660c117
add PyAnyMethods for binary operators
...
also pow
fixes #3709
2023-12-29 18:45:18 -05:00
David Hewitt
e1fcb4efce
Merge pull request #3703 from davidhewitt/module2
...
implement `PyModuleMethods`
2023-12-29 22:30:08 +00:00
David Hewitt
e852a4b502
be more lax with ordering in invalid_result_conversion
ui test
2023-12-29 22:06:33 +00:00
David Hewitt
9a5668572b
implement PyModuleMethods
2023-12-29 21:46:46 +00:00
David Hewitt
6776b90e15
Merge pull request #3707 from davidhewitt/gil-refs-feature
...
add `gil-refs` feature to aid migration
2023-12-29 14:56:19 +00:00
David Hewitt
a9f867c2cb
begin drafting Bound<T>
migration guide
2023-12-29 14:42:31 +00:00
David Hewitt
3da1aac2dd
add gil-refs
feature to aid migration
2023-12-29 14:42:31 +00:00
David Hewitt
54b214bb93
Merge pull request #3710 from davidhewitt/rust-1.75
...
ci: updates for Rust 1.75
2023-12-29 13:51:28 +00:00
David Hewitt
46c3190a17
clean up remnants of deprecated & removed features
2023-12-29 13:36:46 +00:00
David Hewitt
e42d8cf612
ci: updates for Rust 1.75
2023-12-29 13:36:46 +00:00