2008-07-15: Selected articles now have experimental "comment" links in the left column and at the bottom. You're welcome to use them for commenting and voting on articles. For a bit more on this, see this page. /F

The as keyword

When used with import statements, the as keyword is used to rename the imported object.

When used with with statement, the as keyword is used to bind the value returned by the context object’s __enter__ method to a target list.

Note that as isn’t a reserved keyword in current versions of Python. This may change in future versions.

 

A Django site. this page was rendered by a django application in 0.07s 2008-07-25 10:15:19.978060. hosted by webfaction.