Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
usage of ^ in f_string
#7
Search is very wide subject and "how" depends on very many factors.

For Python I personally follow this pattern:

1 Search Python built-in help
2. Search Python documentation at python.org
3. Search internet with Google

This specific subject was about string formatting so following should be pretty self-explanatory:

>>> help('format')
Help on built-in function format in module builtins:

format(value, format_spec='', /)
    Return value.__format__(format_spec)

    format_spec defaults to the empty string.
    See the Format Specification Mini-Language section of help('FORMATTING') for
    details.

>>> # very helpful hint what to search
>>> help('FORMATTING')
# oh boy, this will spill out lengthy and quite comprehensive information
akbarza likes this post
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
usage of ^ in f_string - by akbarza - Nov-06-2023, 06:56 AM
RE: usage of ^ in f_string - by Larz60+ - Nov-06-2023, 07:51 AM
RE: usage of ^ in f_string - by deanhystad - Nov-06-2023, 03:22 PM
RE: usage of ^ in f_string - by akbarza - Nov-07-2023, 06:08 AM
RE: usage of ^ in f_string - by perfringo - Nov-07-2023, 08:51 AM
RE: usage of ^ in f_string - by akbarza - Nov-09-2023, 09:46 AM
RE: usage of ^ in f_string - by perfringo - Nov-09-2023, 01:15 PM
RE: usage of ^ in f_string - by akbarza - Nov-10-2023, 06:33 AM

Forum Jump:

User Panel Messages

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