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
#9
(Aug-15-2019, 03:33 PM)metulburr Wrote:
(Aug-15-2019, 03:08 PM)RMJFlack Wrote: redefining the type of the result of a library function between versions (struct.pack for example). very uncool.
One change between python3.x and python2.x was bytes and strings. Like with any language, if you are using C++14 syntax and try to compile it in a c++98 compiler you are going to get errors. The same is true with python2.x/python3.x interpreters.

I would use a python3.x tutorial at this point. Python2.x is dead soon.

But WHY would they break existing code by redefining the type of the result of struct.pack, rather than introduce a NEW function struct.pack2byte or some such.

There is always a reason of course (and I am curious about this one) its just frustrating the amount of time I seem to have to spend figureing out whats changed and then figure out what I have to do with my code. Maybe the issue is that Im not doing this full time. Maybe Python is for pros only? I guess I have been able to gloss over the byte / string thing, looks like Im going to have to get a better understanding (it doesnt help that the code Im dealing with here was not written by me).
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,702 Feb-10-2020, 12:02 PM
Last Post: metulburr
  how hard to translate this to python? Skaperen 4 4,034 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,577 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