David Hewitt
42843de47b
pyclass methods for Bound
2024-02-05 09:41:22 +00:00
David Hewitt
8f8d4d33fa
Merge pull request #3776 from davidhewitt/bound-extract
...
migrate `FromPyObject` for `Bound` and `Py` to new APIs
2024-02-02 23:10:47 +00:00
David Hewitt
57735540e8
Merge pull request #3736 from Tpt/tpt/systemtime
...
Adds conversion between SystemTime and datetime
2024-02-01 14:05:51 +00:00
David Hewitt
a60c1821af
implement PyFunctionArgument
for &Bound<T>
2024-02-01 13:22:53 +00:00
David Hewitt
d35a6a1fd6
Merge pull request #3785 from davidhewitt/bound-as-any
...
add `Bound::as_any` and `Bound::into_any` (and same for `Py`)
2024-02-01 10:52:25 +00:00
David Hewitt
49a57dfd18
clean up implementations in src/instance.rs
2024-02-01 10:14:58 +00:00
David Hewitt
4437e8f616
add Py::as_any
and Py::into_any
2024-02-01 09:07:36 +00:00
David Hewitt
cbc97f8ea9
add Bound::as_any
and Bound::into_any
2024-02-01 09:01:33 +00:00
David Hewitt
4c94be51a7
add PyBytes::new_bound
2024-02-01 08:52:28 +00:00
Icxolu
b14dbcf29f
add Bound
constructors for PyMemoryView
2024-01-30 22:52:31 +01:00
Icxolu
e704a760b7
add Bound
constructors for PyByteArray
2024-01-30 22:52:31 +01:00
David Hewitt
2f00eb1423
for now just change return type of intern!
2024-01-30 13:28:07 +00:00
David Hewitt
aa139ad422
add intern_bound!
macro
2024-01-30 10:58:19 +00:00
David Hewitt
fed8bcadaf
add remaining bound string constructors
2024-01-30 09:13:24 +00:00
David Hewitt
718be9fac5
Merge pull request #3770 from Icxolu/capsule
...
implement `PyCapsuleMethods`
2024-01-29 21:23:43 +00:00
Icxolu
e323fcbb9e
implement PyCapsuleMethods
2024-01-29 18:22:40 +01:00
David Hewitt
a3eb328378
migrate FromPyObject
for Bound
and Py
to extract_bound
2024-01-29 13:46:46 +00:00
David Hewitt
c47565666d
add PyString::new_bound
2024-01-29 13:14:00 +00:00
David Hewitt
7549a21154
Merge pull request #3773 from davidhewitt/float-new-bound
...
add `PyFloat::new_bound`
2024-01-29 11:52:45 +00:00
David Hewitt
345e122bbf
add PyFloat::new_bound
2024-01-29 11:06:34 +00:00
David Hewitt
d4d08b24b0
add PyDict::new_bound
without deprecation
2024-01-29 10:17:54 +00:00
David Hewitt
ffaa03e3f1
Migrate some conversions to extract_bound
2024-01-28 07:22:51 +00:00
David Hewitt
595ca4b3c1
Add extract_bound
method to FromPyObject
2024-01-28 07:22:51 +00:00
David Hewitt
ed7263faa2
Merge pull request #3767 from Icxolu/complex
...
implement `PyComplexMethods`
2024-01-27 22:06:02 +00:00
Icxolu
37e2a4d9c9
implement PyComplexMethods
2024-01-27 22:26:53 +01:00
David Hewitt
1657109ae0
documentation updates for PyList::new_bound
2024-01-27 21:12:55 +00:00
David Hewitt
674f7282d8
ToPyObject
and IntoPy
for Borrowed
2024-01-27 21:12:55 +00:00
David Hewitt
eed196329d
add list bound constructors
2024-01-27 21:12:55 +00:00
David Hewitt
0973da27e9
Merge pull request #3743 from davidhewitt/set-bound-constructors
...
add bound constructors for `PySet` and `PyFrozenSet`
2024-01-27 17:55:42 +00:00
Tpt
f83544910f
Adds conversion between SystemTime and datetime
2024-01-27 17:43:51 +01:00
David Hewitt
5f320d7a04
Merge pull request #3765 from davidhewitt/remove-py-newref
...
remove internal uses of `_Py_NewRef`
2024-01-27 13:35:29 +00:00
David Hewitt
87e0610b58
remove internal uses of _Py_NewRef
2024-01-27 12:07:46 +00:00
Icxolu
7918815cee
implement PySliceMethods
2024-01-27 11:34:32 +01:00
Icxolu
f86053e2c2
implement PyTracebackMethods
2024-01-27 11:34:32 +01: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
ab699a0727
allow dead_code in IPowModulo
2024-01-12 15:55:21 +00:00
David Hewitt
4504a7c96e
fix some nightly lints 2024-01-12
2024-01-12 13:34:17 +00:00
Tpt
72f0c73925
Conversion between chrono_tz::Tz and zoneinfo.ZoneInfo
2024-01-08 15:19:49 +01:00
David Hewitt
50e33d86c7
add call_bound
and call_method_bound
2024-01-03 13:24:14 +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
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
Alex Gaynor
54390bc50b
Merge pull request #3712 from alex/binops
...
add PyAnyMethods for binary operators
2023-12-30 13:56:45 +00:00