On Wed, 12 Aug 2020 10:20:35 -0700 (PDT), in
gmane.comp.hardware.beagleboard.user Andrew Harres
<[email protected]> wrote:


>    def count(self, sub, start=0, end=sys.maxint):
>AttributeError: module 'sys' has no attribute 'maxint'

https://stackoverflow.com/questions/13795758/what-is-sys-maxint-in-python-3

        Short answer: Python 3 unified the logic of native ints vs Python 2
"longints"; they automatically roll over to a longint if incremented far
enough. As a result, there isn't really a "maxint" anymore.


        I'd suggest running the entire library through the 2 to 3 conversion
process.

https://docs.python.org/3.8/library/2to3.html
"""
except
    Converts except X, T to except X as T.

                                <SNIP>

renames
    Changes sys.maxint to sys.maxsize.
"""

handle both of the cases you have encountered. There are MANY other changes
that may apply.



-- 
Dennis L Bieber

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/rha8jfph3crr8fq4l3e3n0nq9omo5p85mn%404ax.com.

Reply via email to