Skip to content

floats should not be cast to ints automatically #547

Description

@slozier

Methods that have integer parameters should not accept float arguments. For example, the following should all fail with TypeError:

chr(1.2)
datetime.datetime.fromordinal(1.2)

It appears that this was deprecated in 2.6 and disallowed in 2.7.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions