code review

Terry Reedy tjreedy at udel.edu
Fri Jun 29 23:02:07 EDT 2012


On 6/29/2012 4:43 PM, Alister wrote:

>> from x import * is frowned upon, however, from x import y is fine IMHO.
>>>
> well I said I was no expert & picking things up. re investigation I see
> your reasoning and yes it was the from X import * I was thinking of.
>
> Although a simple import X retaining the name-space ref does make it easy
> to identify the origins of a function (at the expense of more typing)

import tkinter as tk
for example, to minimize extra typing while identifying source.
___
Terry Jan Reedy






More information about the Python-list mailing list