[Python-Dev] Should PEP 498 specify if rf'...' is valid? (original) (raw)

Ethan Furman ethan at stoneleaf.us
Mon Oct 26 11:22:40 EDT 2015


On 10/23/2015 08:20 AM, Nick Coghlan wrote:

On 22 October 2015 at 19:12, Eric V. Smith wrote:

On 10/22/2015 1:09 PM, Ryan Gonzalez wrote:

But it'd be weird now if fR worked but fbR didn't.

Or bR (which is currently allowed) but not fbR in the future.

My own objection isn't to allowing "fR" or "fbR", it's to allowing the uppercase "F".

I also don't understand why we can't say "if 'f' is part of a string prefix, it must be first".

Sometimes order matters, and sometimes it does not. If the order does not have an impact on the final code, it does not matter, and making us have to remember an order that does not matter is a waste.

-- Ethan



More information about the Python-Dev mailing list