[issue21145] Add the @cached_property decorator

2016-11-11 Thread Daniel Greenfeld
Daniel Greenfeld added the comment: I'm delighted to see a patch submitted, but I'm concerned that it isn't thread safe. This was implemented in the cached-property package I maintain: * https://github.com/pydanny/cached-property/issues/6 * https://github.com/pydanny/cached-

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-07-31 Thread Daniel Greenfeld
Daniel Greenfeld added the comment: First, if there is documentation that says, "3.4.1", doesn't it make sense that the documentation should only be for 3.4.1? Which means that this create_task documentation should be reverted in the 3.4.1 documentation to match the 3.4.1

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-07-30 Thread Daniel Greenfeld
Daniel Greenfeld added the comment: This has been fixed in 3.4.2, but shows up in the 3.4.1 documentation. How do I fix the 3.4.1 documentation so this doesn't show up? -- Added file: http://bugs.python.org/file36173/Screen Shot 2014-07-30 at 8.13.12 P

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-07-30 Thread Daniel Greenfeld
New submission from Daniel Greenfeld: Problem The documentation on asyncio provides an example of a parallel execution of tasks. The code is at: https://docs.python.org/3/library/asyncio-task.html#example-parallel-execution-of-tasks ``` python import asyncio @asyncio.coroutine def

[issue21145] Add the @cached_property decorator

2014-05-18 Thread Daniel Greenfeld
Daniel Greenfeld added the comment: For what it's worth, I just released cached-property on PyPI and someone suggested I join the discussion here. Package: https://pypi.python.org/pypi/cached-property Repo: https://github.com/pydanny/cached-property Notes: * 92% test coverage, albeit w