Pyfunction builtins and constructor by youknowone · Pull Request #5823 · RustPython/RustPython · GitHub
Skip to content

Pyfunction builtins and constructor#5823

Merged
youknowone merged 2 commits intoRustPython:mainfrom
youknowone:pyfunction
Jun 24, 2025
Merged

Pyfunction builtins and constructor#5823
youknowone merged 2 commits intoRustPython:mainfrom
youknowone:pyfunction

Conversation

@youknowone
Copy link
Copy Markdown
Member

@youknowone youknowone commented Jun 23, 2025

Summary by CodeRabbit

  • New Features

    • Added support for accessing the built-in namespace from Python function objects.
    • Enabled creation of Python function objects directly from Python code with enhanced argument options.
  • Bug Fixes

    • Improved validation for function closures to ensure correct structure and compatibility.
  • Refactor

    • Streamlined function object creation, removing redundant attribute assignments and simplifying argument handling.
  • Tests

    • Removed expected failure marker from a namedtuple test, indicating resolved test stability.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 23, 2025

Comment on lines +97 to +100
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.

check if this is required

@youknowone youknowone merged commit 3566dca into RustPython:main Jun 24, 2025
12 checks passed
@youknowone youknowone deleted the pyfunction branch June 24, 2025 01:23
@coderabbitai coderabbitai Bot mentioned this pull request Jul 3, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Dec 29, 2025
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