May-12-2019, 06:32 AM
Quote:what i am hoping for is some way to tell str.format to look for '[' and ']' instead, such as str.format(_alt='[]').I don't understand. If you don't have control on the input, how can you insert the '[' and ']'? Also if you can do this, you could as well insert '!{' and '!}' and use my method.