Skip to content

Make monkeyYaml Python3 compatible#10

Open
mi-ac wants to merge 1 commit into
test262-utils:masterfrom
mi-ac:py3-fix
Open

Make monkeyYaml Python3 compatible#10
mi-ac wants to merge 1 commit into
test262-utils:masterfrom
mi-ac:py3-fix

Conversation

@mi-ac

@mi-ac mi-ac commented Feb 11, 2022

Copy link
Copy Markdown

Python2 allows <int> < None which evaluates to False. In Python3 this raises an exception. See:
https://crbug.com/1296209

Initializing with 0 preserves the logic and works in both Python versions.

Python2 allows `<int> < None` which evaluates to False. In Python3 this raises an exception. See:
https://crbug.com/1296209

Initializing with 0 preserves the logic and works in both Python versions.
@Ms2ger

Ms2ger commented Feb 14, 2022

Copy link
Copy Markdown
Contributor

Ping @jugglinmike

@FrankYFTang

Copy link
Copy Markdown

I am blocked by this in v8.

@FrankYFTang

Copy link
Copy Markdown

Ping @jugglinmike

@FrankYFTang

Copy link
Copy Markdown

@leobalter could you approve and merge this. we got blocked by this in v8.

cclauss added a commit to cclauss/test262-harness-py that referenced this pull request Apr 15, 2023
@cclauss

cclauss commented Apr 15, 2023

Copy link
Copy Markdown

Proven in #13 and used there to fix failing pytests.

@cclauss cclauss left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is an essential change for Python 3.

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.

4 participants