Antony Lee added the comment:
It means the Path/PurePath that would be constructed with the same single str
parameter, or equivalently that has the same os.fspath().
--
___
Python tracker
<https://bugs.python.org/issue27
Change by Antony Lee :
--
keywords: +patch
pull_requests: +26526
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/28083
___
Python tracker
<https://bugs.python.org/issu
Change by Antony Lee :
--
keywords: +patch
pull_requests: +26252
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/27782
___
Python tracker
<https://bugs.python.org/issu
Antony Lee added the comment:
Actually, upon further thought, the semantics I suggested above should go into
`operator.caller` (cf. `operator.methodcaller`), and
`operator.call`/`operator.__call__` should instead be defined as
`operator.call(f, *args, **kwargs) == f(*args, **kwargs)`, so
New submission from Antony Lee :
Currently, methodcaller is not faster than a plain lambda:
```
In [1]: class T:
...: a = 1
...: def f(self): pass
...:
In [2]: from operator import *
In [3]: %%timeit t = T(); mc = methodcaller("f")
...: mc(t)
...:
...
Change by Antony Lee :
--
nosy: -Antony.Lee
___
Python tracker
<https://bugs.python.org/issue44019>
___
___
Python-bugs-list mailing list
Unsubscribe:
Antony Lee added the comment:
> I'm not convinced that operator.caller() would be useful to me.
To be clear, as noted above, I have realized that the semantics I initially
proposed (now known as "caller") are not particularly useful; the semantics I
am proposing (and
Change by Antony Lee :
--
nosy: -Antony.Lee
___
Python tracker
<https://bugs.python.org/issue27161>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Antony Lee :
--
nosy: -Antony.Lee
___
Python tracker
<https://bugs.python.org/issue33581>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Antony Lee :
--
nosy: -Antony.Lee
___
Python tracker
<https://bugs.python.org/issue43286>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Antony Lee :
--
nosy: -Antony.Lee
___
Python tracker
<https://bugs.python.org/issue23991>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Antony Lee :
--
nosy: -Antony.Lee
___
Python tracker
<https://bugs.python.org/issue25477>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Antony Lee :
The documentation for PyModule_AddString{Constant,Macro} does not specify the
encoding used. Checking the source shows that these simply call
PyUnicode_FromString and thus use utf8, but perhaps this could be made explicit.
--
assignee: docs@python
Change by Antony Lee :
--
nosy: -Antony.Lee
___
Python tracker
<https://bugs.python.org/issue26120>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Antony Lee :
--
nosy: -Antony.Lee
___
Python tracker
<https://bugs.python.org/issue24253>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Antony Lee :
--
nosy: -Antony.Lee
___
Python tracker
<https://bugs.python.org/issue46785>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Antony Lee :
In a first Python process, repeatedly create and delete a file:
from pathlib import Path
while True:
Path("foo").touch(); Path("foo").unlink()
In another process, repeatedly check for the path's existence:
from pathlib import Path
wh
Change by Antony Lee :
--
nosy: -Antony.Lee
___
Python tracker
<https://bugs.python.org/issue26792>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Antony Lee :
--
nosy: -Antony.Lee
___
Python tracker
<https://bugs.python.org/issue43721>
___
___
Python-bugs-list mailing list
Unsubscribe:
201 - 219 of 219 matches
Mail list logo