Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix is/== misuse #60376

Closed
serhiy-storchaka opened this issue Oct 9, 2012 · 3 comments
Closed

Fix is/== misuse #60376

serhiy-storchaka opened this issue Oct 9, 2012 · 3 comments
Labels
tests Tests in the Lib/test dir type-feature A feature request or enhancement

Comments

@serhiy-storchaka
Copy link
Member

BPO 16172
Nosy @benjaminp, @ezio-melotti, @serhiy-storchaka
Files
  • is_int_or_str.patch
  • equals_none_or_bool.patch
  • 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 = <Date 2012-10-09.15:17:48.242>
    created_at = <Date 2012-10-09.09:54:54.815>
    labels = ['type-feature', 'tests']
    title = 'Fix is/== misuse'
    updated_at = <Date 2012-10-09.15:17:48.238>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2012-10-09.15:17:48.238>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-10-09.15:17:48.242>
    closer = 'benjamin.peterson'
    components = ['Tests']
    creation = <Date 2012-10-09.09:54:54.815>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['27503', '27504']
    hgrepos = []
    issue_num = 16172
    keywords = ['patch']
    message_count = 3.0
    messages = ['172467', '172485', '172486']
    nosy_count = 4.0
    nosy_names = ['benjamin.peterson', 'ezio.melotti', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'patch review'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue16172'
    versions = ['Python 3.4']

    @serhiy-storchaka
    Copy link
    Member Author

    Here are two patches written on the discussion in Python-Ideas [1].

    The first patch fixes incorrect use of "x is 0" or "x is 'foo'". Result of this operations is implementation details.

    The second patch changes non-idiomatic use of "x == None" or "x == True".

    [1] http://comments.gmane.org/gmane.comp.python.ideas/16547

    @serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label Oct 9, 2012
    @ezio-melotti ezio-melotti added the tests Tests in the Lib/test dir label Oct 9, 2012
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Oct 9, 2012

    New changeset 842276ae4a3f by Benjamin Peterson in branch '3.3':
    compare with equality not identity (issue bpo-16172)
    http://hg.python.org/cpython/rev/842276ae4a3f

    @benjaminp
    Copy link
    Contributor

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    tests Tests in the Lib/test dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants