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__
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
That's a very nice suggestion. Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
uot;hi" , v
if __name__ == "__main__":
obj = A("sh")
obj(6)
-----
output:
--
hi 6
thanks,
ravi
--
https://mail.python.org/mailman/listinfo/python-list
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
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
>
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
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
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
> 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
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
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
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
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(
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
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
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
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
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
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
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
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
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
I understand it now. Thanks for the responses.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
;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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
val method? JSON method? Some third method?
[I am newbie so interested. Please to excuse!!]
--
Ravi
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
Mark Lawrence question.
--
Ravi
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
[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
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/299412
--
http://mail.python.org/mailman/listinfo/python-list
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
> 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
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
> '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
> 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
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
> 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
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
> 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
>
> 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
[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
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
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
> 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
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
> 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
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
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 \
> >
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
> 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
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
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
> 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
> 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
> 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
> 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
> 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
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
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
> 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
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
> 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
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
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
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
>
>
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
[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",
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
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
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
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
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.
> >
> &
> 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 - 100 of 280 matches
Mail list logo