Python Forum
Questions on variable changing between files.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Questions on variable changing between files.
#6
(Apr-24-2017, 08:25 AM)wavic Wrote: Since you want to store Python objects consider pickle module too. Pay attention of the warning in the link. The red paragraph
Unless complex object state is to be saved, pickle is too heavy  - json is simpler.
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
RE: Questions on variable changing between files. - by volcano63 - Apr-24-2017, 10:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Keeping a value the same despite changing the variable it was equated to TheTypicalDoge 2 1,584 Mar-13-2022, 10:50 PM
Last Post: Yoriz
  changing Python files to .exe alok 2 2,349 Jul-20-2021, 02:49 PM
Last Post: alok
  Changing a variable's name on each iteration of a loop rix 6 86,088 Jan-03-2020, 07:06 AM
Last Post: perfringo
  how write variable in files and retreive it frank 2 2,135 Jan-30-2019, 12:53 AM
Last Post: frank
  int(variable) not changing variable to an integer StoopidChicken 2 3,077 Jan-11-2018, 10:30 AM
Last Post: StoopidChicken
  Discord bot that asks questions and based on response answers or asks more questions absinthium 1 54,159 Nov-25-2017, 06:21 AM
Last Post: heiner55
  changing variable outside of a function tkj80 8 7,488 Jan-05-2017, 03:52 AM
Last Post: tkj80

Forum Jump:

User Panel Messages

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