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
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
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
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
Changes by s7v7nislands s7v7nisla...@gmail.com:
--
nosy: +s7v7nislands
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5315
___
___
Python-bugs-list
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
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
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
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
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
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
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
Changes by s7v7nislands s7v7nisla...@gmail.com:
--
nosy: +s7v7nislands
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11635
___
___
Python-bugs
Changes by s7v7nislands s7v7nisla...@gmail.com:
--
nosy: +s7v7nislands
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11743
___
___
Python-bugs
Changes by s7v7nislands s7v7nisla...@gmail.com:
--
nosy: +s7v7nislands
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9942
___
___
Python-bugs-list
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
16 matches
Mail list logo