Re: Python too slow?

2008-01-10 Thread George Sakkis
standard used by millions; the spec is pretty much irrelevant (unless you're a compiler writer or language theorist). George -- http://mail.python.org/mailman/listinfo/python-list

Re: Pet Store

2008-01-08 Thread George Maggessy
Yeap. It is. I'm looking for something like that app. Smth that I could base my future developments on. On Jan 8, 1:47 am, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Mon, 07 Jan 2008 22:21:53 -0800, George Maggessy wrote: I'm an experience Java developer trying to learn Python. I

Re: TIOBE declares Python as programming language of 2007!

2008-01-07 Thread George Sakkis
On Jan 7, 9:27 am, Kay Schluehr [EMAIL PROTECTED] wrote: On Jan 7, 12:53 pm, Berco Beute [EMAIL PROTECTED] wrote: Cool! We knew it would happen one day :) What could be the reason? Python 3? Jython 2.2? Java's loss of sexiness? Python eats Perls lunch as a scripting language. Even

Re: Python's great, in a word

2008-01-07 Thread George Sakkis
to agree on a word or two that completes: The best thing about Python is ___. ... it's a pleasure to write *and* read. ... it keeps simple things simple and makes hard things doable. ... it's the language that sucks the least. George -- http://mail.python.org/mailman/listinfo/python-list

User Group

2008-01-07 Thread George Maggessy
Hi Guys, Is there a python user group in the bay area? Cheers, George -- http://mail.python.org/mailman/listinfo/python-list

Pet Store

2008-01-07 Thread George Maggessy
think that would help me to fill up some gaps in my learning process. Does anybody know any app like that? Cheers, George -- http://mail.python.org/mailman/listinfo/python-list

Re: Fate of itertools.dropwhile() and itertools.takewhile()

2007-12-30 Thread George Sakkis
and (maybe) easier to read but perhaps not as flexible and general. Regardless, it's a good example of takewhile/dropwhile. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Bizarre behavior with mutable default arguments

2007-12-30 Thread George Sakkis
-intuitive design choices. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Choosing a new language

2007-12-30 Thread George Neuner
On Fri, 28 Dec 2007 22:07:12 -0800 (PST), [EMAIL PROTECTED] wrote: Ada is airline/dod blessed. Airline blessed maybe. The DOD revoked its Ada only edict because they couldn't find enough Ada programmers. AFAIK, Ada is still the preferred language, but it is not required. George -- for email

Re: Choosing a new language

2007-12-28 Thread George Neuner
not everyone works in RT, but I can't possibly be alone in developing applications that are hard to restart effectively. That all said, online compilation such as in Lisp is only one of several ways of replacing running code. Whether it is the best way is open for debate. George -- for email reply

Re: 5 queens

2007-12-24 Thread George Sakkis
combs.py, line 54, in module for c in combinations(xrange(4), 3): print c File combs.py, line 12, in combinations for cc in combinations(seq[i+1:], n-1): TypeError: sequence index must be integer, not 'slice' George -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this a bug in int()?

2007-12-22 Thread George Sakkis
a fiction writer by any chance ? Nice story but I somehow doubt that the number of lines of the form name = 0x ever written in Python is greater than a single digit (with zero the most likely one). George -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a simple way to parse this string ?

2007-12-20 Thread George Sakkis
. Here's the relevant thread: http://preview.tinyurl.com/2aeswn. Note that the builtin eval() is around 5x faster than this parser, and from the statement above, 50x faster than the pyparsing solution. George -- http://mail.python.org/mailman/listinfo/python-list

Re: New+old-style multiple inheritance

2007-12-19 Thread George Sakkis
new style classes to worry about when the very standard library includes lots of legacy code. George -- http://mail.python.org/mailman/listinfo/python-list

Re: New+old-style multiple inheritance

2007-12-19 Thread George Sakkis
they are the 3rd party here ;-)) module. Even if it's technically possible and the change doesn't break other things, I'd rather not have to maintain a patched version of the stdlib. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Best idiom to unpack a variable-size sequence

2007-12-18 Thread George Sakkis
itertools import islice, chain, repeat def unpack(iterable, n, default=None): return islice(chain(iterable,repeat(default)), n) a, b, c = unpack(seq, 3) George -- http://mail.python.org/mailman/listinfo/python-list

ANN: csvutils 0.1

2007-12-15 Thread George Sakkis
csvutils is a single Python module for easily transforming csv (or csv- like) generated rows. The release is available at http://pypi.python.org/pypi/csvutils/0.1. Regards, George What is csvutils? The standard csv module is very useful for parsing tabular data in CSV

Re: About Rational Number (PEP 239/PEP 240)

2007-12-15 Thread George Sakkis
for rationals as for decimals (mainly money counting). George -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for Java programmer

2007-12-14 Thread George Sakkis
such framework as well. Looking forward for suggestions Python community! You may want to check out these first: http://dirtsimple.org/2004/12/python-is-not-java.html http://www.razorvine.net/python/PythonComparedToJava George -- http://mail.python.org/mailman/listinfo/python-list

Re: Job Offer: Python Ninja or Pirate!

2007-12-14 Thread George Sakkis
On Dec 14, 9:57 am, Stargaming [EMAIL PROTECTED] wrote: On Tue, 11 Dec 2007 08:57:16 -0800, George Sakkis wrote: Closer, but still wrong; for some weird reason, __import__ for modules in packages returns the top level package by default; you have to use the 'fromlist' argument

Re: Is a real C-Python possible?

2007-12-12 Thread George Sakkis
and time again people cared about some syntax for properties without any change so far. The result is a handful of different ways to spell out properties; python 2.6 will add yet another variation (http://mail.python.org/pipermail/ python-dev/2007-October/075057.html). George -- http

Re: Is a real C-Python possible?

2007-12-12 Thread George Sakkis
, it was too much ahead of its time.. who knows, it might revive on some 3.x version. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Is a real C-Python possible?

2007-12-12 Thread George Sakkis
._foo def fset(self, value): self._foo = value That's almost identical to a recipe I had written once upon a time, without requiring a syntax change: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/410698 George -- http://mail.python.org/mailman/listinfo/python-list

Re: Is a real C-Python possible?

2007-12-12 Thread George Sakkis
support for properties. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Is a real C-Python possible?

2007-12-12 Thread George Sakkis
On Dec 12, 2:23 pm, Chris Mellon [EMAIL PROTECTED] wrote: On Dec 12, 2007 12:53 PM, George Sakkis [EMAIL PROTECTED] wrote: On Dec 12, 1:12 pm, Christian Heimes [EMAIL PROTECTED] wrote: Kay Schluehr wrote: class A(object): foo = property: def fget(self

Re: efficient data loading with Python, is that possible possible?

2007-12-12 Thread George Sakkis
of garbage collection sounds kinda fishy. Posting some actual code usually helps; it's hard to tell for sure otherwise. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Job Offer: Python Ninja or Pirate!

2007-12-11 Thread George Sakkis
On Dec 10, 11:07 pm, Stargaming [EMAIL PROTECTED] wrote: On Mon, 10 Dec 2007 19:27:43 -0800, George Sakkis wrote: On Dec 10, 2:11 pm, Stargaming [EMAIL PROTECTED] wrote: On Mon, 10 Dec 2007 16:10:16 +0200, Nikos Vergas wrote: [snip] Problem: In the dynamic language of your choice

Re: Job Offer: Python Ninja or Pirate!

2007-12-10 Thread George Sakkis
,c.count(i))for i in set(c)) George -- http://mail.python.org/mailman/listinfo/python-list

Re: Python surpasses Perl in TIOBE index

2007-12-05 Thread George Sakkis
=-1l4=-1commit=Update George -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is not a good name, should rename to Athon

2007-12-04 Thread George Sakkis
than Python. And FYI, Google didn't start out with the popularity it enjoys today, it gained it *despite* the silly name. Thanks God it was created by geeks and not clueless PHBs like those that dismiss Python for its name. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Python surpasses Perl in TIOBE index

2007-12-04 Thread George Sakkis
), but this has more to do with Perl's fall than Python's increase: http://www.tiobe.com/tiobe_index/Perl.html. Even more amazing is the rate C++ is losing ground: http://www.tiobe.com/tiobe_index/C__.html George -- http://mail.python.org/mailman/listinfo/python-list

Re: Python surpasses Perl in TIOBE index

2007-12-04 Thread George Sakkis
On Dec 4, 11:07 am, Paul Rudin [EMAIL PROTECTED] wrote: George Sakkis [EMAIL PROTECTED] writes: Even more amazing is the rate C++ is losing ground: http://www.tiobe.com/tiobe_index/C__.html I don't really find surprising that low level languages lose ground at the expense of higher level

Re: Python is not a good name, should rename to Athon

2007-12-01 Thread George Sakkis
On Dec 1, 9:06 pm, Dennis Lee Bieber [EMAIL PROTECTED] wrote: Pythons are big, non-poisonous snakes good for keeping the rats out of a system G I'm looking forward to Spider(TM), the first bug-free language ;-) -- http://mail.python.org/mailman/listinfo/python-list

[issue1531] tarfile.open(fileobj=f) and bad metadata of the first file within the archive

2007-12-01 Thread George Notaras
George Notaras added the comment: Thanks for the quick fix and the workaround. You are right about position 756. I hadn't spent enough time studying the ''ustar'' format. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1531

[issue1529] Error when passing a file object to tarfile.open()

2007-11-30 Thread George Notaras
George Notaras added the comment: Indeed, I have downloaded the latest tarfile module from svn and it works as expected. I should have done this in the first place. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1529

[issue1531] tarfile.open(fileobj=f) and bad metadata of the first file within the archive

2007-11-30 Thread George Notaras
New submission from George Notaras: Assume the following situation: - a healthy and uncompressed tar file: a.tar - the metadata of the 1st and second files within the archive start at positions 0 and 756 (realistic example values) I partially damage 200 bytes of metadata (byte range 0-500

[issue1529] Error when passing a file object to tarfile.open()

2007-11-30 Thread George Notaras
New submission from George Notaras: Assume a healthy uncompressed tar file: a.tar When trying to open the tarfile using a fileobject, there is always an exception: f_raw = open(a.tar, rb) import tarfile f_tar = tarfile.open(mode=r:, fileobj=f_raw) Traceback (most recent call last): File

Re: Need to call functions/class_methods etc using string ref :How

2007-11-26 Thread George Sakkis
/Scheme would be even more suited for this task but then again there's a Web framework (TurboGears), an ORM (SqlAlchemy) an RPC middleware (Pyro) and a dozen more batteries, both standard and 3rd party. Can't think of anything better than Python for this project. George -- http://mail.python.org

Re: How can I create customized classes that have similar properties as 'str'?

2007-11-24 Thread George Sakkis
in the Cookbook and posted in this list; here's one starting point: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/413717. HTH, George -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I create customized classes that have similar properties as 'str'?

2007-11-24 Thread George Sakkis
that memoization can be used to save space too and matches OP's case exactly; even the identity tests work. Self-importance is bad enough by itself, even without the ignorance, but you seem to do great in both. George -- http://mail.python.org/mailman/listinfo/python-list

Re: the annoying, verbose self

2007-11-23 Thread George Sakkis
). George -- http://mail.python.org/mailman/listinfo/python-list

Re: overriding methods - two questions

2007-11-19 Thread George Sakkis
On Nov 19, 7:44 am, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: George Sakkis a écrit : On Nov 16, 5:03 pm, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: On Fri, 16 Nov 2007 18:28:59 +0100, Bruno Desthuilliers wrote: Question 1: Given that the user of the API

Re: Simple eval

2007-11-18 Thread George Sakkis
, George -- http://mail.python.org/mailman/listinfo/python-list

Re: class='something' as kwarg

2007-11-17 Thread George Sakkis
. http://www.crummy.com/software/BeautifulSoup/documentation.html#Searching%20by%20CSS%20class George -- http://mail.python.org/mailman/listinfo/python-list

Re: overriding methods - two questions

2007-11-16 Thread George Sakkis
be able to say x.foo(arg, kwd=v) without having to know whether x.__class__ is ContinuedFraction. If not, you have a leaky abstraction [1], i.e. in your example, a RegularCF is not really a ContinuedFraction. George [1] http://www.joelonsoftware.com/articles/LeakyAbstractions.html -- http

Re: Interfaces.

2007-11-16 Thread George Sakkis
and have been accepted for Python 3 (http:// www.python.org/dev/peps/pep-3119/). Personally I don't see any tangible benefit in having pure interfaces in additon to ABCs. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Trouble with subprocess.call(...) and zsh script (OSError: [Errno 8] Exec format error)

2007-11-13 Thread Michael George Lerner
On Nov 11, 3:25 pm, Rob Wolfe [EMAIL PROTECTED] wrote: Hi Rob, Michael GeorgeLerner[EMAIL PROTECTED] writes: Hi, (Python 2.5, OS X 10.4.10) I have a program called pdb2pqr on my system. It is installed so that pdb2pqr is in my path and looks like: #\!/bin/zsh -f Are you sure that

Trouble with subprocess.call(...) and zsh script (OSError: [Errno 8] Exec format error)

2007-11-11 Thread Michael George Lerner
Hi, (Python 2.5, OS X 10.4.10) I have a program called pdb2pqr on my system. It is installed so that pdb2pqr is in my path and looks like: #\!/bin/zsh -f /sw/share/pdb2pqr/pdb2pqr.py $@ When I call it via this script: #!/usr/bin/env python import subprocess import tempfile args =

Re: Poor python and/or Zope performance on Sparc

2007-11-03 Thread George Sakkis
. You are probably not aware of Python's Global Interpeter Lock: http://docs.python.org/api/threads.html. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it possible to use a instance property as a default value ?

2007-11-01 Thread George Sakkis
print p.Draw(), p.Draw(x2='foo') HTH, George -- http://mail.python.org/mailman/listinfo/python-list

Re: A Python 3000 Question

2007-10-31 Thread George Sakkis
On Oct 31, 8:44 am, Neil Cerutti [EMAIL PROTECTED] wrote: On 2007-10-30, George Sakkis [EMAIL PROTECTED] wrote: On Oct 30, 11:25 am, Neil Cerutti [EMAIL PROTECTED] wrote: On 2007-10-30, Eduardo O. Padoan [EMAIL PROTECTED] wrote: This is a FAQ: http://effbot.org/pyfaq/why-does-python

Re: A Python 3000 Question

2007-10-31 Thread George Sakkis
and bringing as evidence the timings that include attribute lookups. That statement is just wrong; comparing X to an attribute assumes you have the attribute in the first place, you don't need to look it up. George -- http://mail.python.org/mailman/listinfo/python-list

Re: 3 number and dot..

2007-10-31 Thread George Sakkis
assertion (?: \d {3} )+ $ # non-group ) Bye, bearophile That's 3 times faster on my box and works for negatives too: def localize(num, sep='.'): d,m = divmod(abs(num),1000) return '-'*(num0) + (localize(d)+sep+'%03d'%m if d else str(m)) George -- http://mail.python.org/mailman

Re: XML DOM, but in chunks

2007-10-31 Thread George Sakkis
for accessing the data. Is there a way to have ElementTree read only one record of the data at a time? Have you tried `iterparse()`? Ciao, Marc 'BlackJack' Rintsch Detailed docs at http://effbot.org/zone/element-iterparse.htm George -- http://mail.python.org/mailman/listinfo/python

Re: Readline and record separator

2007-10-30 Thread George Sakkis
it does NOT read the whole my record. So If I could change '\n' as a record separator for readline, it would solve my problem. Any idea? Thank you L. Check out this recipe, it's pretty generic: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/521877. George -- http://mail.python.org

Re: A Python 3000 Question

2007-10-30 Thread George Sakkis
this instead: timeit.Timer('seqlen()', 'seq = range(100); seqlen=seq.__len__').timeit() George -- http://mail.python.org/mailman/listinfo/python-list

Re: A class question

2007-10-30 Thread George Sakkis
On Oct 28, 6:01 am, Donn Ingle [EMAIL PROTECTED] wrote: Is there a way I can, for debugging, access the instance variable name from within a class? Shouldn't this be in a FAQ somewhere? It's the second time (at least!) it comes up this week. George -- http://mail.python.org/mailman/listinfo

Re: A Python 3000 Question

2007-10-29 Thread George Sakkis
. allowed by default comparisons between instances of different types - at least that's one of the warts Python 3 gets right). George -- http://mail.python.org/mailman/listinfo/python-list

Re: A Python 3000 Question

2007-10-29 Thread George Sakkis
that index() or split() are methods make perfect sense as well? I guess after some time using Python it does, but for most unbiased users the distinction seems arbitrary. George -- http://mail.python.org/mailman/listinfo/python-list

Re: simple question on dictionary usage

2007-10-28 Thread George Sakkis
`False` if `s` is empty while the latter raises an `IndexError`. A string slice is safe and faster though: if s[:1] == 'E'. George -- http://mail.python.org/mailman/listinfo/python-list

Re: how to creating html files with python

2007-10-27 Thread George Sakkis
required for web development. As Diez pointed out, your main problem will be which of the dozen or so template packages to pick. Depending on your criteria (expressive power, syntax close to python, performance, stability etc.) you may narrow it down to a handful. George -- http

Re: Mobile Startup looking for sharp coders

2007-10-25 Thread George Sakkis
On Oct 24, 2:42 pm, Vangati [EMAIL PROTECTED] wrote: Plusmo is Hiring! (snipped) Recruiting Agencies: Please do not send us unsolicited resumes. Plusmo does not consider resumes from any agencies. Lame company headhunters: Please do not send us unsolicited spamvertisments irrelevant to

Re: about functions question

2007-10-25 Thread George Sakkis
On Oct 25, 2:28 am, NoName [EMAIL PROTECTED] wrote: I try it: def b(): ... a() ... def a(): ... b() ... b() it's not work. It sure does. Please post full code and error message, something else is wrong, not the cyclic reference. George -- http://mail.python.org

Re: python project ideas

2007-10-25 Thread George Sakkis
On Oct 25, 6:12 am, Stefan Behnel [EMAIL PROTECTED] wrote: Template engines are amongst the things that seem easy enough to look at the available software and say bah, I'll write my own in a day, but are complex enough to keep them growing over years until they become as huge and inaccessible

Re: Better writing in python

2007-10-24 Thread George Sakkis
On Oct 24, 10:42 am, [EMAIL PROTECTED] wrote: On Oct 24, 4:15 pm, Paul Hankin [EMAIL PROTECTED] wrote: On Oct 24, 2:02 pm, [EMAIL PROTECTED] wrote: On Oct 24, 7:09 am, Alexandre Badez [EMAIL PROTECTED] wrote: I'm just wondering, if I could write a in a better way this code

Re: transforming list

2007-10-23 Thread George Sakkis
, George -- http://mail.python.org/mailman/listinfo/python-list

Re: TeX pestilence (was Distributed RVS, Darcs, tech love)

2007-10-22 Thread George Neuner
is a computer language. Btw, a example of item 4 above, is Python's documentation. Fucking asses and holes. Watch your language, there are children present. George -- for email reply remove / from address -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributed RVS, Darcs, tech love

2007-10-20 Thread George Neuner
On Sun, 21 Oct 2007 01:20:47 -, Daniel Pitts [EMAIL PROTECTED] wrote: On Oct 20, 2:04 pm, llothar [EMAIL PROTECTED] wrote: I love math. I respect Math. I'm nothing but a menial servant to Mathematics. Programming and use cases are not maths. Many mathematics are the worst programmers

Re: Order by value in dictionary

2007-10-17 Thread George Sakkis
is nontheless the same: if you want sorted results, you need to sort... Diez If you want the top 100 out of 100K, heapq.nlargest is more than an order of magnitude faster. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Noob questions about Python

2007-10-17 Thread George Sakkis
: 8.60846224869 bin2dec_3: 0.16031255369 George -- http://mail.python.org/mailman/listinfo/python-list

Re: groupby() seems slow

2007-10-16 Thread George Sakkis
with groupby: def test3b(data): join = ' '.join return [join(group) for key,group in itertools.groupby(data, /tr.__eq__) if not key] George -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: magnitude 0.9.1

2007-10-16 Thread George Sakkis
On Oct 16, 7:35 am, Laurent Pointal [EMAIL PROTECTED] How does it compare to the scalar module ? (seehttp://russp.us/scalar.htm) or the Unum module (http://home.scarlet.be/be052320/Unum.html) ? -- http://mail.python.org/mailman/listinfo/python-list

Re: The fundamental concept of continuations

2007-10-15 Thread George Neuner
-space threading. George -- for email reply remove / from address -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbi Q: Recursively reverse lists but NOT strings?

2007-10-15 Thread George Sakkis
slicing semantics: def reverse(xs): if not xs: return xs else: return reverse(xs[1:]) + xs[:1] print reverse([1,2,3]) print reverse((1,2,3)) print reverse('123') George -- http://mail.python.org/mailman/listinfo/python-list

Re: ConnectionClosedError

2007-10-13 Thread George Sakkis
code but Pyro itself is multithreaded. Unfortunately I don't have the resources to start digging in Pyro's internals.. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Top 10 Caribbean island destinations

2007-10-12 Thread george . smith78
lol :) another one on baseball : 90% of the game is physical, the other half is mental. GS [EMAIL PROTECTED] On Oct 11, 7:32 pm, willshak [EMAIL PROTECTED] wrote: on 10/11/2007 10:14 PM Audio expert said the following: Now I know where NOT to go. TOO crowded for me. No one goes there

Re: decorating container types (Python 2.4)

2007-10-12 Thread George Sakkis
or a technical limitation. You have to manually delegate all special methods (or perhaps write a metaclass that does this for you). George -- http://mail.python.org/mailman/listinfo/python-list

Re: Declarative properties

2007-10-12 Thread George Sakkis
. best way you know how from a Software Engineering != best way to do it in less flexible languages that will go unnamed, such as Java You seem to conflate these two. George -- http://mail.python.org/mailman/listinfo/python-list

[Pyro] ConnectionClosedError

2007-10-12 Thread George Sakkis
it but obviously this is not ideal. Is there a way to either prevent or at least recover automatically the server when it hangs ? George -- http://mail.python.org/mailman/listinfo/python-list

Re: test if email

2007-10-12 Thread George Sakkis
On Oct 12, 4:59 pm, brad [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: On Oct 12, 2:55 pm, Florian Lindner [EMAIL PROTECTED] wrote: Hello, is there a function in the Python stdlib to test if a string is a valid email address? here's a Perl re example... I don't know whether to laugh

Re: Declarative properties

2007-10-11 Thread George Sakkis
') def __init__(self, name): self.name = name print self.__name__ George -- http://mail.python.org/mailman/listinfo/python-list

Re: Declarative properties

2007-10-11 Thread George Sakkis
On Oct 11, 7:04 pm, George Sakkis [EMAIL PROTECTED] wrote: You could take it even further by removing the need to repeat the attribute's name twice. Currently this can done only through metaclasses but in the future a class decorator would be even better: Replying to myself here

Re: The fundamental concept of continuations

2007-10-11 Thread George Neuner
the hardware stack (where possible) is faster than using heap allocated structures. For performance, some Scheme compilers go to great lengths to identify upward continuations and nested functions that can be stack implemented. George -- for email reply remove / from address -- http

Re: Fwd: NUCULAR fielded text searchable indexing

2007-10-10 Thread George Sakkis
On Oct 10, 11:08 am, [EMAIL PROTECTED] wrote: Why apologize? If someone doesn't like the name given to a piece of software by its author(s), screw them. If I find the software useful, I'll use it. Even if its called 'bouncingBetty'. Or 'BeautifulSoup' for that matter ;-) George -- http

Re: for loop question

2007-10-10 Thread George Sakkis
))) for p in taking(test,2): print p (u'H', u'e') (u'l', u'l') (u'o', u' ') (u'W', u'o') (u'r', u'l') (u'd',) for p in taking(test,2, combine=''.join): print p He ll o Wo rl d George -- http://mail.python.org/mailman/listinfo/python-list

Re: Keeping track of subclasses and instances?

2007-10-10 Thread George Sakkis
(iter_instances(c)) print ' * Instances per class (after delete)' del items for c in iter_descendant_classes(A): print c, list(iter_instances(c)) HTH, George -- http://mail.python.org/mailman/listinfo/python-list

Re: property question

2007-10-09 Thread George Sakkis
needed to use it myself so far, but PyCells (http:// pycells.pdxcb.net/) seems it might fit the bill. George -- http://mail.python.org/mailman/listinfo/python-list

Re: The fundamental concept of continuations

2007-10-09 Thread George Neuner
Google for free CS books. Many older books (including some classics) that have gone out of print have been released electronically for free download. George -- for email reply remove / from address -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem of Readability of Python

2007-10-07 Thread George Sakkis
/Python/Recipe/500261 George -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread George Neuner
used in print. George -- for email reply remove / from address -- http://mail.python.org/mailman/listinfo/python-list

Re: spam kontrol

2007-10-03 Thread George Sakkis
On Oct 3, 12:59 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hii ý think you know spam page is the most pest for net user. ...closely followed in the second position by incoherent misspelled posts in silly IM-speak. -- http://mail.python.org/mailman/listinfo/python-list

Re: Class design question

2007-10-03 Thread George Sakkis
: if not isinstance(arg, Bar): # let the Bar constructor to do typechecking or whatnot arg = Bar(arg) self.params.add(arg) HTH, George -- http://mail.python.org/mailman/listinfo/python-list

Re: Class design question

2007-10-03 Thread George Sakkis
On Oct 3, 2:27 pm, George Sakkis [EMAIL PROTECTED] wrote: On Oct 3, 1:04 pm, Adam Lanier [EMAIL PROTECTED] wrote: Relatively new to python development and I have a general question regarding good class design. Say I have a couple of classes: Class Foo: params

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread George Neuner
On Wed, 3 Oct 2007 18:20:38 + (UTC), [EMAIL PROTECTED] (Bent C Dalager) wrote: In article [EMAIL PROTECTED], George Neuner gneuner2/@comcast.net wrote: On Wed, 3 Oct 2007 09:36:40 + (UTC), [EMAIL PROTECTED] (Bent C Dalager) wrote: Only if you're being exceedingly pedantic and probably

Re: racism kontrol

2007-10-03 Thread George Sakkis
is just a little prejudiced against anything that breathes. :-) George -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-03 Thread George Neuner
On Wed, 03 Oct 2007 23:07:32 +0100, [EMAIL PROTECTED] wrote: George Neuner wrote: Symbolism over substance has become the mantra of the young. Symbolism: The practice of representing things by means of symbols or of attributing symbolic meanings or significance to objects, events

Re: Combine two dictionary...

2007-10-02 Thread George Sakkis
] += value return dsum Surprisingly (?), this turns out to be faster than using dict.get(key, 0) instead of the explicit if/else. George -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-01 Thread George Neuner
? It means you have to bring the chips. George -- for email reply remove / from address -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-01 Thread George Neuner
it less of a land grab - we'll have to wait and see how the USPTO interprets the new rules - but copyright law has been trending the other way (more grabbing) for a couple of decades now. George -- for email reply remove / from address -- http://mail.python.org/mailman/listinfo/python-list

Re: Can you please give me some advice?

2007-09-30 Thread George Sakkis
/diveintopython/ Hope it helps, George -- http://mail.python.org/mailman/listinfo/python-list

<    5   6   7   8   9   10   11   12   13   14   >