GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix SemLock constant interning to avoid panic · RustPython/RustPython@c91612c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • crates/stdlib/src
    • multiprocessing.rs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎crates/stdlib/src/multiprocessing.rs‎

Copy file name to clipboardExpand all lines: crates/stdlib/src/multiprocessing.rs
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,17 +339,15 @@ mod _multiprocessing {
339339
#[extend_class]
340340
fn extend_class(ctx: &Context, class: &Py<PyType>) {
341341
class.set_attr(
342-
ctx.interned_str("RECURSIVE_MUTEX")
343-
.expect("intern RECURSIVE_MUTEX"),
342+
ctx.intern_str("RECURSIVE_MUTEX"),
344343
ctx.new_int(RECURSIVE_MUTEX_KIND).into(),
345344
);
346345
class.set_attr(
347-
ctx.interned_str("SEMAPHORE").expect("intern SEMAPHORE"),
346+
ctx.intern_str("SEMAPHORE"),
348347
ctx.new_int(SEMAPHORE_KIND).into(),
349348
);
350349
class.set_attr(
351-
ctx.interned_str("SEM_VALUE_MAX")
352-
.expect("intern SEM_VALUE_MAX"),
350+
ctx.intern_str("SEM_VALUE_MAX"),
353351
ctx.new_int(SEM_VALUE_MAX_CONST).into(),
354352
);
355353
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.