[issue38517] functools.cached_property should support partial functions and partialmethod's

2019-11-13 Thread Tal Einat


Tal Einat  added the comment:

According to issue38524, this should be closed.

--

___
Python tracker 

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



[issue38517] functools.cached_property should support partial functions and partialmethod's

2019-11-13 Thread Tal Einat


Change by Tal Einat :


--
resolution:  -> wont fix
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



[issue38517] functools.cached_property should support partial functions and partialmethod's

2019-11-13 Thread Tal Einat


Tal Einat  added the comment:

Note that it is already possible, though awkward, to create cached properties 
dynamically. Using the example from PR GH-16838:

class ProcNet:
pass

for proto in ('icmp', 'icmp6', 'raw', 'raw6', 'tcp', 'tcp6', 'udp', 'udp6', 
'udplite', 'udplite6'):
@cached_property
def prop(self, *, proto=proto):
with open(os.path.join("/proc/net", proto)) as file:
return file.read()
setattr(ProcNet, proto, prop)
prop.__set_name__(ProcNet, proto)

IMO this is good enough, considering that this is all pretty much required for 
dynamically creating normal (uncached) properties and other types of 
descriptors.

--
nosy: +taleinat

___
Python tracker 

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



[issue38517] functools.cached_property should support partial functions and partialmethod's

2019-10-22 Thread Sergey Fedoseev


Sergey Fedoseev  added the comment:

issue38524 is related.

--
nosy: +sir-sigurd

___
Python tracker 

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



[issue38517] functools.cached_property should support partial functions and partialmethod's

2019-10-18 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
pull_requests: +16386
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16838

___
Python tracker 

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



[issue38517] functools.cached_property should support partial functions and partialmethod's

2019-10-18 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +carljm

___
Python tracker 

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



[issue38517] functools.cached_property should support partial functions and partialmethod's

2019-10-18 Thread Ricardo Branco


New submission from Ricardo Branco :

functools.cached_property should support partial functions and partialmethod's

This way one can create cached_property's dynamically.

--
components: Library (Lib)
messages: 354893
nosy: Ricardo Branco
priority: normal
severity: normal
status: open
title: functools.cached_property should support partial functions and 
partialmethod's
type: enhancement
versions: Python 3.8

___
Python tracker 

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