Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Completed implementation of float() builtin - all test cases now passing. #747

Merged
merged 2 commits into from
May 15, 2018

Conversation

nicklambourne
Copy link
Contributor

@nicklambourne nicklambourne commented May 15, 2018

Changes

Added python-compliant error handling support for passing complex, byte and bytearray objects to the float builtin function. Some of these types threw non-standard messages in python and this functionality has been implemented in Batavia.

Problem

Error handling for objects of type complex, bytes and bytearray when passed to the builtin float() did not conform to the CPython implementation (generally threw ValueErrors instead of the correct TypeErrors). These issues were the causes of all remaining test failures in the float() Batavia implementation.

Issues

Contributes to fixing #47.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

👍

@freakboy3742 freakboy3742 merged commit 198927f into beeware:master May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants