[issue36159] Modify Formatter Class to handle arbitrary objects

2020-11-24 Thread Eric V. Smith
Eric V. Smith added the comment: I just stumbled across this. I don't think the idea is totally without merit, although maybe it's too niche to warrant being in the stdlib. It should probably be discussed on python-ideas first. -- versions: +Python 3.10 -Python 2.7, Python 3.8 _

[issue36159] Modify Formatter Class to handle arbitrary objects

2019-03-12 Thread Ross Biro
Ross Biro added the comment: I'm currently writing a language translator between two domain specific computer languages. Because some expressions occur repeatedly, but in slightly different contexts, I make multiple passes. The first pass reduces everything it can and leaves place holder obje

[issue36159] Modify Formatter Class to handle arbitrary objects

2019-03-11 Thread Lisa Roach
Lisa Roach added the comment: Can you give an example use case for this? F-strings are the newer method of string interpolation, I'm not sure it's worth putting effort into adding features to string.Formatter. -- nosy: +lisroach ___ Python tracker

[issue36159] Modify Formatter Class to handle arbitrary objects

2019-03-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue36159] Modify Formatter Class to handle arbitrary objects

2019-03-01 Thread Ross Biro
New submission from Ross Biro : The only point in the string.Formatter class that really depends on string output is line 245: return ''.join(result), auto_arg_index. I'm currently working on a problem that would be much easier if I could get access to the result list instead of having that