[New-bugs-announce] [issue3418] heavy resource usage with string functions

mgogoulos report at bugs.python.org
Sat Jul 19 16:02:50 CEST 2008


New submission from mgogoulos <mgogoulos at abiss.gr>:

Not sure if this is a bug, however the following string functions when
called with very big numbers as the padding arguments consume great
system resources. My estimation is that it would help to exist a limit
on what can be specified as width.

Check (center, ljust, rjust, zfill)

eg.

import string
string.center('..', 2147483647)

Tested on python versions: 2.5.1 and 2.5.2

----------
components: Library (Lib)
messages: 70034
nosy: mgogoulos
severity: normal
status: open
title: heavy resource usage with string functions
type: resource usage
versions: Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3418>
_______________________________________


More information about the New-bugs-announce mailing list