FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-153141: Fix mutable default argument in _SharedMemoryTracker.__init__ (GH-153142) by miss-islington · Pull Request #153147 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions Lib/multiprocessing/managers.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1253,9 +1253,9 @@ class SyncManager(BaseManager):
class _SharedMemoryTracker:
"Manages one or more shared memory segments."

def __init__(self, name, segment_names=[]):
def __init__(self, name, segment_names=None):
self.shared_memory_context_name = name
self.segment_names = segment_names
self.segment_names = [] if segment_names is None else segment_names

def register_segment(self, segment_name):
"Adds the supplied shared memory block name to tracker."
Expand Down
Loading

Back | FazBrowse Home | New Git URL