Re: llvm vs. parrot

2009-04-11 Thread Carlos Ribeiro
of sense years ago, but given today's compiler + language support + virtual machine technology, it seems that it has fallen behind. But that's just my $0.02 worth. -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: c

Re: *.python.org broken?

2009-01-26 Thread Carlos Ribeiro
all the traffic for that prefix. That's more common than people realize (specially nowadays when countries such as Pakistan try to block domains by messing with BGP). Carlos Ribeiro On Sun, Jan 25, 2009 at 11:44, Cousin Stanley wrote: > > > Is anybody else having trouble accessi

Re: Web framework

2005-03-14 Thread Carlos Ribeiro
mplement the ZODB 'protocol' over a SVN backend... not sure about how things such as the authentication system would be mapped though. But it's an intriguing idea. -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.

Re: Web framework

2005-03-10 Thread Carlos Ribeiro
small objects to serve. This usually means static content (icons & small gif files), and can be greatly accelerated by running CherryPy under a caching frontend - either Apache, or even squid in web acceleration mode work just fine. While you are at it, check also this page: http://www.cherrypy.org

Re: Big development in the GUI realm

2005-02-09 Thread Carlos Ribeiro
d emphasis > > that this is an impersonal/generic "you" I reference) might be able to > > argue an exemption from the QT license. > > So maybe it's time to resurrect anygui, maybe in a simplified version > which can only interface to, say, PyQt or Tkinter -- &#

Re: empty classes as c structs?

2005-02-09 Thread Carlos Ribeiro
ope'. > > Even though we'll probably end up dropping the last couple as overengineering > things for the first pass, they're still interesting ideas to kick around. Another idea, maybe even more distantly related but still worthy keeping in mind: the 'named tuples' th

Re: empty classes as c structs?

2005-02-08 Thread Carlos Ribeiro
gs_ as opposed to lookups isn't clear though). Good point. The name 'namespace' kind of imples chaining, in the usual Pythonic sense... But I feel that by splitting this into two types (namespace & bunch) we may be making things overly complicated, and losing some of the power o

Re: empty classes as c structs?

2005-02-07 Thread Carlos Ribeiro
On Mon, 07 Feb 2005 13:31:20 -0700, Steven Bethard <[EMAIL PROTECTED]> wrote: > Carlos Ribeiro wrote: > > On Mon, 07 Feb 2005 11:50:53 -0700, Steven Bethard > > <[EMAIL PROTECTED]> wrote: > > > >>Michael Spencer wrote: > >> > >>>We

Re: empty classes as c structs?

2005-02-07 Thread Carlos Ribeiro
w should attributes with different values be > combined?), I don't think Bunch/Namespace should have an __add__. For entirely unrelated reasons I did it for a bunch-like class of mine, and called it 'merge'. For this particular application it was a better name than update and appe

Re: empty classes as c structs?

2005-02-05 Thread Carlos Ribeiro
#x27;bag' name, including a recipe in Python. A bag is an arbitrary collection of objects. It's similar to a set. The cookbook code is at: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/259174 -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blo

Re: empty classes as c structs?

2005-02-05 Thread Carlos Ribeiro
where this will lead us. Other related problems are named tuples, and ordered attribute access. I deal with the later in MetaTemplate, but the former is out of scope for the library. In the long term, I wish Python grows a true record type. The semantic differences between records and

Re: empty classes as c structs?

2005-02-05 Thread Carlos Ribeiro
rate branches of the if statement, you can as well use the if inside the class statement. It's perfectly valid. Of course, one still has to feed it with the 'with_spam' argument - but if 'with_spam' is a global, or if the class statement wrapped inside a function that def

Re: Persistence design [was: RE: OT: why are LAMP sites slow?]

2005-02-04 Thread Carlos Ribeiro
tyle entries. It's filesystem based, fast (the website can use the working copy for nearly everything) and allows for versioning - something that its difficult to implement properly with low-end RDBMSs. It looks promising :-) -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: [EMAIL PROTECTED] mail: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: pylibpcap and multiple threads

2005-01-24 Thread Carlos Ribeiro
not sure if the libpcap itself is supposed to be used this way - with multiple instances - but I assume that it should work (I never tried to open several instances of tcpdump at the same time). Also, check these links also, as they may be helpful to you: http://libdnet.sourceforge.net/ http://o

Re: The best way to do web apps with Python?

2005-01-09 Thread Carlos Ribeiro
7;s also natively multi-threaded, and supports advanced stuff such as gzip compression on the fly and XMLRPC. Disclaimer: I'm a contributor to CherryPy, so I'm biased. But I had evaluated both Karirgel and Quixote before settling up on CherryPy, and I see no reason to change

Re: python3: 'where' keyword

2005-01-09 Thread Carlos Ribeiro
t(): > pass Interesting. It solves some of the issues with chosing a clear syntax for "design by contract" and other similar features that were being debated lately. I also thought about his one: ! def foo(x=calculate_default_value()): ! pass ! where: ! def calculate_

Re: "A Fundamental Turn Toward Concurrency in Software"

2005-01-08 Thread Carlos Ribeiro
timized, and at least as fast (in the same order of magnitude, let's say) as any other competitive environment available. By native, it means that it has to be included in the standard distribution, and has to be as transparent and convenient as possible. In other words, it has to feel like a nati

Re: python3: 'where' keyword

2005-01-08 Thread Carlos Ribeiro
would lead to elegant & readable code, but there are still lots of things to consider: exception handling, fast name lookup in the "where" block, access to symbols outside the "where" block, just to name a few. -- Carlos Ribeiro Consultoria em Projetos blog:

Re: Recent infoworld column

2005-01-08 Thread Carlos Ribeiro
nd so are the countless other unsung heroes of open source. For solving a host of vexing problems with quiet competence, and for doing it in ways that invite others to stand on their shoulders, I salute them all. """ That's recognition. Wow. -- Carlos Ribeiro Cons

Re: Python evolution: Unease

2005-01-06 Thread Carlos Ribeiro
On Thu, 06 Jan 2005 22:11:22 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Carlos Ribeiro wrote: > > Couldn't a better document-writing interface be implemented? > > Such as: > http://www.python.org/moin/Documentation > > Or AMK's annotatable docs: &g

Re: Python evolution: Unease

2005-01-06 Thread Carlos Ribeiro
; > The only problem I see is that it is not integrated with the official > docs, but this is a > minor issue, I think. The docs are great, but it took me some time to find them out after searching inside Python docs. This is not a minor issue IMHO. -- Carlos Ribeiro Consultoria

Re: Python evolution: Unease

2005-01-05 Thread Carlos Ribeiro
On Wed, 5 Jan 2005 19:25:37 +0100, Alex Martelli <[EMAIL PROTECTED]> wrote: > Carlos Ribeiro <[EMAIL PROTECTED]> wrote: >... > > > - IDE: Better than what? Than IDLE? Than Eclipse? Than SPE? Than > > > Pythonwin? > > > > I would like to s

Re: Python evolution: Unease

2005-01-05 Thread Carlos Ribeiro
, at some point in the future, be included in the stdlib... why not give these people some help, easing the integration? A recipe, or some code that can be provisionally included in Numarray itself (as a submodule), and then later migrated to the CSV module... it does make sense in the long run.

Re: How can engineers not understand source-code control?

2005-01-04 Thread Carlos Ribeiro
On Tue, 04 Jan 2005 15:52:03 +, Mark Carter <[EMAIL PROTECTED]> wrote: > I'm thinking that the I-Ching is a vast untapped resource for > programming wisdom, plus it makes it funny. LOL! +1 QOTW! -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogsp

Re: Python evolution: Unease

2005-01-04 Thread Carlos Ribeiro
ut it would solve the problem. > - Standard widget/windows toolkit: More standard than Tk? I may be wrong, but I think that most business developers expect more than Tk is able to offer... Canvas is great, but anyone who used more advanced toolkits (such as the ones available on Delphi, Java,

Re: Boo who? (was Re: newbie question)

2004-12-21 Thread Carlos Ribeiro
, as Aahz has pointed out before, please don't be afraid of spam and insert a real email address so we can at least direct our responses to you. -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: [EMAIL PROTECTED] m

Re: MIDI library recommendations, please?

2004-12-20 Thread Carlos Ribeiro
would simulate the timing of a rythym guitar as the right hand strum the strings. I would like to avoid the weird "piano with guitar sound" that happens when you simply play a chord, with all strings being strum at the same time. It's stopped now, but I keep promising that I'll

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Carlos Ribeiro
ion scenario, I would recommend installing each application as a subtree of the main site: http://myserver:8000/app1, http://myserver:8000/app2, and so on. It is possible to build it in such a way that you can update a part of the site without the need to bring it down, just by reloading the module and r

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Carlos Ribeiro
check Quixote or Snakelets. All three are much lighter than Zope. CherryPy in particular is extremely light and easy to work with, and includes a reasonably powerful embedded Python-based webserver; it's not Apache, but it's much easier to set up. And all three options are free. --

Re: Python mascot proposal

2004-12-16 Thread Carlos Ribeiro
nal message on the topic, you can find it on python-dev articles. It`s recenet -- possibly less than one week old. He seemed to be sincerely concerned about it, having read an article published at some prestigious academic journal (something from ACM or IEEE, I think). If the BDFL wrote

Re: Python mascot proposal

2004-12-16 Thread Carlos Ribeiro
ther others, as this is really off-topic there. As far as I know, Python does not have a official contact for marketing issues. Maybe if just need to keep going with the discussion here, until someone who really knows the Python Ways "buys" the idea. And finally, Dimitri - congratulatio

Re: Flow based programming & python coding style

2004-12-15 Thread Carlos Ribeiro
On Wed, 15 Dec 2004 15:16:44 GMT, Jp Calderone <[EMAIL PROTECTED]> wrote: > > > On Wed, 15 Dec 2004 12:30:07 -0200, Carlos Ribeiro <[EMAIL PROTECTED]> wrote: > >Hi, > > > > A friend of mine passed me some links about a great concept (not new > &

Flow based programming & python coding style

2004-12-15 Thread Carlos Ribeiro
ity for Python, specially with a good business framework to support its application. -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: [EMAIL PROTECTED] mail: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Help beautify ugly heuristic code

2004-12-08 Thread Carlos Ribeiro
in their names; however, exact identification either by a match or a regular expression is very difficult. I'm willing to try it, but first, more data is needed. -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail:

Re: pre-PEP generic objects

2004-12-06 Thread Carlos Ribeiro
tation, don't you think? -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: [EMAIL PROTECTED] mail: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Quixote+Nevow+LivePage

2004-12-06 Thread Carlos Ribeiro
that I'm doing on my "copius" free time. Please don't hold your breath for it. If that's not helpful to you, I'm sorry. -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: [EMAIL PROTECTED] mail: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: string slicing

2004-12-05 Thread Carlos Ribeiro
a sane way :-) making "is" unnecessary most of the time. -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: [EMAIL PROTECTED] mail: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Quixote+Nevow+LivePage

2004-12-04 Thread Carlos Ribeiro
). A clever hack -- a "client-pull" model at its best. IOW: as far as the server is concerned, if it supports XMLRPC, then it's possible to implement something similar to LivePage. -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pyth

Re: Quixote+Nevow+LivePage

2004-12-04 Thread Carlos Ribeiro
On Sat, 04 Dec 2004 17:46:02 GMT, Jp Calderone <[EMAIL PROTECTED]> wrote: > On Sat, 4 Dec 2004 15:40:44 -0200, Carlos Ribeiro <[EMAIL PROTECTED]> wrote: > > > >On Sat, 04 Dec 2004 16:17:06 GMT, Jp Calderone <[EMAIL PROTECTED]> wrote: > > > I haven&

Re: HTTP response code

2004-12-04 Thread Carlos Ribeiro
-September/000814.html There was a discussion on the WebSig about adding support for HEAD requests on urllib2 (they were still not implemented at that time, three months ago). Perhaps there is a patch somewhere for it... -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blog

Re: Audio interviews of Guido or other Python advocates?

2004-12-04 Thread Carlos Ribeiro
t; Guido, the bots > > a bot-owned horse is featured on this DVD: > > http://www.discshop.se/LIVE/shop/ds_produkt.php?lang=&id=39726 > > Nice to see that you didn't lose your sense of humour. BTW, do bots have a sense of humour? :-) -- Carlos Ribeiro Consultoria e

Re: pre-PEP generic objects

2004-12-03 Thread Carlos Ribeiro
ith the generic and simply receive notifications, or even share the references to its internal attributes (btw, Python descriptors & properties are incredibly useful in this case). Extending it even further -- the observed object could accept modifications from its observers, although in this case we

Re: pre-PEP generic objects

2004-12-03 Thread Carlos Ribeiro
cal (probably for reasons deeply rooted in a bad academic experience :-), that may be a big "turn off". -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: [EMAIL PROTECTED] mail: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: module imports and memory usage

2004-12-01 Thread Carlos Ribeiro
llected? Just wondering... -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: [EMAIL PROTECTED] mail: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: pre-PEP generic objects

2004-11-30 Thread Carlos Ribeiro
e' assignment interface. This assignment can be done by a method of the generic clas itself, according either to the names of the member of the generics, or the order of the tuple, depending on the scenario. For now, that's all that I have to contribute into this discussion. There's