GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Multiprocessing Semaphore and BoundedSemaphore - incomplete features ('get_value' missing) on MacOSX. · Issue #125828 · python/cpython Open Labels OS-macstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-multiprocessingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:I've been working on this PR: Adding multiprocessing queue shutdown feature for a while on my Mac machine. I've come up with a solution for this new feature and wanted to check that it also worked on Linux. However, I had forgotten that import multiprocessing as mp bs = mp.BoundedSemaphore(2) print(bs) # <BoundedSemaphore(value=unknown, maxvalue=2)> note invalid representation string bs.release() # Succeed with MacOSX, Raise an exception on Linux I had to revise my solution because it was invalid on Linux. Such a shame, I wasted a lot of time. I checked on the documentation a few days ago . There is not a specific warning about this case. As a reminder, the initial reason is the absence of the A workaround (in Python) would be to use a shared value and to revise the I've already done a lot of tests (See the attached draft PR). And also, this solution should fix the representation strings that are currently wrong. Before going any further, I was wondering if there's a reason why no patch attempt has been implemented ? And was there an old discussion about this already ? Thanks for your feedback CPython versions tested on:3.10, 3.11, 3.12, 3.13, CPython main branch Operating systems tested on:macOS Linked PRsActivity
MetadataMetadataAssigneesLabelsOS-macstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-multiprocessingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error Projects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — 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. |