[issue5439] string.strip behaves strangly
New submission from Dongwook Jang : Python 2.4.2 (#1, Mar 4 2008, 22:56:43) [GCC 3.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> temp = "a/b/c" >>> temp.strip("a") '/b/c' >>> temp.strip("a/") 'b/c' >>> temp.strip("a/b") 'c' >>> temp.strip("a/b/") 'c' >>> So, in the second command from the last, I expected '/c' but it gives only 'c'. Why? Is it a bug or a feature that I don't understand? Thanks, DW -- components: Interpreter Core messages: 83300 nosy: dwjang severity: normal status: open title: string.strip behaves strangly type: behavior versions: Python 2.4 ___ Python tracker <http://bugs.python.org/issue5439> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5440] string.strip behaves strangly
New submission from Dongwook Jang : Python 2.4.2 (#1, Mar 4 2008, 22:56:43) [GCC 3.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> temp = "a/b/c" >>> temp.strip("a") '/b/c' >>> temp.strip("a/") 'b/c' >>> temp.strip("a/b") 'c' >>> temp.strip("a/b/") 'c' >>> So, in the second command from the last, I expected '/c' but it gives only 'c'. Why? Is it a bug or a feature that I don't understand? Thanks, DW -- components: Interpreter Core messages: 83301 nosy: dwjang severity: normal status: open title: string.strip behaves strangly type: behavior versions: Python 2.4 ___ Python tracker <http://bugs.python.org/issue5440> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com