Python Forum
python import module or namespace from namepsace variable ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python import module or namespace from namepsace variable ?
#10
(May-23-2017, 01:28 PM)harun2525 Wrote: the python import system soooooooooooooooo bad,

is it really bad or simply you don't understand it?

given the folder structure in the other thread a __init__.py and __all__ property in it would allow you to do star import. Not that is a good practice :-)
Reply


Messages In This Thread
RE: python import module or namespace from namepsace variable ? - by buran - May-23-2017, 01:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  which namespace? Skaperen 5 287 May-28-2024, 05:38 AM
Last Post: Gribouillis
  is import cointegration_analysis a recognized module mitcht33 1 528 Nov-06-2023, 09:29 PM
Last Post: deanhystad
  problem in import module from other folder akbarza 5 1,743 Sep-01-2023, 07:48 AM
Last Post: Gribouillis
  can not import anaconda pandas module. PySpark pandas module is imported!! aupres 0 804 Aug-06-2023, 01:09 AM
Last Post: aupres
Video doing data treatment on a file import-parsing a variable EmBeck87 15 3,197 Apr-17-2023, 06:54 PM
Last Post: EmBeck87
  import module error tantony 5 3,664 Dec-15-2022, 01:55 PM
Last Post: Lauraburmrs
  Import a module one step back of the path prathampatel9 1 1,141 Sep-21-2022, 01:34 PM
Last Post: snippsat
Question How can I import a variable from another script without executing it ThomasFab 12 8,226 May-06-2022, 03:21 PM
Last Post: bowlofred
  Import a module for use in type hint? Milosz 0 1,561 Nov-08-2021, 06:49 PM
Last Post: Milosz
  Can't install nor import delorean module Tek 3 2,950 Oct-27-2021, 03:32 AM
Last Post: Tek

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020