Re: Strange behavior in string interpolation of constants

2017-10-16 Thread Ned Batchelder
On 10/16/17 7:39 PM, מיקי מונין wrote: Hello, I am working on an article on python string formatting. As a part of the article I am researching the different forms of python string formatting. While researching string interpolation(i.e. the % operator) I noticed something weird with string lengt

Strange behavior in string interpolation of constants

2017-10-16 Thread מיקי מונין
Hello, I am working on an article on python string formatting. As a part of the article I am researching the different forms of python string formatting. While researching string interpolation(i.e. the % operator) I noticed something weird with string lengths. Given two following two functions: