Re: standard IDE in python 3000 (or beyond)? *semi-newbie*

2004-12-30 Thread Aahz
ther. Should the Python community really care about this, I suspect Eclipse might be the best way. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "19. A language that doesn't affect the way you think about programming, is not worth knowing." --

Re: The Industry choice

2004-12-30 Thread Aahz
ch has some good and bad features, I suppose. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "19. A language that doesn't affect the way you think about programming, is not worth knowing." --Alan Perlis -- http://mail.python.org/mailman/listinfo/python-list

Re: Pre-PEP: Dictionary accumulator methods

2005-03-20 Thread Aahz
ict, key) >listappend(mydict, key, value) That seems like a reasonable compromise. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "The joy of coding Python should be in seeing short, concise, readable classes that express a lot of action in a small a

Re: Python for a 10-14 years old?

2005-03-27 Thread Aahz
nother issue is that general problem-solving skills do increase with experience. I also think that programming ability tracks reading/writing ability to at least some extent, and while there are child prodigies with language, they seem to be rarer than smaller skillsets. -- Aahz ([

Re: Python for a 10-14 years old?

2005-03-27 Thread Aahz
sure something there will strike your daughter's fancy. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "The joy of coding Python should be in seeing short, concise, readable classes that express a lot of action in a small amount of clear code -- not in

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Aahz
, but a large portion of that will go away in Python 3.0. So where's the abandonment of the ideal? -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "The joy of coding Python should be in seeing short, concise, readable classes that express a lot of actio

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-02 Thread Aahz
In article <[EMAIL PROTECTED]>, Sunnan <[EMAIL PROTECTED]> wrote: >>> [Aahz] >>>> >>>>"The joy of coding Python should be in seeing short, concise, readable >>>>classes that express a lot of action in a small amount of clear code -- &

Re: Simple thread-safe counter?

2005-04-02 Thread Aahz
ock.acquire() self.counter += self.increment i = self.counter self.lock.release() return i There are several tricks one can use to squeeze further efficiency gains from this, including using Lock() instead of RLock(). -- Aahz ([EMAIL PROTECTED]) <*>

Re: Best editor?

2005-04-05 Thread Aahz
t because I >can't understand customization even without going through a hundred >menus that might contain the thing I am looking for (or I could go >learn another language just to customize!). Use vim. 80% of the power of emacs at 20% of the learning curve. -- Aahz ([E

Re: Lambda: the Ultimate Design Flaw

2005-04-05 Thread Aahz
In article <[EMAIL PROTECTED]>, =?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL PROTECTED]> wrote: >[Aahz] >> =?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL PROTECTED]> wrote: >>> >>>No doubt it once was true, but I guess this ideal has been >>>ab

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Aahz
In article <[EMAIL PROTECTED]>, =?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL PROTECTED]> wrote: >[Aahz] >> [François] >>> >>>Many of us are using Python today, week after week, year long. So >>>let's be pragmatic. Python is what it became and

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Aahz
In article <[EMAIL PROTECTED]>, =?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL PROTECTED]> wrote: >[Aahz] >> >> I'll agree that Python currently has many examples of more than one >> way to do things (and even Python 3.0 won't remove every example >>

Re: How to name Exceptions that aren't Errors

2005-04-07 Thread Aahz
ect >in thinking that in Python this usage is actually considered quite >normal, and not frowned upon? Is my snippet above indeed sufficiently >Pythonic? Consider the use of StopIteration for ``for`` loops, and you will be Enlightened. -- Aahz ([EMAIL PROTECTED]) <*>

BayPIGgies: April 14, 7:30pm (FIRST meeting at IronPort)

2005-04-08 Thread Aahz
12 meeting agenda has not been set. Please send e-mail to [EMAIL PROTECTED] if you want to suggest an agenda (or volunteer to give a presentation). -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "The joy of coding Python should be in seeing short, concis

Re: Best editor?

2005-04-09 Thread Aahz
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Aahz) writes: >> >> Use vim. 80% of the power of emacs at 20% of the learning curve. > >Hmm. Can I read mail/news/web pages in vim? I can in emacs. Yup, that's why

BayPIGgies REMINDER: April 14, 7:30pm (FIRST meeting at IronPort)

2005-04-12 Thread Aahz
12 meeting agenda has not been set. Please send e-mail to [EMAIL PROTECTED] if you want to suggest an agenda (or volunteer to give a presentation). -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "The joy of coding Python should be in seeing short, concis

Re: Removing dictionary-keys not in a set?

2005-04-18 Thread Aahz
In article <[EMAIL PROTECTED]>, Tim N. van der Leeuw <[EMAIL PROTECTED]> wrote: > >I'd like to remove keys from a dictionary, which are not found in a >specific set. So it's kind of an intersection-operation. Why not just use the builtin set operati

Re: Proposal: an unchanging URL for Python documentation

2005-04-19 Thread Aahz
e primary reason for creating docs.python.org was to make Google searches easier. I believe the eventual intent is to make that the official URL, but there were some glitches in setting it up and I'm not sure whether they've been completely ironed out. -- Aahz ([EMAIL PROTECTED])

BayPIGgies: May *THIRD* Thursday at Google (May 19)

2005-04-22 Thread Aahz
Pre-announcement: Our May meeting will be the *THIRD* Thursday, May 19. We will *NOT* be meeting the *SECOND* Thursday. This will be our first meeting at Google, with Alex Martelli's presention on design patterns. More details later! -- Aahz ([EMAIL PROTECTED]) <*>

Re: Is this a bug?

2005-04-28 Thread Aahz
ou can argue that you disagree with mapping ``+=`` to ``extend()``, but I don't think it's fair for you to flatly claim that it's a design mistake. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "It's 106 miles to Chicago. We have a fu

Re: OO in Python? ^^

2005-12-11 Thread Aahz
quot; > ># ... > >if (something_fubar): >fo = "another string" > >Oops, the last 'o' slipped, now we have a different object and the >interpreter will happily continue executing the flawed program. pychecker (or pylint, but I haven't tried that) -- Aahz

Re: OO in Python? ^^

2005-12-11 Thread Aahz
"hiding" an implementation detail by prefixing >it with the classname so you can't access it by its name anymore? Gimme >a break...), but is that a reason to only write white box classes? ^^ "Simple is better than complex." -- Aahz ([EMAIL PROTECTED]) &

Re: Threading in python

2005-12-13 Thread Aahz
>to see when a context switch occurs, is this possible? The reason for >this is I will have threads deadlocked waiting for I/O and I am >interested to see how often context switching occurs. You'd have to write some kind of logging. You can use the logging module. -- Aahz (

Re: Threading in python

2005-12-14 Thread Aahz
[BTW, please follow standard Usenet convention and attribute the quotes; I've added them back in for you] In article <[EMAIL PROTECTED]>, Carl J. Van Arsdall <[EMAIL PROTECTED]> wrote: >Aahz: >>Carl Van Arsdall: >>> >>> 1. Who schedules which thre

Haskell Typeclasses (was Re: OO in Python? ^^)

2005-12-15 Thread Aahz
f it makes sense to me, that will likely go a long way toward making sense to Guido -- we seem to think similarly in certain ways.) -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Don't listen to schmucks on USENET when making legal decisions. H

Re: Why and how "there is only one way to do something"?

2005-12-15 Thread Aahz
y to do it". Actually, I've gotten used to doing python -c 'import this' -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Don't listen to schmucks on USENET when making legal decisions. Hire yourself a competent schmuck.&q

Re: Why and how "there is only one way to do something"?

2005-12-15 Thread Aahz
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: >Aahz wrote: >> In article <[EMAIL PROTECTED]>, >> Steve Holden <[EMAIL PROTECTED]> wrote: >>> >>>(Part of) Python's credo (which you can read in context by

Re: RoR like (was : SPE 0.8.1.b Python IDE...)

2005-12-16 Thread Aahz
;whilst dealing with different languages and toolkits. I'd rather have >such functionality controlled with mostly declarative constructs, and >with as few moving parts on the client as possible. But Google is doing it! It must be cool!!! And if it means that Lynx breaks, well, that&#

Re: SMP, GIL and Threads

2005-12-16 Thread Aahz
be the correct tool for the job. What the warning actually means is that the only shared object between threads should be a Queue; you pass other objects between threads using the Queue, so that only one thread at a time uses the non-Queue objects. -- Aahz ([EMAIL PROTECTED]) <*>

Re: SMP, GIL and Threads

2005-12-17 Thread Aahz
ary >just another queued command request caused both the dictionary read >and write to be performed by the same thread. This seems to have >eliminated the problem. Great! -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Don't listen to schm

Re: Interesting little "gotcha" with generators

2005-12-22 Thread Aahz
In article <[EMAIL PROTECTED]>, Kenneth McDonald <[EMAIL PROTECTED]> wrote: > >I recently had need to write the following code: > > def compileOuter(self): > if False: yield None > else: return What's wrong with def foo(): if

Re: Interesting little "gotcha" with generators

2005-12-22 Thread Aahz
In article <[EMAIL PROTECTED]>, Paul Rubin <http://[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Aahz) writes: >> >> What's wrong with >> >> def foo(): >> if False: yield None > >Does the following work? > >def foo():

Re: sorting with expensive compares?

2005-12-23 Thread Aahz
a variant on the previous suggestion of hash: [a] -> [hash(a), index(a), a] -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Don't listen to schmucks on USENET when making legal decisions. Hire yourself a competent schmuck." --USENET schmuck (aka Robert Kern) -- http://mail.python.org/mailman/listinfo/python-list

Re: Herds of cats

2005-12-23 Thread Aahz
ory of Computer Associates and a few casual conversations with other ex-Ingres people.) -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Don't listen to schmucks on USENET when making legal decisions. Hire yourself a competent schmuck." --USENET sch

Re: PyCon TX 2006: Hotel problems

2005-12-28 Thread Aahz
that point, we'll give ya'll the option of giving us your reservation number (and we'll fix it for you) or handling the problem yourselves. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Given that C++ has pointers and typecasts, it's

Re: New Python.org website ?

2006-01-01 Thread Aahz
for the new year", but there is a new design that is supposedly in final stages of getting implemented. What's your hurry? -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Given that C++ has pointers and typecasts, it's really ha

Re: Python or Java or maybe PHP?

2006-01-03 Thread Aahz
t; with Guido. ;-) Guido hates macros. Oddly enough, my impression is that macros are popular only in the Lisp community, and they may well be part of the reason Lisp has never become popular. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Given that C

Re: Python or Java or maybe PHP?

2006-01-03 Thread Aahz
In article <[EMAIL PROTECTED]>, James <[EMAIL PROTECTED]> wrote: > >Do you have any specific comments towards Logix's implementation? Nope. I do know that Guido is generally in favor of Python-like languages, and one of the goals of the AST project was to make that easier

Macros in Python? (was Re: Python or Java or maybe PHP?)

2006-01-03 Thread Aahz
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Aahz) writes: >> In article <[EMAIL PROTECTED]>, >> James <[EMAIL PROTECTED]> wrote: >>> >>>I keep asking myself why isn't this more popular

Re: OT: Degrees as barriers to entry [was Re: - E04 - Leadership! Google, Guido van Rossum, PSF]

2006-01-03 Thread Aahz
rent from the guild system. Unfortunately, this isn't quite true. Medicine and law both require the passing of an apprenticeship, so there's still some room for favoritism and blackballing. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "

Re: Is 'everything' a refrence or isn't it?

2006-01-04 Thread Aahz
ys of targets. No matter how you slice it ;-), a list does not actually hold objects, it only holds references to objects. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "19. A language that doesn't affect the way you think about programming, is not

BayPIGgies: January 12, 7:30pm (Google)

2006-01-07 Thread Aahz
ce, and the March meeting will probably be a PyCon wrap-up. Please e-mail [EMAIL PROTECTED] if you want to suggest an agenda (or volunteer to give a presentation). -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "19. A language that doesn't affect the way you

Re: Spelling mistakes!

2006-01-07 Thread Aahz
at for suggesting exactly that! :-) > >http://groups.google.com/group/comp.lang.python/msg/fa453d925b912917 > >how-come-aahz-didn't-shout-at-you-ly'yrs, Because I've been busy. I'd been saving Skip's post for when I had enough time to do it justice, but your URL s

Re: Is 'everything' a refrence or isn't it?

2006-01-07 Thread Aahz
bjects and references are really two completely different things in Python. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "19. A language that doesn't affect the way you think about programming, is not worth knowing." --Alan Perlis -- http://mail.python.org/mailman/listinfo/python-list

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-11 Thread Aahz
ut 97% certain that my lack of degree played little role (if any) in my failure to get a job offer. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "19. A language that doesn't affect the way you think about programming, is not worth knowing." --Alan Perlis -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Degrees as barriers to entry [was Re: - E04 - Leadership! Google, Guido van Rossum, PSF]

2006-01-11 Thread Aahz
okes not doctor >jokes? While it may not have the same intensity or duration as medical internship, lawyers are typically required to serve an internship before being permitted to go into independent practice. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/

Re: Where to report Python bug?

2006-01-12 Thread Aahz
error invoking COM method. > >Where should this sort of thing be reported? https://sourceforge.net/projects/pywin32/ -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "19. A language that doesn't affect the way you think about programming, is not

Re: Help me in this please--is Python the answer?

2006-01-12 Thread Aahz
ause AFAIK, there are no >interfaces for Python to the likes of IBM's MQSeries or for any >distributed transaction managers. What about http://www.zope.org/Members/tim_one/spread/ -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "19. A language that does

Re: Real-world use cases for map's None fill-in feature?

2006-01-12 Thread Aahz
pectation is for the size of the two lists. (None of the uses were created by me -- I abhor map(). ;-) -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "19. A language that doesn't affect the way you think about programming, is not worth knowing." --Alan Perlis -- http://mail.python.org/mailman/listinfo/python-list

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-13 Thread Aahz
offices in the New York area. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "19. A language that doesn't affect the way you think about programming, is not worth knowing." --Alan Perlis -- http://mail.python.org/mailman/listinfo/python-list

Re: Is 'everything' a refrence or isn't it?

2006-01-14 Thread Aahz
simply the rich detail of a data structure. Yup. I sometimes say in such cases that the object is a proxy for some other object (sometimes real-world, sometimes not -- as in the case of a GUI object). -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "19

Re: Python website problem?

2006-07-22 Thread Aahz
o? Yes, we're having problems with the build system. Nothing to see here, move along. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly

Don't use __slots__! (was Re: dicts vs classes)

2006-07-25 Thread Aahz
served popularity amongst the novices and apprentices, who should know better than to use this magic incantation casually. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Debugging is twice as hard as writing the code in the first place. Therefo

Re: Don't use __slots__! (was Re: dicts vs classes)

2006-07-25 Thread Aahz
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Aahz, citing Guido: >> >>__slots__ is a terrible hack with nasty, hard-to-fathom side >>effects that should only be used by programmers at grandmaster and >>wizard levels. Unfortunately it has gai

Re: Don't use __slots__! (was Re: dicts vs classes)

2006-07-28 Thread Aahz
cs.python.org/ref/slots.html#l2h-217 and don't >see anyplace where it says, "Warning: for use by wizards only". Unfortunately, the Python docs are currently suboptimal when it comes to new-style classes. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncra

Re: Windows vs. Linux

2006-07-30 Thread Aahz
to >program under Python? Windows is an excellent environment for Python! Just Do It. ;-) (Despite the prepronderence of Linux programmers in the dev team, there are probably more Windows Python programmers than for any other OS, simply because there are more Windows users.) -- Aahz ([

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

2006-08-02 Thread Aahz
s a little bit of an overstatement, admittedly, but not much of one.) There is also lots of incorrect information. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Debugging is twice as hard as writing the code in the first place. Therefore, if you wr

Re: email client like mutt

2006-08-06 Thread Aahz
In article <[EMAIL PROTECTED]>, Fabian Braennstroem <[EMAIL PROTECTED]> wrote: > >I am looking for a python email client for the terminal... something like >mutt; maybe, so powerfull ;-) What's wrong with mutt? -- Aahz ([EMAIL PROTECTED]) <*>

Re: email client like mutt

2006-08-07 Thread Aahz
In article <[EMAIL PROTECTED]>, cga2000 <[EMAIL PROTECTED]> wrote: >On Sun, Aug 06, 2006 at 04:15:08PM EDT, Aahz wrote: >> In article <[EMAIL PROTECTED]>, >> Fabian Braennstroem <[EMAIL PROTECTED]> wrote: >>> >>>I am looking for a pytho

Re: do people really complain about significant whitespace?

2006-08-08 Thread Aahz
f tasteless heathens that "we" have invented. >It just sounds like so much trivial nitpickery that it's hard to >believe it's as common as we've come to believe. When I put on my Python evangelist hat, I do get complaints about that regularly. -- Aahz ([EMAIL PROTECTE

Re: #!/usr/bin/python or #!/usr/bin/env python?

2006-08-09 Thread Aahz
sadmins claim that it's less secure. I'm not competent to judget that claim myself, but I prefer to play safe and stay away from env. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Debugging is twice as hard as writing the code in the fir

Warlord *this*

2006-08-10 Thread Aahz
http://groups.google.com/group/soc.motss/msg/a41fbe0c17342f46 -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "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 defi

Re: long(Decimal) performance

2006-08-12 Thread Aahz
und to bite me >down the road). I'm not sure why it's coded that, but it's somewhat irrelevant: right now, work is being done to convert decimal.py to C code, which will almost certainly be much faster than your code. Generally speaking, you should not be using Decimal now

Re: Python to use a non open source bug tracker?

2006-10-04 Thread Aahz
two or three years, but somehow it never has gotten enough concerted attention to make it happen. I'm sure that experience informed much of the Infrastructure Committee's work. I suspect in the end that if four or five people who are known to follow through on their commitments voluntee

Google breaks Usenet (was Re: How can I correct an error in an old post?)

2006-10-05 Thread Aahz
In article <[EMAIL PROTECTED]>, Blair P. Houghton <[EMAIL PROTECTED]> wrote: > >But they do about 10 things totally wrong with Google groups that >I'd've fixed in my spare time in my first week if they'd hired me back >when I was interviewing with them

Google breaks Usenet (was Re: How can I correct an error in an old post?)

2006-10-06 Thread Aahz
e any copyright on the posts, or other special protection. >I'm a former Googler myself and I use their service all the time, >but if yours is better I'll switch. The problem is the network effect. In this case, what Google has that can't be replicated is the history of posts. --

Names changed to protect the guilty

2006-10-06 Thread Aahz
The following line of lightly munged code was found in a publicly available Python library... if schema.elements.has_key(key) is False: Sorry, just had to vent. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "If you don't know what your progra

Re: Names changed to protect the guilty

2006-10-06 Thread Aahz
In article <[EMAIL PROTECTED]>, MonkeeSage <[EMAIL PROTECTED]> wrote: >On Oct 6, 6:27 pm, [EMAIL PROTECTED] (Aahz) wrote: >> >> The following line of lightly munged code was found in a publicly >> available Python library... > >Yes, this violates the Holy,

Re: Names changed to protect the guilty

2006-10-07 Thread Aahz
In article <[EMAIL PROTECTED]>, John Machin <[EMAIL PROTECTED]> wrote: >Aahz wrote: >> In article <[EMAIL PROTECTED]>, >> MonkeeSage <[EMAIL PROTECTED]> wrote: >>>On Oct 6, 6:27 pm, [EMAIL PROTECTED] (Aahz) wrote: >>>> >>&g

Re: Python to use a non open source bug tracker?

2006-10-07 Thread Aahz
lling nor flaming, I think I >deserve a little bit more of respect. IMO, regardless of whether you are trolling or flaming, you are certainly being disrespectful. Why should we treat you with any more respect than you give others? -- Aahz ([EMAIL PROTECTED]) <*> http://ww

Re: Names changed to protect the guilty

2006-10-07 Thread Aahz
In article <[EMAIL PROTECTED]>, John J. Lee <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Aahz) writes: >> >> The following line of lightly munged code was found in a publicly >> available Python library... >> >> if schema.elements.has_key(key) i

Re: Python to use a non open source bug tracker?

2006-10-07 Thread Aahz
In article <[EMAIL PROTECTED]>, Giovanni Bajo <[EMAIL PROTECTED]> wrote: >Aahz wrote: >> Giovanni removed his own attribution: >>> >>> Are you ever going to try and make a point which is not "you are not >>> entitled to have opinions because

Re: Names changed to protect the guilty

2006-10-09 Thread Aahz
In article <[EMAIL PROTECTED]>, Antoon Pardon <[EMAIL PROTECTED]> wrote: >On 2006-10-08, Aahz <[EMAIL PROTECTED]> wrote: >> In article <[EMAIL PROTECTED]>, John J. Lee <[EMAIL PROTECTED]> wrote: >>>[EMAIL PROTECTED] (Aahz) writes: >>>> &

Re: Inheriting property functions

2006-10-20 Thread Aahz
e names because of the way they cause problems with inheritance. PS: Please do NOT post code with TABs -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "If you don't know what your program is supposed to do, you'd better not start writing it." --Dijkstra -- http://mail.python.org/mailman/listinfo/python-list

Re: Protecting against SQL injection

2006-10-24 Thread Aahz
Do yourself a favor at least and switch to using double-quotes for the string. I also recommend switching to triple-quotes to avoid the backslash continuation. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "If you don't know what your program is supposed to do, you'd better not start writing it." --Dijkstra -- http://mail.python.org/mailman/listinfo/python-list

Re: Sentinel values for special cases

2006-10-27 Thread Aahz
t it complicates pickling if/when you store the stentinel in an instance. There are ways of working around that, but none are pleasant. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "If you don't know what your program is supposed to do, you'd b

Re: profanity on comp.lang.python (was Re: Pyro stability)

2006-11-08 Thread Aahz
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > >Beliavsky> English is a rich language, and there are better ways of >Beliavsky> doing that. > >aahz> Oh, gimme a fucking break. > >I'm with Beliavsky on this one. I can't

Re: PyFAQ: anyone seen aahz' thread tutorial ?

2006-11-14 Thread Aahz
In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > >and yes, has anyone seen Aahz or his OSCON2001 thread tutorial slides >lately ? as noticed here: > > http://effbot.org/pyfaq/how-do-i-program-using-threads.htm > >they have disappea

Re: Decimal() instead of float?

2006-11-15 Thread Aahz
ntification "numbers" should be kept as strings. > >Do you mean that ID numbers that serve as a primary key in a database >should also be strings? Depends. If they are strictly internal, ints are fine. But if they interact with the outside world, they should be string

Re: An oddity in list comparison and element assignment

2006-06-02 Thread Aahz
ut what's now called BofA is simply the current name of the bank that acquired BofA. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "I saw `cout' being shifted "Hello world" times to the left and stopped right there." --Steve Gonedes -- http://mail.python.org/mailman/listinfo/python-list

Re: Are there something like "Effective Python"?

2006-06-02 Thread Aahz
ide the technical expertise and editing), and after a suitable resting time, we'll see if we can get back on track with _Effective Python_ -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "I saw `cout' being shifted "Hello world" times to the left and stopped right there." --Steve Gonedes -- http://mail.python.org/mailman/listinfo/python-list

Re: Are there something like "Effective Python"?

2006-06-02 Thread Aahz
grammer would probably hoist it out of the loop because you should hoist ALL constant assignments out of a loop. (It's not particularly related to re.compile() in this case.) -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "I saw `cout' being shifte

Re: carshing the interpreter in two lines

2006-06-04 Thread Aahz
;m saying that if you crash it, it's a >bug unless proven harebrained.""" IIRC, this has been discussed before and deemed harebrained. Check SF to see whether this specific case has been submitted previously and submit it if not. Then post to python-dev if it's a n

Re: Large Dictionaries

2006-06-05 Thread Aahz
you'll find it is handled faster than random data. > >But isn't that how a reasonable sorting algorithm should behave? Less >work to do if the data is already sorted? Read some of the old discussions in the python-dev archives. -- Aahz ([EMAIL PROTECTED]) <*>

Re: CENSORSHIP - Django Project (Schema Evolution Support)

2006-06-07 Thread Aahz
In article <[EMAIL PROTECTED]>, Erik Max Francis <[EMAIL PROTECTED]> wrote: >Rene Pijlman wrote: >> >> Wikipedia always tells the Absolute Truth, because if it doesn't, we can >> edit it and fix it right away. > >Tell that to John Seigenthaler. Rene

Re: [ANN] Cerealizer 0.4 -- a secure Pickle-like module

2006-06-11 Thread Aahz
In article <[EMAIL PROTECTED]>, Jiba wrote: > >Cerealizer is now available under the Python license (and was >previously GPL'ed). Nothing except for Python itself should be released under the Python license. See http://wiki.python.org/moin/PythonSoftwareFoundationLicense

Re: Thread specific singleton

2006-06-11 Thread Aahz
gt;of concurrent programming, so I'd like someone to help me find some >problems in my implementation. Try using threading.local(), but you'll need 2.4 or later. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "I saw `cout' being sh

Re: How to truncate/round-off decimal numbers?

2006-06-20 Thread Aahz
b,2) >0.67004 > >Inspite of specifying 2 in 2nd attribute of round, it outputs all the >digits after decimal. You should also consider switching to the decimal module if you care about getting correct results. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pyt

Re: python guru in the Bay Area

2006-07-02 Thread Aahz
the other advice you've been given, if you really want to try finding someone local: http://baypiggies.net/ -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "I saw `cout' being shifted "Hello world" times to the left and stopped right

Virtual Private Servers (was Re: Out of the box database support)

2006-07-05 Thread Aahz
ebody that would let me run Debian on a VPS. http://www.panix.com/corp/virtuals/vservers.html Unfortunately, it's not being as well advertised as it should be, but Panix is definitely one of the class operators. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ &

Re: multithreading and shared dictionary

2006-07-08 Thread Aahz
ython implementation detail. Other implementations are free to use other mechanisms -- and they do. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "I saw `cout' being shifted "Hello world" times to the left and stopped right there." --Steve Gonedes -- http://mail.python.org/mailman/listinfo/python-list

Re: first book about python

2006-07-09 Thread Aahz
rs Python 2.5. (Alex's _Python in a Nutshell_ does cover some of Python 2.5, but there were a fair number of late changes that came after he needed to turn it in, most notably the inclusion of sqlite3. It's also not a beginner book.) -- Aahz ([EMAIL PROTECTED]) <*>

Don't use __slots__ (was Re: performance of dictionary lookup vs. object attributes)

2006-08-25 Thread Aahz
slots__ is fine as long as you don't actually use them. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "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 def

Re: How ahead are you guys in the (Python) real world?

2006-08-30 Thread Aahz
o Java 5, which >was released around... what, 2-3 years ago? (While I am running Java 6 >at home) My company uses 2.2 and 2.3; we hope to drop 2.2 Real Soon Now. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ I support the RKAB -- http://mail.python.org/mailman/listinfo/python-list

Re: GC and security

2006-08-30 Thread Aahz
ection only gets used for objects that refer to other objects, so it would only apply if string refcounts are being held by GC-able objects. Also keep in mind, of course, that deleting objects has nothing to do with whether the memory gets overwritten... -- Aahz ([EMAIL PROTECTED]) <*&

Re: How ahead are you guys in the (Python) real world?

2006-08-30 Thread Aahz
In article <[EMAIL PROTECTED]>, Neil Schemenauer <[EMAIL PROTECTED]> wrote: >Aahz <[EMAIL PROTECTED]> wrote: >> >> My company uses 2.2 and 2.3; we hope to drop 2.2 Real Soon Now. > >This has been an interesting thread. There has been some discussion >on

Re: Timeline for Python?

2006-09-03 Thread Aahz
etween 2.5 and earlier versions for the benefit of people needing to target earlier or multiple versions. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ I support the RKAB -- http://mail.python.org/mailman/listinfo/python-list

Programming isn't dangerous...

2006-09-05 Thread Aahz
http://www.sfgate.com/cgi-bin/article.cgi?file=/news/archive/2006/09/05/national/a082618D20.DTL -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ I support the RKAB -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] IronPython 1.0 released today!

2006-09-07 Thread Aahz
In article <[EMAIL PROTECTED]>, Jim Hugunin <[EMAIL PROTECTED]> wrote: > >I'm extremely happy to announce that we have released IronPython 1.0 today! > http://www.codeplex.com/IronPython Congrats! -- Aahz ([EMAIL PROTECTED]) <*> http://www.pyth

Re: best small database?

2006-09-11 Thread Aahz
o fetch/read/install anything additional. > >Doing the DB-API would be much stronger, but might be overkill in your >situation. Once Python 2.5 comes out, I recommend using sqlite because it avoids the mess that dbm can cause. -- Aahz ([EMAIL PROTECTED]) <*>

<    1   2   3   4   5   6   7   8   9   10   >