Dec-04-2021, 08:27 PM
what makes bytes so difficult to do? or is it an issue with Decimal type?
Output:lt2a/forums /home/forums 6> python3
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import decimal
>>> int(b'345')
345
>>> float(b'345')
345.0
>>> decimal.Decimal(b'345')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: conversion from bytes to Decimal is not supported
>>>
lt2a/forums /home/forums 7>
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.