David Hewitt
45ff25cd2a
clippy: deny / fix used-underscope-binding lint
2023-07-16 20:49:45 +01:00
David Hewitt
09d79f1a5f
Merge pull request #3318 from davidhewitt/self-arg
...
macros: change self_arg to be an expression
2023-07-16 13:49:57 +00:00
Adam Reichold
65312b43b2
Merge pull request #3312 from davidhewitt/opt-baseexception
...
optimize is_instance for PyBaseException
2023-07-14 16:37:24 +00:00
Adam Reichold
d2c690b48f
Merge pull request #3320 from CallMeMSL/patch-2
...
Update outdated link in python_typing_hints.md and fix typos
2023-07-14 16:13:08 +00:00
Adam Reichold
562ef0c58d
Merge pull request #3313 from davidhewitt/unnormalized-err-type
...
normalize exception in `PyErr::matches` and `PyErr::is_instance`
2023-07-14 15:49:30 +00:00
CallMeMSL
5bcb513add
Update outdated link in python_typing_hints.md and fix typos
2023-07-14 15:50:14 +02:00
David Hewitt
f39dd52cf9
remove concept of "normalize" from PyErr docs
2023-07-14 13:20:48 +01:00
David Hewitt
52cd9cbc90
macros: change self_arg to be an expression
2023-07-14 13:18:57 +01:00
David Hewitt
92b724f64f
normalize exception in `PyErr::matches` and `PyErr::get_type`
2023-07-14 13:18:30 +01:00
David Hewitt
b89934475d
Merge pull request #3317 from davidhewitt/rust-1.71
...
ci: updates for rust 1.71
2023-07-14 11:37:43 +00:00
David Hewitt
b65cbb958b
ci: updates for rust 1.71
2023-07-14 12:10:37 +01:00
Adam Reichold
d3d4e859c3
Merge pull request #3315 from davidhewitt/ignore-pytests-coverage
...
codecov: ignore coverage for pytests directory
2023-07-13 05:42:54 +00:00
David Hewitt
88f6f572c0
codecov: ignore coverage for pytests directory
2023-07-12 23:28:27 +01:00
Adam Reichold
ec0f0d4051
Merge pull request #3314 from panpilkarz/patch-1
...
Tiny grammar fix in error_handling.md
2023-07-12 16:42:19 +00:00
Pan Piłkarz
f3d7cf6fac
Tiny grammar fix in error_handling.md
2023-07-12 15:51:18 +02:00
David Hewitt
bb05896324
Merge pull request #3311 from davidhewitt/frozen-receiver-error
...
improve error span for mutable access to `#[pyclass(frozen)]`
2023-07-12 06:21:25 +00:00
Adam Reichold
398a33edaf
Merge pull request #3309 from davidhewitt/dead-fields
...
remove some dead fields from FnArg
2023-07-12 04:26:53 +00:00
David Hewitt
56b7c38e24
improve error span for mutable access to `#[pyclass(frozen)]`
2023-07-11 22:34:53 +01:00
David Hewitt
272997555e
optimize is_instance for PyBaseException
2023-07-11 21:48:46 +01:00
Adam Reichold
89b9bc384a
Merge pull request #3304 from PyO3/guide-perf-section
...
Start adding a performance section to the guide.
2023-07-11 19:36:56 +00:00
David Hewitt
a5d97b3ad0
remove some dead fields from FnArg
2023-07-11 19:59:12 +01:00
David Hewitt
fda76a865a
Merge pull request #3307 from alex/patch-1
...
Resolve nightly clippy warning in test_field_cfg
2023-07-11 18:39:05 +00:00
David Hewitt
39edeebf67
Merge pull request #3308 from mejrs/typo
...
Fix faq.md typo.
2023-07-11 12:45:07 +00:00
mejrs
092b73aa48
Two is not three
2023-07-11 13:56:34 +02:00
Alex Gaynor
f39eb9e229
Resolve nightly clippy warning in test_field_cfg
2023-07-11 05:55:57 -04:00
Adam Reichold
bedb682d0e
Add another performance subsection on implicit access to GIL token.
2023-07-09 15:02:12 +02:00
Adam Reichold
ff78b92e77
Start adding a performance section to the guide.
2023-07-09 14:32:59 +02:00
Adam Reichold
db960e5fb4
Merge pull request #3303 from PyO3/pyiter-size-hint
...
RFC: Add implementation of Iterator::size_hint for PyIterator
2023-07-09 11:45:49 +00:00
Adam Reichold
bd7aed4b12
Add implementation of Iterator::size_hint for PyIterator
...
When the Python iterator backing `PyIterator` has a `__length_hint__` special
method, we can use this as a lower bound for Rust's `Iterator::size_hint` to
e.g. support pre-allocation of collections.
This is implemented using `PyObject_LengthHint` which is not available in the
stable ABI and hence so is `Iterator::size_hint`. This should be fine since this
is an optimization in any case and the stable ABI is expected to have slightly
worse performance overall.
2023-07-09 10:16:20 +02:00
messense
26018560f2
Merge pull request #3300 from davidhewitt/enter-recursive-call
...
fix FFI definition `Py_EnterRecursiveCall`
2023-07-06 01:43:18 +00:00
David Hewitt
f7f3ff8820
fix FFI definition `Py_EnterRecursiveCall`
2023-07-05 22:52:41 +01:00
David Hewitt
8fcf44482a
Merge pull request #3297 from davidhewitt/pypy-ssize-t
...
fix `SystemError` raised from `PyUnicodeDecodeError_Create` on PyPy 3.10
2023-07-05 17:14:47 +00:00
David Hewitt
edb62e05e3
Merge pull request #3273 from davidhewitt/conventions
...
add some style guide to Contributing.md
2023-07-05 17:14:24 +00:00
David Hewitt
82712aed32
fix `SystemError` raised from `PyUnicodeDecodeError_Create` on PyPy 3.10
2023-07-05 11:10:02 +01:00
David Hewitt
81c0328d91
use concrete inner for `PyErr:matches`
2023-07-04 21:03:24 +01:00
David Hewitt
76f3a395ef
move `unsafe` block inside `error_on_minusone` calls
2023-07-04 21:03:24 +01:00
David Hewitt
43477a8e30
use error_on_minusone in more cases
2023-07-04 21:03:24 +01:00
David Hewitt
7613f65c89
apply conventions for ffi calls
2023-07-04 21:03:24 +01:00
David Hewitt
bf2f441567
prefer inner / _private naming
2023-07-04 21:03:24 +01:00
David Hewitt
233fdd555e
add some style guide to Contributing.md
2023-07-04 21:03:24 +01:00
Adam Reichold
54ab9090be
Merge pull request #3269 from grantslatton/timezone-conversion-bugfix
...
Fix fixed offset timezone conversion bug.
2023-07-04 18:22:13 +00:00
David Hewitt
b441e0b4ab
Merge pull request #3295 from davidhewitt/pypy-pystate
...
add PyState_*Module definitions for PyPy
2023-07-04 08:29:31 +00:00
David Hewitt
6666c335e6
add PyState_*Module definitions for PyPy
2023-07-04 08:57:50 +01:00
Adam Reichold
ce0de3ffed
Merge pull request #3293 from davidhewitt/missing-conversions
...
add some missing type conversions to the guide
2023-07-04 06:51:31 +00:00
messense
849b699946
Merge pull request #3292 from davidhewitt/valgrind-build-full
...
ci: run valgrind and careful with 'CI-build-full' label
2023-07-04 02:53:11 +00:00
David Hewitt
23d1a6d307
add some missing type conversions to the guide
2023-07-03 21:36:17 +01:00
David Hewitt
f5d4083131
ci: run valgrind and careful with 'CI-build-full' label
2023-07-03 21:20:49 +01:00
David Hewitt
53b98db682
Merge pull request #3290 from davidhewitt/0.19.1-changelog
...
update main for 0.19.1
2023-07-03 15:48:19 +00:00
David Hewitt
7d357ad992
release: 0.19.1
2023-07-03 16:18:24 +01:00
David Hewitt
0e9c041e97
Merge pull request #3289 from davidhewitt/pypy-3.10
...
support PyPy 3.10
2023-07-03 12:53:16 +00:00