Re: [Python-ideas] Loosen 'as' assignment

2018-06-16 Thread Nick Coghlan
On 16 June 2018 at 15:49, Rin Arakaki wrote: > Hi, > I'm wondering if it's possible and consistent that loosen 'as' assignment, > for example: > > >>> import psycopg2 as pg > >>> import psycopg2.extensions as pg.ex > > You can't now assign to an attribute in as statement but are there some > reas

[Python-ideas] Loosen 'as' assignment

2018-06-15 Thread Rin Arakaki
Hi, I'm wondering if it's possible and consistent that loosen 'as' assignment, for example: >>> import psycopg2 as pg >>> import psycopg2.extensions as pg.ex You can't now assign to an attribute in as statement but are there some reasons? To be honest, I'll be satisfied if the statement above be