Python Forum
Code doesn't seem to write anything
Thread Rating:
  • 3 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code doesn't seem to write anything
#10
I'll go ahead and try that, but here is something I found on the difference between dump and dumps.

"There isn't pretty much anything else to add other than what the docs say, if you want to dump the JSON into a file/socket or whatever, then you should go for dump(). If you only need it as a string (for printing, parsing or whatever) then use dumps() (dump string)"
Reply


Messages In This Thread
Code doesn't seem to write anything - by PickyBiker - May-10-2017, 06:24 PM
RE: Code doesn't seem to write anything - by nilamo - May-10-2017, 07:06 PM
RE: Code doesn't seem to write anything - by PickyBiker - May-11-2017, 12:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UART write binary code trix 3 374 Apr-28-2024, 04:57 PM
Last Post: deanhystad
  write code that resides in parent directory franklin97355 3 498 Apr-14-2024, 02:03 AM
Last Post: franklin97355
  Last record in file doesn't write to newline gonksoup 3 506 Jan-22-2024, 12:56 PM
Last Post: deanhystad
  needing some help to write some code for a game calculator rymdaksel 1 486 Jan-02-2024, 09:56 AM
Last Post: deanhystad
  Code works but doesn't give the right results colin_dent 2 772 Jun-22-2023, 06:04 PM
Last Post: jefsummers
  Why doesn't this code work? What is wrong with path? Melcu54 7 1,923 Jan-29-2023, 06:24 PM
Last Post: Melcu54
  color code doesn't work harryvl 1 946 Dec-29-2022, 08:59 PM
Last Post: deanhystad
  UART Serial Read & Write to MP3 Player Doesn't Work bill_z 15 5,961 Jul-17-2021, 04:19 PM
Last Post: bill_z
  My code doesn't work, can someone help me? aldasrasickas 5 2,861 Dec-21-2020, 02:26 PM
Last Post: aldasrasickas
  How to write a code with İF function? Aycaaxx 1 1,876 Nov-03-2020, 05:46 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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