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

float.is_integer is undocumented #54354

Closed
ralphcorderoy mannequin opened this issue Oct 19, 2010 · 3 comments
Closed

float.is_integer is undocumented #54354

ralphcorderoy mannequin opened this issue Oct 19, 2010 · 3 comments
Labels
docs Documentation in the Doc dir

Comments

@ralphcorderoy
Copy link
Mannequin

ralphcorderoy mannequin commented Oct 19, 2010

BPO 10145
Nosy @mdickinson, @bitdancer

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 2010-11-07.12:53:32.130>
created_at = <Date 2010-10-19.11:40:38.365>
labels = ['docs']
title = 'float.is_integer is undocumented'
updated_at = <Date 2010-11-07.12:53:32.127>
user = 'https://bugs.python.org/ralphcorderoy'

bugs.python.org fields:

activity = <Date 2010-11-07.12:53:32.127>
actor = 'mark.dickinson'
assignee = 'docs@python'
closed = True
closed_date = <Date 2010-11-07.12:53:32.130>
closer = 'mark.dickinson'
components = ['Documentation']
creation = <Date 2010-10-19.11:40:38.365>
creator = 'ralph.corderoy'
dependencies = []
files = []
hgrepos = []
issue_num = 10145
keywords = []
message_count = 3.0
messages = ['119133', '119143', '120676']
nosy_count = 4.0
nosy_names = ['mark.dickinson', 'ralph.corderoy', 'r.david.murray', 'docs@python']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue10145'
versions = ['Python 3.1', 'Python 2.7', 'Python 3.2']

@ralphcorderoy
Copy link
Mannequin Author

ralphcorderoy mannequin commented Oct 19, 2010

floats now have an is_integer() method. I think it was added in 2.6 around the same time as as_integer_ratio(). It has a docstring but it isn't mentioned in the documentation. I only idled across it when reading the C source. I'd expect to find it, for example, at

http://docs.python.org/library/stdtypes.html?highlight=as_integer_ratio#additional-methods-on-float
http://docs.python.org/py3k/library/stdtypes.html?highlight=as_integer_ratio#additional-methods-on-float

Can it please be added, and for Py2, mention what version it appeared in.

@ralphcorderoy ralphcorderoy mannequin added the docs Documentation in the Doc dir label Oct 19, 2010
@merwok merwok changed the title (4.2).is_integer() is undocumented. float.is_integer is undocumented Oct 19, 2010
@bitdancer
Copy link
Member

Woops, I didn't meant to unassign docs.

@mdickinson
Copy link
Member

Fixed in r86293, r86394, r86295.

@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
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants