Re: [BangPypers] API: Design Matters

2008-01-01 Thread Anand Balachandran Pillai
Nice post. Talking about APIs, I used to find Win32 APIs as the most horrible in terms of number of parameters they take and the obscure name of the params. I did not know that .NET APIs suffer from similar issues. The Select API mentioned in the article seems to be very horribly designed and not

Re: [BangPypers] Python grows in 2007

2008-01-03 Thread Anand Balachandran Pillai
these numbers or how scientific they are... --Anand On Jan 3, 2008 6:47 PM, Anand Balachandran Pillai [EMAIL PROTECTED] wrote: The TIOBE programming languages community index {http://www.tiobe.com/tpci.htm} shows that Python has gone a step higher in Dec 07 when compared to Dec 06. Python

Re: [BangPypers] What are opportunities for python programmers

2008-01-18 Thread Anand Balachandran Pillai
Though Python is not an entrenched language in the software industry as some of the biggies (Java, C# etc), it is a specialized skill and there is demand for it. As Ramdas said, many startups use Python since it helps in quick prototyping and is an excellent glue language. Of course it is a

Re: [BangPypers] BangPypers Digest, Vol 6, Issue 8

2008-02-18 Thread Anand Balachandran Pillai
Here is a way to do this when x is global. I don't recommend it, because it modifies the global dictionary. Still it gives an effect closes to what you want perhaps. incr = lambda x: globals().__setitem__('x',x+1) def f(): incr(x); return x x=10 f() 11 f() 12 x 12 --Anand On Feb 18, 2008 5:57

Re: [BangPypers] Idea

2008-03-07 Thread Anand Balachandran Pillai
] wrote: A blog post which an admin can approve might do the job. Harish On 07-Mar-08, at 4:33 PM, (श्री) GNU Yoga wrote: On 3/7/08, Anand Balachandran Pillai [EMAIL PROTECTED] wrote: Secondly, wikis by definition allow editing by anyone. So how do you protect a job posting against

Re: [BangPypers] Idea

2008-03-07 Thread Anand Balachandran Pillai
Read provide as suggest :) --Anand On Fri, Mar 7, 2008 at 4:57 PM, Anand Balachandran Pillai [EMAIL PROTECTED] wrote: I can provide 2 quick solutions. 1. Automate blog posting backend when a mail which seems to mention a new job posting is posted. This can be done bye requiring specific

[BangPypers] Fwd: [JOB] Interested parties for Zope3 based Project

2008-03-10 Thread Anand Balachandran Pillai
Hi, I am reposting this with [JOB] in the subject line, so that the crawler picks it up. --Anand -- Forwarded message -- From: Ashok Hariharan [EMAIL PROTECTED] Date: Fri, Mar 7, 2008 at 4:22 PM Subject: Re: [BangPypers] Interested parties for Zope3 based Project To:

Re: [BangPypers] The Jobs Blog

2008-03-10 Thread Anand Balachandran Pillai
http://pythonjobs.blogspot.com On Mon, Mar 10, 2008 at 4:45 PM, Harish Krishnan [EMAIL PROTECTED] wrote: Cannot find the mail where the job. Can you tell me where the blog is? Harish On 10-Mar-08, at 12:50 PM, Anand Balachandran Pillai wrote: Hi, The Jobs blog is up to date

Re: [BangPypers] Finding methods in a python script

2008-03-13 Thread Anand Balachandran Pillai
Here is a full program. List classes, methods, functions and function/method args in a module Created: Anand B Pillai from types import * import inspect def analyze_func(obj, method=False): if method: print 'Method: %s' % obj.__name__ else: print 'Function: %s' %

Re: [BangPypers] Handling unicode characters in xml.dom

2008-03-17 Thread Anand Balachandran Pillai
What is the encoding of your XML file ? i.e in the string ?xml version=1.0 encoding=encoding?, what is encoding ? Make sure it is an encoding like utf-8 or iso-8859-1 which can help the parser to understand garbage chars. --Anand On Tue, Mar 18, 2008 at 10:38 AM, Gurpreet Sachdeva [EMAIL

Re: [BangPypers] Handling unicode characters in xml.dom

2008-03-18 Thread Anand Balachandran Pillai
at 11:05 AM, Gurpreet Sachdeva [EMAIL PROTECTED] wrote: ?xml version=1.0 encoding=UTF-8? Still the problem exists. - Gurpreet On Tue, Mar 18, 2008 at 10:44 AM, Anand Balachandran Pillai [EMAIL PROTECTED] wrote: What is the encoding of your XML file ? i.e in the string ?xml version=1.0

Re: [BangPypers] Expressing meta-data about classes, methods, variables, parameters in python

2008-04-03 Thread Anand Balachandran Pillai
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 [EMAIL PROTECTED] wrote: Functions in Python are first-class objects, so you can add arbitrary attributes to them like any other object. Like

Re: [BangPypers] Expressing meta-data about classes, methods, variables, parameters in python

2008-04-03 Thread Anand Balachandran Pillai
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.

Re: [BangPypers] Expressing meta-data about classes, methods, variables, parameters in python

2008-04-03 Thread Anand Balachandran Pillai
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,

Re: [BangPypers] My book on Python for newbies

2008-04-04 Thread Anand Balachandran Pillai
On Fri, Apr 4, 2008 at 6:53 PM, vivek khurana [EMAIL PROTECTED] wrote: --- Anand Balachandran Pillai [EMAIL PROTECTED] 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

[BangPypers] Dissecting .pyc files

2008-04-10 Thread Anand Balachandran Pillai
A very good article by Ned Batchelder. http://nedbatchelder.com/blog/200804/the_structure_of_pyc_files.html -- -Anand ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] BangPypers Digest, Vol 8, Issue 15

2008-04-30 Thread Anand Balachandran Pillai
: 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

Re: [BangPypers] BangPypers Digest, Vol 8, Issue 15

2008-05-06 Thread Anand Balachandran Pillai
I am old school when it comes to program editors. I keep away from IDEs as much as possible, unless there is not getting away from it. The only thing which a good IDE gives according to me is visual debugging. Everything else can be done by smart customization of swiss-army-knives of editors such

Re: [BangPypers] BangPypers Digest, Vol 8, Issue 15

2008-05-06 Thread Anand Balachandran Pillai
On Tue, May 6, 2008 at 12:07 PM, Kenneth Gonsalves [EMAIL PROTECTED] wrote: On 06-May-08, at 11:42 AM, Anand Balachandran Pillai wrote: For Python, I sometimes use SPE (Stani's Python Editor) especially for writing OO code, since it has a nice built-in UML generation tab, which

Re: [BangPypers] How to check file size before downloading it

2008-05-07 Thread Anand Balachandran Pillai
Make a HEAD request. Here is one way of doing it, using urllib2. class HeadRequest(urllib2.Request): A request class which performs a HEAD request def get_method(self): return 'HEAD' req = HeadRequest(url) f = urllib2.urlopen(req) headers = dict(f.headers) print

Re: [BangPypers] How to check file size before downloading it

2008-05-08 Thread Anand Balachandran Pillai
On Wed, May 7, 2008 at 5:53 PM, Akash [EMAIL PROTECTED] wrote: On Wed, May 7, 2008 at 5:41 PM, Anand Balachandran Pillai [EMAIL PROTECTED] wrote: Make a HEAD request. Here is one way of doing it, using urllib2. Since we are on the subject of urllib2. Any resources you recommend other

Re: [BangPypers] How to sort the IP(s)

2008-05-08 Thread Anand Balachandran Pillai
On Thu, May 8, 2008 at 3:11 PM, Anand Chitipothu [EMAIL PROTECTED] wrote: On Thu, May 8, 2008 at 2:47 PM, Anand Balachandran Pillai [EMAIL PROTECTED] wrote: Do you really need any kind of additional processing ? The basic sort algorithm is smart enough to do this by itself, l

Re: [BangPypers] Redirection of standard output to a variable

2008-05-12 Thread Anand Balachandran Pillai
Using os.popen for this is straight-forward. Example... [EMAIL PROTECTED] programming]$ python Python 2.4.4 (#1, Oct 23 2006, 13:58:00) [GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] on linux2 Type help, copyright, credits or license for more information. import os f = os.popen(ls) print f.read()

Re: [BangPypers] Mapping python types to xml schema

2008-05-12 Thread Anand Balachandran Pillai
Hi, Is your problem in actually finding out the types or in arriving at a type mapping ? If the question is regarding mapping I think you can simply pass in datetime objects as seconds since epoch, in this case it will be mapped to a FLOAT or DOUBLE. The other option is to

Re: [BangPypers] Redirection of standard output to a variable

2008-05-13 Thread Anand Balachandran Pillai
This is not an easy thing to do. You can capture any error output by scp by redirecting the error stream, For example, $ scp names.txt [EMAIL PROTECTED]:/home/anand 2out.txt $ more out.txt names.txt: no such file or directory However trying to capture the output stream (with no error) does not

Re: [BangPypers] FYI: Meet Erik Dorenberg

2008-05-21 Thread Anand Balachandran Pillai
Thanks for the notice. Excuse my curiosity, but are you using Python for this project ? Where is the Python/vhll link here ? Thanks --Anand On Wed, May 21, 2008 at 3:32 PM, Darkseid [EMAIL PROTECTED] wrote: Guys, my apologies for the really short notice. This is happening today in

Re: [BangPypers] Writing a Python Client to access a web service.

2008-06-03 Thread Anand Balachandran Pillai
http://pywebsvcs.sourceforge.net/ You need SOAPpy for accessing a SOAP based web-service. --Anand On Tue, Jun 3, 2008 at 2:37 PM, Heshan Suriyaarachchi [EMAIL PROTECTED] wrote: Hi, I have written a web service and have deployed it using Apache Axis2. What I want to do is to invoke this

Re: [BangPypers] [Job] Looking for developer

2008-07-05 Thread Anand Balachandran Pillai
I know two guys who might match these requirements. The first guy's name is Sergey Brinn and the second one's name is Larry Page... But it might be difficult to persuade them to join... On 7/4/08, Venkatraman S [EMAIL PROTECTED] wrote: On Fri, Jul 4, 2008 at 10:50 AM, Kenneth Gonsalves [EMAIL

Re: [BangPypers] How to build a debian package from python source and glade files ??

2008-07-05 Thread Anand Balachandran Pillai
Hi Maxin, Next time you reply to a digest, please make sure that you remove the long tail of irrelevant messages, to reduce unnecessary wastage of bandwidth and space, not to mention scrolling space! Regards, On 7/5/08, Nishith Nand [EMAIL PROTECTED] wrote: Hi Maxin,Yeah I found the

Re: [BangPypers] FW: ActiveState Code: the new Python Cookbook site

2008-07-09 Thread Anand Balachandran Pillai
Nice to see this, though I did not like the green color theme much. ASPN cookbook site was up for a new look and feel for quite some time. The old site is still in Web 1.0 without support for tags and the search is not very good. Due to use of tags, searching for a recipe has become that much

Re: [BangPypers] How for and list.remove() works

2008-07-10 Thread Anand Balachandran Pillai
Here is what is arguably the solution with the least code. a = [12, 12, 1321, 34, 23, 12, 34, 45, 77] list(set(a)-set([12])) [1321, 34, 23, 45, 77] Cheers --Anand On Thu, Jul 10, 2008 at 5:14 AM, Jeff Rush [EMAIL PROTECTED] wrote: Anand Chitipothu wrote: On Wed, Jul 9, 2008 at 8:47 PM,

Re: [BangPypers] How for and list.remove() works

2008-07-10 Thread Anand Balachandran Pillai
Here is another one, this time using a dictionary ;) a=dict(zip(a, [0]*len(a))).keys() a.remove(12) a [34, 1321, 45, 77, 23] On Thu, Jul 10, 2008 at 2:03 PM, Anand Balachandran Pillai [EMAIL PROTECTED] wrote: Here is what is arguably the solution with the least code. a = [12, 12, 1321

Re: [BangPypers] How for and list.remove() works

2008-07-10 Thread Anand Balachandran Pillai
Jonnalagadda http://jace.seacrow.com/ http://jace.livejournal.com/ On 10-Jul-08, at 2:03 PM, Anand Balachandran Pillai wrote: Here is what is arguably the solution with the least code. a = [12, 12, 1321, 34, 23, 12, 34, 45, 77] list(set(a)-set([12])) [1321, 34, 23, 45, 77] Cheers --Anand

[BangPypers] Braces in Py3k

2008-07-23 Thread Anand Balachandran Pillai
The header is purposely misleading. Like many urban legends, there was a mention of adding C style braces in Python for py3k and this suggestion was (rightly) vetoed by the BDFL. In fact, there is a nice message if you try to import braces from the future. Try doing this at a Py3k prompt. from

Re: [BangPypers] automate logging (Pythonic)

2008-07-24 Thread Anand Balachandran Pillai
Don't bother with password managers. For HTTP basic authentication, the quickest way is to add the auth header yourself. Here is the code. import urllib2, base64 r = urllib2.Request('http://www.tek-tips.com') auth=base64.encodestring('%s:%s' % ('johnny','yesyes') ... ) auth

Re: [BangPypers] FYI

2008-08-29 Thread Anand Balachandran Pillai
I have removed you from the list. On Fri, Aug 29, 2008 at 5:21 PM, Anand Chitipothu [EMAIL PROTECTED] wrote: On Fri, Aug 29, 2008 at 3:56 PM, Kore, Amol (Amol) [EMAIL PROTECTED] wrote: Please unsubscribe me with bangpyers user list. Go to http://mail.python.org/mailman/listinfo/bangpypers and

Re: [BangPypers] Handling pcap files with python

2008-09-16 Thread Anand Balachandran Pillai
Does http://code.google.com/p/pypcap/ help you ? --Anand On Tue, Sep 16, 2008 at 1:08 PM, Nishith Nand [EMAIL PROTECTED] wrote: Hi, I am trying to extract an uploaded file from a pcap file. The uploaded file is split across multiple frames. What I want to do is to extract the TCP payload

Re: [BangPypers] GUI framework in Python...

2008-09-22 Thread Anand Balachandran Pillai
If you want a simple, lightweight GUI framework without complex event handling routines, and you rate yourself from Python newbie-rookie-intermediate, I suggest easygui. http://easygui.sourceforge.net/ Easygui uses simple functions instead of typical event-driven model of UIs. I have not used it

Re: [BangPypers] how to relclaim memory

2008-10-23 Thread Anand Balachandran Pillai
Hi, On Thu, Oct 23, 2008 at 3:48 PM, Prashanth Ellina [EMAIL PROTECTED] wrote: Python 2.5 (unlike 2.4 and earlier versions) is expected to release memory back to the OS when objects are de-referenced. Considering that I would suspect that you are still holding references to python objects.

Re: [BangPypers] Python and 5 Euro a.k.a How to make Money with Free Software

2008-11-06 Thread Anand Balachandran Pillai
On Thu, Nov 6, 2008 at 5:52 PM, Ramakrishna Reddy [EMAIL PROTECTED] wrote: http://pythonide.blogspot.com/2008/10/how-to-make-money-with-free-software.html The Dutch Ministry of Finance organized an architecture competition for which a selected group of architectural offices (unstudio, nox,

Re: [BangPypers] Congratulations to India for Landing on the Moon!

2008-11-16 Thread Anand Balachandran Pillai
On Sat, Nov 15, 2008 at 4:59 AM, Deepak Thukral [EMAIL PROTECTED] wrote: A job well done! (It is unknown whether Python was running onboard ;-) ISRO is in stone age as far as Computer Technology is concern (Their portal only works in IE6 and written in creepy html). I think they are toiling

[BangPypers] Python 3.0

2008-12-10 Thread Anand Balachandran Pillai
Looks like amid the gloom doom around us, the release of Python 3.0 went unnoticed. Py3k was released a week ago on Dec 3rd officially. http://www.python.org/download/releases/3.0/ However, the language has undergone a lot of changes , both subtle and in-your-face. A number of familiar

[BangPypers] Currying in Python 3.0

2008-12-10 Thread Anand Balachandran Pillai
The new functools module in Python provides a neat API for doing function currying and doing some other FP tricks. The functools.partial function allows you to create partial functions which chops off an argument from the beginning of the argument list. Simple example. def f(x,y): return x + y

Re: [BangPypers] python

2009-01-10 Thread Anand Balachandran Pillai
On Sat, Jan 10, 2009 at 1:47 PM, Kenneth Gonsalves law...@au-kbc.org wrote: On Saturday 10 Jan 2009 1:35:10 pm (श्री) Sreekanth B wrote: i know my statement may not comply to the English standards but it has communicated what i wanted to say ? as pradeep said, communication perhaps is most

Re: [BangPypers] Python use in IT service sector

2009-01-12 Thread Anand Balachandran Pillai
On Sun, Jan 11, 2009 at 3:42 PM, Venkatraman S venka...@gmail.com wrote: On 1/11/09, Bharat Pathak bharat_pat...@hotmail.com wrote: In one of the bloggers and fan of python he had evaluated speed of Matlab, C++ and Python. The graph goes like this. Matlab ---

Re: [BangPypers] problem in implementing multiprocessing

2009-01-14 Thread Anand Balachandran Pillai
On Thu, Jan 15, 2009 at 12:14 PM, Amit k. Saha amitsaha...@gmail.com wrote: On Thu, Jan 15, 2009 at 12:12 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: The new multiprocessing module in py3k allows you to do just that. Looks like it is there in 2.6: http://docs.python.org/library

Re: [BangPypers] problem in implementing multiprocessing

2009-01-14 Thread Anand Balachandran Pillai
On Thu, Jan 15, 2009 at 11:11 AM, Sibtey Mehdi sibt...@infotechsw.com wrote: I am trying to implement the multiprocessing in my application to take advantage of multiple cores. I have created two Separate process something like this. que = Queue Process(target = geDataFromMdbFile,

[BangPypers] Welcoming Sam Ockman

2009-02-06 Thread Anand Balachandran Pillai
Hi folks, Sam Ockman is a Linux luminary, visionary and entrepreneur in the Silicon valley. Sam founded Penguin computing in 1998, a company which pioneered in reliable Linux systems. Sam also co-wrote and edited the seminal open source book Open Sources: Voices from the

[BangPypers] Comprehending the comprehensions

2009-02-08 Thread Anand Balachandran Pillai
Python 3.0 introduces two new ways of comprehending. We had list comprehensions before. Now there are set dict comprehensions in the language. Let us say there are two lists. For generating the list of unique products of numbers in the list, in Python 2.x, this could be done in 2 approaches.

Re: [BangPypers] Python companies

2009-02-09 Thread Anand Balachandran Pillai
This topic has been discussed many times in the group. Please see the group archives before posting any fresh thread. I suggest searching the mailman archives for the word job or company. --Anand On Mon, Feb 9, 2009 at 5:13 PM, Maneesh Kumar B tomanis...@gmail.com wrote: Hi, I am also

Re: [BangPypers] Are comprehensions faster?

2009-02-09 Thread Anand Balachandran Pillai
On Mon, Feb 9, 2009 at 7:46 PM, Venkatraman S venka...@gmail.com wrote: On Mon, Feb 9, 2009 at 7:11 PM, Senthil Kumaran orsent...@gmail.com wrote: You see that is slow and the reason is l.append being called again and again. lets eliminate it. Sorry, it is slow because the append

Re: [BangPypers] Python easter eggs :)

2009-02-10 Thread Anand Balachandran Pillai
import __phello__ Hello world... On Tue, Feb 10, 2009 at 6:17 PM, Jeff Rush j...@taupro.com wrote: Here is another... from __future__ import braces File stdin, line 1 SyntaxError: not a chance Can you find any others? ;-) -Jeff Rajeev Nair wrote: hi. Iam sure many here will

Re: [BangPypers] Fwd: Chicago Python User Group

2009-02-17 Thread Anand Balachandran Pillai
On Tue, Feb 17, 2009 at 1:43 PM, Baiju M mba...@zeomega.net wrote: On Mon, Feb 16, 2009 at 5:17 PM, Baiju M mba...@zeomega.net wrote: Well, I have created a wiki page here: http://wiki.python.org/moin/BangPypers/Meeting21Feb2009 I hope the timing given in wiki (10am to 1pm) is fine for all.

Re: [BangPypers] date/time difference between two dates

2009-02-19 Thread Anand Balachandran Pillai
On Thu, Feb 19, 2009 at 4:39 PM, Saju Pillai saju.pil...@gmail.com wrote: LOhit wrote: Hello All, I am parsing a log file to extract data for the last one week from the current date. The log file does not record the year, only month, day of the month and time. My question is, the date is

Re: [BangPypers] date/time difference between two dates

2009-02-19 Thread Anand Balachandran Pillai
On Thu, Feb 19, 2009 at 7:42 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: On Thu, Feb 19, 2009 at 5:00 PM, Anand Chitipothu anandol...@gmail.com If you want something better I suggest the egenix mxDateTime module. From http://seehuhn.de/pages/pdate, Egenix provides the mxDateTime

[BangPypers] Open source India

2009-02-27 Thread Anand Balachandran Pillai
Anyone going for this conference (Mar 12-14) at Chennai ? This used to be called LinuxAsia and had the reputation of a conference for suits. Not sure how it is now. There seems to a track for FOSS languages the first day. Let me know if someone is going (from Bangalore) for this. -- -Anand

Re: [BangPypers] Open source India

2009-02-27 Thread Anand Balachandran Pillai
On Fri, Feb 27, 2009 at 5:04 PM, Kenneth Gonsalves law...@au-kbc.org wrote: On Friday 27 February 2009 16:51:36 Anand Balachandran Pillai wrote: I think, if we can get a discussion going around this topic, we can form ideas concrete enough to organize PyCon India at least in 2010. ok

Re: [BangPypers] Open source India

2009-02-27 Thread Anand Balachandran Pillai
On Fri, Feb 27, 2009 at 5:51 PM, Banibrata Dutta banibrata.du...@gmail.com wrote: Obviously, it'd be pointless to call a track in Barcamp -- PyCon or PyCamp. Why not use the Barcamp track just for kicking up some dust about PyCamp and PyCon ? Unless one is strongly allergic to Barcamp in

Re: [BangPypers] PyCon India Proposal

2009-02-27 Thread Anand Balachandran Pillai
On Fri, Feb 27, 2009 at 6:47 PM, Ramdas S ram...@developeriq.com wrote: Good! Let's keep the momentum going I propose that we have a meeting soon to discuss this. Updated this with a Community Discussion section. Please enter individual comments there, so that we don't modify the main

Re: [BangPypers] Questions regarding Image cropping

2009-03-02 Thread Anand Balachandran Pillai
On Sun, Mar 1, 2009 at 1:25 PM, Arunabha Adhikari arunabha.adhik...@gmail.com wrote: Dear friends, I am a beginner in Python programming. I am not a computer professional I am a physicist. I was trying to write a code in python for my own research which involves a little image processing. All

Re: [BangPypers] Today's IRC meeting

2009-03-02 Thread Anand Balachandran Pillai
Hi, On Tue, Mar 3, 2009 at 12:42 PM, Baiju M mba...@zeomega.net wrote: On Tue, Mar 3, 2009 at 12:17 PM, Kenneth Gonsalves law...@au-kbc.org wrote: On Tuesday 03 March 2009 10:30:16 Noufal Ibrahim wrote: * Positions (IMPORTANT) handling money is the point where conferences here get into

Re: [BangPypers] Classmethod, Decorators and staticmethod

2009-03-05 Thread Anand Balachandran Pillai
On Thu, Mar 5, 2009 at 6:33 PM, Kenneth Gonsalves law...@au-kbc.org wrote: On Thursday 05 March 2009 18:29:20 VIJAY KUMAR wrote: Dear All,    Can some one please explain me with example about    1) classmethod    2) staticmethod    3) Decorators I charge 6500 a day for

Re: [BangPypers] Classmethod, Decorators and staticmethod

2009-03-05 Thread Anand Balachandran Pillai
On Fri, Mar 6, 2009 at 9:46 AM, Roshan Mathews rmath...@gmail.com wrote: On Fri, Mar 6, 2009 at 9:41 AM, Venkatraman S venka...@gmail.com wrote: On Fri, Mar 6, 2009 at 9:29 AM, Anand Balachandran Pillai abpil...@gmail.com wrote: On Thu, Mar 5, 2009 at 6:33 PM, Kenneth Gonsalves law...@au

Re: [BangPypers] Classmethod, Decorators and staticmethod

2009-03-06 Thread Anand Balachandran Pillai
On Fri, Mar 6, 2009 at 7:10 PM, Senthil Kumaran orsent...@gmail.com wrote: On Thu, Mar 5, 2009 at 6:29 PM, VIJAY KUMAR vnbang2...@yahoo.com wrote:    Can some one please explain me with example about    1) classmethod    2) staticmethod    3) Decorators I will try to explain

Re: [BangPypers] A question for us...

2009-03-13 Thread Anand Balachandran Pillai
On Fri, Mar 13, 2009 at 12:02 PM, Ramdas S ram...@developeriq.com wrote: Answer is $$$ is required for funding conferences. The organizers did not find anyone with $$$ who has some vested interest in Python. If they had you'd see Python there. I you look at sponsors of the conference, you can

Re: [BangPypers] Face to face meeting for Python conference

2009-03-19 Thread Anand Balachandran Pillai
On Thu, Mar 19, 2009 at 11:50 AM, Noufal Ibrahim nou...@gmail.com wrote: Okay. Time: 11am - 1pm Venue : Thoughtworks (Diamond District, Domlur) Agenda : Upcoming Python conference I have put up a page on http://wiki.python.org/moin/BangPypers/Meeting21Mar2009 Sidu,  Can you arrange the

Re: [BangPypers] Command line goodies

2009-03-25 Thread Anand Balachandran Pillai
On Wed, Mar 25, 2009 at 6:29 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: On Wed, Mar 25, 2009 at 5:19 PM, Noufal Ibrahim nou...@gmail.com wrote: I found this via. hacker news. http://commandlinefu.com/ It's a repository of command line tricks. I found a python one python -m

Re: [BangPypers] Python switches to Mercurial

2009-03-31 Thread Anand Balachandran Pillai
On Tue, Mar 31, 2009 at 12:38 PM, Ramakrishna Reddy ramkr...@gmail.com wrote: Source :: http://article.gmane.org/gmane.comp.python.devel/102706 From: Guido van Rossum guido at python.org Subject: And the winner is... Newsgroups: gmane.comp.python.devel Date: 2009-03-30 14:58:38 GMT (16 hours

Re: [BangPypers] unladen-swallow

2009-04-01 Thread Anand Balachandran Pillai
On Wed, Apr 1, 2009 at 12:42 AM, Shekhar pytho...@gmail.com wrote: Already slashdotted and many of us should already be knowing but could not resist posting. http://arstechnica.com/open-source/news/2009/03/google-launches-project-to-boost-python-performance-by-5x.ars

Re: [BangPypers] Guido steps down

2009-04-01 Thread Anand Balachandran Pillai
2009/4/1 Venkatraman S venka...@gmail.com: On Wed, Apr 1, 2009 at 12:08 PM, Indrajith K indrajit...@gmail.com wrote: http://www.python.org/dev/peps/pep-0401/ Not sure, if this is a April fool joke! Come on, the name of the PEP itself should tell you that... PEP 04-01 i.e April 01.

Re: [BangPypers] Guido steps down

2009-04-01 Thread Anand Balachandran Pillai
On Wed, Apr 1, 2009 at 1:07 PM, Ramakrishna Reddy ramkr...@gmail.com wrote: On Wed, Apr 1, 2009 at 12:26 PM, Roshan Mathews rmath...@gmail.com wrote: On Wed, Apr 1, 2009 at 12:25 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: 2009/4/1 Venkatraman S venka...@gmail.com: Linus played

Re: [BangPypers] magic in datetime module?

2009-04-03 Thread Anand Balachandran Pillai
On Fri, Apr 3, 2009 at 11:35 AM, Anand Chitipothu anandol...@gmail.comwrote: 2009/4/3 Anand Chitipothu anandol...@gmail.com: I'm noticed a strange Import error in some web.py template. I nailed down the problem to the following python code. __builtins__ = {} import datetime now =

Re: [BangPypers] magic in datetime module?

2009-04-03 Thread Anand Balachandran Pillai
On Fri, Apr 3, 2009 at 11:54 AM, Noufal Ibrahim nou...@gmail.com wrote: __builtins__ = {'__import__': ximport} f = now.strftime print f(%m %Y) You can get this directly if you use -v. Calling strftime imports the time module print now.strftime(%m %Y)

Re: [BangPypers] Help in reading the pdf file

2009-04-04 Thread Anand Balachandran Pillai
On Fri, Apr 3, 2009 at 8:20 PM, Sridhar Ratnakumar sridhar.ra...@gmail.comwrote: On 3/26/09 3:29 PM, M Kumar wrote: I need to read one pdf file and extract data from it. Is there any one can guide me pyPdf? http://pybrary.net/pyPdf/ To give my $0.02, I had an opportunity to use both

Re: [BangPypers] Python Day India

2009-04-30 Thread Anand Balachandran Pillai
On Thu, Apr 30, 2009 at 2:53 PM, Ramdas S ram...@developeriq.com wrote: Let me explain. Starting a society even not for profit has its own little legal tangles and will also cost some monies (less than 10 K). But most importantly you'll need to keep accounts, ensure that returns are filed,

Re: [BangPypers] Python Day India

2009-05-01 Thread Anand Balachandran Pillai
On Fri, May 1, 2009 at 12:11 PM, Anand Chitipothu anandol...@gmail.comwrote: I created a wiki page for the meeting. http://wiki.python.org/moin/BangPypers/Meeting03May2009 Please confirm your participation by adding your name. Anybody interested to give a talk? I plan to attend this and

Re: [BangPypers] Python Day India

2009-05-01 Thread Anand Balachandran Pillai
On Fri, May 1, 2009 at 2:45 PM, Anand Chitipothu anandol...@gmail.comwrote: I remember reading somewhere that ICH is moved out. Let's have it at Thoughtworks. Thoughtworks is too far. How about Barista at church street? You seem to have a subversive agenda on MG Road that day. Perhaps a

[BangPypers] MOM - Meeting on Sunday May 3rd

2009-05-04 Thread Anand Balachandran Pillai
Hi, We had a meeting to discuss the status of PyCon India efforts at TW yesterday. I have put up the minutes of yesterday's meeting at http://wiki.python.org/moin/BangPypers/Meeting03May2009 . We plan to have regular f2f meetings from here on. IRC can be used for any quick follow ups but the

[BangPypers] Python jobs blog

2009-05-07 Thread Anand Balachandran Pillai
Hi all, I have updated the python jobs blog {http://pythonjobs.blogspot.com} with all the job postings so far in the list in 2009. I had developed the plugin to HarvestMan for this last year but I did not keep up with running it on the mail archives in 2008. This year, it is one of the things

Re: [BangPypers] MOM - Meeting on Sunday May 3rd

2009-05-15 Thread Anand Balachandran Pillai
On Thu, May 14, 2009 at 6:02 PM, Noufal Ibrahim nou...@gmail.com wrote: On Thu, May 14, 2009 at 5:38 PM, Noufal Ibrahim nou...@gmail.com wrote: [..] Can we get a show of hands? How many people plan to attend? If we're around 10 or so, I think the Barista is enough, otherwise, we'll think

Re: [BangPypers] PyCon India logo contest!

2009-05-21 Thread Anand Balachandran Pillai
+1 pycon-04-scaled.jpg The quality of the most recently posted logos are pretty good. On Thu, May 21, 2009 at 4:00 PM, Ruchir Shukla ruchiryshu...@gmail.comwrote: Hello, all are good specially last one *pycon04-scaled.jpg +1 **pycon04-scaled.jpg* * * On Thu, May 21, 2009 at 3:48 PM,

Re: [BangPypers] New Mailing Lists

2009-05-24 Thread Anand Balachandran Pillai
On Sat, May 23, 2009 at 3:38 PM, Jeff Rush j...@taupro.com wrote: Partially as a result of nudging from Anand Balachandran Pillai for the needs of PyCon India, there are now two new mailing lists on python.org: (1) The conferen...@python.org mailing list is for open discussion of issues

Re: [BangPypers] PyCon India logo contest!

2009-05-24 Thread Anand Balachandran Pillai
This thread is CLOSED. The discussion has moved to the new inpycon list. Please reply to the thread there. http://mail.python.org/pipermail/inpycon/2009-May/00.html -Anand ___ BangPypers mailing list BangPypers@python.org

Re: [BangPypers] [Inpycon] PyCon Logo decision

2009-05-26 Thread Anand Balachandran Pillai
On Tue, May 26, 2009 at 7:06 PM, Anand Chitipothu anandol...@gmail.comwrote: Can I vote for more than one entry? Nothing in the voting system to prevent you from doing that. After all it is just a Wiki. Btw, I have numbered each logo. It would have been better to have a separate voting

Re: [BangPypers] BangPypers Digest, Vol 22, Issue 1

2009-06-04 Thread Anand Balachandran Pillai
On Thu, Jun 4, 2009 at 4:37 PM, Gora Mohanty g...@srijan.in wrote: On Thu, 4 Jun 2009 16:30:40 +0530 testing123 test swtest...@gmail.com wrote: Hi Venkatraman, Yes,My requirement is to compait 2 XML Files are same or not. Please help me in this regard. [...] o Use of

Re: [BangPypers] Regarding 2 XML Files Comparision using Python

2009-06-04 Thread Anand Balachandran Pillai
On Thu, Jun 4, 2009 at 1:15 PM, testing123 test swtest...@gmail.com wrote: Hi all, I am prasad.I need a help to write a python script to compare two XML Files.Is there any tutorial.Should we include any library?Please help me How to start? Are you a bot or something ? Why do you keep

Re: [BangPypers] PyCon India website admin needed!

2009-06-05 Thread Anand Balachandran Pillai
On Fri, Jun 5, 2009 at 8:00 PM, srinivasa rao srinivasaene...@gmail.comwrote: Dear sir I am in bangalore and to set up internet so i start work for you i hope i get a support from you thanks yours truly srinivasa rao m If you are interested, please join the inpycon list. The list can be

Re: [BangPypers] Responding to people who lack the curiosity

2009-06-12 Thread Anand Balachandran Pillai
On Fri, Jun 12, 2009 at 6:27 PM, Srijayanth Sridhar srijaya...@gmail.comwrote: On Fri, Jun 12, 2009 at 6:12 PM, Pradeep Gowda prad...@btbytes.comwrote: On Fri, Jun 12, 2009 at 7:43 AM, vidv...@svaksha.com wrote: Great discussion... the next time someone posts a non-curious question

Re: [BangPypers] which is better solution of the question

2009-06-17 Thread Anand Balachandran Pillai
On Wed, Jun 17, 2009 at 12:01 AM, Jeff Rush j...@taupro.com wrote: Abhishek Tiwari wrote: *Ans. 1* values, items = list(zip(*sorted(zip(values,items), reverse=True))) *Ans. 2* new_values = sorted(values, reverse=True) new_items = [items[x] for x in map(values.index,new_values)]

Re: [BangPypers] which is better solution of the question

2009-06-17 Thread Anand Balachandran Pillai
On Wed, Jun 17, 2009 at 12:54 PM, Anand Chitipothu anandol...@gmail.comwrote: Don't use sorted(..., reverse=True). Instead reverse the list in place by using reverse slicing of l[-1::-1], which is about 1.5 times faster. Why are you using [-1::-1] for reversing? Isn't [::-1] the python

Re: [BangPypers] Fwd: [PyCon-Organizers] PyCon Twitter Bot

2009-06-30 Thread Anand Balachandran Pillai
Hi Noufal, The main use of the bot for a conference is for sending updates via twitter. The way it works is as follows. 1. A twitter bot account for the conference is created on twitter. For our conference it could be inpycon for example. 2. An admin befriends the bot. 3. For broadcasting

Re: [BangPypers] Fwd: [PyCon-Organizers] PyCon Twitter Bot

2009-06-30 Thread Anand Balachandran Pillai
On Tue, Jun 30, 2009 at 6:05 PM, Noufal Ibrahim nou...@gmail.com wrote: It's probably useful if it can be quickly set up. I think *real* publicity will be gained by people posting/blogging about the event. You got it wrong. A twitter bot is not for publicity. It is for actual instant

[BangPypers] Fwd: [Inpycon] Volunteer needed : Sponsor coordinator

2009-07-22 Thread Anand Balachandran Pillai
Please reply to Noufal and CC the inpycon list if you are interested. Thanks --Anand -- Forwarded message -- From: Noufal Ibrahim nou...@gmail.com Date: Wed, Jul 22, 2009 at 3:45 PM Subject: [Inpycon] Volunteer needed : Sponsor coordinator To: Mailing list for the PyCon India

[BangPypers] [Commercial][Off-topic] Help with CD/DVD replication

2009-08-24 Thread Anand Balachandran Pillai
Hi folks, Are there anybody in the list who provide medium scale CD/DVD replication services? One of my friends need to perform DVD replication for about 100-200 of them. Please contact off list either me or n.s.but...@gmail.com . -- --Anand

Re: [BangPypers] Looking for Linux / Python based jobs

2009-09-02 Thread Anand Balachandran Pillai
http://pythonjobs.blogspot.com is updated (whenever I get the time) with job information crawled from archives of this list. As of now it is a bit behind schedule (last updated in May 09), but you can find older, but still relevant jobs there. --Anand On Fri, Aug 28, 2009 at 6:03 PM, Ashutosh

Re: [BangPypers] Why the None ?

2009-09-03 Thread Anand Balachandran Pillai
On Thu, Sep 3, 2009 at 7:29 PM, Carl Karsten c...@personnelware.com wrote: Try this, it should all become clear: def gimmetaste(length=5): print A, length return length * 2 if __name__ == '__main__': print B, gimmetaste()

Re: [BangPypers] Low level Python

2009-09-14 Thread Anand Balachandran Pillai
On Sun, Sep 13, 2009 at 2:02 PM, Noufal Ibrahim nou...@gmail.com wrote: On Sat, Sep 12, 2009 at 8:10 AM, venka...@gmail.com wrote: I was looking at some bytecode optimizations last year. Tlee had some work already done on that front ; he had a branch. (But, I was not able to reach him and

Re: [BangPypers] [Inpycon] PyCon blog

2009-09-17 Thread Anand Balachandran Pillai
On Thu, Sep 17, 2009 at 9:46 AM, Kumar Gaurav kgthegr...@gmail.com wrote: The dates on the blog have to be corrected. On the blog it is NOV 26,27. Good catch. Fixed. -- --Anand ___ BangPypers mailing list BangPypers@python.org

Re: [BangPypers] [Inpycon] Accommodation

2009-09-22 Thread Anand Balachandran Pillai
Forwarding to BangPypers. Anyone who has a contact for Hidden Reflex here who can address the following issue ? If so, please get in touch with Hidden Reflex and Mahesh and find out what went wrong. Thanks --Anand On Mon, Sep 21, 2009 at 10:09 PM, Mahesh Mohan maheshmohan...@gmail.comwrote:

[BangPypers] Post from non-members

2009-10-01 Thread Anand Balachandran Pillai
Hi, Of late there has been a lot of activity in the group, which is good :) But a side effect has been a sharp increase in number of non-members trying to post to the list. I have been approving all these messages since they are all relevant and not SPAM. However if

  1   2   3   4   >