Re: How can I do bit operation on python float value

2009-03-23 Thread valpa
On 3月23日, 上午3时18分, John Machin wrote: > On Mar 23, 5:44 pm, valpa wrote: > > > I have a python float 1.2345678. I know that it is stored as a double > > in C type. And I know it actually is 1010101010101 -like format. Then > > I want to do some bit operation on it. H

How can I do bit operation on python float value

2009-03-22 Thread valpa
I have a python float 1.2345678. I know that it is stored as a double in C type. And I know it actually is 1010101010101 -like format. Then I want to do some bit operation on it. How? Sure, I want a float output when I finish the operation. -- http://mail.python.org/mailman/listinfo/python-list

how to convert from Decimal('1.23456789') to Decimal('1.234')

2009-03-22 Thread valpa
I only need the 3 digits after '.' Is there any way other than converting from/to string? -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread valpa
k and seperate from Internet. So I do not consider the security issue. There will be a lot of work to do after I login into these servers. I'm tired to typing the command "telnet".. and I want to do "telnet" automatically. Lawrence D'Oliveiro wrote: > In article &

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread valpa
telnet server must have a password, right? Lawrence D'Oliveiro wrote: > In article <[EMAIL PROTECTED]>, > "valpa" <[EMAIL PROTECTED]> wrote: > > >I don't care about security issue by now :), because every one in my > >compony know the username

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread valpa
her xterm, type telnet ...usr/pwd, and so on... Nicko wrote: > placid wrote: > > Jim Segrave wrote: > > > In article <[EMAIL PROTECTED]>, > > > valpa <[EMAIL PROTECTED]> wrote: > > > >I'm a net admin for about 20 unix servers, and I need to freque

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread valpa
Thanks, But I need to to do complicated job in the xterm consoles for servers. So I need to open many xterm consoles and I just want to save my time from telneting...usr/pwd... Network Ninja wrote: > valpa wrote: > > I'm a net admin for about 20 unix servers, and I need to frequen

Can I do it using python?? about xterm and telnet

2006-07-01 Thread valpa
I'm a net admin for about 20 unix servers, and I need to frequently telnet on to them and configure them. It is a tiring job to open a xterm and telnet, username, password to each server. Can I do it automatically by python? After that, there have 20 xterm consoles opened and telneted to their co