[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread miss-islington


miss-islington  added the comment:


New changeset cc90732d15b267feb4cb75ec4c448a3c66e6c520 by Miss Islington (bot) 
in branch '3.9':
bpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918)
https://github.com/python/cpython/commit/cc90732d15b267feb4cb75ec4c448a3c66e6c520


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread miss-islington


miss-islington  added the comment:


New changeset 47673c47db352916384e4f35fa520e48475e2601 by Miss Islington (bot) 
in branch '3.10':
bpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918)
https://github.com/python/cpython/commit/47673c47db352916384e4f35fa520e48475e2601


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 380c44087505d0d560f97e325028f27393551164 by Terry Jan Reedy in 
branch 'main':
bpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918)
https://github.com/python/cpython/commit/380c44087505d0d560f97e325028f27393551164


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27211
pull_request: https://github.com/python/cpython/pull/28920

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 11.0 -> 12.0
pull_requests: +27210
pull_request: https://github.com/python/cpython/pull/28919

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +27209
pull_request: https://github.com/python/cpython/pull/28918

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

No. The last version did not properly incorporate my suggestion, so I will make 
a PR that I am willing to merge.

--
assignee: docs@python -> terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread za


za  added the comment:

I've included `doc1.patch` in the github PR 
https://github.com/python/cpython/pull/28818

Should I add the other patch as well to make this move forward?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-08 Thread za


Change by za :


--
nosy: +za3
nosy_count: 10.0 -> 11.0
pull_requests: +27136
pull_request: https://github.com/python/cpython/pull/28818

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2021-04-28 Thread Amir


Amir  added the comment:

Hi everyone!

I'm going to work on it. I have a plan to submit my pull request in the 
upcoming weeks. 

Thanks.

--
components:  -Interpreter Core
nosy: +Amir.Rastkhadiv20
versions: +Python 3.9 -Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2021-03-22 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +easy
versions: +Python 3.10 -Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2017-07-03 Thread Cheryl Sabella

Cheryl Sabella added the comment:

Sreepriya Chalakkal,

Would you be able to prepare a pull request on GitHub for your patch?


Thanks!

--
nosy: +csabella

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2017-07-03 Thread Jakub Stasiak

Changes by Jakub Stasiak :


--
nosy: +jstasiak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2014-12-03 Thread Josh Rosenberg

Changes by Josh Rosenberg :


--
nosy: +josh.r

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2014-03-14 Thread Sreepriya Chalakkal

Sreepriya Chalakkal added the comment:

In tutorials, under section 3.1.1 - Numbers, it is mentioned about the type of 
integers. And also a statement as "we will see more about numeric types later 
in the tutorial". May be we can mention about type class there. But it might be 
too early to mention about classes under Numbers for a learner. 

Otherwise, I also agree that the cross link is not very essential and could be 
dropped.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20692] Tutorial and FAQ: how to call a method on an int

2014-03-14 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I agree with Antoine about the particular cross-link and would drop that one. 
Is there somewhere earlier in the tutorial that discusses .attribute access? 
That would be the place to mention the ints and dotted names. Rather than a 
link, I would just mention that ints need to be separated from the period.

I also agree with David. Here is a condensed answer that I think says just what 
is needed.

---
This is because the Python parser sees an integer literal followed by a period 
as a float literal and a float literal followed by a name, 
``5. __class__``, is a syntax error. To look up an attribute on an integer 
literal, separate the integer from the period with either a space or 
parentheses.

>>> 5 .__class__

>>> (5).__class__


--
stage: needs patch -> patch review
title: Tutorial section 9.4 and FAQ: how to call a method on an int -> Tutorial 
and  FAQ: how to call a method on an int

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com