[Python-bugs-list] [ python-Bugs-469681 ] Replace a whole string with empty string (original) (raw)
noreply@sourceforge.net noreply@sourceforge.net
Tue, 09 Oct 2001 14:36:32 -0700
- Previous message: [Python-bugs-list] [ python-Bugs-465673 ] pthreads need signal protection
- Next message: [Python-bugs-list] [ python-Bugs-469681 ] Replace a whole string with empty string
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Bugs item #469681, was opened at 2001-10-09 14:36 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=469681&group_id=5470
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Replace a whole string with empty string
Initial Comment: Replaceing a whole string with an empty string is behaving differently in Unix and windows environment. It raises a memory error in Unix as shown below:
UNIX RUN: Python 2.1 (#18, May 24 2001, 14:56:32) [C] on osf1V4 Type "copyright", "credits" or "license" for more information.
x = 'test' x.replace('test','') Traceback (most recent call last): File "", line 1, in ? MemoryError
The same test has passed in Windows environment:
PythonWin 2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32 bit (Intel)] on win32. Portions Copyright 1994-2001 Mark Hammond (MarkH@ActiveState.com) - see 'Help/About PythonWin' for further copyright information.
x = 'test' x.replace('test','') '' x 'test'
You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=469681&group_id=5470
- Previous message: [Python-bugs-list] [ python-Bugs-465673 ] pthreads need signal protection
- Next message: [Python-bugs-list] [ python-Bugs-469681 ] Replace a whole string with empty string
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]