[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] swig-py: restrict *-import to svn_* names

From: Daniel Shahaf <danielsh_at_elego.de>
Date: Sun, 18 Mar 2012 17:59:36 +0200

Branko Čibej wrote on Sun, Mar 18, 2012 at 16:54:06 +0100:
> Yes, but why do this at all?

So people can do:

> >>> from svn.fs import *
> >>> svn_fs_begin_txn2()

without polluting their namespace with random names such as "cat" and
"list" (in the case of svn.client).

Daniel
(and yes, star-imports are a violation of some PEP. I know.)
Received on 2012-03-18 17:00:20 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.