David Hewitt
|
e1d4173827
|
Fix bug in default implementation of `__ne__`
|
2023-10-11 09:48:06 +01:00 |
David Hewitt
|
76bf521ed0
|
Merge pull request #3505 from davidhewitt/deprecate_dunder_new
deprecate undocumented `#[__new__]` form of `#[new]`
|
2023-10-10 21:35:10 +00:00 |
David Hewitt
|
6c90325a1c
|
deprecate undocumented `#[__new__]` form of `#[new]`
|
2023-10-10 08:47:03 +01:00 |
David Hewitt
|
c0b5004cfa
|
Merge pull request #3455 from davidhewitt/normalized-exceptions
also use `PyErr::SetObject` on Python versions before 3.12
|
2023-10-10 07:44:39 +00:00 |
mejrs
|
6ca573b9d0
|
Update clippy
|
2023-10-06 23:31:06 +02:00 |
David Hewitt
|
2daddb4734
|
unify 3.12 and pre-3.12 exception handling pathways
|
2023-09-30 23:27:27 +01:00 |
David Hewitt
|
f335f42197
|
Merge pull request #3446 from davidhewitt/relax-import-check
relax multiple-import check to only prevent subinterpreters
|
2023-09-29 16:35:31 +00:00 |
David Hewitt
|
b9e9859082
|
Merge pull request #3478 from mejrs/auto
Don't let auto trait syntax bleed through on stable Rust
|
2023-09-29 16:35:05 +00:00 |
mejrs
|
0c8ab98760
|
move it into the inline module.
|
2023-09-29 17:22:27 +02:00 |
David Hewitt
|
1a349c2eb7
|
adjust cfgs for windows 3.9
|
2023-09-29 14:23:18 +01:00 |
David Hewitt
|
50cb41dd0b
|
Merge pull request #3458 from davidhewitt/truncate-leap-seconds
truncate leap seconds on `chrono` to `datetime` conversions
|
2023-09-29 11:47:27 +00:00 |
David Hewitt
|
4b5ff05721
|
Merge pull request #3471 from davidhewitt/normalized-exceptions-2
always normalize exceptions before raising
|
2023-09-28 20:27:18 +00:00 |
mejrs
|
d0d4b9d3fb
|
Dont let auto trait syntax bleed through on stable
|
2023-09-28 12:26:09 +02:00 |
David Hewitt
|
0459532f69
|
truncate leap seconds on `chrono` to `datetime` conversions
|
2023-09-24 20:28:43 +01:00 |
David Hewitt
|
673c45aac3
|
Merge pull request #3470 from davidhewitt/tests-capture-warnings
add `assert_warnings` test helper
|
2023-09-24 13:09:01 +00:00 |
David Hewitt
|
1e8833e15e
|
always normalize exceptions before raising
|
2023-09-24 13:38:23 +01:00 |
David Hewitt
|
7d486bb72a
|
tests/common.rs -> src/tests/common.rs
|
2023-09-24 13:34:53 +01:00 |
David Hewitt
|
42f9cd4476
|
Merge pull request #3469 from davidhewitt/chrono-tidy-up
refactor chrono implementation to be more DRY
|
2023-09-24 09:32:43 +00:00 |
David Hewitt
|
f691a68b46
|
Merge pull request #3472 from davidhewitt/normalized-exceptions-3
unify 3.12 / non-3.12 error handling branches
|
2023-09-23 21:45:25 +00:00 |
David Hewitt
|
d089c92680
|
unify 3.12 / non-3.12 error handling branches
|
2023-09-23 22:18:59 +01:00 |
David Hewitt
|
97ee5967e0
|
increase test coverage of `chrono` feature
|
2023-09-23 13:51:38 +01:00 |
David Hewitt
|
20378a607b
|
Merge pull request #3466 from davidhewitt/docs-only-prs
docs: skip changelog check for docs-only PRs
|
2023-09-23 12:26:37 +00:00 |
David Hewitt
|
c8f82be32c
|
add assert_warnings test helper
|
2023-09-23 13:14:18 +01:00 |
David Hewitt
|
ccc22a905d
|
allow invalid_from_utf8 lint in tests
|
2023-09-23 12:54:53 +01:00 |
David Hewitt
|
2d61a73b02
|
refactor chrono implementation to be more DRY
|
2023-09-23 12:46:45 +01:00 |
David Hewitt
|
f17e703167
|
return existing module on Python 3.9 and up
|
2023-09-23 11:13:39 +01:00 |
David Hewitt
|
1338020511
|
relax multiple-import check to only prevent subinterpreters
|
2023-09-23 11:13:39 +01:00 |
David Hewitt
|
5798caf1f8
|
better `Some`-wrapping for default arguments
|
2023-09-21 21:14:44 +01:00 |
David Hewitt
|
1ec3c5a4fd
|
ci: adjust tests to avoid chrono panics
|
2023-09-21 08:34:45 +01:00 |
David Hewitt
|
bcb01049cc
|
Merge pull request #3404 from davidhewitt/fix-dealloc
call PyObject_GC_Untrack before deallocating
|
2023-09-11 05:18:34 +00:00 |
David Hewitt
|
932c5c7061
|
workaround BaseException issue on Python versions before 3.11
|
2023-09-10 22:16:17 +02:00 |
David Hewitt
|
e28403e772
|
call PyObject_GC_Untrack before deallocating
|
2023-09-09 22:29:58 +01:00 |
David Hewitt
|
8ddfef04bc
|
add detail to documentation for `PyDict::get_item`
|
2023-09-09 12:23:06 +01:00 |
David Hewitt
|
8a60540e25
|
amend code for `PyDict::get_item` change
|
2023-09-09 12:23:06 +01:00 |
David Hewitt
|
16728c4da2
|
move PyDict::get_item_with_error to PyDict::get_item
|
2023-09-09 12:23:06 +01:00 |
David Hewitt
|
f0f15edc4e
|
remove some redundant explicit doc links
|
2023-09-08 15:36:24 +01:00 |
David Hewitt
|
e67b283b25
|
Merge pull request #3358 from alex/ptr-unsafe-trait
fixes #3325 -- mark `AsPyPointer` as `unsafe trait`
|
2023-09-04 05:05:56 +00:00 |
David Hewitt
|
4c46d81afd
|
simplify thread checker implementation
|
2023-09-03 14:15:26 +01:00 |
David Hewitt
|
9e089a5538
|
fix chrono deprecation warnings
|
2023-09-02 20:55:53 +01:00 |
Ryan Lowe
|
b3cf61cea6
|
add types for built-in singletons
|
2023-08-26 08:57:34 -04:00 |
David Hewitt
|
a5d0a16b21
|
ci: updates for Rust 1.72
|
2023-08-25 12:30:34 +01:00 |
Adam Reichold
|
12183ad3ed
|
Merge pull request #3379 from iliya-malecki/main
BigInt speedup
|
2023-08-19 12:09:28 +00:00 |
David Hewitt
|
9604957c72
|
further refactor num-bigint conversion
|
2023-08-18 22:27:47 +01:00 |
Adam Reichold
|
94f15679ab
|
Merge pull request #3402 from Tpt/io-err-unwrap
Unwrap the underlying PyErr when converting an io::Error back to a PyErr
|
2023-08-18 16:56:53 +00:00 |
David Hewitt
|
15388fd53b
|
Merge pull request #3401 from messense/fix-issue-3400
Fix memory leak in `PyTypeBuilder::build`
|
2023-08-18 14:28:36 +00:00 |
Alex Gaynor
|
df5aa77800
|
fixes #3325 -- mark `AsPyPointer` as `unsafe trait`
|
2023-08-18 10:16:34 -04:00 |
Tpt
|
6d8e8b302f
|
Unwrap the underlying PyErr when converting an io::Error back to a PyErr
Exposes it directly instead of loosing all information outside the message
|
2023-08-18 15:56:25 +02:00 |
messense
|
2dc1e9a2b7
|
Fix memory leak in `PyTypeBuilder::build`
|
2023-08-18 21:13:13 +08:00 |
David Hewitt
|
c03c787a91
|
Merge pull request #3393 from alex/drop-other-trait
Remove usage of `AsPyPointer` in `IntoPy<PyObject>` trait implementation
|
2023-08-18 12:58:07 +00:00 |
David Hewitt
|
7f32ed96db
|
Merge pull request #3396 from Tpt/IntoInnerError
Uses io::Error code when converting io::IntoInnerError to PyErr
|
2023-08-18 08:27:35 +00:00 |