Skip to content

Conversation

@youknowone
Copy link
Member

No description provided.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 16, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@youknowone youknowone force-pushed the multi-phase-module-init branch from 405fcba to b830498 Compare January 16, 2026 06:07
@youknowone youknowone force-pushed the multi-phase-module-init branch from b830498 to b97576a Compare January 16, 2026 06:25
- Use PyModule::__init_dict_from_def() instead of manually creating
  dict as attribute, fixing module dict initialization
- Revert gc.get_referents/get_referrers to NotImplementedError

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@youknowone youknowone force-pushed the multi-phase-module-init branch from 660f2fb to 054b125 Compare January 16, 2026 06:32
@github-actions
Copy link
Contributor

Code has been automatically formatted

The code in this PR has been formatted using:

  • cargo fmt --all
    Please pull the latest changes before pushing again:
git pull origin multi-phase-module-init

@youknowone youknowone force-pushed the multi-phase-module-init branch from 7ce8228 to 338374a Compare January 16, 2026 06:43
@youknowone youknowone force-pushed the multi-phase-module-init branch from 338374a to 5b2598b Compare January 16, 2026 06:51
- Restore compile.rs to upstream/main to fix finally block not executing
  properly in return/break/continue paths. The previous changes to fblock
  handler clearing were incorrect and caused finally blocks to be skipped.

- Remove expectedFailure decorators from test_builtin_functions in
  test_pickle.py and test_pickletools.py as these tests now pass.

- Clean up duplicate test methods in PyPicklerTests class.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
use crate::vm::{PyRef, VirtualMachine, builtins::PyModule};

pub(crate) fn make_module(vm: &VirtualMachine) -> PyRef<PyModule> {
let _ = vm.import("_hashlib", 0);
Copy link
Member Author

Choose a reason for hiding this comment

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

this line must not be removed

@@ -1,5 +1,5 @@
#[macro_export]
macro_rules! extend_module {
macro_rules! module_exec {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is wrong renaming. extend_module is correct here

use crate::vm::{PyRef, VirtualMachine, builtins::PyModule};

pub(crate) fn make_module(vm: &VirtualMachine) -> PyRef<PyModule> {
let _ = vm.import("_hashlib", 0);
Copy link
Member Author

Choose a reason for hiding this comment

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

this line must not be removed

#[pymodule(with(cert::ssl_cert, ssl_error::ssl_error, ossl101, ossl111, windows))]
mod _ssl {
#[cfg(openssl_vendored)]
use super::PROBE;
Copy link
Member Author

Choose a reason for hiding this comment

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

does PROBE still need to defined on super?

youknowone and others added 2 commits January 17, 2026 00:53
- Restore extend_module macro name (was incorrectly renamed to module_exec)
- Restore sha256/sha512 make_module wrappers that import _hashlib first
- Move sha256/sha512 back to single-phase init (get_module_inits)
- Add call to add_native_modules for single-phase init modules

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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