From stylesen at gmail.com Tue Apr 1 14:16:53 2008 From: stylesen at gmail.com (Senthil Kumaran S) Date: Tue, 1 Apr 2008 17:46:53 +0530 Subject: [BangPypers] RSS feeds via python CGI Message-ID: <5ef2113c0804010516w32fd69aau330033315ea6a223@mail.gmail.com> Hi, I would like to serve RSS feeds from a python CGI script. Basically I managed to generate the feeds file using PyRSS2Gen (http://www.dalkescientific.com/Python/PyRSS2Gen.html). I construct the whole rss feed as a string with the proper application header set as ""application/rss+xml" and write the string as follows in my CGI script: rss.write_xml(sys.stdout) When I try to aggregate this feed I get the error "Invalid rss url" in thunderbird. Should the feed be written to a file with extension '.rss' and then the URL be given to a feed reader? -- Senthil Kumaran S http://www.stylesen.org/ From heshan.suri at gmail.com Wed Apr 2 11:34:14 2008 From: heshan.suri at gmail.com (Heshan Suriyaarachchi) Date: Wed, 2 Apr 2008 15:04:14 +0530 Subject: [BangPypers] Expressing meta-data about classes, methods, variables, parameters in python Message-ID: <12e5d0d90804020234t74e6fd9bg4433899844bbfd37@mail.gmail.com> Hi Is there a mechanism to express meta-data about classes, methods, variables and parameters in python ( like annotations in java)? I will be thankful if anyone can point me to a sample code or a web reference. Thanx Heshan Suriyaarachchi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080402/2896a742/attachment.htm From supreet.sethi at gmail.com Thu Apr 3 05:46:29 2008 From: supreet.sethi at gmail.com (s|s) Date: Thu, 3 Apr 2008 09:16:29 +0530 Subject: [BangPypers] Expressing meta-data about classes, methods, variables, parameters in python In-Reply-To: <12e5d0d90804020234t74e6fd9bg4433899844bbfd37@mail.gmail.com> References: <12e5d0d90804020234t74e6fd9bg4433899844bbfd37@mail.gmail.com> Message-ID: On Wed, Apr 2, 2008 at 3:04 PM, Heshan Suriyaarachchi wrote: > Hi > Is there a mechanism to express meta-data about classes, methods, > variables and parameters in python ( like annotations in java)? I will be > thankful if anyone can point me to a sample code or a web reference. > There is no direct equivalent of annotations (like Java) in python. But decorators and __doc__ can provide similar features. Also considering python is a dynamic language with reflection being integral part of the language, many of the features are easy to implement. > Thanx > Heshan Suriyaarachchi > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Supreet Sethi http://findmeajob.wordpress.com From heshan.suri at gmail.com Thu Apr 3 10:33:24 2008 From: heshan.suri at gmail.com (Heshan Suriyaarachchi) Date: Thu, 3 Apr 2008 14:03:24 +0530 Subject: [BangPypers] Expressing meta-data about classes, methods, variables, parameters in python In-Reply-To: References: <12e5d0d90804020234t74e6fd9bg4433899844bbfd37@mail.gmail.com> Message-ID: <12e5d0d90804030133g631c03f6l808908ed760b3fb4@mail.gmail.com> Hi What I meant was a situation like this. In javascript I'm used to associating metadata with a function as follows. foo.bar = "foobar"; function foo(){ } What is the normal python practice to do this kind of a thing. Your help is very much appreciated. Thanks, Heshan Suriyaarachchi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080403/4a21d341/attachment.htm From sidharth.kuruvila at gmail.com Thu Apr 3 10:56:28 2008 From: sidharth.kuruvila at gmail.com (Sidharth Kuruvila) Date: Thu, 3 Apr 2008 14:26:28 +0530 Subject: [BangPypers] Expressing meta-data about classes, methods, variables, parameters in python In-Reply-To: <12e5d0d90804030133g631c03f6l808908ed760b3fb4@mail.gmail.com> References: <12e5d0d90804020234t74e6fd9bg4433899844bbfd37@mail.gmail.com> <12e5d0d90804030133g631c03f6l808908ed760b3fb4@mail.gmail.com> Message-ID: <4EB19583-28D1-4999-847B-DC8AAC5521C1@gmail.com> H Heshan, Can you explain why you'd want to do this? You can write def f(): print f.a f.a = 4 f() But I can't see you would want to do something like that. Maybe if you give a use case. Someone can come up with a solution. Regards, Sidharth On Apr 3, 2008, at 2:03 PM, Heshan Suriyaarachchi wrote: > Hi > What I meant was a situation like this. > > In javascript I'm used to associating metadata with a function as > follows. > > foo.bar = "foobar"; > function foo(){ > } > > What is the normal python practice to do this kind of a thing. > > Your help is very much appreciated. > > Thanks, > Heshan Suriyaarachchi > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From abpillai at gmail.com Thu Apr 3 12:45:16 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 3 Apr 2008 16:15:16 +0530 Subject: [BangPypers] Expressing meta-data about classes, methods, variables, parameters in python In-Reply-To: <4EB19583-28D1-4999-847B-DC8AAC5521C1@gmail.com> References: <12e5d0d90804020234t74e6fd9bg4433899844bbfd37@mail.gmail.com> <12e5d0d90804030133g631c03f6l808908ed760b3fb4@mail.gmail.com> <4EB19583-28D1-4999-847B-DC8AAC5521C1@gmail.com> Message-ID: <8548c5f30804030345n213d6f9ew3c4861c7a07c8519@mail.gmail.com> Functions in Python are first-class objects, so you can add arbitrary attributes to them like any other object. Like Siddharth said, you can do, def f(x, y): return x + y f.x = 100 >>>f(20, 30) 50 However as of 2.x Python does not provide any syntax for formal function annotations like Java. There have been proposals for this, and you can find the most relevant one in the following PEP. http://www.python.org/dev/peps/pep-3107/ This has been partly implemented and in py3k, functions have a new attribute named "__annotations__" which is a dictionary which can provide something more than a docstring, but an actual annotation on the params, return values. For example, this is how to annotate a function in Python 3.0. >>> def f(x : "an integer", y: "another integer") -> "Sum of x and y": ... return x + y >>> f.__annotations__ {'y': 'another integer', 'x': 'an integer', 'return': 'Sum of x and y'} The help() function returns the annotation plus the docstring now. >>> f.__doc__ = "A sum function" >>> help(f) Help on function f in module __main__: f(x: 'an integer', y: 'another integer') -> 'Sum of x and y' A sum function All this is available in py3k, so check out the py3k trunk, build it and play around with it. Hope this helps. --Anand On Thu, Apr 3, 2008 at 2:26 PM, Sidharth Kuruvila wrote: > H Heshan, > > Can you explain why you'd want to do this? > > You can write > > def f(): > print f.a > > f.a = 4 > > f() > > But I can't see you would want to do something like that. Maybe if you > give a use case. Someone can come up with a solution. > > Regards, > Sidharth > > > > On Apr 3, 2008, at 2:03 PM, Heshan Suriyaarachchi wrote: > > > Hi > > What I meant was a situation like this. > > > > In javascript I'm used to associating metadata with a function as > > follows. > > > > foo.bar = "foobar"; > > function foo(){ > > } > > > > What is the normal python practice to do this kind of a thing. > > > > Your help is very much appreciated. > > > > Thanks, > > Heshan Suriyaarachchi > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -Anand From abpillai at gmail.com Thu Apr 3 12:52:28 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 3 Apr 2008 16:22:28 +0530 Subject: [BangPypers] Expressing meta-data about classes, methods, variables, parameters in python In-Reply-To: <8548c5f30804030345n213d6f9ew3c4861c7a07c8519@mail.gmail.com> References: <12e5d0d90804020234t74e6fd9bg4433899844bbfd37@mail.gmail.com> <12e5d0d90804030133g631c03f6l808908ed760b3fb4@mail.gmail.com> <4EB19583-28D1-4999-847B-DC8AAC5521C1@gmail.com> <8548c5f30804030345n213d6f9ew3c4861c7a07c8519@mail.gmail.com> Message-ID: <8548c5f30804030352h5d2a6e7dgc9e4965fc9d4e08@mail.gmail.com> I had started a couple of blog posts aiming at discussing the new features, changes and gotchas in Python 3.0. I had made the first couple of posts 2 weeks back. The plan is to try and post as much as possible before Py3k releases in Aug this year. This question has reminded me to restart the posts. If someone is interested checkout http://randombytes.blogspot.com . Regards --Anand On Thu, Apr 3, 2008 at 4:15 PM, Anand Balachandran Pillai wrote: > Functions in Python are first-class objects, so you can add > arbitrary attributes to them like any other object. > > Like Siddharth said, you can do, > > def f(x, y): return x + y > > f.x = 100 > >>>f(20, 30) > 50 > > However as of 2.x Python does not provide any syntax for formal function > annotations like Java. There have been proposals for this, and you > can find the most relevant one in the following PEP. > > http://www.python.org/dev/peps/pep-3107/ > > This has been partly implemented and in py3k, functions have a new > attribute named "__annotations__" which is a dictionary which > can provide something more than a docstring, but an actual annotation > on the params, return values. > > For example, this is how to annotate a function in Python 3.0. > > >>> def f(x : "an integer", y: "another integer") -> "Sum of x and y": > ... return x + y > >>> f.__annotations__ > {'y': 'another integer', 'x': 'an integer', 'return': 'Sum of x and y'} > > The help() function returns the annotation plus the docstring now. > >>> f.__doc__ = "A sum function" > >>> help(f) > Help on function f in module __main__: > > f(x: 'an integer', y: 'another integer') -> 'Sum of x and y' > A sum function > > All this is available in py3k, so check out the py3k trunk, build it and > play around with it. > > Hope this helps. > > --Anand > > > > > On Thu, Apr 3, 2008 at 2:26 PM, Sidharth Kuruvila > wrote: > > H Heshan, > > > > Can you explain why you'd want to do this? > > > > You can write > > > > def f(): > > print f.a > > > > f.a = 4 > > > > f() > > > > But I can't see you would want to do something like that. Maybe if you > > give a use case. Someone can come up with a solution. > > > > Regards, > > Sidharth > > > > > > > > On Apr 3, 2008, at 2:03 PM, Heshan Suriyaarachchi wrote: > > > > > Hi > > > What I meant was a situation like this. > > > > > > In javascript I'm used to associating metadata with a function as > > > follows. > > > > > > foo.bar = "foobar"; > > > function foo(){ > > > } > > > > > > What is the normal python practice to do this kind of a thing. > > > > > > Your help is very much appreciated. > > > > > > Thanks, > > > Heshan Suriyaarachchi > > > > > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > -Anand > -- -Anand From heshan.suri at gmail.com Thu Apr 3 13:04:31 2008 From: heshan.suri at gmail.com (Heshan Suriyaarachchi) Date: Thu, 3 Apr 2008 16:34:31 +0530 Subject: [BangPypers] Expressing meta-data about classes, methods, variables, parameters in python In-Reply-To: <8548c5f30804030345n213d6f9ew3c4861c7a07c8519@mail.gmail.com> References: <12e5d0d90804020234t74e6fd9bg4433899844bbfd37@mail.gmail.com> <12e5d0d90804030133g631c03f6l808908ed760b3fb4@mail.gmail.com> <4EB19583-28D1-4999-847B-DC8AAC5521C1@gmail.com> <8548c5f30804030345n213d6f9ew3c4861c7a07c8519@mail.gmail.com> Message-ID: <12e5d0d90804030404w77a4f1b6ob99594b8ad88f9e8@mail.gmail.com> > > Hi Anand, This is what I exactly mean. This is the thing I want to do. I am now using python 2.5.1 . So is there a way that I can do a thing like this in python 2.5.1 ( an alternative way). Heshan Suriyaarachchi > > > >>> def f(x : "an integer", y: "another integer") -> "Sum of x and y": > ... return x + y > >>> f.__annotations__ > {'y': 'another integer', 'x': 'an integer', 'return': 'Sum of x and y'} > > The help() function returns the annotation plus the docstring now. > >>> f.__doc__ = "A sum function" > >>> help(f) > Help on function f in module __main__: > > f(x: 'an integer', y: 'another integer') -> 'Sum of x and y' > A sum function > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080403/3121a1cf/attachment.htm From abpillai at gmail.com Thu Apr 3 13:12:03 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 3 Apr 2008 16:42:03 +0530 Subject: [BangPypers] Expressing meta-data about classes, methods, variables, parameters in python In-Reply-To: <12e5d0d90804030404w77a4f1b6ob99594b8ad88f9e8@mail.gmail.com> References: <12e5d0d90804020234t74e6fd9bg4433899844bbfd37@mail.gmail.com> <12e5d0d90804030133g631c03f6l808908ed760b3fb4@mail.gmail.com> <4EB19583-28D1-4999-847B-DC8AAC5521C1@gmail.com> <8548c5f30804030345n213d6f9ew3c4861c7a07c8519@mail.gmail.com> <12e5d0d90804030404w77a4f1b6ob99594b8ad88f9e8@mail.gmail.com> Message-ID: <8548c5f30804030412h1de4603ao1addab787e2007f7@mail.gmail.com> No, I don't think so. Python has the trick of "peeking into the future" by backporting a feature in a future version to the current version by using the __future__ module. However I run Python 2.5 and I do not see any mention of function annotations in __future__ module. Python 2.5.1 (r251:54863, Sep 6 2007, 17:27:08) [GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import __future__ >>> dir(__future__) ['CO_FUTURE_ABSOLUTE_IMPORT', 'CO_FUTURE_DIVISION', 'CO_FUTURE_WITH_STATEMENT', 'CO_GENERATOR_ALLOWED', 'CO_NESTED', '_Feature', '__all__', '__builtins__', '__doc__', '__file__', '__name__', 'absolute_import', 'all_feature_names', 'division', 'generators', 'nested_scopes', 'with_statement'] >>> However, this should be part of Python 2.6. But why bother ? Best thing to do is check out the Python 3.0 trunk, and you can build it and get to know this and other Py3k tricks in a matter of minutes. Use the following svn URL for Py3k. http://svn.python.org/projects/python/branches/py3k HTH. --Anand On Thu, Apr 3, 2008 at 4:34 PM, Heshan Suriyaarachchi wrote: > > > Hi Anand, > This is what I exactly mean. This is the thing I want to do. I am now > using python 2.5.1 . So is > there a way that I can do a thing like this in python 2.5.1 ( an > alternative way). > > Heshan Suriyaarachchi > > > > > > > >>> def f(x : "an integer", y: "another integer") -> "Sum of x and y": > > ... return x + y > > >>> f.__annotations__ > > {'y': 'another integer', 'x': 'an integer', 'return': 'Sum of x and y'} > > > > The help() function returns the annotation plus the docstring now. > > >>> f.__doc__ = "A sum function" > > >>> help(f) > > Help on function f in module __main__: > > > > f(x: 'an integer', y: 'another integer') -> 'Sum of x and y' > > A sum function > > > > > > > > > > > > > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- -Anand From kushaldas at gmail.com Thu Apr 3 14:01:12 2008 From: kushaldas at gmail.com (Kushal Das) Date: Thu, 3 Apr 2008 17:31:12 +0530 Subject: [BangPypers] My book on Python for newbies Message-ID: <200804031731.13257.kushaldas@gmail.com> Hi, I am writing a book on Python for newbies. You can see it here http://kushal.fedorapeople.org/book/ I am looking for feedback. Flowers and stones both are welcome Kushal -- Fedora Ambassador, India http://kushaldas.in http://dgplug.org (Linux User Group of Durgapur) From sidharth.kuruvila at gmail.com Thu Apr 3 15:15:59 2008 From: sidharth.kuruvila at gmail.com (Sidharth Kuruvila) Date: Thu, 3 Apr 2008 18:45:59 +0530 Subject: [BangPypers] Expressing meta-data about classes, methods, variables, parameters in python In-Reply-To: <12e5d0d90804030404w77a4f1b6ob99594b8ad88f9e8@mail.gmail.com> References: <12e5d0d90804020234t74e6fd9bg4433899844bbfd37@mail.gmail.com> <12e5d0d90804030133g631c03f6l808908ed760b3fb4@mail.gmail.com> <4EB19583-28D1-4999-847B-DC8AAC5521C1@gmail.com> <8548c5f30804030345n213d6f9ew3c4861c7a07c8519@mail.gmail.com> <12e5d0d90804030404w77a4f1b6ob99594b8ad88f9e8@mail.gmail.com> Message-ID: <885651FD-089D-4F70-A79F-6632090EF49F@gmail.com> Hi, You can simulate annotation using decorators. I might be missing something about annotation but you can do this. def annotate(returns, **params): def decorate(func): params['returns'] = returns func.__annotations__ = params return func return decorate @annotate("returns", a="a") def f(a): return a print f.__annotations__ On Apr 3, 2008, at 4:34 PM, Heshan Suriyaarachchi wrote: > Hi Anand, > This is what I exactly mean. This is the thing I want to do. I am > now using python 2.5.1 . So is > there a way that I can do a thing like this in python 2.5.1 ( an > alternative way). > > Heshan Suriyaarachchi > > > >>> def f(x : "an integer", y: "another integer") -> "Sum of x and y": > ... return x + y > >>> f.__annotations__ > {'y': 'another integer', 'x': 'an integer', 'return': 'Sum of x and > y'} > > The help() function returns the annotation plus the docstring now. > >>> f.__doc__ = "A sum function" > >>> help(f) > Help on function f in module __main__: > > f(x: 'an integer', y: 'another integer') -> 'Sum of x and y' > A sum function > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From skhadar at gmail.com Thu Apr 3 15:23:18 2008 From: skhadar at gmail.com (Shameer Khadar) Date: Thu, 3 Apr 2008 18:53:18 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <200804031731.13257.kushaldas@gmail.com> References: <200804031731.13257.kushaldas@gmail.com> Message-ID: Hi Kushal, This is nice, But it is always painful to read a whole book through html links :) Can you please put a pdf copy of the current version of your book. Cheers, Shameer On Thu, Apr 3, 2008 at 5:31 PM, Kushal Das wrote: > Hi, > I am writing a book on Python for newbies. You can see it here > > http://kushal.fedorapeople.org/book/ > > I am looking for feedback. Flowers and stones both are welcome > > > Kushal > -- > Fedora Ambassador, India > http://kushaldas.in > http://dgplug.org (Linux User Group of Durgapur) > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- K Shameer ========================================= | Indulge | Innovate | Inspire | -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080403/e879f749/attachment-0001.htm From kushaldas at gmail.com Thu Apr 3 15:23:33 2008 From: kushaldas at gmail.com (Kushal Das) Date: Thu, 3 Apr 2008 18:53:33 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: References: <200804031731.13257.kushaldas@gmail.com> Message-ID: <200804031853.34036.kushaldas@gmail.com> On Thursday 03 April 2008 06:53:18 pm Shameer Khadar wrote: > Hi Kushal, > > This is nice, > But it is always painful to read a whole book through html links :) > Can you please put a pdf copy of the current version of your book. The toolchain I am using for writing this book is currently little bit broken. So, I could not generate the PDF. I will upload it as soon as possible. Kushal -- Fedora Ambassador, India http://kushaldas.in http://dgplug.org (Linux User Group of Durgapur) From pintooo15 at gmail.com Thu Apr 3 22:02:37 2008 From: pintooo15 at gmail.com (Diabolic Preacher) Date: Fri, 4 Apr 2008 01:32:37 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <200804031853.34036.kushaldas@gmail.com> References: <200804031731.13257.kushaldas@gmail.com> <200804031853.34036.kushaldas@gmail.com> Message-ID: On Thu, Apr 3, 2008 at 6:53 PM, Kushal Das wrote: > On Thursday 03 April 2008 06:53:18 pm Shameer Khadar wrote: > > Hi Kushal, > > > > This is nice, > > But it is always painful to read a whole book through html links :) > > Can you please put a pdf copy of the current version of your book. > The toolchain I am using for writing this book is currently little bit broken. > So, I could not generate the PDF. I will upload it as soon as possible. Thanks for your time and effort for creating such an attractive and interesting book for beginners. mirrored the book offline with httrack for now. -- Diabolic Preacher As Is Blog: http://pintooo15.livejournal.com/ Bookmarks: http://simpy.com/user/dpreacher -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/IT d+(-) s+:+ a22 C++@ UL@ P L+(++) E- W++ !N o? K>++ w(-) !O M-(--) !V PS+ PE++ Y+ PGP t- 5? X>+ R- tv@ b-(+) DI+ D+ G++ e++ h-- !r y- ------END GEEK CODE BLOCK------ From heshan.suri at gmail.com Fri Apr 4 07:53:51 2008 From: heshan.suri at gmail.com (Heshan Suriyaarachchi) Date: Fri, 4 Apr 2008 11:23:51 +0530 Subject: [BangPypers] Expressing meta-data about classes, methods, variables, parameters in python In-Reply-To: <885651FD-089D-4F70-A79F-6632090EF49F@gmail.com> References: <12e5d0d90804020234t74e6fd9bg4433899844bbfd37@mail.gmail.com> <12e5d0d90804030133g631c03f6l808908ed760b3fb4@mail.gmail.com> <4EB19583-28D1-4999-847B-DC8AAC5521C1@gmail.com> <8548c5f30804030345n213d6f9ew3c4861c7a07c8519@mail.gmail.com> <12e5d0d90804030404w77a4f1b6ob99594b8ad88f9e8@mail.gmail.com> <885651FD-089D-4F70-A79F-6632090EF49F@gmail.com> Message-ID: <12e5d0d90804032253t33b3cd1ered465862400ec273@mail.gmail.com> Hi Python 3.0 provides the best solution to my problem with annotations.But for the time being I am able to work with the way Sidharth proposed using decorators. :) Thanx guys Heshan Suriyaarachchi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080404/36903ee4/attachment.htm From skpatel20 at hotmail.com Fri Apr 4 08:59:44 2008 From: skpatel20 at hotmail.com (Sanjaya Kumar Patel) Date: Fri, 4 Apr 2008 12:29:44 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <200804031731.13257.kushaldas@gmail.com> References: <200804031731.13257.kushaldas@gmail.com> Message-ID: > I am writing a book on Python for newbies. You can see it here > > http://kushal.fedorapeople.org/book/ > While I am going through the book at ease, must appreciate the simple look and feel of the site. Curious to know what tools do you use to produce the site. Sanjay _________________________________________________________________ Technology : Catch up on updates on the latest Gadgets, Reviews, Gaming and Tips to use technology etc. http://computing.in.msn.com/ From kushaldas at gmail.com Fri Apr 4 09:12:22 2008 From: kushaldas at gmail.com (Kushal Das) Date: Fri, 4 Apr 2008 12:42:22 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: References: <200804031731.13257.kushaldas@gmail.com> Message-ID: <200804041242.23084.kushaldas@gmail.com> On Friday 04 April 2008 12:29:44 pm Sanjaya Kumar Patel wrote: > While I am going through the book at ease, must appreciate the simple look > and feel of the site. Curious to know what tools do you use to produce the > site. I used Publican , which is a toolchain based on docbook. It used to be Redhat's in-house tool iirc. You can get more details at: https://fedorahosted.org/publican/ Kushal -- Fedora Ambassador, India http://kushaldas.in http://dgplug.org (Linux User Group of Durgapur) From gnuyoga at gmail.com Fri Apr 4 10:18:10 2008 From: gnuyoga at gmail.com (gnuyoga) Date: Fri, 04 Apr 2008 13:48:10 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <200804031731.13257.kushaldas@gmail.com> References: <200804031731.13257.kushaldas@gmail.com> Message-ID: <47F5E442.9080300@gmail.com> An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080404/1bcd1052/attachment.htm From abpillai at gmail.com Fri Apr 4 10:20:59 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 4 Apr 2008 13:50:59 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <47F5E442.9080300@gmail.com> References: <200804031731.13257.kushaldas@gmail.com> <47F5E442.9080300@gmail.com> Message-ID: <8548c5f30804040120l2bccf4d3i2cdd9ccbba6b076@mail.gmail.com> Going by that logic all Java books are futile since the Java API documentation is available. --Anand On Fri, Apr 4, 2008 at 1:48 PM, gnuyoga wrote: > don't u think this is a futile effort in comparison with docs.python.org > > curious to know why u wrote this > > - sree > > -- > http://picasaweb.google.com/gnuyoga > > Each soul is potentially divine. The goal is to manifest the divine by > controlling nature, internal or external. Do this by work or worship or > psychic control or philosophy by one or more, or all of these and be free. > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- -Anand From kushaldas at gmail.com Fri Apr 4 10:17:18 2008 From: kushaldas at gmail.com (Kushal Das) Date: Fri, 4 Apr 2008 13:47:18 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <47F5E442.9080300@gmail.com> References: <200804031731.13257.kushaldas@gmail.com> <47F5E442.9080300@gmail.com> Message-ID: <200804041347.18281.kushaldas@gmail.com> On Friday 04 April 2008 01:48:10 pm gnuyoga wrote: > don't u think this is a futile effort in comparison with > docs.python.org > curious to know why u wrote this
Because I found most of the students are not into RTFM much. They like books with examples just like any other book in the school. Kushal -- Fedora Ambassador, India http://kushaldas.in http://dgplug.org (Linux User Group of Durgapur) From ramdas at developeriq.com Fri Apr 4 12:57:17 2008 From: ramdas at developeriq.com (Ramdas S) Date: Fri, 4 Apr 2008 16:27:17 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <8548c5f30804040120l2bccf4d3i2cdd9ccbba6b076@mail.gmail.com> References: <200804031731.13257.kushaldas@gmail.com> <47F5E442.9080300@gmail.com> <8548c5f30804040120l2bccf4d3i2cdd9ccbba6b076@mail.gmail.com> Message-ID: <6e38f9f00804040357u5ad68905rbf3cba910cf4238@mail.gmail.com> I second Anand. I won't mind 100 Kushals writing 100 *free *books on Python. I might not read all of them, but then I can recommend all of them to people who says there is a lack of docs on Python. I feel we need even more documentation at entry level. Kushal, good job, Keep the book effort going.... Ramdas On Fri, Apr 4, 2008 at 1:50 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > Going by that logic all Java books are futile since the Java API > documentation > is available. > > --Anand > > On Fri, Apr 4, 2008 at 1:48 PM, gnuyoga wrote: > > > don't u think this is a futile effort in comparison with > docs.python.org > > > > curious to know why u wrote this > > > > - sree > > > > -- > > http://picasaweb.google.com/gnuyoga > > > > Each soul is potentially divine. The goal is to manifest the divine by > > controlling nature, internal or external. Do this by work or worship or > > psychic control or philosophy by one or more, or all of these and be > free. > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > -- > -Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080404/190ea1e8/attachment.htm From venkatasubramanian at gmail.com Fri Apr 4 13:02:33 2008 From: venkatasubramanian at gmail.com (venkata subramanian) Date: Fri, 4 Apr 2008 16:32:33 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <6e38f9f00804040357u5ad68905rbf3cba910cf4238@mail.gmail.com> References: <200804031731.13257.kushaldas@gmail.com> <47F5E442.9080300@gmail.com> <8548c5f30804040120l2bccf4d3i2cdd9ccbba6b076@mail.gmail.com> <6e38f9f00804040357u5ad68905rbf3cba910cf4238@mail.gmail.com> Message-ID: Moreover, a documentation does not equate to a book. They serve different purposes, have different presentations. I liked Kushal's presentation a lot ( his writing can be improved). Python Books - the more the merrier. Regards,' Venkat On Fri, Apr 4, 2008 at 4:27 PM, Ramdas S wrote: > I second Anand. I won't mind 100 Kushals writing 100 free books on Python. I > might not read all of them, but then I can recommend all of them to people > who says there is a lack of docs on Python. > > I feel we need even more documentation at entry level. > > Kushal, good job, Keep the book effort going.... > > Ramdas > > > > On Fri, Apr 4, 2008 at 1:50 PM, Anand Balachandran Pillai > wrote: > > > Going by that logic all Java books are futile since the Java API > documentation > > is available. > > > > --Anand > > > > > > On Fri, Apr 4, 2008 at 1:48 PM, gnuyoga wrote: > > > > > don't u think this is a futile effort in comparison with > docs.python.org > > > > > > curious to know why u wrote this > > > > > > - sree > > > > > > -- > > > http://picasaweb.google.com/gnuyoga > > > > > > Each soul is potentially divine. The goal is to manifest the divine by > > > controlling nature, internal or external. Do this by work or worship or > > > psychic control or philosophy by one or more, or all of these and be > free. > > > > > > > > > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > -- > > -Anand > > > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > From pintooo15 at gmail.com Fri Apr 4 14:09:11 2008 From: pintooo15 at gmail.com (Diabolic Preacher) Date: Fri, 4 Apr 2008 17:39:11 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <47F5E442.9080300@gmail.com> References: <200804031731.13257.kushaldas@gmail.com> <47F5E442.9080300@gmail.com> Message-ID: On Fri, Apr 4, 2008 at 1:48 PM, gnuyoga wrote: > Kushal > > don't u think this is a futile effort in comparison with docs.python.org > > curious to know why u wrote this because dumb people like me only understand simplified and example-filled books like the ones brought out by people like Kushal. Because official maybe authentic but not exactly understandable...happens with other languages' reference material also. And this is not just a demo of how to use Publican. This is an effort to use a toolchain to reproduce the troubles taken by Kushal to actually work out the examples and taken the user on a step by step tour. Different books for different needs. For that matter, a lot of open source projects get created because more often than not the author has the need for such a particular tool or rather variation of the tool. > > - sree -- Diabolic Preacher As Is Blog: http://pintooo15.livejournal.com/ Bookmarks: http://simpy.com/user/dpreacher -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/IT d+(-) s+:+ a22 C++@ UL@ P L+(++) E- W++ !N o? K>++ w(-) !O M-(--) !V PS+ PE++ Y+ PGP t- 5? X>+ R- tv@ b-(+) DI+ D+ G++ e++ h-- !r y- ------END GEEK CODE BLOCK------ From gnuyoga at gmail.com Fri Apr 4 14:13:42 2008 From: gnuyoga at gmail.com (gnuyoga) Date: Fri, 04 Apr 2008 17:43:42 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <8548c5f30804040120l2bccf4d3i2cdd9ccbba6b076@mail.gmail.com> References: <200804031731.13257.kushaldas@gmail.com> <47F5E442.9080300@gmail.com> <8548c5f30804040120l2bccf4d3i2cdd9ccbba6b076@mail.gmail.com> Message-ID: <47F61B76.1070301@gmail.com> Anand Balachandran Pillai wrote: > Going by that logic all Java books are futile since the Java API documentation > is available. > > --Anand > > Am not against anyone writing documentaion/howto... its a g8 skill. really appreciate. I really dont know how much community can be proud about Java Development / Documentation ... its more of Sun. That is not the case with python.org - sree -- http://picasaweb.google.com/gnuyoga Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. From gnuyoga at gmail.com Fri Apr 4 14:18:12 2008 From: gnuyoga at gmail.com (gnuyoga) Date: Fri, 04 Apr 2008 17:48:12 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: References: <200804031731.13257.kushaldas@gmail.com> <47F5E442.9080300@gmail.com> <8548c5f30804040120l2bccf4d3i2cdd9ccbba6b076@mail.gmail.com> <6e38f9f00804040357u5ad68905rbf3cba910cf4238@mail.gmail.com> Message-ID: <47F61C84.5010807@gmail.com> venkata subramanian wrote: > Moreover, a documentation does not equate to a book. > > They serve different purposes, have different presentations. > > I liked Kushal's presentation a lot ( his writing can be improved). > > Python Books - the more the merrier. > > Regards,' > Venkat > this is interesting. what is that people are looking while learning a language ?? I would love to have the following - Quick Started Guide - Hands On (lots of use cases and examples) - Advanced Language use cases - Tricks & Techniques - proven ways of solving commons problems - API Documentation -- http://picasaweb.google.com/gnuyoga Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. From anandology at gmail.com Fri Apr 4 14:54:30 2008 From: anandology at gmail.com (Anand Chitipothu) Date: Fri, 4 Apr 2008 18:24:30 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <47F61C84.5010807@gmail.com> References: <200804031731.13257.kushaldas@gmail.com> <47F5E442.9080300@gmail.com> <8548c5f30804040120l2bccf4d3i2cdd9ccbba6b076@mail.gmail.com> <6e38f9f00804040357u5ad68905rbf3cba910cf4238@mail.gmail.com> <47F61C84.5010807@gmail.com> Message-ID: <41139fcb0804040554v546974bes5ca4d2c6b001b6ec@mail.gmail.com> > > this is interesting. what is that people are looking while learning a > language ?? > > I would love to have the following > - Quick Started Guide > - Hands On (lots of use cases and examples) > - Advanced Language use cases > - Tricks & Techniques - proven ways of solving commons problems > - API Documentation I have written one with lot of examples and exercises when I was doing a training session on python. http://pythonprogramming.jottit.com I found that lot of beginner tutorials/books concentrate on explaining the syntax than explaining the programming concepts. When I started writing this, I wanted write a book to learn programming through python, not just a book to learn python. From khuranavivek_in at yahoo.com Fri Apr 4 15:23:38 2008 From: khuranavivek_in at yahoo.com (vivek khurana) Date: Fri, 4 Apr 2008 06:23:38 -0700 (PDT) Subject: [BangPypers] My book on Python for newbies In-Reply-To: <8548c5f30804040120l2bccf4d3i2cdd9ccbba6b076@mail.gmail.com> Message-ID: <355499.4146.qm@web55210.mail.re4.yahoo.com> --- Anand Balachandran Pillai wrote: > Going by that logic all Java books are futile since > the Java API documentation > is available. I think what sree is referring here is the python tutorial available under docs.python.org . This tutorial is full of examples. As for examples that solve common problems etc. we do have free python cookbook available under ASPN I think the question here is similar to, why so another linux distro when we already have so many of them. :) regards VK Engineers normally have problem with every solution. If not they have a solution in search of a problem. Disclaimer The facts expressed here belong to everybody, the opinions to me. The distinction is yours to draw... ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com From venkatasubramanian at gmail.com Fri Apr 4 15:45:41 2008 From: venkatasubramanian at gmail.com (venkata subramanian) Date: Fri, 4 Apr 2008 19:15:41 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <47F61C84.5010807@gmail.com> References: <200804031731.13257.kushaldas@gmail.com> <47F5E442.9080300@gmail.com> <8548c5f30804040120l2bccf4d3i2cdd9ccbba6b076@mail.gmail.com> <6e38f9f00804040357u5ad68905rbf3cba910cf4238@mail.gmail.com> <47F61C84.5010807@gmail.com> Message-ID: On Fri, Apr 4, 2008 at 5:48 PM, gnuyoga wrote: > venkata subramanian wrote: > > Moreover, a documentation does not equate to a book. > > > > They serve different purposes, have different presentations. > > > > I liked Kushal's presentation a lot ( his writing can be improved). > > > > Python Books - the more the merrier. > > > > Regards,' > > Venkat > > > > this is interesting. what is that people are looking while learning a > language ?? > > I would love to have the following > - Quick Started Guide > - Hands On (lots of use cases and examples) > - Advanced Language use cases > - Tricks & Techniques - proven ways of solving commons problems Does a Cookbook equate to this? I find cookbooks to be very useful. Also, I would like to know the gotchas and the design warts of the language. > - API Documentation > > > -- > > > http://picasaweb.google.com/gnuyoga > > Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From abpillai at gmail.com Fri Apr 4 15:48:09 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 4 Apr 2008 19:18:09 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <355499.4146.qm@web55210.mail.re4.yahoo.com> References: <8548c5f30804040120l2bccf4d3i2cdd9ccbba6b076@mail.gmail.com> <355499.4146.qm@web55210.mail.re4.yahoo.com> Message-ID: <8548c5f30804040648v1448798od2a1d8507b3caa73@mail.gmail.com> On Fri, Apr 4, 2008 at 6:53 PM, vivek khurana wrote: > > --- Anand Balachandran Pillai > wrote: > > > > Going by that logic all Java books are futile since > > the Java API documentation > > is available. > > I think what sree is referring here is the python > tutorial available under docs.python.org . This > tutorial is full of examples. As for examples that > solve common problems etc. we do have free python > cookbook available under ASPN > > I think the question here is similar to, why so > another linux distro when we already have so many of > them. :) We have umpteen number of them and still creating a new Linux distro is a favorite project among F/OSS enthusiasts. Why ? This is because F/OSS thrives not just on quality but also on quantity. For example, for network packet analysis, the best tool is perhaps wireshark, and for scanning nmap, but that does not prevent someone from writing a Scapy or ethersniff or hping2. There are many package managers out there - yum, apt-get, smart, urpmi etc. Why not just one ? The reason is F/OSS thrives on variety also, not just on a single source. That would be called monopoly. That is even true for books or tutorials. Hence we need more Kushals though he may not write a "diveintopython". > > regards > VK > > > Engineers normally have problem with every solution. If not they have a solution in search of a problem. > > Disclaimer > The facts expressed here belong to everybody, the opinions to me. The distinction is yours to draw... > > > > ____________________________________________________________________________________ > You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. > http://tc.deals.yahoo.com/tc/blockbuster/text5.com > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -Anand From arivoli at gmail.com Fri Apr 4 19:59:40 2008 From: arivoli at gmail.com (Arivoli S) Date: Fri, 4 Apr 2008 12:59:40 -0500 Subject: [BangPypers] How to read a file from bottom Message-ID: <6f5104bf0804041059m121d4b5ck29f14b8a5a174fd7@mail.gmail.com> Hi everybody, i have a log file which will grow everyday, so the size will be nearly 500MB. i am keep on inserting a line one by one in the file. so the latest one will be in the bottom. I need to get latest 100 lines(lines from bottom). Any idea how to read lines from bottom in a text file? I tried storing into a list line by line, and iterating from bottom , but it seems to be slow. Is there any better way to do this? thanks Arivoli -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080404/5fc8f872/attachment.htm From vimalmenon at yahoo.com Fri Apr 4 20:58:25 2008 From: vimalmenon at yahoo.com (Vimal Menon) Date: Fri, 4 Apr 2008 11:58:25 -0700 (PDT) Subject: [BangPypers] How to read a file from bottom Message-ID: <170610.25840.qm@web30505.mail.mud.yahoo.com> Hi Arivoli, Theres a dirty trick ;) (by running a command).. If u r on a linux machine u can use the tail command .. tail -100 would give u the last 100 lines of .. (or do a seek and read) or u can try this http://code.google.com/p/pytailer/ Regards, Vimal ----- Original Message ---- From: Arivoli S To: bangpypers at python.org Sent: Friday, April 4, 2008 11:29:40 PM Subject: [BangPypers] How to read a file from bottom Hi everybody, i have a log file which will grow everyday, so the size will be nearly 500MB. i am keep on inserting a line one by one in the file. so the latest one will be in the bottom. I need to get latest 100 lines(lines from bottom). Any idea how to read lines from bottom in a text file? I tried storing into a list line by line, and iterating from bottom , but it seems to be slow. Is there any better way to do this? thanks Arivoli ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080404/44ff14b1/attachment.htm From arivoli at gmail.com Fri Apr 4 21:13:54 2008 From: arivoli at gmail.com (Arivoli S) Date: Fri, 4 Apr 2008 14:13:54 -0500 Subject: [BangPypers] How to read a file from bottom In-Reply-To: <170610.25840.qm@web30505.mail.mud.yahoo.com> References: <170610.25840.qm@web30505.mail.mud.yahoo.com> Message-ID: <6f5104bf0804041213t5c5637e6l381f9d6d2a7c7a13@mail.gmail.com> Hi Vimal, The pytailer is really cool stuff, i will try this. Actually i got another option also, just look at this http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/120686 This is also seems be to fine, let me check both to get a best one. Thanks for your information. thanks Arivoli On Fri, Apr 4, 2008 at 1:58 PM, Vimal Menon wrote: > Hi Arivoli, > > Theres a dirty trick ;) (by running a command).. If u r on a linux > machine u can use the tail command .. tail -100 would give u the > last 100 lines of .. > (or do a seek and read) > or u can try this http://code.google.com/p/pytailer/ > > Regards, > Vimal > > > ----- Original Message ---- > From: Arivoli S > To: bangpypers at python.org > Sent: Friday, April 4, 2008 11:29:40 PM > Subject: [BangPypers] How to read a file from bottom > > Hi everybody, > i have a log file which will grow everyday, so the size will be nearly > 500MB. i am keep on inserting a line one by one in the file. > so the latest one will be in the bottom. I need to get latest 100 > lines(lines from bottom). Any idea how to read lines from bottom in a text > file? > > I tried storing into a list line by line, and iterating from bottom , but > it seems to be slow. Is there any better way to do this? > > thanks > Arivoli > > > ------------------------------ > You rock. That's why Blockbuster's offering you one month of Blockbuster > Total Access, > No Cost. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- thanks Arivoli -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080404/67803bb8/attachment.htm From ramdas at developeriq.com Sat Apr 5 05:19:52 2008 From: ramdas at developeriq.com (Ramdas S) Date: Sat, 5 Apr 2008 08:49:52 +0530 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <41139fcb0804040554v546974bes5ca4d2c6b001b6ec@mail.gmail.com> References: <200804031731.13257.kushaldas@gmail.com> <47F5E442.9080300@gmail.com> <8548c5f30804040120l2bccf4d3i2cdd9ccbba6b076@mail.gmail.com> <6e38f9f00804040357u5ad68905rbf3cba910cf4238@mail.gmail.com> <47F61C84.5010807@gmail.com> <41139fcb0804040554v546974bes5ca4d2c6b001b6ec@mail.gmail.com> Message-ID: <6e38f9f00804042019p79d2cfa5y46d45e089665c7b8@mail.gmail.com> Anand/Kushal, I hope you guys will feel encouraged to continue with your work. Both are very decent starts. But do not stop at the beginners level, and continue the work on branch out and make it special Ramdas On Fri, Apr 4, 2008 at 6:24 PM, Anand Chitipothu wrote: > > > > this is interesting. what is that people are looking while learning a > > language ?? > > > > I would love to have the following > > - Quick Started Guide > > - Hands On (lots of use cases and examples) > > - Advanced Language use cases > > - Tricks & Techniques - proven ways of solving commons problems > > - API Documentation > > I have written one with lot of examples and exercises when I was doing > a training session on python. > > http://pythonprogramming.jottit.com > > I found that lot of beginner tutorials/books concentrate on explaining > the syntax than explaining the programming concepts. When I started > writing this, I wanted write a book to learn programming through > python, not just a book to learn python. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080405/39c43d25/attachment.htm From sridhar.ratna at gmail.com Sat Apr 5 08:54:08 2008 From: sridhar.ratna at gmail.com (Sridhar Ratnakumar) Date: Fri, 4 Apr 2008 23:54:08 -0700 Subject: [BangPypers] My book on Python for newbies In-Reply-To: <6e38f9f00804042019p79d2cfa5y46d45e089665c7b8@mail.gmail.com> References: <200804031731.13257.kushaldas@gmail.com> <47F5E442.9080300@gmail.com> <8548c5f30804040120l2bccf4d3i2cdd9ccbba6b076@mail.gmail.com> <6e38f9f00804040357u5ad68905rbf3cba910cf4238@mail.gmail.com> <47F61C84.5010807@gmail.com> <41139fcb0804040554v546974bes5ca4d2c6b001b6ec@mail.gmail.com> <6e38f9f00804042019p79d2cfa5y46d45e089665c7b8@mail.gmail.com> Message-ID: <7c73a13a0804042354i138f8e95n3424aea25a5baa93@mail.gmail.com> On Fri, Apr 4, 2008 at 8:19 PM, Ramdas S wrote: > > But do not stop at the beginners level, and continue the > work on branch out and make it special Right. When MOST of the open source projects are dying/dead, it is indeed an achievement to _continue_ to maintain/improve a project. As far as I can tell, being a bipolar contributor is the least appreciated. http://www.lambdassociates.org/blog/bipolar.htm Cheers, Sridhar From dorai at thodla.com Tue Apr 8 06:38:34 2008 From: dorai at thodla.com (Dorai Thodla) Date: Tue, 8 Apr 2008 10:08:34 +0530 Subject: [BangPypers] Google App Engine with Python run time Message-ID: <603b7e560804072138h2d44efd5v113af8519ca3595c@mail.gmail.com> I tried to register but I think, I was already too late. So I just blogged about it, instead. http://dorai.wordpress.com/2008/04/08/google-app-engine-with-python-run-time/ It is exciting to see Google entering Web hosting space with an App Engine with python run-time. -- Dorai Thodla (http://www.thodla.com) Thinking about Technology Innovation and Learning My DailyLog (http://dorai.tumblr.com/) - Stuff worth remembering US: 650-206-2688, India: 98408 89258 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080408/51325271/attachment.htm From siddharta.lists at gmail.com Tue Apr 8 15:33:10 2008 From: siddharta.lists at gmail.com (Siddharta) Date: Tue, 08 Apr 2008 19:03:10 +0530 Subject: [BangPypers] Google App Engine with Python run time In-Reply-To: <603b7e560804072138h2d44efd5v113af8519ca3595c@mail.gmail.com> References: <603b7e560804072138h2d44efd5v113af8519ca3595c@mail.gmail.com> Message-ID: <47FB7416.2010105@gmail.com> Very interesting. This could become quite big. Are they out to compete with Amazon Web Services? Looking through the API it seems to be heavily influenced by Django. The datastore API is very similar to Django's ORM and the default template engine uses Django template syntax. They even have official documentation on deploying Django apps on this infrastructure - http://code.google.com/appengine/articles/django.html -- Siddharta Govindaraj Dorai Thodla wrote: > I tried to register but I think, I was already too late. So I just > blogged about it, instead. > > http://dorai.wordpress.com/2008/04/08/google-app-engine-with-python-run-time/ > > It is exciting to see Google entering Web hosting space with an App > Engine with python run-time. > > -- > Dorai Thodla (http://www.thodla.com) > Thinking about Technology Innovation and Learning > My DailyLog (http://dorai.tumblr.com/) - Stuff worth remembering > US: 650-206-2688, India: 98408 89258 From dorai at thodla.com Tue Apr 8 17:25:35 2008 From: dorai at thodla.com (Dorai Thodla) Date: Tue, 8 Apr 2008 20:55:35 +0530 Subject: [BangPypers] Google App Engine with Python run time In-Reply-To: <47FB7416.2010105@gmail.com> References: <603b7e560804072138h2d44efd5v113af8519ca3595c@mail.gmail.com> <47FB7416.2010105@gmail.com> Message-ID: <603b7e560804080825w6e11419eua44481ed5dd8f2b6@mail.gmail.com> Yeah. I was surprised. I did not notice the Django stuff first, but a friend pointed out to me that the examples are Django. And then I found that Django is pre-installed on the servers in the FAQ page. Did you see the Django presentation video at Google? Dorai On Tue, Apr 8, 2008 at 7:03 PM, Siddharta wrote: > Very interesting. This could become quite big. Are they out to compete > with Amazon Web Services? > > Looking through the API it seems to be heavily influenced by Django. The > datastore API is very similar to Django's ORM and the default template > engine uses Django template syntax. They even have official > documentation on deploying Django apps on this infrastructure - > http://code.google.com/appengine/articles/django.html > > -- > Siddharta Govindaraj > > Dorai Thodla wrote: > > I tried to register but I think, I was already too late. So I just > > blogged about it, instead. > > > > > http://dorai.wordpress.com/2008/04/08/google-app-engine-with-python-run-time/ > > > > It is exciting to see Google entering Web hosting space with an App > > Engine with python run-time. > > > > -- > > Dorai Thodla (http://www.thodla.com) > > Thinking about Technology Innovation and Learning > > My DailyLog (http://dorai.tumblr.com/) - Stuff worth remembering > > US: 650-206-2688, India: 98408 89258 > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Dorai Thodla (http://www.thodla.com) Thinking about Technology Innovation and Learning My DailyLog (http://dorai.tumblr.com/) - Stuff worth remembering US: 650-206-2688, India: 98408 89258 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080408/249c9120/attachment.htm From lawgon at au-kbc.org Tue Apr 8 18:20:52 2008 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 8 Apr 2008 21:50:52 +0530 Subject: [BangPypers] Google App Engine with Python run time In-Reply-To: <47FB7416.2010105@gmail.com> References: <603b7e560804072138h2d44efd5v113af8519ca3595c@mail.gmail.com> <47FB7416.2010105@gmail.com> Message-ID: django rulz On 08-Apr-08, at 7:03 PM, Siddharta wrote: > Very interesting. This could become quite big. Are they out to compete > with Amazon Web Services? > > Looking through the API it seems to be heavily influenced by > Django. The > datastore API is very similar to Django's ORM and the default template > engine uses Django template syntax. They even have official > documentation on deploying Django apps on this infrastructure - > http://code.google.com/appengine/articles/django.html > > -- > Siddharta Govindaraj > > Dorai Thodla wrote: >> I tried to register but I think, I was already too late. So I just >> blogged about it, instead. >> >> http://dorai.wordpress.com/2008/04/08/google-app-engine-with- >> python-run-time/ >> >> It is exciting to see Google entering Web hosting space with an App >> Engine with python run-time. >> >> -- >> Dorai Thodla (http://www.thodla.com) >> Thinking about Technology Innovation and Learning >> My DailyLog (http://dorai.tumblr.com/) - Stuff worth remembering >> US: 650-206-2688, India: 98408 89258 > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- regards Kenneth Gonsalves Associate, NRC-FOSS lawgon at au-kbc.org http://nrcfosshelpline.in/code/ From abpillai at gmail.com Thu Apr 10 11:04:39 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 10 Apr 2008 14:34:39 +0530 Subject: [BangPypers] Dissecting .pyc files Message-ID: <8548c5f30804100204k372fbac8v3c7bc9768626223c@mail.gmail.com> A very good article by Ned Batchelder. http://nedbatchelder.com/blog/200804/the_structure_of_pyc_files.html -- -Anand From pc_3110 at yahoo.co.in Wed Apr 23 08:56:52 2008 From: pc_3110 at yahoo.co.in (Prajakta Chaudhari) Date: Wed, 23 Apr 2008 12:26:52 +0530 (IST) Subject: [BangPypers] reqiured help for final year project - urgent Message-ID: <175859.99257.qm@web8505.mail.in.yahoo.com> Sir, We were suggested your name by a friend of ours in Thadomal Sahani Engineering College. We are students of K. J. Somaiya College of Engineering. We are doing our final year project in Python and need some help. Our project is : we wanted to transfer all types of files(.txt, .jpg, .mp3, .mpeg and so on) automatically from the phone to our computer using Bluetooth. Whenever our phone comes in the range of the computer Bluetooth dongle, it must update any file, which has been recently updated on the phone, onto the computer. Until now, we have just been able to transfer .txt files over Bluetooth. We are facing problems in transferring other files. Our codes are: Phone code: import sys, socket host = ?11:11:11:11:11:11? port = 10 file = ?E:\\Data\\2.txt? s = socket.socket(socket.AF_BT, socket.SOCK_STREAM) s.connect((host, port)) f = open(file, ?r?) data = f.read() f.close() s.send(data) s.close() Here, for transferring other types of files, we tried using opening the files with read binary; ?rb?, format. But that approach has not worked. Computer code: from Bluetooth import * port =10 backlog = 1 file = ?C:\Documents and Settings\sanjay\Desktop\Transfer\File.txt? host = ?11:11:11:11:11:11? soc = BluetoothSocket(RFCOMM) soc.bind((host, port)) soc.listen(backlog) csoc, cinfo = soc.accept() csoc.recv(1024) csoc.close() soc.close() Kindly help us out with this problem of ours. Looking forward to your reply. Thanking you, Yours sincerely, Prajakta Chaudhari Priya Mathur (K. J. Somaiya College Of Engineering ? Electronics and Telecommunication Engineering) Meet people who discuss and share your passions. Go to http://in.promos.yahoo.com/groups/bestofyahoo/ From raj.amal at gmail.com Wed Apr 23 09:20:57 2008 From: raj.amal at gmail.com (Amal) Date: Wed, 23 Apr 2008 12:50:57 +0530 Subject: [BangPypers] reqiured help for final year project - urgent In-Reply-To: <175859.99257.qm@web8505.mail.in.yahoo.com> References: <175859.99257.qm@web8505.mail.in.yahoo.com> Message-ID: <3bfbb0bb0804230020u4de6479ar58b3a3c759333c56@mail.gmail.com> If you tell what the problem is then may be we can help. One issue I noticed is you are using csoc.recv(1024) . Which is tooo small for the other file formats. So what u can do is write a loop there to receive the entire data. Basically when u say csoc.recv(1024) It reads only 1024 bytes from the socket and remaining are not read. And use "rb" only for the reading. And hereafter tell what is the problem in the mail, rather than just saying its not working. It will help us understand the problem. regards, Amal. On Wed, Apr 23, 2008 at 12:26 PM, Prajakta Chaudhari wrote: > Sir, > > We were suggested your name by a friend of ours in Thadomal Sahani > Engineering College. We are students of K. J. Somaiya College of > Engineering. We are doing our final year project in Python and need some > help. > Our project is : we wanted to transfer all types of files(.txt, .jpg, > .mp3, .mpeg and so on) automatically from the phone to our computer using > Bluetooth. Whenever our phone comes in the range of the computer Bluetooth > dongle, it must update any file, which has been recently updated on the > phone, onto the computer. Until now, we have just been able to transfer .txt > files over Bluetooth. We are facing problems in transferring other files. > > Our codes are: > > Phone code: > > import sys, socket > host = "11:11:11:11:11:11" > port = 10 > file = "E:\\Data\\2.txt" > s = socket.socket(socket.AF_BT, socket.SOCK_STREAM) > s.connect((host, port)) > f = open(file, "r") > data = f.read() > f.close() > s.send(data) > s.close() > > Here, for transferring other types of files, we tried using opening the > files with read binary; "rb", format. But that approach has not worked. > > Computer code: > > from Bluetooth import * > port =10 > backlog = 1 > file = "C:\Documents and Settings\sanjay\Desktop\Transfer\File.txt" > host = "11:11:11:11:11:11" > soc = BluetoothSocket(RFCOMM) > soc.bind((host, port)) > soc.listen(backlog) > csoc, cinfo = soc.accept() > csoc.recv(1024) > csoc.close() > soc.close() > > Kindly help us out with this problem of ours. Looking forward to your > reply. > > Thanking you, > > Yours sincerely, > > Prajakta Chaudhari > Priya Mathur > (K. J. Somaiya College Of Engineering ? Electronics and Telecommunication > Engineering) > > > Meet people who discuss and share your passions. Go to > http://in.promos.yahoo.com/groups/bestofyahoo/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Amal -------------- next part -------------- An HTML attachment was scrubbed... URL: From abpillai at gmail.com Wed Apr 23 09:31:06 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 23 Apr 2008 13:01:06 +0530 Subject: [BangPypers] reqiured help for final year project - urgent In-Reply-To: <3bfbb0bb0804230020u4de6479ar58b3a3c759333c56@mail.gmail.com> References: <175859.99257.qm@web8505.mail.in.yahoo.com> <3bfbb0bb0804230020u4de6479ar58b3a3c759333c56@mail.gmail.com> Message-ID: <8548c5f30804230031y90aee60t7ce4bdf9e7a98caf@mail.gmail.com> You are sending and receiving only 1024 bytes of data, so how do you expect large files such as image or audio files to go through ? You need to chunk your data to readable small pieces something in the range of 4-16 kib (4096-16384 bytes) and keep reading and sending the bytes in a loop to the server, until there are no more bytes left. On the server also, keep reading from the socket until there is no more data left in the channel or you get an exception. Try using threads in the server and also increasing the backlog. --Anand On Wed, Apr 23, 2008 at 12:50 PM, Amal wrote: > > If you tell what the problem is then may be we can help. > > One issue I noticed is you are using csoc.recv(1024) . Which is tooo small > for the other file formats. So what u can do is write a loop there to > receive the entire data. Basically when u say csoc.recv(1024) It reads only > 1024 bytes from the socket and remaining are not read. And use "rb" only > for the reading. > > And hereafter tell what is the problem in the mail, rather than just saying > its not working. It will help us understand the problem. > > regards, > Amal. > > > > On Wed, Apr 23, 2008 at 12:26 PM, Prajakta Chaudhari > wrote: > > > Sir, > > > > We were suggested your name by a friend of ours in Thadomal Sahani > Engineering College. We are students of K. J. Somaiya College of > Engineering. We are doing our final year project in Python and need some > help. > > Our project is : we wanted to transfer all types of files(.txt, .jpg, > .mp3, .mpeg and so on) automatically from the phone to our computer using > Bluetooth. Whenever our phone comes in the range of the computer Bluetooth > dongle, it must update any file, which has been recently updated on the > phone, onto the computer. Until now, we have just been able to transfer .txt > files over Bluetooth. We are facing problems in transferring other files. > > > > Our codes are: > > > > Phone code: > > > > import sys, socket > > host = "11:11:11:11:11:11" > > port = 10 > > file = "E:\\Data\\2.txt" > > s = socket.socket(socket.AF_BT, socket.SOCK_STREAM) > > s.connect((host, port)) > > f = open(file, "r") > > data = f.read() > > f.close() > > s.send(data) > > s.close() > > > > Here, for transferring other types of files, we tried using opening the > files with read binary; "rb", format. But that approach has not worked. > > > > Computer code: > > > > from Bluetooth import * > > port =10 > > backlog = 1 > > file = "C:\Documents and Settings\sanjay\Desktop\Transfer\File.txt" > > host = "11:11:11:11:11:11" > > soc = BluetoothSocket(RFCOMM) > > soc.bind((host, port)) > > soc.listen(backlog) > > csoc, cinfo = soc.accept() > > csoc.recv(1024) > > csoc.close() > > soc.close() > > > > Kindly help us out with this problem of ours. Looking forward to your > reply. > > > > Thanking you, > > > > Yours sincerely, > > > > Prajakta Chaudhari > > Priya Mathur > > (K. J. Somaiya College Of Engineering ? Electronics and Telecommunication > Engineering) > > > > > > Meet people who discuss and share your passions. Go to > http://in.promos.yahoo.com/groups/bestofyahoo/ > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Amal > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- -Anand From srinivas_puvvala at yahoo.co.in Wed Apr 23 11:07:17 2008 From: srinivas_puvvala at yahoo.co.in (srinivasarao puvvala) Date: Wed, 23 Apr 2008 14:37:17 +0530 (IST) Subject: [BangPypers] (no subject) Message-ID: <799309.50896.qm@web94608.mail.in2.yahoo.com> An HTML attachment was scrubbed... URL: From heshan.suri at gmail.com Wed Apr 23 12:33:04 2008 From: heshan.suri at gmail.com (Heshan Suriyaarachchi) Date: Wed, 23 Apr 2008 16:03:04 +0530 Subject: [BangPypers] Executing a string Message-ID: <12e5d0d90804230333i19b1c9cdm584b6c73af5a98fb@mail.gmail.com> Hi, If I execute the following code I will get the the output as 2. What I need is to execute the string str. Is there a way that I can execute the string str as it is, so I will get the output as 5. def add(a,b): return a+b var = 2 str = "var = add(2,3)" # execute the code snippet inside the str string variable print var -- Regards, Heshan Suriyaarachchi -------------- next part -------------- An HTML attachment was scrubbed... URL: From raj.amal at gmail.com Wed Apr 23 12:39:31 2008 From: raj.amal at gmail.com (Amal) Date: Wed, 23 Apr 2008 16:09:31 +0530 Subject: [BangPypers] Executing a string In-Reply-To: <12e5d0d90804230333i19b1c9cdm584b6c73af5a98fb@mail.gmail.com> References: <12e5d0d90804230333i19b1c9cdm584b6c73af5a98fb@mail.gmail.com> Message-ID: <3bfbb0bb0804230339p26cecde8s7a0d5a4d514e0630@mail.gmail.com> Try the Exec statement of python. Amal. On Wed, Apr 23, 2008 at 4:03 PM, Heshan Suriyaarachchi < heshan.suri at gmail.com> wrote: > Hi, > If I execute the following code I will get the the output as 2. What I > need is to execute the string str. Is there a way that I can execute the > string str as it is, so I will get the output as 5. > > > > def add(a,b): > return a+b > > var = 2 > str = "var = add(2,3)" > # execute the code snippet inside the str string variable > print var > > -- > Regards, > Heshan Suriyaarachchi > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Amal -------------- next part -------------- An HTML attachment was scrubbed... URL: From anandology at gmail.com Wed Apr 23 13:38:12 2008 From: anandology at gmail.com (Anand Chitipothu) Date: Wed, 23 Apr 2008 17:08:12 +0530 Subject: [BangPypers] Executing a string In-Reply-To: <12e5d0d90804230333i19b1c9cdm584b6c73af5a98fb@mail.gmail.com> References: <12e5d0d90804230333i19b1c9cdm584b6c73af5a98fb@mail.gmail.com> Message-ID: <41139fcb0804230438j350f30fby8377107858f8e0f9@mail.gmail.com> >>> a = 1 >>> exec('a = 3') >>> a 3 From hussainbohra_30 at yahoo.com Fri Apr 25 05:52:08 2008 From: hussainbohra_30 at yahoo.com (Hussain Bohra) Date: Thu, 24 Apr 2008 20:52:08 -0700 (PDT) Subject: [BangPypers] [HELP] Connectivity of Python with Oracle in Linux Message-ID: <667100.42110.qm@web52510.mail.re2.yahoo.com> Hi All, We have a Oracle 10g Server in Linux, And we are using a Python 2.2.2 (i.e. also in Linux). We are trying to connect with Oracle using 'cx_Oracle'. The Environment Variable we have set in the Oracle Machine is : 'export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1' (in .bashrc) In Python Machine we have added the entry of created database (in Oracle) in /etc/tnsnames.ora Now we are trying to connect like : import cx_Oracle cx_Oracle.connect('username/password at db_name') But Everytime getting an error : 'cx_Oracle.DatabaseError: ORA-12537: TNS Connection closed' We have tried to find the same in the google but we are unable to solve by the solutions provided there. Can any one suggest what is the problem. Regards, Hussain Bohra --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmanocha at gmail.com Fri Apr 25 06:18:32 2008 From: rmanocha at gmail.com (Rishabh Manocha) Date: Fri, 25 Apr 2008 09:48:32 +0530 Subject: [BangPypers] [HELP] Connectivity of Python with Oracle in Linux In-Reply-To: <667100.42110.qm@web52510.mail.re2.yahoo.com> References: <667100.42110.qm@web52510.mail.re2.yahoo.com> Message-ID: I'm not very familiar with Oracle but a quick search on google for ORA-12537 turned up http://forums.oracle.com/forums/thread.jspa?messageID=1275528 . Maybe it'll help Best, R On 25-Apr-08, at 9:22 AM, Hussain Bohra wrote: > Hi All, > > We have a Oracle 10g Server in Linux, And we are using a Python > 2.2.2 (i.e. also in Linux). We are trying to connect with Oracle > using 'cx_Oracle'. The Environment Variable we have set in the > Oracle Machine is : > > 'export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/ > db_1' (in .bashrc) > > In Python Machine we have added the entry of created database (in > Oracle) in /etc/tnsnames.ora > > Now we are trying to connect like : > > import cx_Oracle > cx_Oracle.connect('username/password at db_name') > > But Everytime getting an error : > > 'cx_Oracle.DatabaseError: ORA-12537: TNS Connection closed' > > We have tried to find the same in the google but we are unable to > solve by the solutions provided there. > > Can any one suggest what is the problem. > > Regards, > Hussain Bohra > > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. > Try it now._______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -------------- next part -------------- An HTML attachment was scrubbed... URL: From shivraj.ms at gmail.com Fri Apr 25 07:17:21 2008 From: shivraj.ms at gmail.com (Shivaraj M S) Date: Thu, 24 Apr 2008 22:17:21 -0700 (PDT) Subject: [BangPypers] [HELP] Connectivity of Python with Oracle in Linux In-Reply-To: References: <667100.42110.qm@web52510.mail.re2.yahoo.com> Message-ID: <16890703.post@talk.nabble.com> Are you trying to connect to remote machine? (Try adding prefix IP to point to remote oracle machine) Some debugging steps which I can think of if both were on same machine. tnsping set ORACLE_SID Log in through sqlplus Regards ___________ Shivaraj Rishabh Manocha wrote: > > I'm not very familiar with Oracle but a quick search on google for > ORA-12537 turned up > http://forums.oracle.com/forums/thread.jspa?messageID=1275528 > . Maybe it'll help > > Best, > > R > On 25-Apr-08, at 9:22 AM, Hussain Bohra wrote: > >> Hi All, >> >> We have a Oracle 10g Server in Linux, And we are using a Python >> 2.2.2 (i.e. also in Linux). We are trying to connect with Oracle >> using 'cx_Oracle'. The Environment Variable we have set in the >> Oracle Machine is : >> >> 'export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/ >> db_1' (in .bashrc) >> >> In Python Machine we have added the entry of created database (in >> Oracle) in /etc/tnsnames.ora >> >> Now we are trying to connect like : >> >> import cx_Oracle >> cx_Oracle.connect('username/password at db_name') >> >> But Everytime getting an error : >> >> 'cx_Oracle.DatabaseError: ORA-12537: TNS Connection closed' >> >> We have tried to find the same in the google but we are unable to >> solve by the solutions provided there. >> >> Can any one suggest what is the problem. >> >> Regards, >> Hussain Bohra >> >> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. >> Try it now._______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- View this message in context: http://www.nabble.com/-HELP--Connectivity-of-Python-with-Oracle-in-Linux-tp16890308p16890703.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. From ramkrsna at gmail.com Fri Apr 25 08:05:24 2008 From: ramkrsna at gmail.com (Ramakrishna Reddy) Date: Fri, 25 Apr 2008 11:35:24 +0530 Subject: [BangPypers] Python Stickers Message-ID: Hi Folks I have some Python Laptop Stickers, which i got from PSF from PyCon Chicago, need to send them to Bangalore. I'm right now in Pune. Anybody volunteering to accept the package and distribute to fellow bangpypers in the next meet up.Contact me with their Snail Mail off list regards -- Ramakrishna Reddy GPG Key ID:31FF0090 Fingerprint = 18D7 3FC1 784B B57F C08F 32B9 4496 B2A1 31FF 0090 From hussainbohra_30 at yahoo.com Fri Apr 25 15:05:04 2008 From: hussainbohra_30 at yahoo.com (Hussain Bohra) Date: Fri, 25 Apr 2008 06:05:04 -0700 (PDT) Subject: [BangPypers] [HELP] Connectivity of Python with Oracle in Linux In-Reply-To: <16890703.post@talk.nabble.com> Message-ID: <586457.36725.qm@web52510.mail.re2.yahoo.com> Hi All, Thankx for your feedbacks. We are able to solve the problem. The problem actually is the 'lsnrctl service' was not running in the $ORACLE_HOME/bin directory the only thing to do is './$ORACLE_HOME/bin/lsnrctl start' Regards, Hussain Bohra Shivaraj M S wrote: Are you trying to connect to remote machine? (Try adding prefix IP to point to remote oracle machine) Some debugging steps which I can think of if both were on same machine. tnsping set ORACLE_SID Log in through sqlplus Regards ___________ Shivaraj Rishabh Manocha wrote: > > I'm not very familiar with Oracle but a quick search on google for > ORA-12537 turned up > http://forums.oracle.com/forums/thread.jspa?messageID=1275528 > . Maybe it'll help > > Best, > > R > On 25-Apr-08, at 9:22 AM, Hussain Bohra wrote: > >> Hi All, >> >> We have a Oracle 10g Server in Linux, And we are using a Python >> 2.2.2 (i.e. also in Linux). We are trying to connect with Oracle >> using 'cx_Oracle'. The Environment Variable we have set in the >> Oracle Machine is : >> >> 'export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/ >> db_1' (in .bashrc) >> >> In Python Machine we have added the entry of created database (in >> Oracle) in /etc/tnsnames.ora >> >> Now we are trying to connect like : >> >> import cx_Oracle >> cx_Oracle.connect('username/password at db_name') >> >> But Everytime getting an error : >> >> 'cx_Oracle.DatabaseError: ORA-12537: TNS Connection closed' >> >> We have tried to find the same in the google but we are unable to >> solve by the solutions provided there. >> >> Can any one suggest what is the problem. >> >> Regards, >> Hussain Bohra >> >> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. >> Try it now._______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- View this message in context: http://www.nabble.com/-HELP--Connectivity-of-Python-with-Oracle-in-Linux-tp16890308p16890703.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers Thanks and Regards, Hussain Bohra HSBSoft Technologies, Bangalore-52 mail-to:hussain.bohra at hsbsoft.com mobile : +91 99867 95727 --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramdas at developeriq.com Fri Apr 25 15:39:37 2008 From: ramdas at developeriq.com (Ramdas S) Date: Fri, 25 Apr 2008 19:09:37 +0530 Subject: [BangPypers] Python Stickers In-Reply-To: References: Message-ID: <6e38f9f00804250639pc5f6b89y17fc1eb66911a997@mail.gmail.com> Send it me. Ramdas S *DIQ Technologies & Consultants, #7, 1st Floor, 7th cross, Lakshmi Road, Shanthi Nagar, Bangalore- 560 027, Karnataka, India. * *Phone: +9180 4173 8665 Mobile: +919342 122355 Fax: +9180 2207 5212 * Ramdas S On Fri, Apr 25, 2008 at 11:35 AM, Ramakrishna Reddy wrote: > Hi Folks > > I have some Python Laptop Stickers, which i got from PSF from PyCon > Chicago, need to send them to Bangalore. I'm right now in Pune. > Anybody volunteering to accept the package and distribute to fellow > bangpypers in the next meet up.Contact me with their Snail Mail off > list > > regards > -- > Ramakrishna Reddy GPG Key ID:31FF0090 > Fingerprint = 18D7 3FC1 784B B57F C08F 32B9 4496 B2A1 31FF 0090 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pintooo15 at gmail.com Fri Apr 25 16:12:37 2008 From: pintooo15 at gmail.com (Diabolic Preacher) Date: Fri, 25 Apr 2008 09:12:37 -0500 Subject: [BangPypers] [HELP] Connectivity of Python with Oracle in Linux In-Reply-To: <586457.36725.qm@web52510.mail.re2.yahoo.com> References: <16890703.post@talk.nabble.com> <586457.36725.qm@web52510.mail.re2.yahoo.com> Message-ID: Thank you for sharing the solution :) On 4/25/08, Hussain Bohra wrote: > Hi All, > > Thankx for your feedbacks. > We are able to solve the problem. The problem actually is the 'lsnrctl > service' was not running in the $ORACLE_HOME/bin directory > > the only thing to do is './$ORACLE_HOME/bin/lsnrctl start' > > Regards, > Hussain Bohra > > Shivaraj M S wrote: > Are you trying to connect to remote machine? (Try adding prefix IP to point > to remote oracle machine) > > Some debugging steps which I can think of if both were on same machine. > > tnsping > set ORACLE_SID > Log in through sqlplus > > Regards > ___________ > Shivaraj > > > Rishabh Manocha wrote: > > > > I'm not very familiar with Oracle but a quick search on google for > > ORA-12537 turned up > > http://forums.oracle.com/forums/thread.jspa?messageID=1275528 > > . Maybe it'll help > > > > Best, > > > > R > > On 25-Apr-08, at 9:22 AM, Hussain Bohra wrote: > > > >> Hi All, > >> > >> We have a Oracle 10g Server in Linux, And we are using a Python > >> 2.2.2 (i.e. also in Linux). We are trying to connect with Oracle > >> using 'cx_Oracle'. The Environment Variable we have set in the > >> Oracle Machine is : > >> > >> 'export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/ > >> db_1' (in .bashrc) > >> > >> In Python Machine we have added the entry of created database (in > >> Oracle) in /etc/tnsnames.ora > >> > >> Now we are trying to connect like : > >> > >> import cx_Oracle > >> cx_Oracle.connect('username/password at db_name') > >> > >> But Everytime getting an error : > >> > >> 'cx_Oracle.DatabaseError: ORA-12537: TNS Connection closed' > >> > >> We have tried to find the same in the google but we are unable to > >> solve by the solutions provided there. > >> > >> Can any one suggest what is the problem. > >> > >> Regards, > >> Hussain Bohra > >> > >> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. > >> Try it now._______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> http://mail.python.org/mailman/listinfo/bangpypers > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > View this message in context: > http://www.nabble.com/-HELP--Connectivity-of-Python-with-Oracle-in-Linux-tp16890308p16890703.html > Sent from the BangPypers - Bangalore Python Users Group mailing list archive > at Nabble.com. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > > Thanks and Regards, > Hussain Bohra > > HSBSoft Technologies, > Bangalore-52 > mail-to:hussain.bohra at hsbsoft.com > mobile : +91 99867 95727 > > > > --------------------------------- > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it > now. -- Diabolic Preacher As Is Blog: http://pintooo15.livejournal.com/ Bookmarks: http://simpy.com/user/dpreacher -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/IT d+(-) s+:+ a22 C++@ UL@ P L+(++) E- W++ !N o? K>++ w(-) !O M-(--) !V PS+ PE++ Y+ PGP t- 5? X>+ R- tv@ b-(+) DI+ D+ G++ e++ h-- !r y- ------END GEEK CODE BLOCK------ From orsenthil at gmail.com Sun Apr 27 14:05:36 2008 From: orsenthil at gmail.com (O.R.Senthil Kumaran) Date: Sun, 27 Apr 2008 17:35:36 +0530 Subject: [BangPypers] Python Stickers - Regarding PyCon Experience In-Reply-To: References: Message-ID: <20080427120536.GA3522@gmail.com> * Ramakrishna Reddy > Hi Folks > > I have some Python Laptop Stickers, which i got from PSF from PyCon > Chicago, need to send them to Bangalore. I'm right now in Pune. We would also like to know your experience of attending the PyCon. Would you like to share it with the group or have you blogged about it anywhere? Did you present any topic or tutorial? Met Guido, Greg Stein and other folks? -- O.R.Senthil Kumaran http://uthcode.sarovar.org From sambasivareddy.s at patni.com Mon Apr 28 09:04:55 2008 From: sambasivareddy.s at patni.com (sambasivareddy) Date: Mon, 28 Apr 2008 12:34:55 +0530 Subject: [BangPypers] How can I read an excel sheet using python ? Message-ID: <000001c8a8fe$2a3b0650$750ba8c0@patni.com> Hi all, Need help on "How can I read an excel sheet using python"? If any one have any example please send to me. Thanks in advance. Thanks and Regards, Sambasivareddy.S http://www.patni.com World-Wide Partnerships. World-Class Solutions. _____________________________________________________________________ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netadmin at patni.com and delete this mail. _____________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From banibrata.dutta at gmail.com Mon Apr 28 10:50:17 2008 From: banibrata.dutta at gmail.com (Banibrata Dutta) Date: Mon, 28 Apr 2008 14:20:17 +0530 Subject: [BangPypers] How can I read an excel sheet using python ? In-Reply-To: <000001c8a8fe$2a3b0650$750ba8c0@patni.com> References: <000001c8a8fe$2a3b0650$750ba8c0@patni.com> Message-ID: <3de8e1f70804280150o7eaf8e77sdd8007de85c5f20f@mail.gmail.com> Did you try to "google" ?? Plz try it... throws up lots of useful answers. http://mail.python.org/pipermail/python-list/2003-July/214704.html On 4/28/08, sambasivareddy wrote: > > > > Hi all, > > > > Need help on "How can I read an excel sheet using python"? > > If any one have any example please send to me. Thanks in advance. > > > > > Thanks and Regards, > > Sambasivareddy.S > > > > > http://www.patni.com > World-Wide Partnerships. World-Class Solutions. > _____________________________________________________________________ > > This e-mail message may contain proprietary, confidential or legally > privileged information for the sole use of the person or entity to whom this > message was originally addressed. Any review, e-transmission dissemination > or other use of or taking of any action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. If you > have received this e-mail in error kindly delete this e-mail from your > records. If it appears that this mail has been forwarded to you without > proper authority, please notify us immediately at netadmin at patni.com and > delete this mail. > _____________________________________________________________________ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- regards, Banibrata http://www.linkedin.com/in/bdutta From kartheekpn at yahoo.co.in Mon Apr 28 12:13:34 2008 From: kartheekpn at yahoo.co.in (KartheeK) Date: Mon, 28 Apr 2008 11:13:34 +0100 (BST) Subject: [BangPypers] How can I read an excel sheet using python ? In-Reply-To: <000001c8a8fe$2a3b0650$750ba8c0@patni.com> Message-ID: <434410.48055.qm@web8501.mail.in.yahoo.com> Hi, Why dont u export it to a ,txt file and then read it as a normal file.. KartheeK sambasivareddy wrote: Hi all, Need help on ?How can I read an excel sheet using python?? If any one have any example please send to me. Thanks in advance. Thanks and Regards, Sambasivareddy.S http://www.patni.com World-Wide Partnerships. World-Class Solutions. _____________________________________________________________________ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netadmin at patni.com and delete this mail. _____________________________________________________________________ _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers -------------- next part -------------- An HTML attachment was scrubbed... URL: From abpillai at gmail.com Mon Apr 28 12:20:15 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 28 Apr 2008 15:50:15 +0530 Subject: [BangPypers] How can I read an excel sheet using python ? In-Reply-To: <434410.48055.qm@web8501.mail.in.yahoo.com> References: <000001c8a8fe$2a3b0650$750ba8c0@patni.com> <434410.48055.qm@web8501.mail.in.yahoo.com> Message-ID: <8548c5f30804280320r39c08c9as3b88b1d884c4b85c@mail.gmail.com> http://snippets.dzone.com/posts/show/2036 You need pywin32 for this. Why not google stuff yourself before posting to the list ? Saves everyones time. --Anand On Mon, Apr 28, 2008 at 3:43 PM, KartheeK wrote: > Hi, > > Why dont u export it to a ,txt file and then read it as a normal file.. > > KartheeK > > > sambasivareddy wrote: > > > > Hi all, > > Need help on "How can I read an excel sheet using python"? > If any one have any example please send to me. Thanks in advance. > > > Thanks and Regards, > Sambasivareddy.S > > > http://www.patni.com > World-Wide Partnerships. World-Class Solutions. > _____________________________________________________________________ > > This e-mail message may contain proprietary, confidential or legally > privileged information for the sole use of the person or entity to whom this > message was originally addressed. Any review, e-transmission dissemination > or other use of or taking of any action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. If you > have received this e-mail in error kindly delete this e-mail from your > records. If it appears that this mail has been forwarded to you without > proper authority, please notify us immediately at netadmin at patni.com and > delete this mail. > _____________________________________________________________________ > _______________________________________________ > > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- -Anand From maxin_john at yahoo.co.uk Mon Apr 28 12:29:07 2008 From: maxin_john at yahoo.co.uk (Maxin B John) Date: Mon, 28 Apr 2008 11:29:07 +0100 (BST) Subject: [BangPypers] How can I read an excel sheet using python ? In-Reply-To: Message-ID: <91803.62659.qm@web26611.mail.ukl.yahoo.com> Dear Sambasivareddy, Hi all, Need help on "How can I read an excel sheet using python"? Try the xlrd module (http://pypi.python.org/pypi/xlrd/0.5.2). If any one have any example please send to me. Thanks in advance. Example is available in that module itself. Thanks and Regards, Sambasivareddy.S Regards, Maxin B John Kerala --------------------------------- Sent from Yahoo! Mail. A Smarter Email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From srinivas_puvvala at yahoo.co.in Wed Apr 30 13:48:57 2008 From: srinivas_puvvala at yahoo.co.in (srinivasarao puvvala) Date: Wed, 30 Apr 2008 17:18:57 +0530 (IST) Subject: [BangPypers] BangPypers Digest, Vol 8, Issue 15 In-Reply-To: Message-ID: <543351.43912.qm@web94611.mail.in2.yahoo.com> An HTML attachment was scrubbed... URL: From gates.plusplus at gmail.com Wed Apr 30 15:54:08 2008 From: gates.plusplus at gmail.com (Rohan Sharma) Date: Wed, 30 Apr 2008 19:24:08 +0530 Subject: [BangPypers] BangPypers Digest, Vol 8, Issue 15 In-Reply-To: <543351.43912.qm@web94611.mail.in2.yahoo.com> References: <543351.43912.qm@web94611.mail.in2.yahoo.com> Message-ID: <7dd811cb0804300654ofa25beay858872dfde4fa8f6@mail.gmail.com> I'm not sure what the problem is. Could you show the snippets you are referring to? An else-if ladder looks like this: x = int(raw_input()) if x < 0: print "Negative" elif x == 0: print "Zero" else: print "Positive" Be careful: do not mix tabs and spaces in a code block; I suggest using tabs exclusively. On Wed, Apr 30, 2008 at 5:18 PM, srinivasarao puvvala wrote: > > hi, > i have recently started learning python programming. > i got confused with "identation" problems. > when ever i write if else if statements and try excute those i got errors like > "unexcpected indent" "syntax error". > i have tried diffrent example provided by the python tutorial. > but i cann't slove that problem. > pls any body help me to give the proper idea on "identation" and give me code of if else if statements which will definatley excute if i copy the code. > pls help me . > > > --- On Tue, 29/4/08, bangpypers-request at python.org wrote: > > From: bangpypers-request at python.org > Subject: BangPypers Digest, Vol 8, Issue 15 > To: bangpypers at python.org > Date: Tuesday, 29 April, 2008, 3:30 PM > > Send BangPypers mailing list submissions to > bangpypers at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/bangpypers > or, via email, send a message with subject or body 'help' to > bangpypers-request at python.org > > You can reach the person managing the list at > bangpypers-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of BangPypers digest..." > > > Today's Topics: > > 1. Re: How can I read an excel sheet using python ? (KartheeK) > 2. Re: How can I read an excel sheet using python ? > (Anand Balachandran Pillai) > 3. Re: How can I read an excel sheet using python ? (Maxin B John) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 28 Apr 2008 11:13:34 +0100 (BST) > From: > KartheeK > Subject: Re: [BangPypers] How can I read an excel sheet using python ? > To: bangpypers at python.org > Message-ID: <434410.48055.qm at web8501.mail.in.yahoo.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > Why dont u export it to a ,txt file and then read it as a normal file.. > > KartheeK > > sambasivareddy wrote: Hi all, > > Need help on ?How can I read an excel sheet using python?? > If any one have any example please send to me. Thanks in advance. > > Thanks and Regards, > Sambasivareddy.S > > > > > > http://www.patni.com > World-Wide Partnerships. World-Class Solutions. > _____________________________________________________________________ > > This e-mail message may contain proprietary, confidential or legally > privileged information for the sole use of the person > or entity to whom this > message was originally addressed. Any review, e-transmission dissemination or > other use of or taking of any action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. If you > have received this e-mail in error kindly delete this e-mail from your > records. If it appears that this mail has been forwarded to you without proper > authority, please notify us immediately at netadmin at patni.com and delete this > mail. > _____________________________________________________________________ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -------------- next part -------------- > An HTML attachment was > scrubbed... > URL: > > > ------------------------------ > > Message: 2 > Date: Mon, 28 Apr 2008 15:50:15 +0530 > From: "Anand Balachandran Pillai" > Subject: Re: [BangPypers] How can I read an excel sheet using python ? > To: "Bangalore Python Users Group - India" > > Message-ID: > <8548c5f30804280320r39c08c9as3b88b1d884c4b85c at mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > http://snippets.dzone.com/posts/show/2036 > > You need pywin32 for this. > > Why not google stuff yourself before posting to the list ? Saves everyones > time. > > --Anand > > On Mon, Apr 28, 2008 at 3:43 PM, KartheeK wrote: > > Hi, > > > > Why dont u export it to a ,txt file and then read it as a normal file.. > > > > > KartheeK > > > > > > sambasivareddy wrote: > > > > > > > > Hi all, > > > > Need help on "How can I read an excel sheet using python"? > > If any one have any example please send to me. Thanks in advance. > > > > > > Thanks and Regards, > > Sambasivareddy.S > > > > > > http://www.patni.com > > World-Wide Partnerships. World-Class Solutions. > > _____________________________________________________________________ > > > > This e-mail message may contain proprietary, confidential or legally > > privileged information for the sole use of the person or entity to whom > this > > message was originally addressed. Any review, e-transmission dissemination > > or other use of or taking of any action in reliance upon this information > by > > persons or entities other than the intended recipient is prohibited. > If > you > > have received this e-mail in error kindly delete this e-mail from your > > records. If it appears that this mail has been forwarded to you without > > proper authority, please notify us immediately at netadmin at patni.com and > > delete this mail. > > _____________________________________________________________________ > > _______________________________________________ > > > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > -- > -Anand > > > ------------------------------ > > Message: 3 > Date: Mon, 28 Apr 2008 11:29:07 +0100 (BST) > From: Maxin B John > Subject: Re: > [BangPypers] How can I read an excel sheet using python ? > To: bangpypers at python.org > Message-ID: <91803.62659.qm at web26611.mail.ukl.yahoo.com> > Content-Type: text/plain; charset="iso-8859-1" > > Dear Sambasivareddy, > Hi all, > > > > Need help on "How can I read an excel sheet using python"? > > Try the xlrd module (http://pypi.python.org/pypi/xlrd/0.5.2). > > > > If any one have any example please send to me. Thanks in advance. > > Example is available in that module itself. > > Thanks and Regards, > > Sambasivareddy.S > > Regards, > > Maxin B John > Kerala > > > > --------------------------------- > Sent from Yahoo! Mail. > A Smarter Email. > -------------- next part -------------- > An HTML attachment was > scrubbed... > URL: > > > ------------------------------ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > End of BangPypers Digest, Vol 8, Issue 15 > ***************************************** > > ________________________________ > Get the freedom to save as many mails as you wish. Click here to know how. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From gnuyoga at gmail.com Wed Apr 30 16:07:46 2008 From: gnuyoga at gmail.com (gnuyoga) Date: Wed, 30 Apr 2008 19:37:46 +0530 Subject: [BangPypers] How can I read an excel sheet using python ? In-Reply-To: <000001c8a8fe$2a3b0650$750ba8c0@patni.com> References: <000001c8a8fe$2a3b0650$750ba8c0@patni.com> Message-ID: <48187D32.8070505@gmail.com> if u have java then u can use apache-poi using jython http://poi.apache.org/ - sree sambasivareddy wrote: > > Hi all, > > Need help on ?How can I read an excel sheet using python?? > > If any one have any example please send to me. Thanks in advance. > > **Thanks and Regards****,** > > **Sambasivareddy.S** > > ** ** > > > http://www.patni.com > World-Wide Partnerships. World-Class Solutions. > _____________________________________________________________________ > > This e-mail message may contain proprietary, confidential or legally > privileged information for the sole use of the person or entity to > whom this message was originally addressed. Any review, e-transmission > dissemination or other use of or taking of any action in reliance upon > this information by persons or entities other than the intended > recipient is prohibited. If you have received this e-mail in error > kindly delete this e-mail from your records. If it appears that this > mail has been forwarded to you without proper authority, please notify > us immediately at netadmin at patni.com and delete this mail. > _____________________________________________________________________ > ------------------------------------------------------------------------ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- http://picasaweb.google.com/gnuyoga Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. From banibrata.dutta at gmail.com Wed Apr 30 16:31:43 2008 From: banibrata.dutta at gmail.com (Banibrata Dutta) Date: Wed, 30 Apr 2008 20:01:43 +0530 Subject: [BangPypers] BangPypers Digest, Vol 8, Issue 15 In-Reply-To: <7dd811cb0804300654ofa25beay858872dfde4fa8f6@mail.gmail.com> References: <543351.43912.qm@web94611.mail.in2.yahoo.com> <7dd811cb0804300654ofa25beay858872dfde4fa8f6@mail.gmail.com> Message-ID: <3de8e1f70804300731s267ce67eic5e9c3a97fdbacb6@mail.gmail.com> As Rohan mentions... "Be careful: do not mix tabs and spaces in a code block;" It is one of the first pitfalls a Python newbie comes-accross, if you do not use a good Python source editor / IDE. There are some file editors that do automatic indentation by "tab" insertion while writing code, but when you go back to edit that line, it seems to insert spaces. On 4/30/08, Rohan Sharma wrote: > I'm not sure what the problem is. Could you show the snippets you are > referring to? > > An else-if ladder looks like this: > > x = int(raw_input()) > if x < 0: > print "Negative" > elif x == 0: > print "Zero" > else: > print "Positive" > > Be careful: do not mix tabs and spaces in a code block; I suggest > using tabs exclusively. > > On Wed, Apr 30, 2008 at 5:18 PM, srinivasarao puvvala > wrote: > > > > hi, > > i have recently started learning python programming. > > i got confused with "identation" problems. > > when ever i write if else if statements and try excute those i got errors like > > "unexcpected indent" "syntax error". > > i have tried diffrent example provided by the python tutorial. > > but i cann't slove that problem. > > pls any body help me to give the proper idea on "identation" and give me code of if else if statements which will definatley excute if i copy the code. > > pls help me . > > > > > > --- On Tue, 29/4/08, bangpypers-request at python.org wrote: > > > > From: bangpypers-request at python.org > > Subject: BangPypers Digest, Vol 8, Issue 15 > > To: bangpypers at python.org > > Date: Tuesday, 29 April, 2008, 3:30 PM > > > > Send BangPypers mailing list submissions to > > bangpypers at python.org > > > > To subscribe or unsubscribe via the World Wide Web, visit > > http://mail.python.org/mailman/listinfo/bangpypers > > or, via email, send a message with subject or body 'help' to > > bangpypers-request at python.org > > > > You can reach the person managing the list at > > bangpypers-owner at python.org > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of BangPypers digest..." > > > > > > Today's Topics: > > > > 1. Re: How can I read an excel sheet using python ? (KartheeK) > > 2. Re: How can I read an excel sheet using python ? > > (Anand Balachandran Pillai) > > 3. Re: How can I read an excel sheet using python ? (Maxin B John) > > > > > > ---------------------------------------------------------------------- > > > > Message: 1 > > Date: Mon, 28 Apr 2008 11:13:34 +0100 (BST) > > From: > > KartheeK > > Subject: Re: [BangPypers] How can I read an excel sheet using python ? > > To: bangpypers at python.org > > Message-ID: <434410.48055.qm at web8501.mail.in.yahoo.com> > > Content-Type: text/plain; charset="iso-8859-1" > > > > Hi, > > > > Why dont u export it to a ,txt file and then read it as a normal file.. > > > > KartheeK > > > > sambasivareddy wrote: Hi all, > > > > Need help on ?How can I read an excel sheet using python?? > > If any one have any example please send to me. Thanks in advance. > > > > Thanks and Regards, > > Sambasivareddy.S > > > > > > > > > > > > http://www.patni.com > > World-Wide Partnerships. World-Class Solutions. > > _____________________________________________________________________ > > > > This e-mail message may contain proprietary, confidential or legally > > privileged information for the sole use of the person > > or entity to whom this > > message was originally addressed. Any review, e-transmission dissemination or > > other use of or taking of any action in reliance upon this information by > > persons or entities other than the intended recipient is prohibited. If you > > have received this e-mail in error kindly delete this e-mail from your > > records. If it appears that this mail has been forwarded to you without proper > > authority, please notify us immediately at netadmin at patni.com and delete this > > mail. > > _____________________________________________________________________ > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > -------------- next part -------------- > > An HTML attachment was > > scrubbed... > > URL: > > > > > > ------------------------------ > > > > Message: 2 > > Date: Mon, 28 Apr 2008 15:50:15 +0530 > > From: "Anand Balachandran Pillai" > > Subject: Re: [BangPypers] How can I read an excel sheet using python ? > > To: "Bangalore Python Users Group - India" > > > > Message-ID: > > <8548c5f30804280320r39c08c9as3b88b1d884c4b85c at mail.gmail.com> > > Content-Type: text/plain; charset=UTF-8 > > > > http://snippets.dzone.com/posts/show/2036 > > > > You need pywin32 for this. > > > > Why not google stuff yourself before posting to the list ? Saves everyones > > time. > > > > --Anand > > > > On Mon, Apr 28, 2008 at 3:43 PM, KartheeK wrote: > > > Hi, > > > > > > Why dont u export it to a ,txt file and then read it as a normal file.. > > > > > > > > KartheeK > > > > > > > > > sambasivareddy wrote: > > > > > > > > > > > > Hi all, > > > > > > Need help on "How can I read an excel sheet using python"? > > > If any one have any example please send to me. Thanks in advance. > > > > > > > > > Thanks and Regards, > > > Sambasivareddy.S > > > > > > > > > http://www.patni.com > > > World-Wide Partnerships. World-Class Solutions. > > > _____________________________________________________________________ > > > > > > This e-mail message may contain proprietary, confidential or legally > > > privileged information for the sole use of the person or entity to whom > > this > > > message was originally addressed. Any review, e-transmission dissemination > > > or other use of or taking of any action in reliance upon this information > > by > > > persons or entities other than the intended recipient is prohibited. > > If > > you > > > have received this e-mail in error kindly delete this e-mail from your > > > records. If it appears that this mail has been forwarded to you without > > > proper authority, please notify us immediately at netadmin at patni.com and > > > delete this mail. > > > _____________________________________________________________________ > > > _______________________________________________ > > > > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > -- > > -Anand > > > > > > ------------------------------ > > > > Message: 3 > > Date: Mon, 28 Apr 2008 11:29:07 +0100 (BST) > > From: Maxin B John > > Subject: Re: > > [BangPypers] How can I read an excel sheet using python ? > > To: bangpypers at python.org > > Message-ID: <91803.62659.qm at web26611.mail.ukl.yahoo.com> > > Content-Type: text/plain; charset="iso-8859-1" > > > > Dear Sambasivareddy, > > Hi all, > > > > > > > > Need help on "How can I read an excel sheet using python"? > > > > Try the xlrd module (http://pypi.python.org/pypi/xlrd/0.5.2). > > > > > > > > If any one have any example please send to me. Thanks in advance. > > > > Example is available in that module itself. > > > > Thanks and Regards, > > > > Sambasivareddy.S > > > > Regards, > > > > Maxin B John > > Kerala > > > > > > > > --------------------------------- > > Sent from Yahoo! Mail. > > A Smarter Email. > > -------------- next part -------------- > > An HTML attachment was > > scrubbed... > > URL: > > > > > > ------------------------------ > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > End of BangPypers Digest, Vol 8, Issue 15 > > ***************************************** > > > > ________________________________ > > Get the freedom to save as many mails as you wish. Click here to know how. > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- regards, Banibrata http://www.linkedin.com/in/bdutta