Re: How to log the output from the multiple telnet sessions to separate log file

2015-10-16 Thread dieter
manjunatha.mahalinga...@gmail.com writes: > I'm very much new to python. > I'm doing the automation for networking device testing , I will be opening > the 4 telnet session, and doing some testing operations on each of those > telnet sessions and capture or log the respective output in 4 differ

Re: How to log the output from the multiple telnet sessions to separate log file

2015-10-16 Thread Chris Angelico
On Sat, Oct 17, 2015 at 4:47 PM, wrote: > class Logger(): > def __init__(self,log): > self.terminal = sys.stdout > self.log = log > > def write(self, message): > self.terminal.write(message) > self.log.write(message) > > > for (dname, ip, port) in tuple

RE: help(string) commands not working on pyton 3.5

2015-10-16 Thread Prasad Joshi
Thanks for the reply. I am using windows 10. >>> import math >>> >>> >>> help (math) 'more' is not recognized as an internal or external command, operable program or batch file. >>> help Type help() for interactive help, or help(object) for help about object. >>> help(math) 'more' is not recogn

[no subject]

2015-10-16 Thread 513-3M1L1X- TR19
Hello I was trying to install python35 on my windows laptop and I am told that the python35.dll files is missing Tried to repair many times but still the same problem. -- https://mail.python.org/mailman/listinfo/python-list

How to log the output from the multiple telnet sessions to separate log file

2015-10-16 Thread manjunatha . mahalingappa
Hello All, I'm very much new to python. I'm doing the automation for networking device testing , I will be opening the 4 telnet session, and doing some testing operations on each of those telnet sessions and capture or log the respective output in 4 different log files. As of now all the 4 lo

Re: Idle subprocess error

2015-10-16 Thread Gene Heskett
On Friday 16 October 2015 03:22:55 Chris Angelico wrote: > On Fri, Oct 16, 2015 at 12:08 PM, briankeithroby--- via Python-list > > wrote: > > Idle subprocess error cant use editor. > > > > > > Sent from Windows Mail > > Email error insufficient data. > > Sent from a person who's unable to make so

Re: TCP sockets python timeout public IP adresss

2015-10-16 Thread sohcahtoa82
On Friday, October 16, 2015 at 2:44:53 AM UTC-7, lucasfneves14 wrote: > How did you do it? I took the advice of just being myself. -- https://mail.python.org/mailman/listinfo/python-list

Re: help(string) commands not working on pyton 3.5

2015-10-16 Thread eryksun
On 10/16/15, Prasad Joshi wrote: > > I am using windows 10. > import math help (math) > 'more' is not recognized as an internal or external command, > operable program or batch file. What do you get for the following? import os windir = os.environ['SystemRoot'] mo

Re: TCP sockets python timeout public IP adresss

2015-10-16 Thread Random832
lucasfneves14 writes: > How did you do it? That's an impressive reply gap. If anyone's wondering, this is apparently in reply to this from March: http://thread.gmane.org/gmane.comp.python.general/774441 -- https://mail.python.org/mailman/listinfo/python-list

Re: TCP sockets python timeout public IP adresss

2015-10-16 Thread Grant Edwards
On 2015-10-16, lucasfneves14 wrote: > How did you do it? I just climbed in and pushed the button. Same as always. -- Grant Edwards grant.b.edwardsYow! This MUST be a good at party -- My RIB CAGE is

Re: TCP sockets python timeout public IP adresss

2015-10-16 Thread Mark Lawrence
On 16/10/2015 10:44, lucasfneves14 wrote: How did you do it? I conned my way in, nobody suspected it. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: pip problem

2015-10-16 Thread Mark Lawrence
On 16/10/2015 09:50, Antti Lagus wrote: hello, installed pyton3.5 to NOT default folder. tried to install cx_Freeze, but countered errors where pip tried to copy/import stuff from default install location. please fix Please fix what? What do you think we are? No mention of your platform,

Re: Cryptographically strong random numbers

2015-10-16 Thread Jon Ribbens
On 2015-10-16, Steven D'Aprano wrote: > If you have written crypto code that needs random numbers as described > below, I am looking for your feedback. > > Python-Dev is arguing about which of the following three functions should be > included: > > randbelow(end): > return a random integer in

Re: pip problem

2015-10-16 Thread Denis McMahon
On Fri, 16 Oct 2015 11:50:11 +0300, Antti Lagus wrote: > hello, > > installed pyton3.5 to NOT default folder. > tried to install cx_Freeze, but countered errors where pip tried to > copy/import stuff from default install location. > > please fix Hi, I waved my magic wand, and your problem shoul

Re: Cryptographically strong random numbers

2015-10-16 Thread Peter Pearson
On Sat, 17 Oct 2015 03:25:03 +1100, Steven D'Aprano wrote: [snip] > randbelow(end): > return a random integer in the half-open interval 0...end > (including 0, excluding end) > > randint(start, end): > return a random integer in the closed interval start...end > (including both sta

Re: Cryptographically strong random numbers

2015-10-16 Thread Oscar Benjamin
On Fri, 16 Oct 2015 18:16 Marko Rauhamaa wrote: Steven D'Aprano : > Python-Dev is arguing about which of the following three functions should be > included: > > randbelow(end): > return a random integer in the half-open interval 0...end > (including 0, excluding end) > > randint(start, e

Re: Cryptographically strong random numbers

2015-10-16 Thread Brian Gladman
On 16/10/2015 17:25, Steven D'Aprano wrote: > Hello folks, [snip detail] > randbelow(end): > return a random integer in the half-open interval 0...end > (including 0, excluding end) > > randint(start, end): > return a random integer in the closed interval start...end > (including

Re: Cryptographically strong random numbers

2015-10-16 Thread Marko Rauhamaa
Steven D'Aprano : > Python-Dev is arguing about which of the following three functions should be > included: > > randbelow(end): > return a random integer in the half-open interval 0...end > (including 0, excluding end) > > randint(start, end): > return a random integer in the closed i

Cryptographically strong random numbers

2015-10-16 Thread Steven D'Aprano
Hello folks, Over on the Python-Dev mailing list there is an argument going on about PEP 506, the "secrets" module, for generating crypto random numbers and tokens. If you have written crypto code that needs random numbers as described below, I am looking for your feedback. Python-Dev is arguin

Re: TCP sockets python timeout public IP adresss

2015-10-16 Thread lucasfneves14
How did you do it? -- https://mail.python.org/mailman/listinfo/python-list

Re: pip problem

2015-10-16 Thread Steven D'Aprano
On Fri, 16 Oct 2015 07:50 pm, Antti Lagus wrote: > hello, > > installed pyton3.5 to NOT default folder. > tried to install cx_Freeze, but countered errors where pip tried to > copy/import stuff from default install location. > > please fix Okay, I'm looking into my crystal ball, and I see you'r

Re: How to implement an async message bus

2015-10-16 Thread Nagy László Zsolt
>>> try: >>> return await waiter >>> finally: >>> # TODO: Use a context manager to add and remove the keys. >>> for key in keys: >>> self._waiters[key].discard(waiter) >>> if handle: >>> handle.cancel() >>> >>> def notify(self, key, m

pip problem

2015-10-16 Thread Antti Lagus
hello, installed pyton3.5 to NOT default folder. tried to install cx_Freeze, but countered errors where pip tried to copy/import stuff from default install location. please fix -- https://mail.python.org/mailman/listinfo/python-list

Re: How to implement an async message bus

2015-10-16 Thread Nagy László Zsolt
> > It is very annoying that async, await, yield, Future, Condition, Lock > and almost all other async constructs work with any event loop; but > simple things like "sleep for 10 seconds" are totally incompatible. > But I guess I'll have to live with that for now. > Some more incompatibilty: *

Re: Idle subprocess error

2015-10-16 Thread Terry Reedy
On 10/15/2015 9:08 PM, briankeithroby--- via Python-list wrote: Idle subprocess error cant use editor. You probably need to restart IDLE with the -n argument. See the doc. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: Idle subprocess error

2015-10-16 Thread Chris Angelico
On Fri, Oct 16, 2015 at 12:08 PM, briankeithroby--- via Python-list wrote: > Idle subprocess error cant use editor. > > > Sent from Windows Mail > Email error insufficient data. Sent from a person who's unable to make something out of nothing. ChrisA -- https://mail.python.org/mailman/listinfo

Idle subprocess error

2015-10-16 Thread briankeithroby--- via Python-list
Idle subprocess error cant use editor. Sent from Windows Mail-- https://mail.python.org/mailman/listinfo/python-list