Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a module to import modules
#3
so if i use the filename __init__.py i don't need to actually import it?  i figured i would need to do from mycommonmodulename import *.  would that be enough?  can i do from whatever import * there, too (not the same names, of course)?

i was planning on using the name "common".  a choice i have used since my Fortran days (on mainframes, before i switched to Assembler for everything, which was before i did C, which was before i am doing Python).
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
a module to import modules - by Skaperen - Aug-04-2017, 03:59 AM
RE: a module to import modules - by nilamo - Aug-04-2017, 04:23 AM
RE: a module to import modules - by Skaperen - Aug-05-2017, 02:49 AM
RE: a module to import modules - by nilamo - Aug-05-2017, 05:23 PM
RE: a module to import modules - by metulburr - Aug-05-2017, 09:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Different Ways to Import Modules RockBlok 2 579 Dec-11-2023, 04:29 PM
Last Post: deanhystad
  is import cointegration_analysis a recognized module mitcht33 1 479 Nov-06-2023, 09:29 PM
Last Post: deanhystad
  problem in import module from other folder akbarza 5 1,590 Sep-01-2023, 07:48 AM
Last Post: Gribouillis
  can not import anaconda pandas module. PySpark pandas module is imported!! aupres 0 755 Aug-06-2023, 01:09 AM
Last Post: aupres
  Import Modules TheBunyip 4 1,301 Mar-10-2023, 04:47 PM
Last Post: buran
  import module error tantony 5 3,582 Dec-15-2022, 01:55 PM
Last Post: Lauraburmrs
  a bunch of modules to import Skaperen 2 935 Nov-07-2022, 07:33 PM
Last Post: Gribouillis
  Import a module one step back of the path prathampatel9 1 1,112 Sep-21-2022, 01:34 PM
Last Post: snippsat
  Import a module for use in type hint? Milosz 0 1,519 Nov-08-2021, 06:49 PM
Last Post: Milosz
  Can't install nor import delorean module Tek 3 2,878 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