On 04/06/2019 14:47, Mike Bayer wrote:
>
>
> On Tue, Jun 4, 2019, at 3:05 AM, Chris Withers wrote:
>> Hi All,
>>
>> What creates session.transaction? I can't spot get __getattr__ magic,
>> but the only place in the code I see it being created is in .begin(...),
>> which has a docstring saying that it should no longer be used, so I feel
>> like I must be missing something?
>
>
> self.begin() is called inside the __init__ method of the Session when
> autocommit is at the default of False.
Okay, I must have missed that.
Just double checking: I thought you said that Session() would not block?
If it's calling self.begin(), how come that isn't a blocking operation?
cheers,
Chris