Re: [Tutor] Using __init__ to return a value

2013-06-12 Thread vishwajeet singh
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 | LinkedIn: http://www.linkedin.com/in/singhvishwajeet

Re: [Tutor] help for a beginner

2013-01-11 Thread vishwajeet singh
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 ___ Tutor

Re: [Tutor] (no subject)

2012-09-28 Thread vishwajeet singh
/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
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 | LinkedIn: http://www.linkedin.com/in/singhvishwajeet

Re: [Tutor] Using .po translation file

2011-08-03 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.com/vishwajeets

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
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 | LinkedIn: http://www.linkedin.com/in/singhvishwajeet

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

2010-07-23 Thread vishwajeet singh
-- 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 To unsubscribe or change subscription

[Tutor] datetime.strptime not matching timezone in format

2010-05-04 Thread vishwajeet singh
= 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 perfectly fine. -- Vishwajeet Singh +91-9657702154 | dextrou

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

2010-05-04 Thread vishwajeet singh
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, vishwajeet singh dextrou

Re: [Tutor] help

2010-03-30 Thread vishwajeet singh
On Mon, Mar 29, 2010 at 7:30 AM, Oshan Modi modi.os...@gmail.com 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

Re: [Tutor] Hello

2010-01-21 Thread vishwajeet singh
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://singhvishwajeet.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com

[Tutor] Array slices in python with negative step

2010-01-11 Thread vishwajeet singh
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 Singh +91-9657702154 | dextrou

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 denis.s...@free.fr wrote: On Mon, 11 Jan 2010 21:50:10 +0530 vishwajeet singh dextrou...@gmail.com wrote: Hello All, I am bit confuse how the slice works in case a negative step is supplied a = 'abcde' a[::-1] gives me edcba but [4:0:-1

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 alan.ga...@btinternet.comwrote: vishwajeet singh dextrou...@gmail.com 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

Re: [Tutor] Extracting columns from CSV

2009-10-11 Thread vishwajeet singh
subscription options: http://mail.python.org/mailman/listinfo/tutor -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://singhvishwajeet.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet

Re: [Tutor] python win32 drive mapping help

2009-09-22 Thread vishwajeet singh
to be able to execute the above code; you can get same from http://sourceforge.net/projects/pywin32/ -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://singhvishwajeet.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet

Re: [Tutor] ImportError: cannot import name log

2009-09-17 Thread vishwajeet singh
On Thu, Sep 17, 2009 at 8:41 PM, steve st...@lonetwin.net 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 from . import log logger = log._get_logger

[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 ste...@lsd.co.za wrote: Hi

Re: [Tutor] Needing Help

2009-06-30 Thread vishwajeet singh
You can put your script in pastebin http://python.pastebin.com/ 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 gapet...@stsams.org wrote: I am jsut beginning to learn python form

Re: [Tutor] Error installing review board on windows

2009-05-29 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 da...@ieee.org wrote: vishwajeet singh wrote: Hi List, I am trying to install review board on windows. It fails saying it could

[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

Re: [Tutor] Getting file properties on winodws

2009-05-21 Thread vishwajeet singh
order] [vishwajeet singh wrote] 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. [Tim Golden m...@timgolden.me.uk wrote:] There's an unpolished (indeed, unfinished) example here: http

[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. --

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 m...@timgolden.me.uk 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 file type. There's

[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 elaborate reply. On Mon, Apr 20, 2009 at 12:47 AM, Scott SA py...@rscorp.ab.ca 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. What advantage

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 timmichel...@gmx-topmail.dewrote: 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

[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 mbikinyi_b...@yahoo.comwrote: ** *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

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 mbikinyi_b...@yahoo.comwrote: 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

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 sudhanshu9...@gmail.comwrote: 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

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, pyt...@bdurham.com wrote: Dave, Great stuff!!! Thanks for sharing your hard work with the community! Malcolm ___ Tutor maillist -

[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

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 jervi...@gmail.com wrote: On Mon, Jan 5, 2009 at 8:04 PM, vishwajeet singh dextrou...@gmail.comwrote: Hi List, I am running following code to get ldap com object but the result I am getting is unknown

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

Re: [Tutor] Exhaustive Enumeration

2008-09-22 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: A very

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

2008-08-13 Thread vishwajeet singh
try typing this on your python shell : *from __future__ import braces* check the output:* SyntaxError: not a chance (pyshell#0, 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

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] 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

Re: [Tutor] Accessing LDAP

2008-08-11 Thread vishwajeet singh
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] To: vishwajeet singh [EMAIL PROTECTED] Cc: Steven L Smith [EMAIL PROTECTED], tutor tutor

Re: [Tutor] Accessing LDAP

2008-08-11 Thread vishwajeet singh
121 - Original Message - From: vishwajeet singh [EMAIL PROTECTED] To: Steven L Smith [EMAIL PROTECTED] Cc: tutor tutor@python.org Sent: Monday, August 11, 2008 9:15:38 AM (GMT-0500) America/New_York Subject: Re: [Tutor] Accessing LDAP I have used it and it works pretty well

[Tutor] Element tree: Not giving processing instruction

2008-07-23 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

[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=%sf=%s' % (symbol, stat) return urllib.urlopen(url) I want to know in this % (symbol, stat) returns thanks for help Regards, Vishwajeet ___ Tutor maillist

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.