I still use Windows (don’t stone me please) and I could get those–> [ ] in the text window by using Alt and numpad 91 or 93, so far so good. This old and sometimes useful feature is seemingly gone in 2.27 but Alt Gr 8 and 9 do not work either (like they should). So is there a better way than buying an american keyboard?
Well, it IS better to code outside anyway, especially if you use an IDE especially done for Python (like IDLE).
Just remember the Ctrl-R key that reloads the text from file. So now you can edit outside, save and just press Ctrl-R over the Python window to laod the changes.