s.index(x[, i[, j]]) will change the s ?

2009-09-09 Thread s7v7nislands
hi all: what is the s.index() mean? does the index() change the s? In python2.6 doc (6.6.4. Mutable Sequence Types), Note 4: Raises ValueError when x is not found in s. When a negative index is passed as the second or third parameter to the index() method, the list length is added, as for

Re: s.index(x[, i[, j]]) will change the s ?

2009-09-09 Thread s7v7nislands
Thanks for your reply! Sorry for my poor english! On Sep 10, 12:33 pm, Chris Rebert c...@rebertia.com wrote: On Wed, Sep 9, 2009 at 9:00 PM, s7v7nislandss7v7nisla...@gmail.com wrote: hi all:    what is the s.index() mean? does the index() change the s? It tells you the index of the first

why python cache the string 256?

2009-10-26 Thread s7v7nislands
hi all: test.py #!/usr/bin/python a = [] for i in xrange(100): a.append('a'*500) $python -i test.py #virt mem 514m in top output del a #virt mem 510m why python cache these string? In source, I see when object size SMALL_REQUEST_THRESHOLD, python would use

Re: why python cache the string 256?

2009-10-26 Thread s7v7nislands
On Oct 27, 4:03 am, Diez B. Roggisch de...@nospam.web.de wrote: s7v7nislands schrieb: hi all: test.py #!/usr/bin/python a = [] for i in xrange(100):     a.append('a'*500) $python -i test.py     #virt mem 514m in top output del a                   #virt mem 510m why

[issue5315] signal handler never gets called

2010-12-30 Thread s7v7nislands
Changes by s7v7nislands s7v7nisla...@gmail.com: -- nosy: +s7v7nislands ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5315 ___ ___ Python-bugs-list

[issue11284] slow close file descriptors in subprocess, popen2, os.pepen*

2011-02-22 Thread s7v7nislands
New submission from s7v7nislands s7v7nisla...@gmail.com: when use popen*() and close_fds is True, python will close unused fds. but the MAXFD is not the real max. especially in freebsd, subprocess.MAXFD=655000. so python will try to close to many fd, it's too slow, in my test on freebsd

[issue11284] slow close file descriptors in subprocess, popen2, os.pepen*

2011-02-22 Thread s7v7nislands
Changes by s7v7nislands s7v7nisla...@gmail.com: Added file: http://bugs.python.org/file20835/python27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11284

[issue11284] slow close file descriptors in subprocess, popen2, os.pepen*

2011-02-22 Thread s7v7nislands
s7v7nislands s7v7nisla...@gmail.com added the comment: thanks, neologix. I think should put this hint in python doc. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11284

[issue6874] sequence method .count() and .index() shoud be in immutable sequence method list.

2009-09-10 Thread s7v7nislands
New submission from s7v7nislands s7v7nisla...@gmail.com: In document 6.6.4. Mutable Sequence Types says: The following operations are defined on mutable sequence types: s.count(x) return number of i‘s for which s[i] == x s.index(x[, i[, j]])return smallest k such that s[k] == x

[issue7087] use keyword 'as' in _xmlplus

2009-10-08 Thread s7v7nislands
New submission from s7v7nislands s7v7nisla...@gmail.com: In these files: _xmlplus/xpath/ParsedAbbreviatedAbsoluteLocationPath.py _xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.py, use the keyword 'as'. -- messages: 93770 nosy: s7v7nislands severity: normal status: open title: use

[issue11284] slow close file descriptors in subprocess, popen2, os.popen*

2011-03-02 Thread s7v7nislands
Changes by s7v7nislands s7v7nisla...@gmail.com: Removed file: http://bugs.python.org/file20834/py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11284

[issue11284] slow close file descriptors in subprocess, popen2, os.popen*

2011-03-02 Thread s7v7nislands
Changes by s7v7nislands s7v7nisla...@gmail.com: Removed file: http://bugs.python.org/file20835/python27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11284

[issue11635] concurrent.futures uses polling

2011-03-26 Thread s7v7nislands
Changes by s7v7nislands s7v7nisla...@gmail.com: -- nosy: +s7v7nislands ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11635 ___ ___ Python-bugs

[issue11743] Rewrite PipeConnection and Connection in pure Python

2011-04-03 Thread s7v7nislands
Changes by s7v7nislands s7v7nisla...@gmail.com: -- nosy: +s7v7nislands ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11743 ___ ___ Python-bugs

[issue9942] Allow memory sections to be OS MERGEABLE

2011-05-22 Thread s7v7nislands
Changes by s7v7nislands s7v7nisla...@gmail.com: -- nosy: +s7v7nislands ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9942 ___ ___ Python-bugs-list

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-04-13 Thread s7v7nislands
s7v7nislands s7v7nisla...@gmail.com added the comment: maybe you can use xcode-select to set the correct path xcode-select -print-path /Applications/Xcode.app/Contents/Developer Usage: xcode-select -print-path or: xcode-select -switch xcode_folder_path -switch xcode_folder_path Sets