Skip to content

Make Timstamp cast thread-safe#299

Merged
lonvia merged 2 commits into
osmcode:masterfrom
lonvia:make-timestamp-thread-safe
Aug 26, 2025
Merged

Make Timstamp cast thread-safe#299
lonvia merged 2 commits into
osmcode:masterfrom
lonvia:make-timestamp-thread-safe

Conversation

@lonvia

@lonvia lonvia commented Aug 26, 2025

Copy link
Copy Markdown
Member

The cast from osmium::Timestamp to Python datetime was still using the thread-unsafe gmtime() function which causes issues with free-threaded Python. Switch to using Python's own conversion methods properly.

lonvia added 2 commits August 26, 2025 15:55
Avoid gmtime and use Python's own methos instead.
@lonvia lonvia merged commit 82865cd into osmcode:master Aug 26, 2025
28 checks passed
@lonvia lonvia deleted the make-timestamp-thread-safe branch August 26, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant