Skip to content

DeprecationWarnings of implicitly truncations by __int__ appearing in the standard library #83196

Open

Description

@ambv
BPO 39015
Nosy @vstinner, @ambv, @serhiy-storchaka, @tirkarthi

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2019-12-10.15:03:06.691>
labels = ['3.8', 'type-bug', 'library']
title = 'DeprecationWarnings of implicitly truncations by __int__ appearing in the standard library'
updated_at = <Date 2019-12-12.09:18:19.956>
user = 'https://github.com/ambv'

bugs.python.org fields:

activity = <Date 2019-12-12.09:18:19.956>
actor = 'serhiy.storchaka'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2019-12-10.15:03:06.691>
creator = 'lukasz.langa'
dependencies = []
files = []
hgrepos = []
issue_num = 39015
keywords = ['3.8regression']
message_count = 2.0
messages = ['358195', '358197']
nosy_count = 4.0
nosy_names = ['vstinner', 'lukasz.langa', 'serhiy.storchaka', 'xtreak']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'pending'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue39015'
versions = ['Python 3.8']

Activity

  1. ambv commented on Dec 10, 2019

    @ambv
    ContributorAuthor

    The original issue was bpo-36048. Some call sites were not updated and now 3.8.0 and 3.8.1rc1 are emitting a lot of warnings like:

    <frozen importlib._bootstrap>:219: DeprecationWarning: an integer is required (got type float).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
    

    Adding authors of #56161 as nosy.

  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    type-bugAn unexpected behavior, bug, or error
    on Dec 10, 2019
  3. serhiy-storchaka commented on Dec 10, 2019

    @serhiy-storchaka
    Member

    How did you get warnings?

  4. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions