Skip to content

Add into_object_py_any to IntoPyObjectExt#5992

Closed
bschoenmaeckers wants to merge 1 commit intoPyO3:mainfrom
bschoenmaeckers:into_object_py_any
Closed

Add into_object_py_any to IntoPyObjectExt#5992
bschoenmaeckers wants to merge 1 commit intoPyO3:mainfrom
bschoenmaeckers:into_object_py_any

Conversation

@bschoenmaeckers
Copy link
Copy Markdown
Member

When working with generic code over BoundObject, I found it useful to have a method to convert values into python without thinking about Borrowed or Bound references.

Comment thread src/conversion.rs

/// Converts `self` into a Owned or Borrowed Python object, dropping type information.
#[inline]
fn into_object_py_any(
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternative name could be into_pyobject_any?

@bschoenmaeckers
Copy link
Copy Markdown
Member Author

This was not as useful as I thought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant