Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
which namespace?
#3
foo() will access bar() locally within its own module namespace. This means that foo() will call bar() from the same module it was imported from, regardless of whether bar() was imported directly or not.
Reply


Messages In This Thread
which namespace? - by Skaperen - May-27-2024, 04:03 AM
RE: which namespace? - by deanhystad - May-27-2024, 05:32 AM
RE: which namespace? - by andraee - May-27-2024, 12:34 PM
RE: which namespace? - by Skaperen - May-28-2024, 12:27 AM
RE: which namespace? - by Skaperen - May-28-2024, 12:31 AM
RE: which namespace? - by Gribouillis - May-28-2024, 05:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  'namespace' shorthand for function arguments? shadowphile 5 2,766 Aug-11-2021, 09:02 PM
Last Post: shadowphile
  [PyKML] Loop through all Placemarks; Remove namespace Winfried 2 3,643 Aug-28-2020, 09:24 AM
Last Post: Winfried
  Beginner question: lxml's findall in an xml namespace aecklers 0 3,048 Jan-22-2020, 10:53 AM
Last Post: aecklers
  Namespace and scope difference Uchikago 9 4,876 Jul-03-2019, 03:36 PM
Last Post: Uchikago
  global namespace of an imported function (2 Qs) Skaperen 4 3,403 Oct-09-2018, 12:30 AM
Last Post: Skaperen
  Namespace Packages jmj1970 0 3,216 Sep-30-2017, 03:13 PM
Last Post: jmj1970
  local namespace vs. global namespace Skaperen 13 10,210 Jul-02-2017, 11:30 AM
Last Post: DeaD_EyE
  python import module or namespace from namepsace variable ? harun2525 11 9,010 May-23-2017, 05:39 PM
Last Post: Larz60+
  AttributeError: 'Namespace' object has no attribute 'brokeName' kikilalongue 4 24,858 May-22-2017, 12:00 PM
Last Post: kikilalongue
  python How to import All modules from namespace harun2525 1 8,513 May-20-2017, 10:10 AM
Last Post: buran

Forum Jump:

User Panel Messages

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