Extending dict (dict's) to allow for multidimensional dictionary

2011-03-05 Thread Ravi
I can extend dictionary to allow for the my own special look-up tables. However now I want to be able to define multidimensional dictionary which supports look-up like this: d[1]['abc'][40] = 'dummy' and if d[1] and d[1][abc] raise KeyError just create them. for d[1] I can override __getitem__

Re: Extending dict (dict's) to allow for multidimensional dictionary

2011-03-05 Thread Ravi
I found a solution here: http://parand.com/say/index.php/2007/07/13/simple-multi-dimensional-dictionaries-in-python/ Please tell how good is it? -- http://mail.python.org/mailman/listinfo/python-list

Re: Extending dict (dict's) to allow for multidimensional dictionary

2011-03-06 Thread Ravi
That's a very nice suggestion. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Cluto like library for Python

2011-03-06 Thread Ravi
I like Cluto as a data clustering software a lot. But its library binding is available only in C. Is there any python library which is similar to Cluto? -- http://mail.python.org/mailman/listinfo/python-list

help in understanding the stackless code

2015-06-18 Thread ravi
hi, I am new to python and need to know why the calling of switch(1) invokes the function "listen" twice in the below program? import stackless class EventHandler: def __init__(self,*outputs): if outputs==None: self.outputs=[] else: self.outputs=list

Re: help in understanding the stackless code

2015-06-18 Thread ravi
at 5:45:08 PM UTC+5:30, MRAB wrote: > On 2015-06-18 08:41, ravi wrote: > > hi, > > I am new to python and need to know why the calling of switch(1) invokes > > the function "listen" twice in the below program? > > > > > > > > import stackles

python program without stackless.run()

2015-06-18 Thread ravi
uot;hi" , v if __name__ == "__main__": obj = A("sh") obj(6) ----- output: -- hi 6 thanks, ravi -- https://mail.python.org/mailman/listinfo/python-list

how to dump tasklets status in python

2015-06-18 Thread ravi
hi, I have a complex python program running 100 tasklets simultaneously. I want to take dump of all the running tasklets including their current status and back trace at the time of exception. Can any one let me know how can this be done ? Thanks, ravi -- https://mail.python.org/mailman

Re: python program without stackless.run()

2015-06-18 Thread ravi
On Friday, June 19, 2015 at 1:41:36 AM UTC+5:30, Ian wrote: > On Thu, Jun 18, 2015 at 1:47 PM, ravi wrote: > > I could not understand how the below program executes function "fun" > > without calling stackless.run() in the program? Here "fun" runs as a >

Difference between Python 2.2.2 and Python 2.5

2009-01-18 Thread Ravi
I am developing for PyS60 1.4.4 which supports Python 2.2.2 while what I know is Python 2.5 . Can you please tell me differences between the two so that I can save myself from incompatible code. -- http://mail.python.org/mailman/listinfo/python-list

Re: Difference between Python 2.2.2 and Python 2.5

2009-01-19 Thread Ravi
On Jan 18, 8:44 pm, Steven D'Aprano wrote: > On Sun, 18 Jan 2009 07:30:52 -0800, Ravi wrote: > > I am developing for PyS60 1.4.4 which supports Python 2.2.2 while what I > > know is Python 2.5  . > > > Can you please tell me differences between the two so th

Byte oriented data types in python

2009-01-24 Thread Ravi
I have following packet format which I have to send over Bluetooth. packet_type (1 byte unsigned) || packet_length (1 byte unsigned) || packet_data(variable) How to construct these using python data types, as int and float have no limits and their sizes are not well defined. -- http://mail.python

Re: Byte oriented data types in python

2009-01-25 Thread Ravi
> Take a look at the struct and ctypes modules. struct is really not the choice. it returns an expanded string of the data and this means larger latency over bluetooth. ctypes is basically for the interface with libraries written in C (this I read from the python docs) -- http://mail.python.org

Re: Byte oriented data types in python

2009-01-25 Thread Ravi
On Jan 25, 12:52 am, "Martin v. Löwis" wrote: > > packet_type (1 byte unsigned) || packet_length (1 byte unsigned) || > > packet_data(variable) > > > How to construct these using python data types, as int and float have > > no limits and their sizes are not well defined. > > In Python 2.x, use the

Forwarding keyword arguments from one function to another

2009-02-22 Thread Ravi
The following code didn't work: class X(object): def f(self, **kwds): print kwds try: print kwds['i'] * 2 except KeyError: print "unknown keyword argument" self.g("string", **kwd

Re: Forwarding keyword arguments from one function to another

2009-02-22 Thread Ravi
I am sorry about the typo mistake, well the code snippets are as: # Non Working: class X(object): def f(self, **kwds): print kwds try: print kwds['i'] * 2 except KeyError: print "unknown keyword argument" self.g("string", kwds) def g(self, s, **kwds): print s print

MRO inconsistency: why?

2008-10-08 Thread Ravi
Why the following code gives inconsistent method resolution order error: class X(object): x = 4 def f(self): print 'f in X' print dir(X) X.g(self) def g(self): print 'g in X' class Y(object, X): def g(

Re: Forwarding keyword arguments from one function to another

2009-02-25 Thread Ravi
Thnak you all. > In the future, explain "didn't work". > Wrong output? give actual (copy and paste) and expected. > Error message? give traceback (copy and paste). I will be careful. -- http://mail.python.org/mailman/listinfo/python-list

Make a python property with the same name as the class member name

2009-02-27 Thread Ravi
Is it possible in python to create a property with the same name as the member variable name of the class. e.g. Class X: ... self.i = 10 # marker ... property(fget = get_i, fset = set_i) Please tell me how I can do so. Because if I do so, for the statement at marker I get stack ov

Imports in python are static, any solution?

2009-04-13 Thread Ravi
foo.py : i = 10 def fi(): global i i = 99 bar.py : import foo from foo import i print i, foo.i foo.fi() print i, foo.i This is problematic. Well I want i to change with foo.fi() . -- http://mail.python.org/mailman/listinfo/python-list

Re: Imports in python are static, any solution?

2009-04-16 Thread Ravi
iplyXbyA(32) > > > Keeps your vars in a safer easier to handle, debug, and change kinda way > > Good luck > > > AJ > > > -Original Message- > > From: python-list-bounces+aj=xernova@python.org > > [mailto:python-list-bounces+aj=xernova@pytho

Choose: class with static methods or module with functions

2009-04-16 Thread Ravi
I have to create a few helper/utility application-wide functions. There are two options: 1. Create a Utility class and all functions as static method of that class. 2. Create a module, utility.py and member functions. Which is a better approach. My personal view is that I should create a module

Re: how to generate random numbers that satisfy certain distribution

2010-01-23 Thread Ravi
On Jan 23, 10:37 pm, thinke365 wrote: > such as uniform distribution, Normal distribution or poisson distribution. > is there any package that can be used to generate such random numbers. > > -- > View this message in > context:http://old.nabble.com/how-to-generate-random-numbers-that-satisfy-cer

SQLite is quite SQL compliant

2010-10-02 Thread Ravi
The documentation of the sqlite module at http://docs.python.org/library/sqlite3.html says: "...allows accessing the database using a nonstandard variant of the SQL..." But if you see SQLite website they clearly say at http://sqlite.org/omitted.html that only very few of the SQL is not implement

Re: Popen Question

2010-11-04 Thread Ravi
On Nov 4, 7:06 pm, moogyd wrote: > Hi, > I usually use csh for my simulation control scripts, but these scripts > are becoming more complex, so I plan to use python for the next > project. > To this end, I am looking at subprocess.Popen() to actually call the > simulations, and have a very basic q

sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread Ravi
try this: import sqlite3 con = sqlite3.connect("any string here") and there is no error reported. You will get an error you do some operations on the database which is confusing. I think sqlite3 should change this behavior. -- http://mail.python.org/mailman/listinfo/python-list

Re: sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread Ravi
I understand it now. Thanks for the responses. -- http://mail.python.org/mailman/listinfo/python-list

***************************Hai***************************

2011-04-06 Thread Ravi Prasath
http://www.workfrominter.com/ http://www.workfrominter.com/ http://girlsdailysex.blogspot.com/ http://girlsdailysex.blogspot.com/ Just See What Is this Website Are Msg For You -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python weak on the web side?

2005-11-20 Thread Ravi Teja
Too many options. Google: python web frameworks The first couple of links will point you to enough resources. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there an equivalent to Java Webstart in Python?

2005-12-05 Thread Ravi Teja
Hi Kent, Too complicated example :-). Jythonc works just fine to create a regular jar file that you can reference in your jnlp file. Ravi Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding Python in other programs

2005-08-27 Thread Ravi Teja
http://www.python.org/windows/win32com/QuickStartServerCom.html If you are using ActivePython, that tutorial is included (PyWin32 documentation -> Python COM -> Overviews) along with the needed win32all module. -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding Python in other programs

2005-08-28 Thread Ravi Teja
Greg, I don't recall touching VB6 in 4 years. From whatever I remember, you are trying to do early binding (trying to find a registered type library). You need to do late binding instead (use CreateObject) to dynamically instantiate the COM object. Ravi Teja. -- http://mail.python.org/ma

Re: Extend Python

2005-09-01 Thread Ravi Teja
SIP is not a commercial product and is released on a different license than PyQt. >From the SIP docs (http://www.river-bank.demon.co.uk/docs/sip/sipref.html#license) 1.1 License SIP is licensed under the same terms as Python itself. SIP places no restrictions on the license you may apply to the

Concatenate string list to number list to form title - Logic needed.

2013-12-16 Thread Ravi Prabakaran
;End'] a = [[1,2,3,4], [5,6,7,8]] Expected Result : ( list of strings ) ['Start - 3 , End - 4', 'Start - 7 , End - 8'] Note : First 2 values from each list should be ignored. Could anyone please guide me with best solution without loops ? Thanks Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Data Analysis Recommendations

2016-01-01 Thread Ravi Narasimhan
that beginners and casual users would need. There is usually a package that will do some job but one first has to find it. A lot of power can also be located deep within a hierarchy of dots: package.something.subsomething.subsubsomething ... Some documentation sets are very complete, others aren't. I often have th

Re: JUST GOT HACKED

2013-10-01 Thread Ravi Sahni
On Tuesday, October 1, 2013 7:54:35 PM UTC+5:30, Daniel Stojanov wrote: > 2) I just signed up the this mailing list. To the regulars, is this what > normally happens on this list? > > 3) I'm a bit late to the party. Is Nikos a real sysadmin or is this some > horrible inside joke I don't get? Th

Re: JUST GOT HACKED

2013-10-02 Thread Ravi Sahni
But still they keep answering and answering!! Makes no sense [Sorry -- old programmer (C,C++ etc) -- new to python. If there is some secret to this list's culture that I missed will be pleased to be educated! ] -- - Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: JUST GOT HACKED

2013-10-02 Thread Ravi Sahni
On Wed, Oct 2, 2013 at 12:54 PM, Ben Finney wrote: > > Ravi Sahni writes: > > > So Ben,Antoon you are saying that [demands for off-topic help with > > demonstrated history of unwillingness to learn] is a minor problem […] > > Whereas [baiting and enabling that beh

Re: JUST GOT HACKED

2013-10-02 Thread Ravi Sahni
On Wed, Oct 2, 2013 at 1:21 PM, Antoon Pardon wrote: > Op 02-10-13 09:02, Ravi Sahni schreef: >> On Wed, Oct 2, 2013 at 12:19 PM, Ben Finney >> wrote: >>> Antoon Pardon writes: >>> >>>> Op 02-10-13 00:06, Ben Finney schreef: >>>>> T

Re: Lowest Value in List

2013-10-02 Thread Ravi Sahni
I > would be helpful enough. > > Thanking in Advance, > Subhabrata. > > > -- > https://mail.python.org/mailman/listinfo/python-list [Disclaimer: Beginner myself] The heapq module has merge Since the lists are already sorted what's wrong with just this? list(merge(list1, list2, list3))[:10] -- - Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: Can arbitrary code run in a server if someone's know just the MySQL password?

2013-10-02 Thread Ravi Sahni
needs of needy persons. I am also needy. Please be kind to me as well: There is poverty and injustice in the world. Why?? I NEED to know People suffer and die. How come? I MUST know And there are morons... Why?? PLEASE TELL -- Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: JUST GOT HACKED

2013-10-02 Thread Ravi Sahni
On Wed, Oct 2, 2013 at 10:14 PM, wrote: > On 10/02/2013 01:02 AM, Ravi Sahni wrote: >> On Wed, Oct 2, 2013 at 12:19 PM, Ben Finney >> wrote: >>> Antoon Pardon writes: >>> >>>> Op 02-10-13 00:06, Ben Finney schreef: >>>> > T

Re: Goodbye: was JUST GOT HACKED

2013-10-02 Thread Ravi Sahni
, but a mess python -- looks cleaner and well-designed (and not for heavyweight phds like FP languages like haskell ) So I finally went with python Now given the mess out here I need to rethink anyway! -- Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: Goodbye: was JUST GOT HACKED

2013-10-03 Thread Ravi Sahni
On Thu, Oct 3, 2013 at 5:05 PM, Steven D'Aprano wrote: > On Thu, 03 Oct 2013 09:21:08 +0530, Ravi Sahni wrote: > >> On Thu, Oct 3, 2013 at 2:43 AM, Walter Hurry >> wrote: >>> Ding ding! Nikos is simply trolling. It's easy enough to killfile him >>> b

Re: Tail recursion to while iteration in 2 easy steps

2013-10-03 Thread Ravi Sahni
urn add; if > 0 jump to internal return address > > 4b An example like quicksort in which one call is a tail call can be > optimized with your optimization and the other, inner one with 4a above I am interested in studying more this 'whole spectrum of optimizations' An

Re: howto check programs and C libraries

2013-10-04 Thread Ravi Sahni
odule, > and I think it could do the job (when properly subclassed). > Do you have a better idea? I have ruby on rails friends who speak of capistrano and puppet. google puppet python gives me : http://stackful-dev.com/cuisine-the-lightweight-chefpuppet-alternative If you find it good I shall

Re: how to read list from file

2013-10-06 Thread Ravi Sahni
t;> >> >> >> -tkc > > that didn't work. printing it looks like the list because it's the input, > but try printing len(repr(ast.literal_eval(s))). It should give 3, but it > gives 72 (number of chars). Please to remove the repr and try again? Thank you! -- Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: how to read list from file

2013-10-06 Thread Ravi Sahni
val method? JSON method? Some third method? [I am newbie so interested. Please to excuse!!] -- Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: Goodbye: was JUST GOT HACKED

2013-10-07 Thread Ravi Sahni
On Mon, Oct 7, 2013 at 5:56 PM, Walter Hurry wrote: > On Thu, 03 Oct 2013 11:35:00 +, Steven D'Aprano wrote: > >> On Thu, 03 Oct 2013 09:21:08 +0530, Ravi Sahni wrote: >> >>> On Thu, Oct 3, 2013 at 2:43 AM, Walter Hurry >>> wrote: >>>> Din

Re: Formal-ity and the Church-Turing thesis

2013-10-07 Thread Ravi Sahni
ry confusion Sir!!! > > And so when you understand that TMs are just a kind of mathematical rewrite > system (as is λ calculus as are context free grammars as is school arithmetic > etc etc) you will not find the equivalence so surprising -- Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: Formal-ity and the Church-Turing thesis

2013-10-08 Thread Ravi Sahni
On Tue, Oct 8, 2013 at 1:20 PM, Steven D'Aprano wrote: > On Tue, 08 Oct 2013 10:46:50 +0530, Ravi Sahni wrote: > >> On Tue, Oct 8, 2013 at 8:47 AM, rusi wrote: >>> I can only say how ironic it sounds to someone who is familiar with the >>> history of o

Re: Formal-ity and the Church-Turing thesis

2013-10-08 Thread Ravi Sahni
Mark Lawrence question. -- Ravi -- https://mail.python.org/mailman/listinfo/python-list

Re: Visual Python, really "Visual"?

2005-12-13 Thread Ravi Teja
No! Visual Python does not have a WYSIWYG GUI Builder. Boa Constructor is the closest. PythonCard is another contender. Once, XAML comes in, this will become less of an issue. -- http://mail.python.org/mailman/listinfo/python-list

Re: Still Loving Python

2005-12-13 Thread Ravi Teja
Nothing beats Delphi for the raw design speed and choices for GUI development. .NET is another good option. The good news is you don't have to loose their benefits just because we chose Python. Python for Delphi works quite well to get you the best of both worlds. I develop the app in Python as a l

Re: scrape url out of brackets?

2005-12-24 Thread Ravi Teja
Regular Expressions are the most common way. http://docs.python.org/lib/module-re.html HTML parser is another http://docs.python.org/lib/module-htmllib.html -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE for Python ?

2006-01-01 Thread Ravi Teja
[EMAIL PROTECTED] wrote: > I'm getting realy tired of learning new languages. > And especially frustrated at the 'syntax errors' when switching > between them. > > There are basically only a few common concepts needed for > all the languages. Hence linux's p2c: Pascal to C translator. > > A good

Re: Re.'Compressing folders in Windows using Python'

2006-01-02 Thread Ravi Teja
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/299412 -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for Lazarus (not Delphi)

2006-07-23 Thread Ravi Teja
Uwe Grauer wrote: > Does anyone know if something similar to Python for Delphi > does exist for lazarus? > > Thanks for any pointers, > Uwe Python for Delphi does support Lazarus since Version 3.29 http://mmm-experts.com/VersionHistory.aspx?ProductId=3 -- http://mail.python.org/mailman/li

Re: python and JMS

2006-07-30 Thread Ravi Teja
> I am looking to use python to talk to JMS. Can some please point me to > such resources if this is possible. JPype http://jpype.sourceforge.net/ Jython http://www.jython.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: python and JMS

2006-07-30 Thread Ravi Teja
Alan Kennedy wrote: > [tksri2000] > > I am looking to use python to talk to JMS. Can some please point me to > > such resources if this is possible. > > PyHJB is the python-to-JMS gateway. ... via HJB, the HTTP JMS bridge. > http://hjb.python-hosting.com/ > > HJB (HTTP JMS Bridge) > http://hjb.ber

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread Ravi Teja
> 'Clever is not considered a compliment in Python.' (don't know where I > read that...) On a similar note. "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." -- Br

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread Ravi Teja
> Is this kind of cleverness what is usually known as "magic"? > I suspect that this has something to do with it, but not completely > sure... :-). It must be. Now Django has a "magic removal branch". -- http://mail.python.org/mailman/listinfo/python-list

Re: New to Python-- Help

2006-08-08 Thread Ravi Teja
Philippe Martin wrote: > John & Mary Cook wrote: > > > I just installed Python on Windows XP Pro. When I enter 'python' at the > > >>> prompt in Pythonwin IDE I get the following: > > > > Traceback (most recent call last): > >File "", line 1, in ? > > Name Error: name 'python' is not defined

Re: The decentralized nature of the Python community is driving me crazy

2006-08-09 Thread Ravi Teja
> But I must say the one thing I miss about Perl is my ability to stay on > top of all the latest modules and apps in one place: CPAN. With Python, > code is EVERYWHERE - people's local boxes, sourceforge, freshmeat, > codezoo, parnassus, etc, etc. Python CheeseShop is equivalent to CPAN http://ww

Re: Easy to use distributed system?

2006-08-13 Thread Ravi Teja
Jim Jones wrote: > I am looking for a system in Python that will easily allow me to distribute > processes across multiple systems?So, if I have a function 'foo', I'd > like to be able to call something along the lines of > > distribute(foo(x)) > > And have the system figure out which node is a

Re: recommended general-purpose string template packages?

2006-08-13 Thread Ravi Teja
> In general, I'm mainly interested in a template engine for dynamic web > pages but would like a general purpose one to avoid learning yet > another package for generating e-mail messages, form letters, source > code, whatever. > > In particular, does anyone have much experience with the Python >

Re: sqlite3 or mysqldb?

2006-08-18 Thread Ravi Teja
> To learn SQL SQLite should be enough - it has all the basics, just as > MySQL, while it doesn't require any server/client configuration > (encoding configuration in MySQL is real PITA). But if you want any > "serious SQL", go with any freely available *real SQL server*, like > Firebird or Postgre

Re: Text to MP3 using pyTTS - Non-programmer question

2006-08-19 Thread Ravi Teja
[EMAIL PROTECTED] wrote: > Thanks for the script. Are there any online python intrepreters? > > I'd like to play around with the script. I don't have access to my home > PC. You probably will have to wait till you get to yours. There were some AJAXian ones but I doubt that you will find a free (a

Re: How to catch these kind of bugs in Python?

2006-08-19 Thread Ravi Teja
asincero wrote: > Is there anyway to catch the following type of bug in Python code: > > message = 'This is a message' > # some code > # some more code > if some_obscure_condition: >nessage = 'Some obscure condition occured.' > # yet more code > # still more code > print message > > > In the ab

Re: What would be the best way to run python client in the background

2006-08-20 Thread Ravi Teja
gel wrote: > Hi > I have written a python client server app that keeps an eye on > processes starting and ending on a client and makes decision on what to > do based on information from the server end. I want to run the client > end of the app more or less invisibly (no console) on the XP clients

Re: What would be the best way to run python client in the background

2006-08-21 Thread Ravi Teja
> The reason for the a seperate persistant check is because it will be > used to enable software to be installed in whole lab of PCs but only > allow a predifined number to run the software at any time one time. > And then when a user stop using the software a licence will become > available to for

Re: Python Editor with Autocorrection

2006-08-21 Thread Ravi Teja
Laurentiu wrote: > hello! > > > i am searching for a free python editor with > autocorrection capabillities. > > for example:" the wrong setfocus() call to become > SetFocus(), etc." > > > thanks Python is a dynamic language, which means that methods that may not exist in your source code may spr

Re: text editor suggestion?

2006-08-21 Thread Ravi Teja
> I also just started using Scite, and I really like it, except I find its > syntax highlighting to be very inflexible. You aren't able to define > your own groups of words -- you have to use what's given, basically. One > thing I like about UltraEdit is that you simply define as many groups of > k

Re: text editor suggestion?

2006-08-22 Thread Ravi Teja
John Salerno wrote: > Ravi Teja wrote: > > > Stick to SciTE. It takes almost no learning effort and meets everyone > > of those requirements. As far as customerization goes, SciTE can be > > customerized quite well. In fact, it can even be scripted with Lua. You > &g

Re: text editor suggestion?

2006-08-23 Thread Ravi Teja
John Salerno wrote: > Ravi Teja wrote: > > > ??? > > > > In the same file, near the top. > > > > keywordclass.python=and assert break class continue def del elif \ > > else except exec finally for from global if import in is lambda None \ > >

Re: ADO with Python

2006-10-16 Thread Ravi Teja
Ralf wrote: > Is their anybody with xperience in using the both and can provide me with > some xamples. Googling for python ado returns this simple tutorial http://www.markcarter.me.uk/computing/python/ado.html COM access in Python is straight forward with win32all. -- http://mail.python.org/ma

Re: More Noob Questions

2006-10-19 Thread Ravi Teja
> 1) I'm also learning to program flash movies while I learn to do > python. How can one implement flash movies into their python code? Depending on what "implementing flash movies into Python code" means. Python and Flash can be complementary. You can develop the UI in Flash and have it talk to

Re: Rapid desktop application development

2006-10-19 Thread Ravi Teja
Stephen Eilert wrote: > Hi all, > > There has been much hype lately about web "megaframeworks", like > TurboGears, Django and Rails(Ruby side). Those are all fantastic > frameworks, nicely integrated so that the user can focus on solving his > problem, instead of doing all the scaffolding and fram

Re: Programming Language that is Spreadsheet/Table Based

2006-11-05 Thread Ravi Teja
Omar wrote: > I'm looking for a programming language or module that sorta looks and > feels like MS Excel (I love and think in tables), yet has the power and > open-endedness of python or javascript. I'm still pretty new to > python. PyCells http://pycells.pdxcb.net/ http://pycells.pdxcb.net/wiki

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Ravi Teja
> Personally, I've never gotten jpype to work. Is it just me, or is it > a troublesome install? > > Harry George > PLM Engineering Architecture It works fine for me now. However, I do recall having an issue a while ago (most likely me, rather than JPype). -- http://mail.python.org/mailman/listi

Re: Fancy GUI with Python

2006-05-28 Thread Ravi Teja
> Hi all. I just downloaded and installed the new Office suite from MS > with their new 'ribbon' based UI. I think it's pretty cool and AFT* > for a new UI paradigm. I hope it sticks. > Anyway, I'm wondering how to implement a gui like this with Python. I haven't seen their new Office suit (ap

Re: html 2 plain text

2006-05-28 Thread Ravi Teja
> i remember seeing this simple python function which would take raw html > and output the content (body?) of the page as plain text (no <..> tags > etc) http://www.aaronsw.com/2002/html2text/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Need C# Coding for MD5 Algorithm...

2006-05-28 Thread Ravi Teja
> I need C# code for Implementing MD5 Algorithm. So ask in a C# group. Python's is here http://docs.python.org/lib/module-md5.html > please Send... ITs URgent http://www.catb.org/~esr/faqs/smart-questions.html#urgent -- http://mail.python.org/mailman/listinfo/python-list

Re: How to access the content of notepad with Python?

2006-05-31 Thread Ravi Teja
> I have a software running on my computer that really looks like notepad > ( same interface, different name). I need to write a script that will > capture the content of this software --> the text written inside. > > Is it possible using win32 libs? any clue? http://www.openqa.org/pywinauto/ The

Re: New to Python: Do we have the concept of Hash in Python?

2006-06-02 Thread Ravi Teja
A.M wrote: > "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > A.M wrote: > > > >> This is my 1st day that I am seriously diving into Python and I have to > >> finish this application by the end of today. Maybe it wasn't a good idea > >> to choose the language that

Re: in python , could I accomplish the purpose that "a=Console.read()" used in C?

2006-06-05 Thread Ravi Teja
Bruno Desthuilliers wrote: > python a écrit : > > in python , could I accomplish the purpose that "a=Console.read()" used > > in C? > > > There's nothing like "Console.read()" in ansi-C. > He probably got it mixed up with C# which ( almost - Console.Read() ) has that. -- http://mail.python.or

Re: Python or Ajax?

2006-06-09 Thread Ravi Teja
> I've been hearing a ot about AJAX lately. I may have to build a web > application in the near future, and I was curoius: > > How does a web application that uses Python compare with one that uses AJAX? > > I've done some basic web page design with HTML and CSS, but never any > web applications. I

Re: Combining The Best Of Python, Ruby, & Java??????

2006-06-12 Thread Ravi Teja
Tim Daneliuk wrote: > So it is claimed: > > > http://www.infoq.com/news/Scala--combing-the-best-of-Ruby-;jsessionid=CC7C8366455E67B04EE5864B7319F5EC > > Has anyone taken a look at this that can provide a meaningful contrast > with Python? I find the language very interesting but it is not like

Re: Combining The Best Of Python, Ruby, & Java??????

2006-06-12 Thread Ravi Teja
> Ok, here's the Hello World example from the Scala website: > > object HelloWorld { > def main(args: Array[String]) = { > Console.println("Hello, world!") > } > } > > Opening and closing braces? > "def main(args: Array[String])"? > Console.println? > > About the only Pythonic thing I can s

Re: Combining The Best Of Python, Ruby, & Java??????

2006-06-13 Thread Ravi Teja
Diez B. Roggisch wrote: > > But semantically it is a proper functional language. The features may > > not attract Python users who might prefer Boo/Jython/IronPython. But it > > does offer something to disillusioned Groovy users. > > Are they disillusioned? Just wondering. Nah! Just a poor passin

Re: Combining The Best Of Python, Ruby, & Java??????

2006-06-13 Thread Ravi Teja
Luis M. González wrote: > Diez B. Roggisch wrote: > > > But semantically it is a proper functional language. The features may > > > not attract Python users who might prefer Boo/Jython/IronPython. But it > > > does offer something to disillusioned Groovy users. > > > > Are they disillusioned? Just

Re: code is data

2006-06-17 Thread Ravi Teja
Paddy wrote: > Anton Vredegoor wrote: > > With the inclusion of ElementTree (an XML-parser) in Python25 and recent > > developments concerning JSON (a very Pythonesque but somewhat limited > > XML notation scheme, let's call it statically typed XML) > > > > Your thoughts please. > > > > Anton > >

Re: code is data

2006-06-17 Thread Ravi Teja
Anton Vredegoor wrote: > With the inclusion of ElementTree (an XML-parser) in Python25 and recent > developments concerning JSON (a very Pythonesque but somewhat limited > XML notation scheme, let's call it statically typed XML) Python seems to > have reached a stage where it now seems to be possi

Re: Standard Yes / No Windows Dialog box creation

2006-06-17 Thread Ravi Teja
[EMAIL PROTECTED] wrote: > I found a way to create "Open File" or "Open Folder" windows dialog > boxes, but not to create an easier Yes / No dialog box... > Maybe someone has a solution for this? Assuming you are on MS Windows. import win32api, win32con win32api.MessageBox(0, "Question", "Title",

Re: code is data

2006-06-17 Thread Ravi Teja
BJörn Lindqvist wrote: > > Personally, I would like to see macros in Python (actually Logix > > succeeding is good enough). But I am no language designer and the > > community has no interest in it. When I absolutely need macros, I will > > go elsewhere. > > One must wonder, when is that? When do

Re: code is data

2006-06-18 Thread Ravi Teja
Paddy wrote: > Ravi Teja wrote: > > BJörn Lindqvist wrote: > > > > Personally, I would like to see macros in Python (actually Logix > > > > succeeding is good enough). But I am no language designer and the > > > > community has no interest in it. Whe

Re: code is data

2006-06-18 Thread Ravi Teja
Fredrik Lundh wrote: > Ravi Teja wrote: > > > Web frameworks, which seem to be the rage now in Python community could > > have benefited tremendously from Macro capabilities since they have a > > lot of boiler plate. > > they do? methinks you haven't done much

Re: code is data

2006-06-19 Thread Ravi Teja
BJörn Lindqvist wrote: > > > > community has no interest in it. When I absolutely need macros, I will > > > > go elsewhere. > > I *like* 1..5 (ada, ruby) instead of range(5). If I had macros, I would > > have done it myself for *my* code. > I think this example more is a symptom of a childish nee

Re: code is data

2006-06-19 Thread Ravi Teja
Kay Schluehr wrote: > Ravi Teja wrote: > > > People have however written various language interpreters (Scheme, > > Forth and yes, even Basic) in Python, just for kicks. Still does not > > make it a DSL language anymore than it makes C a DSL language. > > > &

Re: code is data

2006-06-20 Thread Ravi Teja
> Or... maybe to be more specific, the hard work later on goes into > *code*. If you are enhancing your model, you do so with methods on the > model classes, and those methods don't effect the DSL, they are just > "code". You create some raw XML in the beginning, but quickly it's > just a matter

  1   2   3   >