Python Forum
Importing a function from another file runs the old lines also
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Importing a function from another file runs the old lines also
#1
I'm trying to import a function, an "def" function, to a new file, but when i do, the old line ABOVE are also read. Why!?
Reply


Messages In This Thread
Importing a function from another file runs the old lines also - by dedesssse - Jul-06-2021, 05:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [solved] how to delete the 10 first lines of an ascii file paul18fr 7 2,204 Aug-07-2024, 08:18 PM
Last Post: Gribouillis
  problem program runs in a loop jasserin 0 932 May-18-2024, 03:07 PM
Last Post: jasserin
  New2Python: Help with Importing/Mapping Image Src to Image Code in File CluelessITguy 0 1,290 Nov-17-2022, 04:46 PM
Last Post: CluelessITguy
  Another program runs bho68 7 2,669 Nov-08-2022, 08:16 PM
Last Post: bho68
  Delete multiple lines from txt file Lky 6 4,301 Jul-10-2022, 12:09 PM
Last Post: jefsummers
  Problem with importing Python file in Visual Studio Code DXav 7 10,702 Jun-15-2022, 12:54 PM
Last Post: snippsat
  importing functions from a separate python file in a separate directory Scordomaniac 3 2,464 May-17-2022, 07:49 AM
Last Post: Pedroski55
  failing to print not matched lines from second file tester_V 14 9,522 Apr-05-2022, 11:56 AM
Last Post: codinglearner
  Extracting Specific Lines from text file based on content. jokerfmj 8 6,034 Mar-28-2022, 03:38 PM
Last Post: snippsat
  [Solved] Trying to read specific lines from a file Laplace12 7 5,489 Jun-21-2021, 11:15 AM
Last Post: Laplace12

Forum Jump:

User Panel Messages

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