Python Forum
Why is Python so hard to maintain
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why is Python so hard to maintain
#16
(Aug-15-2019, 07:04 PM)buran Wrote: can you provide minimal example with sample data so we can see what expected output(i.e. from python2)

I will try too. (Have to make a cut down version of the full prpgram).

Aha, its coming together! It seems that in 2.7, a file that is opened as 'wb' will accept writing of strings. In 3.7, it expects bytes. So actually all my fussing about in the 3.7 version about converting struct.pack() back to strings (in order to do outfile.write(...) ) is actually unnecessary.
They didn't just change struct.pack(), they changed write() too. I'll post the cleaned up version in separate thread for critique, but I have two working test programs in 2.7 and 3.7.
Reply


Messages In This Thread
Why is Python so hard to maintain - by RMJFlack - Aug-15-2019, 02:33 PM
RE: Why is Python so hard to maintain - by wavic - Aug-15-2019, 02:57 PM
RE: Why is Python so hard to maintain - by RMJFlack - Aug-15-2019, 03:08 PM
RE: Why is Python so hard to maintain - by RMJFlack - Aug-15-2019, 03:42 PM
RE: Why is Python so hard to maintain - by snippsat - Aug-15-2019, 04:09 PM
RE: Why is Python so hard to maintain - by RMJFlack - Aug-15-2019, 04:16 PM
RE: Why is Python so hard to maintain - by buran - Aug-15-2019, 05:01 PM
RE: Why is Python so hard to maintain - by RMJFlack - Aug-15-2019, 05:48 PM
RE: Why is Python so hard to maintain - by buran - Aug-15-2019, 07:04 PM
RE: Why is Python so hard to maintain - by RMJFlack - Aug-15-2019, 10:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to Hire a Python Programmer? It's hard because I don't know pythonforumuser 1 1,689 Feb-10-2020, 12:02 PM
Last Post: metulburr
  how hard to translate this to python? Skaperen 4 4,002 Oct-18-2017, 07:37 AM
Last Post: buran
  Should Learn Python The Hard Way's be in the forums list of books Yoriz 16 14,523 Nov-09-2016, 05:47 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

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