[issue30321] format() function prints fillchar as backslash twice

2017-05-09 Thread Zachary Ware
Zachary Ware added the comment: >>> result = '{:\^3}'.format('R') >>> result '\\R\\' >>> print(result) \R\ >>> print("backslash (\\) is escaped by another backslash in str's repr") backslash (\) is escaped by another backslash in str's repr -- nosy: +zach.ware resolution: -> not a bug s

[issue30321] format() function prints fillchar as backslash twice

2017-05-09 Thread PradeepKumar
New submission from PradeepKumar: The output expected is, '\R\' but it shows this. >>> '{:\^3}'.format('R') '\\R\\' >>> -- messages: 293343 nosy: pradeepkr priority: normal severity: normal status: open title: format() function prints fillchar as backslash twice versions: Python 3.6 _