Re: [Tutor] Using __init__ to return a value

2013-06-12 Thread vishwajeet singh
> ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com

Re: [Tutor] help for a beginner

2013-01-11 Thread vishwajeet singh
t; Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://t

Re: [Tutor] (no subject)

2012-09-28 Thread vishwajeet singh
g/mailman/listinfo/tutor > > -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet ___ Tutor maillist - Tutor@python.org

Re: [Tutor] help with program from learning python the hard way

2012-01-19 Thread vishwajeet singh
___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.c

Re: [Tutor] Using .po translation file

2011-08-03 Thread vishwajeet singh
jangojs in some cases. > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: ht

Re: [Tutor] I am looking for a book on Beginners who never programmed before or have no experience in programming

2010-09-28 Thread vishwajeet singh
r maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | Link

Re: [Tutor] can i run the last saved input again

2010-07-23 Thread vishwajeet singh
bscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet

Re: [Tutor] datetime.strptime not matching timezone in format

2010-05-04 Thread vishwajeet singh
;s not converting it in IST ? However I do not have a solution to your problem but a footnote as hint - > http://docs.python.org/library/time.html#id1 > > Thanks for the link I am browsing this from morning not much of help there. > -- Abhishek > > On Tue, May 4, 2010 at 3:17 PM

[Tutor] datetime.strptime not matching timezone in format

2010-05-04 Thread vishwajeet singh
ctual_date = datetime.strptime(string_date,"%a, %d %b %Y %H:%M:%S %Z") I am getting following error for this conversion "*time data 'Tue, 04 May 2010 14:59:45 +05:30' does not match format '%a, %d %b %Y %H:%M:%S %Z'*" All formats without timezone works pe

Re: [Tutor] help

2010-03-30 Thread vishwajeet singh
On Mon, Mar 29, 2010 at 7:30 AM, Oshan Modi wrote: > i am only a novice and just started programming.. i am having trouble > running a .py file in the command prompt.. if anyone of you could help? > How are you trying to run it ?? -- Vishwajeet Singh +91-9657702154 | dextrou...@

Re: [Tutor] Hello

2010-01-21 Thread vishwajeet singh
ption options: >> http://mail.python.org/mailman/listinfo/tutor >> >> > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > -- Vishwajeet Singh +91-9657702154

Re: [Tutor] Array slices in python with negative step

2010-01-11 Thread vishwajeet singh
On Tue, Jan 12, 2010 at 1:16 AM, Alan Gauld wrote: > > "vishwajeet singh" wrote > > Thanks for your response but I am still not clear; can you show me the >> equivalent of [::-1] in terms actually specifying start-index, end-index >> which gives me reverse o

Re: [Tutor] Array slices in python with negative step

2010-01-11 Thread vishwajeet singh
On Mon, Jan 11, 2010 at 10:32 PM, spir wrote: > On Mon, 11 Jan 2010 21:50:10 +0530 > vishwajeet singh wrote: > > > Hello All, > > > > I am bit confuse how the slice works in case a negative step is supplied > > a = 'abcde' > > a[::-1]

[Tutor] Array slices in python with negative step

2010-01-11 Thread vishwajeet singh
ndices are omitted, they default to ``end of axis'' and ``beginning of axis'' respectively. In my case 4 is end of axis and 0 is begining of the axis so a[::-1] should be equivalent to [4:0:-1] but result which I get in both the cases does not validate. -- Vishwajeet

Re: [Tutor] Extracting columns from CSV

2009-10-11 Thread vishwajeet singh
csv module http://docs.python.org/library/csv.html > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > -- Vishwajeet Sing

Re: [Tutor] python win32 drive mapping help

2009-09-22 Thread vishwajeet singh
t whats more IMPORTANT is 2 be NICE. > > > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > You need python extension installed on your ma

Re: [Tutor] ImportError: cannot import name log

2009-09-17 Thread vishwajeet singh
On Thu, Sep 17, 2009 at 8:41 PM, steve wrote: > Hello Vishwajeet, > > On 09/16/2009 11:21 PM, vishwajeet singh wrote: > >> Hi, >> >> Below is the content of __init__.py >> >> import sys >> from django.core.signals import got_request_exception

[Tutor] ImportError: cannot import name log

2009-09-16 Thread vishwajeet singh
Hi, Below is the content of __init__.py import sys from django.core.signals import got_request_exception from . import log logger = log._get_logger() def got_request_exception_callback(sender, **kwargs): """Logging all unhandled exceptions.""" type, exception, traceback = sys.exc_info()

Re: [Tutor] web2py vs django

2009-09-09 Thread vishwajeet singh
I had asked this question earlier is django users google group you can find the responses here http://groups.google.co.in/group/django-users/browse_thread/thread/4c8bfa995c93b07b/f12442dd0d7f4fcd?q=#f12442dd0d7f4fcd On Wed, Sep 9, 2009 at 1:01 PM, Stefan Lesicnik wrote: > Hi guys. > > I am writi

Re: [Tutor] Needing Help

2009-06-30 Thread vishwajeet singh
You can put your script in pastebin http://python.pastebin.com/ I don't think any one will mind you pasting code in mail but pastebin makes it easier to read On Tue, Jun 30, 2009 at 10:36 PM, Bob Rea wrote: > I am jsut beginning to learn python form a book. I have ru

[Tutor] Generating Hetmaps

2009-06-04 Thread vishwajeet singh
Hi, I have a small query is there any standard module available for generating heatmap from given set of data. -- Cheers, Vishwajeet http://www.singhvishwajeet.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Error installing review board on windows

2009-05-28 Thread vishwajeet singh
Yes I am using python 2.5 and I have corect version of PIL for python 2.5. Thanks for your help anyways. On Fri, May 29, 2009 at 2:47 AM, Dave Angel wrote: > vishwajeet singh wrote: > > >> Hi List, >> >> I am trying to install review board on windows. It f

[Tutor] Error installing review board on windows

2009-05-28 Thread vishwajeet singh
Hi List, I am trying to install review board on windows. It fails saying it could not build PIL 1.1.6 because visual studio was not found on the system and but I have already installed the PIL 1.1.6 using binaries available on the site but review board fails to locate it and every time tries to do

Re: [Tutor] Getting file properties on winodws

2009-05-21 Thread vishwajeet singh
On Fri, May 22, 2009 at 1:23 AM, Tim Golden wrote: > Tim Golden wrote: > >> Tim Golden wrote: >> >>> It would probably help if you specified what "does not seem[s] to be >>> working" meant. But I assume that you mean: if you add a Title into >>> the Summary on a JPEG then it doesn't get picked up

Re: [Tutor] Getting file properties on winodws

2009-05-21 Thread vishwajeet singh
re: > http://timgolden.me.uk/python/win32_how_do_i/get-document-summary-info.html > > [vishwajeet singh wrote:] > >> It does not seems to be working for jpg and in general with image files >> any >> pointers on that. >> > > It would probably help if you specified what

Re: [Tutor] Getting file properties on winodws

2009-05-21 Thread vishwajeet singh
Hi Tim, It does not seems to be working for jpg and in general with image files any pointers on that. Thanks for your help. On Thu, May 21, 2009 at 2:40 AM, vishwajeet singh wrote: > Thanks that helped. > > > On Thu, May 21, 2009 at 2:34 AM, Tim Golden wrote: > >> v

Re: [Tutor] Getting file properties on winodws

2009-05-20 Thread vishwajeet singh
Thanks that helped. On Thu, May 21, 2009 at 2:34 AM, Tim Golden wrote: > vishwajeet singh wrote: > >> Hi, >> >> I am trying to read properties of file on windows like there is a property >> call Keywords on file; I am to read this property independent of f

[Tutor] Getting file properties on winodws

2009-05-20 Thread vishwajeet singh
Hi, I am trying to read properties of file on windows like there is a property call Keywords on file; I am to read this property independent of file type. I tried using win32api and win32file but I was not able to find any such function; GetFileAttributes gives some limited attributes. -- Che

[Tutor] How to handle complexType returned by wsdl using SOAPpy

2009-05-14 Thread vishwajeet singh
Hi, soapUrl = constants.JIRA_PATH + '/jira/rpc/soap/jirasoapservice-v2?wsdl' soap = SOAPpy.WSDL.Proxy(soapUrl) auth = soap.login(constants.JIRA_USERNAME,constants.JIRA_PASSWORD) b = Types.longType(10041L) role = soap.getProjectRole(auth,b) project = soap.getProjectByKey(auth,'TEMP') Now I want

Re: [Tutor] Webpy vs Django

2009-04-20 Thread vishwajeet singh
Thanks for your answer but can you give me reasons for same. On Tue, Apr 21, 2009 at 2:38 AM, Tim Michelsen wrote: > I can recommend you web2py: > http://www.web2py.com/ > > It has been designed for didactical needs and has a low learning curve. > > Look at the manual extarct for an idea: > Free

Re: [Tutor] Webpy vs Django

2009-04-20 Thread vishwajeet singh
Thanks for your elaborate reply. On Mon, Apr 20, 2009 at 12:47 AM, Scott SA wrote: > On Apr 19, 2009, at 4:52 AM, vishwajeet singh wrote: > > This is not to flame any war; I just wanted to know the key features to >> consider among the two web frame works. >>

[Tutor] Webpy vs Django

2009-04-19 Thread vishwajeet singh
Hi All, This is not to flame any war; I just wanted to know the key features to consider among the two web frame works. What advantage and disadvantages you have when you decide using any one of them. Thanks for your help -- Cheers, Vishwajeet http://www.singhvishwajeet.com ___

Re: [Tutor] print output

2009-04-16 Thread vishwajeet singh
try this print str(counter) + "\n" + str(miles) + "\n"+ name On Thu, Apr 16, 2009 at 11:24 PM, mbikinyi brat wrote: > ** > *Dear ALL,* > I have defined variables as below and when I call them using the print > function, I have something discontinous as in pink colour. How do I call it > so that m

Re: [Tutor] calculate area of a circle

2009-04-15 Thread vishwajeet singh
you need import math On Wed, Apr 15, 2009 at 2:22 PM, mbikinyi brat wrote: > Hi All, > This is a code I have written to calculate the area of a circle. > *def area(radius): > temp=math.pi*radius**2 > return temp* > ** > *I* now call it by entering *area(12)* at the prompt in IDLE. This is the >

Re: [Tutor] python books

2009-04-13 Thread vishwajeet singh
Take a look at Useless python http://www.uselesspython.com/ On Tue, Apr 14, 2009 at 10:37 AM, sudhanshu gautam wrote: > I am new in python , so need a good books , previously read python Bible > and swaroop but not satisfied . > > > so tell me good books in pdf format those contents good problems

Re: [Tutor] Yet another Python book

2009-04-11 Thread vishwajeet singh
awesome; I really like the Jython part :) Thanks for your efforts. On Sat, Apr 11, 2009 at 9:31 PM, wrote: > Dave, > > Great stuff!!! Thanks for sharing your hard work with the community! > > Malcolm > ___ > Tutor maillist - Tutor@python.org > http:

[Tutor] Excel addin in Python

2009-03-09 Thread vishwajeet singh
Dear All, I have created an excel addin in python; everything is working pretty fine when I execute the python file, addin is getting added and I am able to use it fine. But I want to distribute this addin to users so I used py2exe to convert it in to an exe so far so good I am able to create exe

Re: [Tutor] Question regarding win32com getting ldap object

2009-01-05 Thread vishwajeet singh
Thanks for the help. It worked for me. On Tue, Jan 6, 2009 at 1:28 AM, Jervis Whitley wrote: > > > On Mon, Jan 5, 2009 at 8:04 PM, vishwajeet singh wrote: > >> Hi List, >> >> I am running following code to get ldap com object but the result I am >> getting is

[Tutor] Question regarding win32com getting ldap object

2009-01-05 Thread vishwajeet singh
Hi List, I am running following code to get ldap com object but the result I am getting is unknown I am using Python 25 and win32 bindings available at http://downloads.sourceforge.net/pywin32/pywin32-212.win32-py2.2.exe?modtime=1217535908&big_mirror=0 *adsi = win32com.client.Dispatch('ADsNameSpa

Re: [Tutor] Providing Solutions for all the Common Questions

2008-10-21 Thread vishwajeet singh
That seems to be nice idea. we can look into mailing archives and pick problems from there. Congratulations and thanks for nice initiative. keep the good work On Tue, Oct 21, 2008 at 10:06 AM, Calvin Spealman <[EMAIL PROTECTED]>wrote: > There was a discussion in the #python channel over at free

Re: [Tutor] Exhaustive Enumeration

2008-09-21 Thread vishwajeet singh
Thanks for the link it's really useful :) On Mon, Sep 22, 2008 at 2:10 AM, Robert Berman <[EMAIL PROTECTED]>wrote: > That it is. > > Jaggo wrote: > > Lol. And here I said to myself only, "What a nice challenge". > > On Sun, Sep 21, 2008 at 10:28 PM, Robert Berman <[EMAIL PROTECTED]>wrote: > >>

Re: [Tutor] What has Editor X got that PyWin32 hasn't?

2008-08-13 Thread vishwajeet singh
I use pydev eclipse plugin for python and it saves me alot time. Packages and modules can be maintained pretty well and if error is in some dependent file I dont have to go to that folder to open it eclipse does it for me. Integration with subversion and JIRA also help me to work in a better way.

Re: [Tutor] Is there python editor or plugin for a python editor for curly brackets around code blocks?

2008-08-12 Thread vishwajeet singh
try typing this on your python shell : *from __future__ import braces* check the output:* SyntaxError: not a chance (, line 1)* On Wed, Aug 13, 2008 at 10:15 AM, xbmuncher <[EMAIL PROTECTED]> wrote: > Yes I think python is great in its simplicity in typing code but not in its > absence of curly

Re: [Tutor] Accessing LDAP

2008-08-11 Thread vishwajeet singh
I am not able to reproduce the problem as it works pretty fine at my end. On Mon, Aug 11, 2008 at 6:51 PM, Steven L Smith <[EMAIL PROTECTED]>wrote: > <% > import active_directory > for person in active_directory.search ("objectCategory='Person'"): >Response.Write(person.displayName) > %>

Re: [Tutor] Accessing LDAP

2008-08-11 Thread vishwajeet singh
nd to normal ldap queries as well. > > I tried Tim's module, and it's giving me an "operations error" when I try > to use his code snippet to list users... > > > - Original Message - > From: "Rudy Schockaert" <[EMAIL PROTECTED]> > T

Re: [Tutor] Accessing LDAP

2008-08-11 Thread vishwajeet singh
I think this can be of some help to you http://tgolden.sc.sabren.com/python/active_directory.html On Mon, Aug 11, 2008 at 5:44 PM, Steven L Smith <[EMAIL PROTECTED]>wrote: > Any ideas how I can pull a list of domain users from an LDAP server and use > it programmatically in a Python web applicat

[Tutor] Element tree: Not giving processing instruction

2008-07-22 Thread vishwajeet singh
Hi List, I am trying to use element tree for processing xml and xml has applied xsl on top of it but when I read this file using element tree how I can get the xsl instruction as element tree gives values from root that is first node. Regards, Vishwajeet _

Re: [Tutor] %(value1, value2) what does this returns

2008-07-22 Thread vishwajeet singh
thanks to all of you for your responses; On Wed, Jul 23, 2008 at 12:18 AM, Michiel Overtoom <[EMAIL PROTECTED]> wrote: > Vishwajeet wrote... > > > I want to know in this % (symbol, stat) returns > > In itself it returns nothing. The '%' is used as the 'string interpolation > operator' here. > >

[Tutor] %(value1, value2) what does this returns

2008-07-22 Thread vishwajeet singh
Hi List, def __request(symbol, stat): url = 'http://finance.yahoo.com/d/quotes.csv?s=%s&f=%s' % (symbol, stat) return urllib.urlopen(url) I want to know in this % (symbol, stat) returns thanks for help Regards, Vishwajeet ___ Tutor maillist