pyo3/newsfragments
Aneesh Agrawal c67625d683
Revamp PyType name functions to match PEP 737 (#4196)
* Revamp PyType name functions to match PEP 737

PyType::name uses `tp_name`, which is not consistent.
[PEP 737](https://peps.python.org/pep-0737/) adds a new path forward,
so update PyType::name and add PyType::{module,fully_qualified_name}
to match the PEP.

* refactor conditional code to handle multiple Python versions better

* return `Bound<'py, str>`

* fixup

---------

Co-authored-by: David Hewitt <mail@davidhewitt.dev>
2024-06-22 22:10:27 +00:00
..
.gitignore use towncrier to generate CHANGELOG 2022-09-08 07:58:53 +01:00
3761.changed.md Change the types of `PySliceIndices` and `PySlice::indices (#3761) 2024-04-18 07:33:07 +00:00
3835.added.md Add weakref Python types (#3835) 2024-05-31 19:13:50 +00:00
3966.packaging.md Update heck requirement from 0.4 to 0.5 (#3966) 2024-04-18 10:22:34 +00:00
4043.fixed.md Change `search_lib_dir`'s return type to Result (#4043) 2024-06-22 14:01:33 +00:00
4061.packaging.md build(deps): update chrono-tz requirement from >= 0.6, < 0.9 to >= 0.6, < 0.10 (#4061) 2024-04-18 08:58:51 +00:00
4072.added.md feat: support pyclass on tuple enums (#4072) 2024-05-17 02:59:00 +00:00
4078.changed.md deprecate implicit default for trailing optional arguments (#4078) 2024-05-10 10:34:58 +00:00
4079.added.md Allow use of scientific notation on rust decimal (#4079) 2024-04-14 20:07:17 +00:00
4086.fixed.md fix declarative module compile error with `create_exception!` (#4086) 2024-04-16 20:12:18 +00:00
4095.added.md Remove deferred reference count increments and make the global reference pool optional (#4095) 2024-05-11 14:48:45 +00:00
4095.changed.md Remove deferred reference count increments and make the global reference pool optional (#4095) 2024-05-11 14:48:45 +00:00
4098.changed.md add `#[track_caller]` to all `Py`/`Bound`/`Borrowed` methods which panic (#4098) 2024-04-19 11:44:36 +00:00
4100.changed.md change `PyAnyMethods::dir` to be fallible (#4100) 2024-04-19 19:35:52 +00:00
4104.fixed.md fix vectorcall argument handling (#4104) 2024-04-22 08:56:39 +00:00
4116.fixed.md Disable PyUnicode_DATA on PyPy (#4116) 2024-04-26 06:00:13 +00:00
4117.fixed.md handle `#[pyo3(from_py_with = ...)]` on dunder (`__magic__`) methods (#4117) 2024-05-04 07:39:40 +00:00
4129.changed.md Update MSRV to 1.63 (#4129) 2024-04-28 16:11:28 +00:00
4148.added.md Add `num-rational` support for Python's `fractions.Fraction` type (#4148) 2024-05-09 15:37:53 +00:00
4158.added.md allow constructor customization of complex enum variants (#4158) 2024-05-09 21:08:23 +00:00
4178.changed.md Lazy-initialize the global reference pool to reduce its overhead when unused (#4178) 2024-06-06 08:45:16 +00:00
4184.packaging.md ci: start testing on 3.13-dev (#4184) 2024-05-25 22:41:26 +00:00
4194.added.md Add error messages for unsupported macro features on compilation (#4194) 2024-06-16 10:23:03 +00:00
4196.added.md Revamp PyType name functions to match PEP 737 (#4196) 2024-06-22 22:10:27 +00:00
4196.changed.md Revamp PyType name functions to match PEP 737 (#4196) 2024-06-22 22:10:27 +00:00
4197.added.md adding new getter for type obj (#4197) 2024-05-25 22:39:48 +00:00
4201.changed.md remove internal APIs from pyo3-ffi (#4201) 2024-06-05 21:21:44 +00:00
4202.added.md feat: Add 'ord' option for PyClass and corresponding tests (#4202) 2024-06-07 19:08:53 +00:00
4205.added.md Added `ToPyObject` and `IntoPy<PyObject>` impls for `PyBackedStr`. (#4205) 2024-06-01 21:09:14 +00:00
4206.added.md add pyclass `hash` option (#4206) 2024-06-01 14:20:20 +00:00
4210.added.md add pyclass `eq` option (#4210) 2024-05-31 14:13:30 +00:00
4210.changed.md add pyclass `eq` option (#4210) 2024-05-31 14:13:30 +00:00
4213.added.md Automated module= field creation in declarative modules (#4213) 2024-06-06 07:54:26 +00:00
4214.added.md Added `From<Bound<'py, T>>` impl for `PyClassInitializer<T>`. (#4214) 2024-05-28 01:49:52 +00:00
4219.added.md Added `as_super` methods to `PyRef` and `PyRefMut`. (#4219) 2024-06-09 07:17:23 +00:00
4226.fixed.md Use `Ident::parse_any` for `name` attributes (#4226) 2024-06-03 19:45:36 +00:00
4228.changed.md Allow module= attribute in complex enum variants (#4228) 2024-06-03 07:57:04 +00:00
4236.fixed.md Declarative modules: make sure to emit doc comments and other attributes (#4236) 2024-06-06 21:19:37 +00:00
4237.changed.md pypy/graalpy: set `Py_LIMITED_API` when `abi3` requested (#4237) 2024-06-10 07:26:05 +00:00
4249.added.md implement `PyModuleMethods::filename` on PyPy (#4249) 2024-06-14 19:08:35 +00:00
4250.added.md Implement PartialEq for PyBytes and [u8] (#4259) 2024-06-22 22:08:57 +00:00
4251.fixed.md fix `__dict__` on Python 3.9 with limited API (#4251) 2024-06-16 07:57:44 +00:00
4254.changed.md use `ffi::MemberGef` for `#[pyo3(get)]` fields of `Py<T>` (#4254) 2024-06-21 23:33:34 +00:00
4255.added.md add `c_str!` macro to create `&'static CStr` (#4255) 2024-06-18 18:09:36 +00:00
4255.changed.md add `c_str!` macro to create `&'static CStr` (#4255) 2024-06-18 18:09:36 +00:00
4257.changed.md Stabilize declarative modules (#4257) 2024-06-17 01:28:20 +00:00
4258.added.md Update tests for numpy 2.0 (#4258) 2024-06-17 00:05:55 +00:00
4259.added.md Implement PartialEq for PyBytes and [u8] (#4259) 2024-06-22 22:08:57 +00:00
4264.changed.md Add several missing wrappers to PyAnyMethods (#4264) 2024-06-20 08:16:06 +00:00