Python Forum
Python rule about the space character surrounding the equal sign
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python rule about the space character surrounding the equal sign
#11
Unfortunately, and as usual, I didn't provide context and this led the kind contributors astray. I used a euphemism "in my context", instead of providing more detail. After the last reply, I composed the following reply and forgot to post it.

Literal characters like < and > must use single quotes when Autokey is used in a browser. It's where I use Python almost exclusively, using Linux Autokey, to edit and format text in Wikipedia. The process is copying the text and surrounding/enclosing it with Wikipedia's wiki language and pasting it back into the text box of a web page. Some of their wiki codes contains these characters and only the single quote enclosed text works.

To simplify my script management, I made it a universal rule, to enclose everything in single quotes and my troubles are gone.
Linux Mint Cinnamon 21.3 - Python 3.10.12 - Autokey-gtk 0.96.0 as of 2024-01-13.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Does @ at sign used for tother than decorators? ggpython000 1 549 Oct-12-2023, 09:08 AM
Last Post: buran
  How do I handle escape character in parameter arguments in Python? JKR 6 1,176 Sep-12-2023, 03:00 AM
Last Post: Apoed2023
  Removing Space between variable and string in Python coder_sw99 6 6,310 Aug-23-2022, 01:15 PM
Last Post: louries
  is there equal syntax to "dir /s /b" kucingkembar 2 1,002 Aug-16-2022, 08:26 AM
Last Post: kucingkembar
  Need to sign JWT token with JWK key stucoder 1 1,695 Feb-21-2022, 09:04 AM
Last Post: stucoder
  Can a variable equal 2 things? Extra 4 1,510 Jan-18-2022, 09:21 PM
Last Post: Extra
  i making a terminal sign up website thing Kenrichppython 1 1,711 Nov-04-2021, 03:57 AM
Last Post: bowlofred
  enter string into list according to a known rule korenron 10 3,307 Aug-12-2021, 02:19 PM
Last Post: korenron
  [solved] unexpected character after line continuation character paul18fr 4 3,432 Jun-22-2021, 03:22 PM
Last Post: deanhystad
  python error: bad character range \|-t at position 12 faustineaiden 0 3,701 May-28-2021, 09:38 AM
Last Post: faustineaiden

Forum Jump:

User Panel Messages

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