Re: [BangPypers] [New bie question ] Clarification on "Multiply" operator applied to list(data structure)

2009-06-10 Thread Shivaraj M S
The first one is a reference and second one is not. case 1: >>> m = [[0]*2]*4 >>> m[1][1]=7 >>> m [[0, 7], [0, 7], [0, 7], [0, 7]] case 2: >>> m=[] >>> for r in range(4): ... m+=[[0]*2] ... >>> m [[0, 0], [0, 0], [0, 0], [0, 0]] >>> m[1][1]=7 >>> m [[0, 0], [0, 7], [0, 0], [0, 0]] We can mak

Re: [BangPypers] [New bie question ] Clarification on "Multiply" operator applied to list(data structure)

2009-06-10 Thread Shivaraj M S
The first one is a case of reference/alias and second one is not. case 1: >>> m = [[0]*2]*4 >>> m[1][1]=7 >>> m [[0, 7], [0, 7], [0, 7], [0, 7]] case 2: >>> m=[] >>> for r in range(4): ... m+=[[0]*2] ... >>> m [[0, 0], [0, 0], [0, 0], [0, 0]] >>> m[1][1]=7 >>> m [[0, 0], [0, 7], [0, 0], [0, 0

[BangPypers] Fwd: [SciPy-dev] ANN: SciPy 2009 student sponsorship

2009-06-29 Thread Shivaraj M S
-- Forwarded message -- From: Jarrod Millman Date: Mon, Jun 29, 2009 at 12:29 PM Subject: [SciPy-dev] ANN: SciPy 2009 student sponsorship To: SciPy Developers List I am pleased to announce that the Python Software Foundation is sponsoring 10 students' travel, registration, and a

[BangPypers] Any python metaclasses for UID

2009-07-26 Thread Shivaraj M S
Is there any python metaclass for UID or only Gates are Super() for the friend functions of UID publishers' Class hierarchy? -- Regards ___ Shivaraj ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/ba

Re: [BangPypers] Any python metaclasses for UID

2009-07-27 Thread Shivaraj M S
We will have to wait for UID I guess. In a ''real world scenario'' class ClassI(Gates): def __init__(): super(UID,self).Wind(7) friend void exchange(ClassI& x, Gates& y) void exchange(A& x, B& y) { B.x = A.location.awards A.x = B.location.banks.outsource } These classes extended

[BangPypers] Any python metaclasses for UID

2009-07-28 Thread Shivaraj M S
Well,it's like a game. Mapping the names with real world objects-specially current affairs, should convey great deal of information for the abstraction to be realized. Still waiting for the metaclasses, if any. -- Regards ___ Shivaraj ___

[BangPypers] Any python metaclasses for UID

2009-07-29 Thread Shivaraj M S
A small typo there super(UID,self).Wind(7) *is* super(ClassI,self).Wind(7) Well google's is doing definitely a strong attempt here. I guess it's metaprogramming than metaclassing. Class GoogleOS(OS): def __init__(self): self.official.languages = ['c++','java','python']

[BangPypers] Any python metaclasses for UID

2009-07-30 Thread Shivaraj M S
One more typo Of Inheritances and diamonds,* * Mac().os.compatibility *"is" Mac(FreeBSD,Mach).os.compatibility * * * * * *quote(nouful): Why don't you try converting Gates to a factory* * * Well, the factories is what implements Gates since Gates is closed as is Winds often seen cracked before open

[BangPypers] Fwd: Join Us for Mozilla Service Week

2009-09-16 Thread Shivaraj M S
-- Forwarded message -- From: SourceForge.net Team Date: Wed, Sep 16, 2009 at 6:20 AM Subject: Join Us for Mozilla Service Week To: shivraj...@gmail.com Helping others - it comes naturally to people who write open source software. Now the Mozilla Foundation is trying to employ th

Re: [BangPypers] [ilugb] Python at Schools

2009-09-29 Thread Shivaraj M S
> I started with GW-BASIC, which is a very > good language to begin with. I too, still like algorithms -> flowcharts -> step by step instructions -> BASIC for starting off. IMHO, the real issue is with continuity of programming space and not with any specific language. > Besides, each school ha

Re: [BangPypers] [ilugb] Python at Schools

2009-10-01 Thread Shivaraj M S
>Secondly we are also working on one embedded platform >using Python. Should be innovative... It reminded me of concurrent and sequential programming approaches of VHDL for real time on FPGA written by Douglas L. Perry - one of the most well written and interesting programming books. (or may be

Re: [BangPypers] [ANN][X-Post] SciPy India conference in Dec. 2009

2009-10-06 Thread Shivaraj M S
> However, if someone will cover my plane ticket and hotel > room . Forgive me if I am being typical... Do you mean MHRD, India by "someone"? -- View this message in context: http://www.nabble.com/-ANN--X-Post--SciPy-India-conference-in-Dec.-2009-tp25770133p25781043.html Sent from the Bang

Re: [BangPypers] Anyone worked on GNuRadio out here?

2009-10-08 Thread Shivaraj M S
I hope you have found the solution . If not read on. I followed http://gnuradio.org/trac/wiki/UbuntuInstall and was able to reproduce the error. The issue is http://osdir.com/ml/patch-gnuradio-gnu/2009-08/msg0.html cspesit wrote: > > Hi guys, > Working on a GNUradio project. > Following e

Re: [BangPypers] Running multiple versions of python on Fedora

2009-10-12 Thread Shivaraj M S
I don't see any problems in installing 'n' number of versions on any *nix flavour . If you find any problem please paste the traceback. You can always set /usr/bin/python to direct whichever version you want, and even keep multiple easy_install scripts. ardsrk wrote: > > Hi, > > Has anyone

Re: [BangPypers] Running multiple versions of python on Fedora

2009-10-12 Thread Shivaraj M S
>> Any documentation on virtualenv that shows how to manage multiple python installations. This may make things easier if you are sure of using virtualenv. http://www.doughellmann.com/docs/virtualenvwrapper. -- View this message in context: http://www.nabble.com/Running-multiple-versions-o

Re: [BangPypers] escaping for xml

2009-10-26 Thread Shivaraj M S
This may be a solution if I am not getting you wrong. 1.write the whole string to a file 2.feed that to xml.dom.minidom.parse 3.retrieve whole or childnodes from toxml BhaskarJain wrote: > > Hello, > > I am stuck while escaping "<" and ">" in the xml file using > xml.dom.minidom. > I tr

Re: [BangPypers] MySQLdb issue with FC11

2009-12-17 Thread Shivaraj M S
It should be regarding permissions. Can you paste the error or traceback or log. Santhosh Edukulla wrote: > > Hi All, > > We are using MySQLdb module of python on FC11 box. We were able to > connect and execute a select statement on a remote mysql machine, but > the delete, insert and update

[BangPypers] Fwd: Python coders for Haiti disaster relief -Web2Py

2010-01-16 Thread Shivaraj M S
-- Forwarded message -- From: Peter Clarke Date: Sat, Jan 16, 2010 at 8:07 PM Subject: [SciPy-dev] Python coders for Haiti disaster relief To: scipy-...@scipy.org, scipy-u...@scipy.org, numpy-discuss...@scipy.org Apologies for off topic posting but I think this in an important pr

Re: [BangPypers] Interesting Read

2010-01-30 Thread Shivaraj M S
NULL = None return NULL #Not implemented i = 1 #Thanks Adam ... LoL :) -- View this message in context: http://old.nabble.com/Interesting-Read-tp27386589p27389587.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. _

Re: [BangPypers] how the file rc.local and command update-rc.d are related

2010-02-13 Thread Shivaraj M S
On debian /etc/init.d is the directory for common user startups. http://www.debian.org/doc/FAQ/ch-customizing.en.html -- View this message in context: http://old.nabble.com/how-the-file-rc.local-and-command-update-rc.d-are-related-tp27573314p27575057.html Sent from the BangPypers - Bangalore

Re: [BangPypers] Calling Python script from C++.

2010-03-03 Thread Shivaraj M S
if this thread is still active - instead of passing the argument , probably the argument can be extracted from a temporary file/buffer. a small code can be inserted to the python code sent as argument to PyRun_SimpleString() to read it. steve-391 wrote: > > Hi, > > On 02/25/2010 07:32 PM, lak

Re: [BangPypers] [HELP] Connectivity of Python with Oracle in Linux

2008-04-24 Thread Shivaraj M S
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 f