[issue11704] functools.partial doesn't create bound methods

2014-03-30 Thread Nick Coghlan

Nick Coghlan added the comment:

With the introduction of functools.partialmethod in 3.4, marking this older 
docs issue as a won't fix

--
resolution:  - wont fix
stage:  - committed/rejected
status: open - closed
type:  - enhancement

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



[issue11704] functools.partial doesn't create bound methods

2011-03-28 Thread Alex Gaynor

New submission from Alex Gaynor alex.gay...@gmail.com:

This is related to the discussion we had at the PyCon language summit about C 
vs Python function binding.  If you create a partial instance and put it on a 
class it doesn't create bound instances.  This behavior is a tad surprising in 
my view.  At a minimum it'd be nice if the docs mentioned this.

--
messages: 132425
nosy: alex
priority: normal
severity: normal
status: open
title: functools.partial doesn't create bound methods
versions: Python 2.7, Python 3.2, Python 3.3

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



[issue11704] functools.partial doesn't create bound methods

2011-03-28 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

True, this could be documented better - flagging as a docs bug. (It is 
mentioned at the bottom of 
http://docs.python.org/library/functools.html#partial-objects, but that could 
be referenced better from the main documentation of the function higher up in 
the page)

There's actually more to it than just an oversight though - partial() fills in 
positional arguments from the left, so using one as a method would require 
specification of a carefully crafted selection of positional and keyword 
arguments to ensure the instance was bound and passed in at the right point.

--
assignee:  - docs@python
components: +Documentation
nosy: +docs@python, ncoghlan

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



[issue11704] functools.partial doesn't create bound methods

2011-03-28 Thread Alex Gaynor

Alex Gaynor alex.gay...@gmail.com added the comment:

Indeed I completely missed the section at the bottom.  A note in the above 
section would be a useful addition.

--

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