Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #104230 > unrolled thread

Re: importing

Started byTony van der Hoff <tony@vanderhoff.org>
First post2016-03-07 17:23 +0000
Last post2016-03-07 17:23 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: importing Tony van der Hoff <tony@vanderhoff.org> - 2016-03-07 17:23 +0000

#104230 — Re: importing

FromTony van der Hoff <tony@vanderhoff.org>
Date2016-03-07 17:23 +0000
SubjectRe: importing
Message-ID<mailman.31.1457371425.10335.python-list@python.org>
Thanks to all who replied to my cry for help; I understand it better 
now. But:

On 07/03/16 16:08, Chris Angelico wrote:
>
> The documentation should tell you what you need to import to make
> something work. In this case, I would guess that "import
> tkinter.messagebox" or "from tkinter import messagebox" would be the
> recommended way to use this module.

Well, I found the tkinter documentation to be sparse in the extreme 
(https://docs.python.org/release/3.1.3/library/tkinter.html), and it 
certainly doesn't go into that sort of detail.

However, more generally, how am I supposed to know that a module is part 
of a package, and needs a "magic" stanza to get a module loaded?

Cheers,
-- 
Tony van der Hoff        | mailto:tony@vanderhoff.org
Buckinghamshire, England |

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web