[FAQTS] Python Knowledge Base Update -- June 6th, 2000

Fiona Czuczman fiona at sitegnome.com
Tue Jun 6 08:02:22 EDT 2000


Hi Guys,

Another installment of entries into http://python.faqts.com

cheers,

Fiona Czuczman


## New Entries #################################################


-------------------------------------------------------------
Is there a version of Python that runs well on Windows 2000 Server?
http://www.faqts.com/knowledge-base/view.phtml/aid/3517
-------------------------------------------------------------
Fiona Czuczman
Grant Munsey

Python 1.5.2 and 1.6a2 both work as advertised on Win 2K pro and Win 2K 
server.


-------------------------------------------------------------
Where can I find examples of web programming with Python?
http://www.faqts.com/knowledge-base/view.phtml/aid/3515
-------------------------------------------------------------
Fiona Czuczman
Paolo Redaelli

www.zope.org a COMPLETE, Object oriented, enviroment with connection to
traditional SQL engines, with a Object oriented database and MANY other
things.


-------------------------------------------------------------
Does Zope have a version that runs well with Windows 2000 server?
http://www.faqts.com/knowledge-base/view.phtml/aid/3518
-------------------------------------------------------------
Fiona Czuczman
Wolfgang Strobl

I haven't had any difficulties running 2.1.6 on Windows 2000, so far. I
tried it on both Win2000 prof US and Win2000 Server Ger.


-------------------------------------------------------------
How can I strip unwanted characters out of my string? Octal 240 for instance.
http://www.faqts.com/knowledge-base/view.phtml/aid/3519
-------------------------------------------------------------
Fiona Czuczman
Ken Seehof

>>> import string 
>>> string.replace("s\240p\240a\240m","\240","") 
'spam'



But I want to actually strip them out of my string:

Can't exactly do that.  Strings are immutable.  If you don't know what 
I mean by immutable, find out (mutability is a key concept of python). 

(Hint: if strings were not immutable, they could not be safely used as 
keys in dictionaries.) 

So you'll have to settle for: 

>>> s = "s\240p\240a\240m" 
>>> s = string.replace(s, "\240", "") 
>>> print s 
spam







More information about the Python-list mailing list