[issue19281] add __objclass__ to the docs

2014-04-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0973d45197cc by Yury Selivanov in branch '3.4':
docs: Document __objclass__. Closes #19281.
http://hg.python.org/cpython/rev/0973d45197cc

New changeset 2a953cb5642d by Yury Selivanov in branch 'default':
docs: Document __objclass__. Closes #19281.
http://hg.python.org/cpython/rev/2a953cb5642d

--
nosy: +python-dev
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue19281] add __objclass__ to the docs

2014-04-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 372b19005011 by Yury Selivanov in branch '3.4':
docs: Better wording for __objclass__ docs. Issue #19281
http://hg.python.org/cpython/rev/372b19005011

New changeset febd63a7e927 by Yury Selivanov in branch 'default':
docs: Better wording for __objclass__ docs. Issue #19281
http://hg.python.org/cpython/rev/febd63a7e927

--

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



[issue19281] add __objclass__ to the docs

2014-03-10 Thread priya

Changes by priya priyapappachan...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file34324/__objclass__.patch

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



[issue19281] add __objclass__ to the docs

2014-03-10 Thread priya

priya added the comment:

I added __objclass__ to the datamodel section. Patch is submitted for the same. 
Can you clarify about the link to be provided from this section? I couldn't 
find the classification function in Documentation.

--
nosy: +priyapappachan

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



[issue19281] add __objclass__ to the docs

2014-03-10 Thread Éric Araujo

Éric Araujo added the comment:

Thanks for the patch.  Could you make sure the text wraps at 80 characters?

--

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



[issue19281] add __objclass__ to the docs

2014-03-10 Thread Éric Araujo

Éric Araujo added the comment:

I think Nick was referring to this function: 
http://docs.python.org/3.4/library/inspect#inspect.ismethod

--
versions: +Python 2.7, Python 3.3

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



[issue19281] add __objclass__ to the docs

2014-01-29 Thread Nick Coghlan

Nick Coghlan added the comment:

Huh, I thought we did this back when Ethan was working on enum stuff, but I 
guess we never figured out exactly where to put it.

Considering that question again now, I suggest adding it to the end of the 
subsection on implementing descriptors, since that's when it is most likely to 
be relevant:

http://docs.python.org/dev/reference/datamodel.html#implementing-descriptors

--
keywords: +easy
stage:  - needs patch
type:  - enhancement
versions: +Python 3.4

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



[issue19281] add __objclass__ to the docs

2014-01-28 Thread Yury Selivanov

Yury Selivanov added the comment:

Should we commit this in 3.4?

--
nosy: +yselivanov

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



[issue19281] add __objclass__ to the docs

2013-10-24 Thread Nick Coghlan

Nick Coghlan added the comment:

Changing the order a bit, perhaps something like this in the data model section:

__objclass__: Interpreted by the inspect module as specifying the class where 
this object was defined (setting this appropriately can assist in runtime 
introspection of dynamic class attributes). For callables, may indicate that an 
instance of the given type (or a subclass) is expected or required as the first 
positional argument (for example, CPython sets this for unbound methods that 
are implemented in C rather than being normal Python functions).

Perhaps with a cross-reference from the classification function in inspect?

--

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



[issue19281] add __objclass__ to the docs

2013-10-23 Thread Ethan Furman

Changes by Ethan Furman et...@stoneleaf.us:


--
nosy: +ncoghlan

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



[issue19281] add __objclass__ to the docs

2013-10-21 Thread Ethan Furman

Ethan Furman added the comment:

The proposed text is something along the lines of:

__objclass__: 1) Indicates this callable requires an instance of the given type 
(or a subclass) as its first positional argument; e.g. CPython sets this for 
unbound methods that are implemented in C rather than Python.  2) The class 
where this object was defined.

So, any ideas for improvement, and, more importantly, where in the docs should 
this go?

--

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



[issue19281] add __objclass__ to the docs

2013-10-18 Thread Ethan Furman

New submission from Ethan Furman:

Currently __objclass__ is only documented in a ten-year old PEP.

--
messages: 200190
nosy: eric.araujo, ethan.furman, ezio.melotti, georg.brandl
priority: normal
severity: normal
status: open
title: add __objclass__ to the docs

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



[issue19281] add __objclass__ to the docs

2013-10-18 Thread CliffM

Changes by CliffM cliffm1...@gmail.com:


--
nosy: +CliffM

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



[issue19281] add __objclass__ to the docs

2013-10-18 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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