You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/birkenfeld'closed_at=<Date2007-03-13.20:47:10.000>created_at=<Date2006-03-07.00:55:30.000>labels= ['interpreter-core']
title='kwdargs for compile/__import__'updated_at=<Date2007-03-13.20:47:10.000>user='https://github.com/Yhg1s'
Keyword arguments for compile() and __import__(), as
discussed at PyCon. There is a slight speed difference
on my development system: __import__ is ~1% slower,
compile() is ~1.5% faster. I blame both on caches,
alignment and what not, so I bet they're totally
different for everyone. I'd say the advantage of
managing the growing set of arguments outweighs the
speed impact (if any.)
These look good to me. Thanks Thomas. I had started a patch
for import. BTW I think the new __import__ needs to be
documented in libfuncs.txt or somewhere like that. If you
don't get to it, I'll find my change and update the docs.
Activity
Yhg1s commentedon Mar 7, 2006
Keyword arguments for compile() and __import__(), as
discussed at PyCon. There is a slight speed difference
on my development system: __import__ is ~1% slower,
compile() is ~1.5% faster. I blame both on caches,
alignment and what not, so I bet they're totally
different for everyone. I'd say the advantage of
managing the growing set of arguments outweighs the
speed impact (if any.)
nnorwitz commentedon Mar 7, 2006
Logged In: YES
user_id=33168
These look good to me. Thanks Thomas. I had started a patch
for import. BTW I think the new __import__ needs to be
documented in libfuncs.txt or somewhere like that. If you
don't get to it, I'll find my change and update the docs.
loewis commentedon Mar 5, 2007
Is anybody still working on this?
birkenfeld commentedon Mar 13, 2007
__import__ already accepted kwargs, committed the compile() part in rev. 54358.