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

change 0,1 to False,True in dict.has_key doc #38904

Closed
dalke mannequin opened this issue Jul 22, 2003 · 5 comments
Closed

change 0,1 to False,True in dict.has_key doc #38904

dalke mannequin opened this issue Jul 22, 2003 · 5 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@dalke
Copy link
Mannequin

dalke mannequin commented Jul 22, 2003

BPO 775836
Nosy @freddrake, @rhettinger

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 = 'https://github.com/rhettinger'
closed_at = <Date 2003-08-08.11:08:56.000>
created_at = <Date 2003-07-22.19:43:47.000>
labels = ['docs']
title = 'change 0,1 to False,True in dict.has_key doc'
updated_at = <Date 2003-08-08.11:08:56.000>
user = 'https://bugs.python.org/dalke'

bugs.python.org fields:

activity = <Date 2003-08-08.11:08:56.000>
actor = 'rhettinger'
assignee = 'rhettinger'
closed = True
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2003-07-22.19:43:47.000>
creator = 'dalke'
dependencies = []
files = []
hgrepos = []
issue_num = 775836
keywords = []
message_count = 5.0
messages = ['17238', '17239', '17240', '17241', '17242']
nosy_count = 4.0
nosy_names = ['fdrake', 'nnorwitz', 'rhettinger', 'dalke']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue775836'
versions = ['Python 2.4']

@dalke
Copy link
Mannequin Author

dalke mannequin commented Jul 22, 2003

http://python.org/doc/2.3c1/lib/typesmapping.html

says in the table

a.has_key(k) | 1 if a has a key k, else 0

Under Python 2.3 this is True / False

>>> {1:2}.has_key(1)
True
>>> {1:2}.has_key(2)
False
>>>

@dalke dalke mannequin closed this as completed Jul 22, 2003
@dalke dalke mannequin assigned rhettinger Jul 22, 2003
@dalke dalke mannequin added the docs Documentation in the Doc dir label Jul 22, 2003
@dalke dalke mannequin closed this as completed Jul 22, 2003
@dalke dalke mannequin assigned rhettinger Jul 22, 2003
@nnorwitz
Copy link
Mannequin

nnorwitz mannequin commented Jul 22, 2003

Logged In: YES
user_id=33168

Fred, not sure if this should be fixed for 2.3 or wait.

@freddrake
Copy link
Member

Logged In: YES
user_id=3066

It'll have to wait for 2.3.1/2.4. We've done (more than)
enough at this point.

@rhettinger
Copy link
Contributor

Logged In: YES
user_id=80475

I'll fix it after Py2.3 is done.

@rhettinger
Copy link
Contributor

Logged In: YES
user_id=80475

Fixed.
See Doc/lib/libstdtypes.tex 1.130 and 1.129.8.1

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 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