Re: [Tutor] how to instantiate a class

2009-02-25 Thread Arun Tomar
It's one of the best available resources for learning python. http://docs.python.org/ > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Regards, Arun Tomar blog: http://linuxguy.in website: http:

Re: [Tutor] installation of scipy

2009-03-30 Thread Arun Tomar
use the suggested packages in the deprecation warning. > Thanks, > Bala > > ___ > Tutor maillist  -  tu...@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Regards, Arun

Re: [Tutor] Web crawling!

2009-07-29 Thread Arun Tomar
e links and search for the keywords on those pages. If the keyword is occurs more than the specified limit then it's a useful link and store it in the database or else leave it. -- Regards, Arun Tomar blog: http://linuxguy.in website: http://www.solutionenterprises.co.in __

[Tutor] python regex help

2008-09-28 Thread Arun Tomar
hi! i've data extracted in the form of list using regex. it looks something like the one below. print reobj ['Jyoti Soni - 0 Year(s) 0 Month(s)\n', 'Tel: 09975610476(M)\n', '\n', 'Minal - 0 Year(s) 0 Month(s)\n', 'Tel: 9890498376(M)\n', '011 02

Re: [Tutor] python regex help

2008-09-28 Thread Arun Tomar
On Sun, 2008-09-28 at 17:26 +0100, Alan Gauld wrote: > "Arun Tomar" <[EMAIL PROTECTED]> wrote > > > I've been using shell scripting & using sed & pipes i've solved it, > > but with python, i need to practice more ;). > > Can you show u

Re: [Tutor] python regex help

2008-09-28 Thread Arun Tomar
On Sun, 2008-09-28 at 17:26 +0100, Alan Gauld wrote: > "Arun Tomar" <[EMAIL PROTECTED]> wrote > > > I've been using shell scripting & using sed & pipes i've solved it, > > but with python, i need to practice more ;). ok, i got it. here is the c

[Tutor] vim python debugging

2008-09-28 Thread Arun Tomar
hi! I"m trying to setup vim for python debugging mode. But it gives me error. Has anyone succeeded in doing so. link: http://code.google.com/p/vimpdb/ ideally I'm trying to evaluate vim & emacs as command line editors & debugging for python. arun. ___

Re: [Tutor] vim python debugging

2008-09-28 Thread Arun Tomar
On Sun, 2008-09-28 at 22:12 -0600, Alec Henriksen wrote: > It would be very helpful to include the error message you received... I > can't help you, but just a thought. > > On Mon, 2008-09-29 at 09:39 +0530, Arun Tomar wrote: > > hi! > > > > I"m trying to

[Tutor] list to csv

2008-09-30 Thread Arun Tomar
hi! I've a list new_array = ['n1', 'm1', 'p1', 'n2', 'm2', 'p2', 'n3', 'm3', 'p3'] I am trying to convert this to a csv in 3 columns so that the final output would look something like this "n1","m1","p1" "n2","m2","p2" "n3","m3","p3" regds, arun.

[Tutor] automatically generate python/pylons documentation

2008-10-17 Thread Arun Tomar
hi! I'm trying to generate documentation for my pylons web application. my personal opinion: 1. pudge: I've reviewed pudge. it was not very useful & hard to know as most of the links are not working on the site and lack of support. 2. epydoc I liked epydoc, the generated document looks more like

Re: [Tutor] automatically generate python/pylons documentation

2008-10-18 Thread Arun Tomar
hi! On Sat, Oct 18, 2008 at 5:17 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > On Fri, Oct 17, 2008 at 10:18 AM, Arun Tomar <[EMAIL PROTECTED]> wrote: >> hi! >> >> I'm trying to generate documentation for my pylons web application. > >> 2. epydoc

Re: [Tutor] automatically generate python/pylons documentation

2008-10-18 Thread Arun Tomar
hi! On Sat, Oct 18, 2008 at 10:42 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > "Arun Tomar" <[EMAIL PROTECTED]> wrote >> >> if i give the command for epydoc to generate the documentation it >> gives the below mentioned errors: >> >> epydoc

Re: [Tutor] faulty code (maths)

2008-11-23 Thread Arun Tomar
= 2 > from math import sqrt > q = sqrt(b*b - 4*a*c) > x1 = (-b + q)/2*a > x2 = (-b - q)/2*a > print x1, x2 > > > Many thanks for a pointer! > > David > ___ > Tutor maillist - Tutor@pytho

Re: [Tutor] lists

2009-01-20 Thread Arun Tomar
]: print ', '.join(media_list) > upper_b.wav, upper_a.wav > > In [3]: print ', '.join(repr(x) for x in media_list) > 'upper_b.wav', 'upper_a.wav' > > Kent may be you want to do it this way: In [10]: for x in media_list: : print "%s" % x : : upper_b.wav upper_a.wav -- Regards, Arun Tomar blog: http://linuxguy.in website: http://www.solutionenterprises.co.in ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor