[issue11776] types.MethodType() params and usage is not documented

2012-07-22 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

Still not documented..

--

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



[issue11776] types.MethodType() params and usage is not documented

2012-07-22 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

Another 4 complains about missing references: 
http://stackoverflow.com/questions/1015307/python-bind-an-unbound-method

--

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



[issue11776] types.MethodType() params and usage is not documented

2011-10-16 Thread Mike Hoy

Changes by Mike Hoy mho...@gmail.com:


--
nosy: +mikehoy

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



[issue11776] types.MethodType() params and usage is not documented

2011-10-10 Thread Guandalino

Changes by Guandalino guandal...@gmail.com:


--
nosy: +guandalino

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



[issue11776] types.MethodType() params and usage is not documented

2011-10-10 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
keywords: +easy
versions: +Python 2.7, Python 3.3

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



[issue11776] types.MethodType() params and usage is not documented

2011-04-15 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

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



[issue11776] types.MethodType() params and usage is not documented

2011-04-09 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

Nevermind about #6040 - I just used the same technique to provide a workaround 
and then remembered I've seen this recipe on StackOverflow.

To me types is the right place, because that's exactly where are you sent from 
the docs of new module:

  Deprecated since version 2.6: The new module has been removed in Python 3.0. 
Use the types module’s classes instead.

http://docs.python.org/library/new.html

--

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



[issue11776] types.MethodType() params and usage is not documented

2011-04-09 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

When we do document types, their constructors and methods should also be 
documented.  This is a valid request.

--
nosy: +georg.brandl

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



[issue11776] types.MethodType() params and usage is not documented

2011-04-08 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

All the types in the types module are, being types, potentially callable to 
produce instances of that type. But they are in types rather than builtins 
precisely because it is not expected that they be called directly. They are 
bound to names in types primarily for isinstance checks, and possibly 
issubclass checks. So none of their signatures are documented in types. It 
would be an anomaly to add something special for MethodType. So my first 
impulse is to close this. Do you have a source for your statement?

--
nosy: +terry.reedy
type: behavior - feature request

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



[issue11776] types.MethodType() params and usage is not documented

2011-04-08 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

Message is classified as spam. I am not sure if you see it.

--

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



[issue11776] types.MethodType() params and usage is not documented

2011-04-08 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Messages that only consist of links are classified that way. To refer to other 
issues, use #x, as with #6040, but I have no idea which of the many 
messages you were referring to, so use msgxx.

The stack overflow link
http://stackoverflow.com/questions/972/adding-a-method-to-an-existing-object
which should be allowed given surrounding text, answers my question:
types.MethodType can be used as a replacement for 2.x new.instancemethod.

The question is where that should be mentioned. The types doc still seems like 
the wrong place. Perhaps somewhere in the language ref section on classes, if 
that is where bound methods are discussed.

--

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



[issue11776] types.MethodType() params and usage is not documented

2011-04-08 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
Removed message: http://bugs.python.org/msg133353

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



[issue11776] types.MethodType() params and usage is not documented

2011-04-08 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

For anyone curious, I removed the falsely classified as spam message after 
copying the links into my previous message.

--

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



[issue11776] types.MethodType() params and usage is not documented

2011-04-05 Thread anatoly techtonik

New submission from anatoly techtonik techto...@gmail.com:

types.MethodType(function, instance) is used as a replacement for 
new.instancemethod(function, instance, class), but this usage is not documented.

--
assignee: docs@python
components: Documentation
messages: 133089
nosy: docs@python, techtonik
priority: normal
severity: normal
status: open
title: types.MethodType() params and usage is not documented
versions: Python 3.2

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



[issue11776] types.MethodType() params and usage is not documented

2011-04-05 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
stage:  - needs patch
type:  - behavior

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