Re: [BangPypers] Regarding Python popularity

2010-02-08 Thread Jeff Rush
Srinivas Reddy Thatiparthy wrote: > >>> This is subjective. I personally think it's mainly marketing (Java had > Sun and C# had MS). This leads to secondary effects like certifications > (which are useful for >>>non-tech hiring managers to evaluate potential > employees), availability of 'resource

Re: [BangPypers] array in python

2009-10-08 Thread Jeff Rush
Vivek Khurana wrote: > On Thu, Oct 8, 2009 at 6:15 AM, harshal jadhav > wrote: >> Hi Everybody, >> >> I am Harshal Jadhav, student at San Jose State University. >> >> I am using Python for my Master's project and i am a beginner. >> >> I am using python language for GNU Radio. For this i have a s

Re: [BangPypers] Can we create proprietary database in Python

2009-09-28 Thread Jeff Rush
Carl Karsten wrote: > On Sun, Sep 27, 2009 at 11:46 PM, srid wrote: >> On Sat, Sep 26, 2009 at 12:15 PM, Arun Python wrote: >>> b) Can we create proprietary or sequential database like in C++ >>> in python for database applications which are not so huge. >>> Sequential database in the sense, like

Re: [BangPypers] calling instance of the other class.

2009-06-23 Thread Jeff Rush
learningpython wrote: > Hi Jeff, > Can i ask you a related question. Long shot .. > but since you have good idea of area i am working ( which is communications, > sending, decoding, encoding) data over a serial interface. > I have a problem, i am facing.. Like in ASN format.. > I have a Data Unit

Re: [BangPypers] calling instance of the other class.

2009-06-23 Thread Jeff Rush
Senthil Kumaran wrote: > On Tue, Jun 23, 2009 at 03:50:42AM -0500, Jeff Rush wrote: >>> just pass the & of the another structure in the structure element, some > > Jeff: you seem to have got what he was trying to do with message > sending. Is this some standard way over

Re: [BangPypers] calling instance of the other class.

2009-06-23 Thread Jeff Rush
learningpython wrote: > Sorry Senthil and all, > I am sure, it's pretty easy but don't i am not able to catch it. In C, i > just pass the & of the another structure in the structure element, some > thing close. The equivalent to the & operator in C is just an object reference in Python. > class S

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

2009-06-16 Thread Jeff Rush
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)] > > I would like to know which method is better and why? The f

Re: [BangPypers] How to create Debug and Release code in Python

2009-06-15 Thread Jeff Rush
Vishal wrote: > > *Is there a way to create a conditionally compilable Python script > ?* Some facility that would prevent from code getting compiled into > ".pyc"something like the old #ifdef #endif preprocessor > directivesis there a Python preprocessory available :) I've given this mor

Re: [BangPypers] How to create Debug and Release code in Python

2009-06-15 Thread Jeff Rush
Vishal wrote: > > *Is there a way to create a conditionally compilable Python script > ?* Some facility that would prevent from code getting compiled into > ".pyc"something like the old #ifdef #endif preprocessor > directivesis there a Python preprocessory available :) The way to create c

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

2009-06-12 Thread Jeff Rush
Mandar Gokhale wrote: > Okay, that was really hilarious. But I still believe the issue is not > confined to Indian developers but *stupid* developers from everywhere. It definitely is not confined to Indian developers - I see it from developers in the United States as well. I'd say it's more from

[BangPypers] New Mailing Lists

2009-05-23 Thread Jeff Rush
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 related to Python conferences. All conferences are welcome: established and

Re: [BangPypers] PyCon India logo contest!

2009-05-18 Thread Jeff Rush
Noufal Ibrahim wrote: > Hello everyone, > One of the things that came up in yesterday's meeting (whose minutes > I will post shortly) is that we need a 'logo' for PyCon India. A few > of us had ideas but artistic talent was in short supply. In case it comes up, it is permitted to use a modified

Re: [BangPypers] python for embedded?

2009-03-16 Thread Jeff Rush
Yogesh Jadhav wrote: Does anybosy use / know stripped down python with micro footprint suitable for embedded development ? There are three or maybe four implementations of them. The one I remember most if PyMite: http://pymite.python-hosting.com/ The creator of PyMite will be at PyCon th

Re: [BangPypers] Classmethod, Decorators and staticmethod

2009-03-05 Thread Jeff Rush
Venkatraman S wrote: > > On Thu, Mar 5, 2009 at 6:29 PM, VIJAY KUMAR > wrote: > > Dear All, >Can some one please explain me with example about >1) classmethod >2) staticmethod >3) Decorators > > > > http

Re: [BangPypers] Python easter eggs :)

2009-02-10 Thread Jeff Rush
Here is another... >>> from __future__ import braces File "", line 1 SyntaxError: not a chance Can you find any others? ;-) -Jeff Rajeev Nair wrote: > > hi. > > Iam sure many here will be aware of easter eggs in python. > > For starters here is one.At the prompt type import this >

Re: [BangPypers] hi all

2009-01-16 Thread Jeff Rush
Sridhar Ratnakumar wrote: > On Mon, Jan 12, 2009 at 7:18 AM, shridhar kyrlageri > wrote: >> i m an engineering student.. i want to be a very good programmer... but i >> dont know where to start and what to do... can u please help me.. > > The best way for me to get started was by *writing* progr

Re: [BangPypers] python

2009-01-10 Thread Jeff Rush
(श्री) Sreekanth B wrote: > > THIS MAKE ME THINK WHO DECIDES WHAT IS ACCEPTABLE AND WHAT IS NOT ? That's easy! It's the customer/employer who decides, since they will or won't hire you based on what they think is acceptable, whether you agree or not. Sincerely, good luck in your job search. I

Re: [BangPypers] Multiprocessing takes higher execution time

2009-01-07 Thread Jeff Rush
Amit k. Saha wrote: > On Wed, Jan 7, 2009 at 3:10 PM, Sibtey Mehdi wrote: >> >> I use multiprocessing to compare more then one set of files. >> >> The parallel processing time should be lesser. >> >> I am not able to get advantage of multiprocessing here. > > Depends on the overheads of spawning

Re: [BangPypers] help using mysqldb

2008-12-17 Thread Jeff Rush
Vijay Ramachandran wrote: > > Suppose I have a list of ids, I would write sql such as > 'select * from Employee where id in (id1, id2, id3)' and this would work > even if there was only one id, say, 'select * from Employee where id in > (id1)' > > How should I do this in MySQLdb? It seems that I

Re: [BangPypers] Currying in Python 3.0

2008-12-10 Thread Jeff Rush
Anand Balachandran Pillai wrote: > The new functools module in Python provides a neat > API for doing function currying and doing some other > FP tricks. > Of course, the above can all be done in Python <3.0 using lambda, > but functools.partial makes it look neater. I haven't looked at Python

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

2008-11-14 Thread Jeff Rush
Congratulations are in order to the nation of India for their space mission (Chandrayaan-1) orbiting the moon that today dropped a probe onto the surface. It took 25-minutes to fall and is the first Indian-built object to reach the surface. That is a cool achievement very few nations have attain

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

2008-09-30 Thread Jeff Rush
Vishal wrote: Sometime back, I came across the idea of bundling a basic webserver in a python application and using a browser window as the GUI host. That's probably one of the most universal kind of GUI framework possible...though it might not have all that native GUI packages provide. If I

Re: [BangPypers] Mailman archives analysis

2008-07-16 Thread Jeff Rush
Anand Balachandran Pillai wrote: Hi Pypers, Is there any open source tool for analyzing mailman archives ? I want to analyze our mailman archives and then find out the following information. - Total number of messages - Total number of threads (conversations) - Total number of unique

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

2008-07-09 Thread Jeff Rush
Anand Chitipothu wrote: On Wed, Jul 9, 2008 at 8:47 PM, Kushal Das <[EMAIL PROTECTED]> wrote: Hi all, a = [12, 12, 1321, 34, 23, 12, 34, 45, 77] for x in a: ... if x == 12: ... a.remove(x) a [1321, 34, 23, 12, 34, 45, 77] Can any one explain me how the remove works and how it is effe

Re: [BangPypers] Python app in a browser sandbox?

2008-02-22 Thread Jeff Rush
logan wrote: > > I'm new to this list and a Python fresher. I wanted to know how can I > run my Python application (actually it's just a Python wrapper over a > C++ lib) inside a web browser? My intent is that the user opens the > website and then the Python application is loaded in the user's

Re: [BangPypers] Python app in a browser sandbox?

2008-02-22 Thread Jeff Rush
logan wrote: > Hello Prashanth, > >> You could use IronPython + Silverlight for an application sandbox >> within a browser. > > That's interesting. But the whole point of going to Python was to avoid > using MS specific technologies. If I have to use Silverlight then I would > prefer writing a

Re: [BangPypers] Python modules

2007-12-19 Thread Jeff Rush
Anand Balachandran Pillai wrote: > easy_install is the minimal CPAN for Python. True, but there is some unevenness in the PyPI registry, such that some packages won't download automatically or that lack subversion link so you can't get a development version. It depends on whether the author of a