Repository navigation
Stop Rust comments on Python items from becoming __doc__ - #8893
Conversation
Use `//` instead of `///` on Python-exposed items so their comments are not published as `__doc__`. Assisted-by: Claude:claude-opus-5-5 Assisted-by: Grok:grok-4.7
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: RustPython/RustPython/.coderabbit.yml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (27)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughComments across Rust standard-library, VM, and WebAssembly modules were changed or reworded. The ChangesSource comments and annotations
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The comment updates leave behavior unchanged, and the weak-reference class metadata matches its exported name and module. No actionable merge-blocking risk is identified. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The weak-reference type’s visible name and module change, which may affect code that inspects them. No change to executable behavior or privileges was identified, but downstream compatibility has not been verified. Retained concerns Security review detailsSecurity Blast Radius
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Rust
///comments on#[py*]items are published as__doc__. This changes them to//where the text is a Rust implementation note rather than a Python docstring, so these objects no longer show it:weakref.ReferenceType("PyWeakReference: …"),types.FrameType,types.WrapperDescriptorType,types.MethodWrapperType,types.ClassMethodDescriptorType_io.FileIO._dealloc_warn("fileio_dealloc_warn in Modules/_io/fileio.c")_pickle.Pickler.persistent_id,_pickle.Unpickler.persistent_load_ctypes.PyObj_FromPtr,_unpickle,call_function,call_cdeclfunction,_SimpleCData.__ctypes_from_outparam___multibytecodec.__create_codec,_multiprocessing.SemLock._rebuild,_multiprocessing.sem_unlink,_ssl._test_decode_cert_asyncio,_elementtree,_json,resource,_abc,gc,_winapi,_interpchannelsand the wasm_jsmoduleWhere the database has a docstring for the item, that is now used instead (
weakref.ReferenceType.__class_getitem__).Only comments change. rustdoc on items that are not exposed to Python is unchanged.
///that matches the real docstring (struct sequence__replace__,coroutine.__name__/__qualname__) is left for #8877, which provides the database entries for them.Checked with a
__doc__dump over every builtin module's classes, functions and descriptors against CPython 3.14.7 (macOS arm64): 18 more items match than on main (908368e), none fewer.Split out of #8877.
🤖 Generated with Claude Code
Summary by CodeRabbit