Python string replace the values

2017-09-01 Thread Ganesh Pal
r += or it's append the value at the end of the string >>> "a" + "1"===> expected was a0001 'a1' I am on python 2.7 and Linux , any ideas that you recommend to handle this Regards, Ganesh -- https://mail.python.org/mailman/listinfo/python-list

Re: Python string replace the values

2017-09-01 Thread Ganesh Pal
> (I assume that in your example "a" and "aa" => c00aa, that really should have been a00aa) Yes , thanks for noticing. On Fri, Sep 1, 2017 at 11:18 PM, Irv Kalb wrote: > > > On Sep 1, 2017, at 10:13 AM, Ganesh Pal wrote: > > > > In the

Re: Python string replace the values

2017-09-01 Thread Ganesh Pal
On Fri, Sep 1, 2017 at 11:16 PM, Rhodri James wrote: > On 01/09/17 18:13, Ganesh Pal wrote: > >> "a" + "1"===> expected was a0001 >>>>> >>>> 'a1' >> > > Why would you expect that? Concatenation mean

Re: Python string replace the values

2017-09-02 Thread Ganesh Pal
MRAB , Thanks for your solution it looks neat and best ! On Fri, Sep 1, 2017 at 11:14 PM, MRAB wrote: > On 2017-09-01 18:13, Ganesh Pal wrote: > >> In the fixed length string i.e "a",last 4 bits i.e "" should be >> replaced by the user provided v

python 6 compilation failure on RHEL

2012-08-20 Thread Ganesh Reddy K
Hi All, We are trying python 2.6 installation on an RHEL PC , whose 'uname -a' is (Linux 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux ) But, python compilation is not successfully done and showing a failure log. Below is the capture of the same. Please se

<    1   2   3