[issue35613] Escaping string containing invalid characters as per XML

2018-12-29 Thread Devika Sondhi
New submission from Devika Sondhi : As per XML 1.0 and 1.1 specs, the null character is treated as invalid in an XML doc. (https://en.wikipedia.org/wiki/Valid_characters_in_XML) Shouldn't invalid xml characters be omitted while escaping? The current behavior(tested on Python 3.7) is as fo

[issue35612] Text wrap over text containing tab character

2018-12-29 Thread Devika Sondhi
Devika Sondhi added the comment: I wasn't aware of this. Thanks for clarifying -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.

[issue35612] Text wrap over text containing tab character

2018-12-29 Thread Devika Sondhi
New submission from Devika Sondhi : textwrap.wrap does not seem to preserve tab character ('\t') in the text if it is not separated from other characters by a space. Example: >>> textwrap.wrap("Here is\tone line of text that is going to be wrapped af

[issue35538] splitext does not seems to handle filepath ending in .

2018-12-19 Thread Devika Sondhi
Devika Sondhi added the comment: Linux (unlike Windows) allows naming a file with a trailing dot. The issue with file name such as '.blah.' is that it does not have an extension and one would expect the base-name without extension to be returned as '.blah.' and not

[issue35538] splitext does not seems to handle filepath ending in .

2018-12-19 Thread Devika Sondhi
New submission from Devika Sondhi : posixpath.splitext('.blah.') returns ('.blah', '.') while the expectation was to return an empty extension at the end. -- messages: 332157 nosy: Devika Sondhi priority: normal severity: normal status: open title: spl