Re: [gnome-desktop-testing] patch - gedit/gedit_chains.py
- From: Tobias Mueller <muelli cryptobitch de>
- To: Nagappan A <nagappan gmail com>
- Cc: desktop-testing-list gnome org
- Subject: Re: [gnome-desktop-testing] patch - gedit/gedit_chains.py
- Date: Fri, 13 Feb 2009 16:34:40 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ahoi,
On 13.02.2009 05:20, Veerapuram Varadhan wrote:
> On Thu, 2009-02-12 at 18:42 -0800, Nagappan A wrote:
>> +from desktoptesting.check import *
>
> [...] and have it imported specifically
> instead of a "import *"
>
Indeed. Wildcard imports are to avoid for a number of reasons: They
might not work as expected on non case sensitive platforms.
Also, and this is much more important, it decreases the auditability: If
you don't wildcard import, you can always see where a Name comes from by
scanning the source.
Cheers,
Tobi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkmVkwwACgkQPuBX/6ogjZ61kgCfUv6lCBq8Rk4mC+hCax/ivHC1
LMQAn194jveAT87lS5EhacE5Iz2fnuCG
=7kCQ
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]