[issue4053] str.split unintentionally strips char 'I' from the string
New submission from Govind <[EMAIL PROTECTED]>: I tried to process a text file (with UTF-8 encoding) which has contents like this: FILE=India asbds FILE=Indonasia ssgsds FILE=Africa DBGDGDFG When I use the below code: >>> f = open("e:\\temp\\file.txt", 'r') >>> lines = f.readlines() >>> for line in lines: if line.startswith("FILE="): print line.strip("FILE=") I get output as: ndia ndonasia Africa I is always stripped if it follows the substring that I want to strip off. Am I doing something wrong here or is this a bug in Python? -Govind -- components: Library (Lib) messages: 74367 nosy: Govind severity: normal status: open title: str.split unintentionally strips char 'I' from the string type: behavior versions: Python 2.5 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4053> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4054] str.split unintentionally strips char 'I' from the string
New submission from Govind <[EMAIL PROTECTED]>: I tried to process a text file (with UTF-8 encoding) which has contents like this: FILE=India asbds FILE=Indonasia ssgsds FILE=Africa DBGDGDFG When I use the below code: >>> f = open("e:\\temp\\file.txt", 'r') >>> lines = f.readlines() >>> for line in lines: if line.startswith("FILE="): print line.strip("FILE=") I get output as: ndia ndonasia Africa I is always stripped if it follows the substring that I want to strip off. Am I doing something wrong here or is this a bug in Python? -Govind -- files: file.txt messages: 74368 nosy: Govind severity: normal status: open title: str.split unintentionally strips char 'I' from the string type: behavior Added file: http://bugs.python.org/file11710/file.txt ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4054> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26543] [EASY] imaplib noop Debug: bytes vs Unicode bug in debug mode
Change by Govind Vijay : -- versions: -Python 3.6 ___ Python tracker <https://bugs.python.org/issue26543> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16512] imghdr doesn't recognize variant jpeg formats
Change by Govind Vijay : -- pull_requests: +7860 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/issue16512> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31104] posixpath.normpath truncating forward slashes from URL
Changes by Govind S Menokee : -- components: Library (Lib) nosy: govindsmenokee priority: normal severity: normal status: open title: posixpath.normpath truncating forward slashes from URL type: behavior versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue31104> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31104] posixpath.normpath truncating forward slashes from URL
New submission from Govind S Menokee: Handle unwanted truncation of forward slash in case of URL input for normpath function. For Example - path = 'https://google.com' The current output of normpath function would be - 'https:/google.com' After changes the output would be - 'https://google.com' -- ___ Python tracker <http://bugs.python.org/issue31104> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31104] posixpath.normpath truncating forward slashes from URL
Changes by Govind S Menokee : -- pull_requests: +3024 ___ Python tracker <http://bugs.python.org/issue31104> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com