Re: ActivePython 2.2 released!

2002-04-06 Thread Bob Kline
On Mon, 1 Apr 2002, David Ascher wrote: > - We've made some changes to the Python Package Manager (PyPPM). I tried to submit this as a bug report as instructed below, but although I was able to log in to ASPN with my account information and password (and even to change my password), when I tri

Re: How to remove a newline character

2002-04-06 Thread Charles 'MoHawkeman' Nichols
import re MyList=['272580\n', '23232432\n'] for i in MyList: re.sub('\n','',str(i)) - Original Message - From: "A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, April 06, 2002 3:31 PM Subject: How to remove a newline character

RE: How to remove a newline character

2002-04-06 Thread Michael Robin
[ s.replace('\n','') for s in MyList] mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of A Sent: Saturday, April 06, 2002 12:31 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: How to remove a newline character Hi, Can you ple

How to remove a newline character

2002-04-06 Thread A
Hi, Can you please let me know if it is possible to replace new line characters( '\n') in a list in one step? I have list like MyList=['272580\n', '23232432\n'] and I would like to have ,MyList=['272580', '23232432'] so I tried re.sub('\n','',MyList) but I received TypeError: expected stri