Re: can we append a list with another list in Python ?

2012-10-23 Thread Adnan Sadzak
> ... but I'm not sure what you mean by "... with a for loop"? > > -[]z. > > Maybe this? : - x = [1,2,3] y = [10,20,30] for z in y: x.append(z) print x - But list.extend should be right way. Cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: Read number of CSV files

2012-11-07 Thread Adnan Sadzak
Maybe os.listdir() can help You, and then go through files and do whatever You want. On Wed, Nov 7, 2012 at 11:11 PM, Smaran Harihar wrote: > Hi Guys, > > I am able to read through a CSV File and fetch the data inside the CSV > file but I have a really big list of CSV files and I wish to do the

Re: Problem with importing in Python

2013-01-11 Thread Adnan Sadzak
Python is case sensitive. Circle and circle is not same. /* sent from android */ On Jan 11, 2013 11:22 PM, "su29090" <129k...@gmail.com> wrote: > I'm trying to import a python file it keeps saying: > > ImportError: cannot import name Circle > > Here is the file I'm trying to import: > > Circle

Re: python adsl script

2014-01-14 Thread Adnan Sadzak
Hi, You need to find out what communication type your router supports (most use telnet, ssh, or http). It is easy to implement solution using any of these protocols. If You have problems in implementation, maybe we can help You, but will not write code for You. For password..khm...as Denis says u

Re: Opening the file in writing mode

2015-01-15 Thread Adnan Sadzak
Hi, Yes, but You also can open an existing file in 'append' mode. Cheers, Adnan On Jan 15, 2015 12:08 PM, "Abdul Abdul" wrote: > Hello, > > In the Python documentation, when opening the file in write mode, it > mentions the following: > > *writing (truncating the file if it already exists)* > W

Re: Opening the file in writing mode

2015-01-15 Thread Adnan Sadzak
2:19 PM, Abdul Abdul wrote: > Hi, > > Thanks for your reply. I just wanted to understand the 'w' mode in Python. > So, when using it, it will overwrite any existing mode, right? > > Thanks. > > On Thu, Jan 15, 2015 at 12:13 PM, Adnan Sadzak wrote: > >> Hi

Re: Need help in Python automation

2014-03-21 Thread Adnan Sadzak
Hi, there should be manufacturer documentation or API. What switch do You use? Any other info? Cheers, Adnan On Fri, Mar 21, 2014 at 9:14 AM, Anil Kumar A <401a...@gmail.com> wrote: > - > Hi All, > > I work for an ISP. Currently we bou

Re: Unpacking U-Boot image file

2014-04-09 Thread Adnan Sadzak
I belive you are trying to decompress some router images or router backup/config files? Check if maybe LZS. Rustom gave You starting point. On Wed, Apr 9, 2014 at 7:18 PM, Rustom Mody wrote: > On Wednesday, April 9, 2014 9:36:40 PM UTC+5:30, trewio wrote: > > How to extract files from U-Boot

Re: Python and wireshark.

2014-07-01 Thread Adnan Sadzak
You can try scapy (http://www.secdev.org/projects/scapy/) Cheers, Adnan On Tue, Jul 1, 2014 at 11:56 AM, Sean Murphy wrote: > All. > > Is there any way to use python with Wireshark/Tshark? I am not able to use > the GUI due to my vision impairment. So I am thinking of using Wireshark > libra