[issue3418] heavy resource usage with string functions

2008-07-19 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: As for the possibility of rejecting the request: Python should absolutely not do so. If the user/applications wants to compute the result, and the system has enough virtual memory, then Python should provide the result. If you want to limit

[issue3418] heavy resource usage with string functions

2008-07-19 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: The issue is that you're creating a string of 2GB. It's expectable that it'll use a lot of resources. Test this, for example: >>> a = "." * 2147483647 -- nosy: +facundobatista resolution: -> invalid status: open -> closed __

[issue3418] heavy resource usage with string functions

2008-07-19 Thread mgogoulos
New submission from mgogoulos <[EMAIL PROTECTED]>: 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.