Python Forum
what makes bytes so difficult to do?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what makes bytes so difficult to do?
#1
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.
Reply


Messages In This Thread
what makes bytes so difficult to do? - by Skaperen - Dec-04-2021, 08:27 PM
RE: what makes bytes so difficult to do? - by buran - Dec-06-2021, 09:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What makes a good programmer? j.crater 5 3,860 Dec-08-2017, 05:08 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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