Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.13] gh-132710: only use stable_uuid.generate_time_safe() to deduce MAC address (GH-132901)#134704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
picnixz wants to merge3 commits intopython:3.13
base:3.13
Choose a base branch
Loading
frompicnixz:backport-3bffada-3.13

Conversation

picnixz
Copy link
Member

@picnixzpicnixz commentedMay 26, 2025
edited
Loading

(cherry picked from commit3bffada)

  • To be merged in August 2025.
  • Add the NEWS entry in a follow-up PR.

An additional NEWS entry will be needed (I forgot to do it for the other twos, so I'll add a NEWS entry for 3.15 and 3.14 in a separate PR, and when this PR needs to be merged, then I'll add it as well)

…to deduce MAC address (pythonGH-132901)(cherry picked from commit3bffada)Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@@ -572,22 +572,24 @@ def _netstat_getnode():
try:
import _uuid
_generate_time_safe = getattr(_uuid, "generate_time_safe", None)
_has_stable_extractable_node = _uuid.has_stable_extractable_node
Copy link
Contributor

@zaniebzaniebJun 6, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
_has_stable_extractable_node=_uuid.has_stable_extractable_node
_has_stable_extractable_node=getattr(_uuid,"has_stable_extractable_node",False)

This failed downstream inastral-sh/python-build-standalone#634, I think you need to usegetattr as above.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

(though maybe something else weird is going on)

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Hum, that's weird. The _uuid module should unconditionally have the attribute.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

That's what I thought from reading the patch too. I didn't dig deeper though, since this worked around the failing test.

@picnixz
Copy link
MemberAuthor

Once this is merged, I'll need to incorporate#135226 as well.

@picnixzpicnixz marked this pull request as ready for reviewJuly 12, 2025 11:07
@picnixzpicnixz marked this pull request as draftJuly 12, 2025 11:09
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@zaniebzaniebzanieb left review comments

@erlend-aaslanderlend-aaslandAwaiting requested review from erlend-aaslanderlend-aasland is a code owner

@corona10corona10Awaiting requested review from corona10corona10 is a code owner

Assignees

@picnixzpicnixz

Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@picnixz@zanieb

[8]ページ先頭

©2009-2025 Movatter.jp