Python Forum
format spec %b is documented but does not work
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
format spec %b is documented but does not work
#11
I find this website to be very helpful: https://pyformat.info

I hadn't heard about f-strings before, they seem very nice!
Reply
#12
(Jul-26-2017, 01:58 PM)ichabod801 Wrote: That document is not available online. I rechecked the 3.5.3 documentation (https://docs.python.org/3.5/library/stdt...formatting), and again, there is no 'b' in the table. Are you sure you are referencing the printf style formatting section and not the format method style formatting?
https://www.python.org/doc/versions/
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#13
That table is for the format method, not for printf-style % formatting.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#14
(Jul-30-2017, 01:32 PM)ichabod801 Wrote: That table is for the format method, not for printf-style % formatting.

yes.  that is what i learned through all this.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  issubclass() not as documented Skaperen 19 7,811 Mar-15-2021, 04:58 PM
Last Post: nilamo
  where is this documented? Skaperen 8 4,652 Feb-20-2018, 03:31 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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