Hello,
May be you could be in some help with a script I am trying to do for replacing spaces in a string.
I've tried this:
def space2_(*args):
"""replaces space with _"""
return reduce(args.replace(' ','_'), args)
and the console is returning this error:
AttributeError: 'tuple' object has no attribute 'replace'
With a very limited knowledge of python, I am having pain for finding how to transform (*args) into [*args] or anything that would allow the fonction 'replace' to work.
I need this script for fixing a problem with OSCx, which doesn't allow spaces in sent messages.
Thank in advance for any coment.
Patco.
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com