Skip to content

Use dictionary unpacking instead of merge operator for python 3.8 compatibility#4049

Merged
jlebar merged 1 commit intotriton-lang:mainfrom
alexbaden:alex/python38_dict_merge
Jun 1, 2024
Merged

Use dictionary unpacking instead of merge operator for python 3.8 compatibility#4049
jlebar merged 1 commit intotriton-lang:mainfrom
alexbaden:alex/python38_dict_merge

Conversation

@alexbaden
Copy link
Copy Markdown
Contributor

The dictionary merge operator was introduced in Python 3.9 and unfortunately PyTorch still supports 3.8. I think for this use case there is no downside to unpacking, other than that it's a bit ugly.

@jlebar jlebar enabled auto-merge (squash) June 1, 2024 04:37
@jlebar
Copy link
Copy Markdown
Contributor

jlebar commented Jun 1, 2024

Thanks.

@jlebar jlebar merged commit 03b8466 into triton-lang:main Jun 1, 2024
@alexbaden alexbaden deleted the alex/python38_dict_merge branch June 3, 2024 14:26
amjames pushed a commit to amjames/triton that referenced this pull request Jun 18, 2024
…patibility (triton-lang#4049)

The dictionary merge operator was introduced in Python 3.9 and
unfortunately PyTorch still supports 3.8. I think for this use case
there is no downside to unpacking, other than that it's a bit ugly.
amjames pushed a commit to amjames/triton that referenced this pull request Jun 18, 2024
…patibility (triton-lang#4049)

The dictionary merge operator was introduced in Python 3.9 and
unfortunately PyTorch still supports 3.8. I think for this use case
there is no downside to unpacking, other than that it's a bit ugly.
ptillet pushed a commit that referenced this pull request Jun 18, 2024
…patibility (#4160)

cherry pick #4049 for release/3.0.x

Co-authored-by: Alex Baden <alexbaden@users.noreply.github.com>
bertmaher pushed a commit to bertmaher/triton that referenced this pull request Dec 10, 2024
…patibility (triton-lang#4049)

The dictionary merge operator was introduced in Python 3.9 and
unfortunately PyTorch still supports 3.8. I think for this use case
there is no downside to unpacking, other than that it's a bit ugly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants