GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add `is_integer` to fractions.Fraction · Issue #100488 · python/cpython

Add is_integer to fractions.Fraction #100488

New issue
Copy link
New issue
Copy link
Closed
Closed
Add is_integer to fractions.Fraction#100488
Copy link
Labels
type-featureA feature request or enhancementA feature request or enhancement

Description

@hauntsaninja
hauntsaninja
opened on Dec 24, 2022
Issue body actions

Requested by @mdickinson in #100268 (comment)

The case for:

  • Improves duck type compatibility between Fraction and float (and now int)
  • Simple to implement; hopefully low maintenance cost

The case against:

  • Not aware of much demand for it from users
  • The case for int.is_integer is much stronger, since the PEP 484 type system conflates float and int | float

Linked PRs

  • gh-100488: Add is_integer method to fractions.Fraction #100489

Activity

  1. hauntsaninja
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Dec 24, 2022
  2. hauntsaninja
    added a commit that references this issue on Dec 24, 2022

    pythongh-100488: Add is_integer method to fractions.Fraction

    626ca91
  3. hauntsaninja
    added a commit that references this issue on Jan 1, 2023

    gh-100488: Add is_integer method to fractions.Fraction (#100489)

    e83f88a
  4. hauntsaninja
    closed this as completedon Jan 1, 2023
  5. scoder
    added a commit that references this issue on Mar 19, 2023

    Implement "Fraction.is_integer()", following python/cpython#100488

    f10e073
  6. bmwiedemann
    added a commit that references this issue on Mar 21, 2023

    Update python-quicktions to version 1.14 / rev 7 via SR 1073017

    ee9ccd6
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

    type-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.