Welcome Robert. My response below.
Follow-ups to Python-Ideas, thanks. You'll need to subscribe to see any
further discussion.
On Fri, Jun 16, 2017 at 11:32:19AM +, Robert Vanden Eynde wrote:
> In a nutshell, I would like to be able to write:
> y = (b+2 for b = a + 1)
I think this is some
On 16/06/17 22:21, Ethan Furman wrote:
> On 06/16/2017 10:36 AM, Thomas Jollans wrote:
>> On 08/06/17 15:42, Antoine Pietri wrote:
>>> Hello everyone!
>>>
>>> A very common pattern when dealing with temporary files is code like
>>> this:
>>>
>>> with tempfile.TemporaryDirectory() as tmpdir:
>>
[cross-posted to python-ideas]
Hi Robert,
On 16/06/17 12:32, Robert Vanden Eynde wrote:
Hello, I would like to propose an idea for the language but I don't know
where I can talk about it.
Can you please explain what the problem is that you are trying to solve?
In a nutshell, I would like to
On 06/16/2017 01:37 PM, Alexandre Brault wrote:
So a if used directly, and a if used as a
context manager. I don't have a copy of 3.6 nor the future 3.7 handy,
so maybe it changed there?
The code in master has the context manager return `self.name`. This
behaviour has (based on looking at t
On 2017-06-16 04:21 PM, Ethan Furman wrote:
> On 06/16/2017 10:36 AM, Thomas Jollans wrote:
>> On 08/06/17 15:42, Antoine Pietri wrote:
>>> Hello everyone!
>>>
>>> A very common pattern when dealing with temporary files is code like
>>> this:
>>>
>>> with tempfile.TemporaryDirectory() as tmpdi
On 06/16/2017 10:36 AM, Thomas Jollans wrote:
On 08/06/17 15:42, Antoine Pietri wrote:
Hello everyone!
A very common pattern when dealing with temporary files is code like this:
with tempfile.TemporaryDirectory() as tmpdir:
tmp_path = tmpdir.name
os.chmod(tmp_path)
On 08/06/17 15:42, Antoine Pietri wrote:
> Hello everyone!
>
> A very common pattern when dealing with temporary files is code like this:
>
> with tempfile.TemporaryDirectory() as tmpdir:
> tmp_path = tmpdir.name
>
> os.chmod(tmp_path)
> os.foobar(tmp_path)
> ope
On 16 June 2017 at 07:44, Barry Scott wrote:
> But I need the result of __dir__ for my object not its base. Then I need to
> add in the list of member attributes that are missing because python
> itself has no knowledge of them they are accessed via getattr().
The C code:
dir_result = PyObjec