"Mark Devine" <[EMAIL PROTECTED]> writes:
> Sorry for not putting a subject in the last e-mail. The function lower suited
> my case exactly. Here however is my main problem:
> Given that my new list is :
> [class-map match-all cmap1', 'match ip any', 'class-map match-any cmap2',
> 'match any', '
Steve Holden <[EMAIL PROTECTED]> writes:
> Mark Devine wrote:
>
>> Actually what I want is element 'class-map match-all cmap1' from list 1 to
>> match 'class-map cmap1 (match-all)' or 'class-map cmap1 mark match-all done'
>> in list 2 but not to match 'class-map cmap1'.
>> Each element in both l
dware
platforms, one condition being that the port wound up in the GCC
suite. I believe they got bought by redhat.
Phillip Greenspun once ran a company on this model as well. It did
well until the venture capata
--
Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/hom
A: What's the most obnoxious thing on Usenet?
Q: topposting.
"Dan Perl" <[EMAIL PROTECTED]> writes:
> "fuzzylollipop" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> no it was a sideways remark at all the software socialists that thing
>> EVERYTHING should be free, never said any
"Philippe C. Martin" <[EMAIL PROTECTED]> writes:
>>>and it was the only interpreter I've ever used that had no compilation
>>>phase whatsoever) is no easier to deal with than compiled C. Ditto for
>>>the various flavors of LISP I've worked with.
> I do find working with an interpreter easier than
"Dan Perl" <[EMAIL PROTECTED]> writes:
> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> A: What's the most obnoxious thing on Usenet?
>> Q: topposting.
>
> What is "Jeopardy", Alex? You got
Andrew Dalke <[EMAIL PROTECTED]> writes:
> Adam DePrince
> Given the hardware constraints of the early 1980s, which
> language do you think should have been used instead of BASIC?
Logo. It was invented in 1968, when mainframes weren't much more
powerfull than those '80s microcomputers. It had sta
Christos "TZOTZIOY" Georgiou <[EMAIL PROTECTED]> writes:
> On Fri, 17 Dec 2004 01:43:56 -0600, rumours say that Mike Meyer
> <[EMAIL PROTECTED]> might have written:
>>Assembler was better - at least you had recursion with
>>assembler.
> You had recur
Peter Hickman <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> BASIC as implented by Microsoft for the Apple II and the TRS 80 (among
>> others) is simply the worst programming language I have ever
>> encountered. Assembler was better - at least you had recursion w
Q: What's the second most annoying thing to do on Usenet?
A: Fail to properly trim quotes.
"Dan Perl" <[EMAIL PROTECTED]> writes:
> "Fuzzyman" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Dan Perl wrote:
>>> "M
Jeff Shannon <[EMAIL PROTECTED]> writes:
> Sion Arrowsmith wrote:
> Additionally, as I understand it UserList and UserDict are implemented
> entirely in Python, which means that there can be significant
> performance differences as well.
Actually, UserList and UserDict are just wrappers around th
Adam DePrince <[EMAIL PROTECTED]> writes:
> On Fri, 2004-12-17 at 12:52, Mike Meyer wrote:
>> Peter Hickman <[EMAIL PROTECTED]> writes:
>> > Basic has progressed much since you last looked at it, time to update
>> > your facts. Basic has recursion, it compi
That doesn't do what he wants, because it doesn't return until you hit
a newline.
The answer is system dependent. Or you can use massive overkill and
get curses, but if you're on windows you'll have to use a third party
curses package, and maybe wrap it
--
Mike Meyer <[EMA
Steven Bethard <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> That doesn't do what he wants, because it doesn't return until you hit
>> a newline.
> Of course if the intent is to have this work with terminal input, then
> yes, sys.stdin.read(1) is pro
Glen <[EMAIL PROTECTED]> writes:
> Being a new'ish user to both Linux and Python, I've been 'happily'
> learning Python (2.3) with Idle and Tkinter as installed with Mandrake
> 10.
> All seemed to work without any errors, but starting Python from Idle
> or a console displays the same statup text,
"not [quite] more i squared" <[EMAIL PROTECTED]> writes:
> Adam DePrince wrote:
>
>>>Given the hardware constraints of the early 1980s, which
>>>language do you think should have been used instead of BASIC?
>> Lisp
>> Forth
> Exactly my pick
Logo (my pick) has been called "Lisp without the parent
Jeff Shannon <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>>Jeff Shannon <[EMAIL PROTECTED]> writes:
>>>Additionally, as I understand it UserList and UserDict are implemented
>>>entirely in Python, which means that there can be significant
>>&g
David Bolen <[EMAIL PROTECTED]> writes:
> Mike Meyer <[EMAIL PROTECTED]> writes:
>
>> Steven Bethard <[EMAIL PROTECTED]> writes:
>>
>> > Amir Dekel wrote:
>> >> What I need from the program is to wait for a single character
>> &
Scott Robinson <[EMAIL PROTECTED]> writes:
> Forth seems better than basic, but is *weird* (I tried it for a
> while). I'm not sure going from Forth to C (or Python) would be much
> easier than Basic to C or Python. The biggest disappointment for
> Forth was that no significant Forth chips were
Jeff Shannon <[EMAIL PROTECTED]> writes:
> Steven Bethard wrote:
> Hm, possibly. I must confess that my direct knowledge is limited to a
> fairly narrow set of languages, and that C and C++ are the only
> statically-compiled languages I've used. Still, I'm not sure that
> it's just a matter of f
PEP: XXX
Title: A rational number module for Python
Version: $Revision: 1.4 $
Last-Modified: $Date: 2003/09/22 04:51:50 $
Author: Mike Meyer <[EMAIL PROTECTED]>
Status: Draft
Type: Staqndards
Content-Type: text/x-rst
Created: 16-Dec-2004
Python-Version: 2.5
Post-History: 30-Aug-2002
Ab
Robert Kern <[EMAIL PROTECTED]> writes:
> Personally, I loathe writing at any length inside a Web browser and
> prefer to use a real editor at all times.
:-). w3m invokes $VISUAL on a temp file when you edit a TEXTAREA. It's
*so* nice to be able to insert a file instead of cutting and pasting
it.
[EMAIL PROTECTED] writes:
> If OOP is so beneficial for large projects, why are the Linux kernel,
> the interpreters for Perl and Python, and most compilers I know written
> in C rather than C++?
Because C++ combines the worst features of C and OO programming. It
also makes some defaults go the w
Simon Brunning <[EMAIL PROTECTED]> writes:
> On Tue, 14 Dec 2004 10:40:56 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote:
>> Keith Dart wrote:
>> > Sigh, this reminds me of a discussion I had at my work once... It seems
>> > to write optimal Python code one must understand various probabilites of
>
"Robert Brewer" <[EMAIL PROTECTED]> writes:
>> Why aren't built
>> in lists and dictionaries real heritable types that can save
>> this kind of patchwork?
>
> They are since Python 2.2 (IIRC):
And before Python 2.2 there was the UserList class in the standard
library. Which is still there in 2.
Axel Straschil <[EMAIL PROTECTED]> writes:
> Hello!
>
>> That's easy. Load the HTML in MS Word, and save it as RTF. Script it
>> via COM using the python win32all (I think that's what it's now
>> called) package.
> As I wrote in my posting and the subject: linux ;-)
> I could try to do this with o
"Thomas Bartkus" <[EMAIL PROTECTED]> writes:
> The "interpreted" nature of the existing Python language has little to do
> with how it compares to other languages. Most languages, including BASIC,
> are available in either flavor - interpreted or compiled. And either way,
> it's still the same la
Scott Robinson <[EMAIL PROTECTED]> writes:
> I have been having trouble with the garbage collector and sockets.
> Unfortunately, google keeps telling me that the problem is the garbage
> collector ignoring dead (closed?) sockets instead of removing live
> ones. My problem is
>
>
> x.sock=so
"Raymond L. Buvel" <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> PEP: XXX
>> Title: A rational number module for Python
>
>
> I think it is a good idea to have rationals as part of the standard
> distribution but why not base this on the gmpy modu
"John Roth" <[EMAIL PROTECTED]> writes:
> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> PEP: XXX
>> Title: A rational number module for Python
>> The ``Rational`` class shall define all the standard mathemati
Jp Calderone <[EMAIL PROTECTED]> writes:
> They do handle decimals. They handle any object which define __cmp__,
> or the appropriate rich comparison methods.
That settles that. They're gone from the proposal. So is the method
inverse, as that's simply 1/rational.
[Format recovered from top posting.]
"James Martin" <[EMAIL PROTECTED]> writes:
>
>
> "Amir Dekel" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Hello everyone,
>> First, I have to say that Python is one of the coolest programing
>> languages I have seen.
>> And now for the prob
Dennis Lee Bieber <[EMAIL PROTECTED]> writes:
I like your categories, but you forgot one.
> On Fri, 17 Dec 2004 13:54:45 -0500, Adam DePrince <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>> I'd like to ask everybody a simple question. How many computer
>> languages are you
Amir Dekel <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> Doing a second import will find the module in sys.modules and not
>> bother looking in the file system. The solution is to reload(module)
>> instead of import module.
>> What if I import usi
Noam Raphael <[EMAIL PROTECTED]> writes:
> What I suggest is a new class, called notimplemented (you may suggest
> a better name). It would get a function in its constructor, and would
> just save a reference to it. The trick is that when a new type (a
> subclass of the default type object) is cre
Scott Robinson <[EMAIL PROTECTED]> writes:
> On Fri, 17 Dec 2004 20:41:11 -0600, Mike Meyer <[EMAIL PROTECTED]> wrote:
>
>>Scott Robinson <[EMAIL PROTECTED]> writes:
>>
>>> Forth seems better than basic, but is *weird* (I tried it for a
>>>
Dennis Lee Bieber <[EMAIL PROTECTED]> writes:
> After all, AREXX was the "VBA" of the Amiga... My first real
> Python program worked with an AREXX script to handle outgoing email
That's funny. My mail reader on the Amiga was an Arexx script driving
the Thinker hypertext engine. It slurped u
Nick Craig-Wood <[EMAIL PROTECTED]> writes:
> It would be nice if setdefault didn't evaluate the second argument
> unless it needed it. However I guess it would have to be a language
> feature to do that.
Personally, I'd love a language feature that let you create a function
that didn't evaluate
Craig Ringer <[EMAIL PROTECTED]> writes:
> On Sat, 2004-12-18 at 00:40, Amir Dekel wrote:
>> This must be the silliest question ever:
>>
>> What about user input in Python? (like stdin)
>> Where can I find it? I can't find any references to it in the documentation.
>
> Under UNIX, I generally eit
[EMAIL PROTECTED] (Christopher A. Craig) writes:
> I've been thinking about doing this for a while. cRat
> (http://sf.net/projects/pythonic) already meets these qualifications
> except that I need to add decimal support to it now that decimals are
> in the language. I could rewrite the existing
Adam DePrince <[EMAIL PROTECTED]> writes:
> I want to include it because POSIX has a single OS call that
> conceptually maps pretty closely to writelines.
I just want to point out that on some systems, POSIX is a
compatability layer, not an OS layer. On those systems, the
implementer of writev is
[EMAIL PROTECTED] (Bengt Richter) writes:
> On Sun, 19 Dec 2004 21:29:27 +0100, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote:
> (or maybe a restricted unquote_arg function for better safety).
> E.g., double back-tick is a syntax error now, so you could write
>
> def ternary(c, ``t, ``f):
>
Michael Hoffman <[EMAIL PROTECTED]> writes:
> Doug Holton wrote:
>> Istvan Albert wrote:
>>> All that boo does is borrows a few syntactical constructs
>>> from python. Calling it virtually identical
>>> is *very* misleading.
>> The syntax is indeed virtually identical to python. You are yet
>> ano
Nick Coghlan <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> I'm willing to do the work to get
>> decimals working properly with it.
>
> Facundo's post reminded me of some of the discussion about the
> interaction between floats and Decimal that wen
Doug Holton <[EMAIL PROTECTED]> writes:
> This is comp.lang.python, not comp.lang.logo. Please refrain from
> discussing topics not related to CPython.
Doug, please quit trolling this newsgroup.
http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consult
Leif K-Brooks <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> They do have a first-class function-like object called an agent. But
>> to use a standard method as an agent, you have to wrap it.
>
> Just curious, but how does a method get wrapped in an agent if m
[EMAIL PROTECTED] (Alex Martelli) writes:
> Mike Meyer <[EMAIL PROTECTED]> wrote:
>
>> [EMAIL PROTECTED] (Bengt Richter) writes:
>>
>> > On Sun, 19 Dec 2004 21:29:27 +0100, "Fredrik Lundh"
> <[EMAIL PROTECTED]> wrote:
>> > (or maybe a
"Yet Another Mike" <[EMAIL PROTECTED]> writes:
> I'm told Tabnanny was inspired by lint, the Unix utiltity to check C sources
> (and probably others). Lint was primarily useful in days long ago when CPUs
> were slow and a compile used a significant amount of resources. In a
> multiuser environ
Noam Raphael <[EMAIL PROTECTED]> writes:
> The answer is that a subclass is guaranteed to have the same
> *interface* as the base class. And that's what matters.
This is false. For instance:
class A(object):
def method(self, a):
print a
class B(A):
def method(self, a, b):
print a, b
B
Nick Coghlan <[EMAIL PROTECTED]> writes:
> Actually, I was misremembering how Decimal worked - it follows the rule you
> suggest:
>
> float() + Decimal() fails with a TypeError
> float() + float(Decimal()) works fine
>
> And I believe Decimal's __float__ operation is a 'best effort' kind of
> thi
Sir Galahad the chaste <[EMAIL PROTECTED]> writes:
> Hi,
>
> [EMAIL PROTECTED] wrote:
>> How should I: Open a Text file, read from it, modify it, print to
>> another .txt?
>> For instance: Read a string, sort it, write the sorted string.
>
> What do you mean by "sorting"? If you want to sort the l
Ishwor <[EMAIL PROTECTED]> writes:
> On 23 Dec 2004 14:28:37 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote:
> My experience as a learner here is that there should be some
> automagics & say like "okay you want to do indexing on integers (
> context dependent); i'll give you the index of 0th positio
Noam Raphael <[EMAIL PROTECTED]> writes:
>> Noam Raphael <[EMAIL PROTECTED]> writes:
> Of course, even in statically typed languages, you can't enforce
> an implementation to do what it should (too bad - it would have made
> debugging so much easier...)
That's what DbC languages are for. You writ
"John Roth" <[EMAIL PROTECTED]> writes:
> <[EMAIL PROTECTED]> wrote in message
> This may sound a bit
> cynical, but most real uber-programmers have either
> Lisp or Smalltalk in their backgrounds, and
> frequently both one. Neither of those languages
> have static typing, and they simply don't ne
[EMAIL PROTECTED] (Markus Franz) writes:
> Hallo!
>
>
> I have a problem with this little script written in Python:
>
>
> import sys, os, time
> texts = ['this is text1', 'this is text 2']
> for current_text in env_sources[0:]:
> pid = os.fork()
> if pid == 0:
> time.slee
Nick Coghlan <[EMAIL PROTECTED]> writes:
> jfj wrote:
> Python 3.0 will be a case of "OK, let's take the things we learned
> were good and keep them, and throw away the things we realised were
> bad"
>
> Undoubtedly, the two languages will co-exist for quite some time.
Perl 6.0 is going to includ
Ishwor <[EMAIL PROTECTED]> writes:
> On Fri, 24 Dec 2004 05:44:50 -0600, Mike Meyer <[EMAIL PROTECTED]> wrote:
>> Ishwor <[EMAIL PROTECTED]> writes:
>>
>> > On 23 Dec 2004 14:28:37 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote:
>> > My
[EMAIL PROTECTED] (Alex Martelli) writes:
> Mind you, I personally _like_ the concept of describing
> an interface separately, even in a different language (Corba's IDL, say)
> that's specialized for the task. But it doesn't seem to be all that
> popular... without such separation, modularity plu
Nick Coghlan <[EMAIL PROTECTED]> writes:
> I don't know enough about Portage to answer that question. I do know
> any package manager which made it into the standard distribution would
> need to work for at least the big three platforms (Windows/Mac/*nix) :)
Being written in python - and hopefull
Noam Raphael <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> That's what DbC languages are for. You write the contracts first,
>> then
>> the code to fullfill them. And get exceptions when the implementation
>> doesn't do what the contract claims it
Noam Raphael <[EMAIL PROTECTED]> writes:
> The current Python doesn't really support this concept. You can write
> in the __new__ of such a class something like "if cls ==
> MyAbstractClass: raise TypeError", but I consider this as a patch -
> for example, if you have a subclass of this class whic
HackingYodel <[EMAIL PROTECTED]> writes:
> Hello all! I'm learning to program at home. I can't imagine a better
> language than Python for this. The ideal situation, for me, would be
> to study two languages at the same time. Probably sounds crazy, but
> it works out better for me. Being a ne
aced in the public domain.
..
Local Variables:
mode: indented-text
indent-tabs-mode: nil
sentence-end-double-space: t
fill-column: 70
End:
--
Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
--
http://mail.python.org/mailman/listinfo/python-list
"Kartic" <[EMAIL PROTECTED]> writes:
> Hello,
>
> I downloaded the Win32 installer for Twisted 1.3.0, Python 2.3.
>
> The installer, when executed under my login, fails as it requires
> administrator rights to install (why they have it as a requirement, I
> don't understand).
>
> So I started the
"Kartic" <[EMAIL PROTECTED]> writes:
> Thanks. Does this mean I have to upgrade python 2.3.3 to python 2.4 in
> order to get this working?
Whoops. Yeah, the instruction are for using MSVC 7.1, which is what
2.4 is build with. 2.3.x is built with MSVC 6.x. That's no longer even
commercially availa
Aaron <[EMAIL PROTECTED]> writes:
> Hi,
>
> I'm interested in creating a large number of configuration files which I
> have no experience doing in python. The fields will be static for the most
> part. But design changes and I might want to add new fields in the future..
>
> My question is - whats
[EMAIL PROTECTED] (Alex Martelli) writes:
> Objective-C is cool... on the Mac; I'm not sure how well-supported it is
> elsewhere, though. In addition to C's advantages, it would let you make
> Cocoa GUIs on the Mac easily (with PyObjC &c). But then, the right way
> to study Obj-C from scratch is
[EMAIL PROTECTED] (Alex Martelli) writes:
> Mike Meyer <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] (Alex Martelli) writes:
>> > Mind you, I personally _like_ the concept of describing
>> > an interface separately, even in a different language (Corba's IDL
"Dan Bishop" <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> This version includes the input from various and sundry people.
> Thanks
>> to everyone who contributed.
>>
>>>
>> PEP: XXX
>> Title: A rational number module for Py
"John Roth" <[EMAIL PROTECTED]> writes:
> I'd suggest making them public rather than either protected or
> private. There's a precident with the complex module, where
> the real and imaginary parts are exposed as .real and .imag.
This isn't addressed in the PEP, and is an oversight on my part. I'
Nick Coghlan <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> Regarding str() and repr() behaviour, Ka-Ping Yee proposes that repr() have
>> the same behaviour as str() and Tim Peters proposes that str() behave like
>> the
>> to-scientific-string operation fro
[EMAIL PROTECTED] (Aahz) writes:
> While I'm in complete agreement about the "".join() construct on the
> basis of looks, I have come to appreciate the fact that I *never* mess up
> the order of arguments any more.
Yeah. When I needed joinable arrays of strings in Eiffel, I added them
to the ARRA
"B.G.R." <[EMAIL PROTECTED]> writes:
> Hi all,
>
> I'm working on an interpreter for a university subject, which is programmed
> in python under linux.
> I got most of the work done and I'm just trying to settle some problems I've
> found on my way.
> Right now, the most important is reading the u
Brian <[EMAIL PROTECTED]> writes:
> On a Slackware 9.1 box, I'm trying to detect if mpg123 is currently
> running/playing a song so that when the song is done, it'll play the next
> in the list. The problem is that popen'ing ps doesn't always give a
> correct return. My function is below and
Nick Coghlan <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> Yup. Thank you. This now reads:
>> Regarding str() and repr() behaviour, repr() will be either
>> ''rational(num)'' if the denominator is one, or ''rational(num,
>> den
Skip Montanaro <[EMAIL PROTECTED]> writes:
> Mike> ... or making them old-style classes, which is discouraged.
>
> Since when is use of old-style classes discouraged?
I was under the imperssion that old-style classes were going away, and
hence discouraged for new library modules.
However, a
"John Machin" <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>>
>> I've discovered a truly elegant trick with python programs that
>> interpret other data.
> Q0. Other than what?
Other than Python code.
>> You make them ignore lines that
"Donn Cave" <[EMAIL PROTECTED]> writes:
> Quoth Mike Meyer <[EMAIL PROTECTED]>:
> | [EMAIL PROTECTED] (Alex Martelli) writes:
> ...
> |> But then, the above criticism applies: if interface and implementation
> |> of a module are tightly coupled, you can
"John Roth" <[EMAIL PROTECTED]> writes:
> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Nick Coghlan <[EMAIL PROTECTED]> writes:
>>
>>> Mike Meyer wrote:
>>>> Yup. Thank you. Thi
[EMAIL PROTECTED] writes:
> @infix
> def interval(x, y): return range(x, y+1) # 2 parameters needed
>
> This may allow:
> assert 5 interval 9 == interval(5,9)
I don't like the idea of turning words into operators. I'd much rather
see something like:
@infix('..')
def interval(x, y):
return ra
Jp Calderone <[EMAIL PROTECTED]> writes:
> On Wed, 29 Dec 2004 11:42:00 -0600, Mike Meyer <[EMAIL PROTECTED]> wrote:
>>[EMAIL PROTECTED] writes:
>>
>> > @infix
>> > def interval(x, y): return range(x, y+1) # 2 parameters needed
>> >
>>
Steve Holden <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>
>> [EMAIL PROTECTED] writes:
>>
>>>@infix
>>>def interval(x, y): return range(x, y+1) # 2 parameters needed
>>>
>>>This may allow:
>>>assert 5 interval 9 == interv
Duncan Booth <[EMAIL PROTECTED]> writes:
> That leaves the former case: if your task has to stop and wait for
> something else to happen (e.g. data to be read from a network, or to
> be read from a disc file), then splitting it into multiple threads
> may allow the waits to be overlapped with usef
Jp Calderone <[EMAIL PROTECTED]> writes:
> On Wed, 29 Dec 2004 12:38:02 -0600, Mike Meyer <[EMAIL PROTECTED]> wrote:
>>Jp Calderone <[EMAIL PROTECTED]> writes:
>> > This aside, not even Python 3.0 will be flexible enough to let you define
>> > an
Steve Holden <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>
>> Steve Holden <[EMAIL PROTECTED]> writes:
>>
> [...]
>>>
>>>Well, perhaps you can explain how a change that's made at run time
>>>(calling the decorator) can affect
"Terry Reedy" <[EMAIL PROTECTED]> writes:
> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Steve Holden <[EMAIL PROTECTED]> writes:
>>> Well, perhaps you can explain how a change that's made at run
Bulba! <[EMAIL PROTECTED]> writes:
> On Sat, 25 Dec 2004 11:37:42 +0100, Georg Brandl <[EMAIL PROTECTED]>
> wrote:
>
>>what features would you expect of a Python package manager, similar to
>>CPAN or rubygems?
>
> IMVHO it would be nice if it had a feature for "upload package/module
> I have just
Peter Hansen <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> Python's threading models is pretty primitive. You get the C
>> model (which is error-prone), the Java model (in 2.4, and also
>> error-prone), or Queues.
> Can you please expand on your words ab
"3c273" <[EMAIL PROTECTED]> writes:
> Hello,
> I am trying to expand on a tutorial I am working through and I am not
> understanding something. In the following example if you click on the "New
> window" button, a new window appears with a "Close me" button in it and if
> you click on it's "Close
James Stroud <[EMAIL PROTECTED]> writes:
> On Friday 25 March 2005 08:39 am, Ivan Van Laningham wrote:
> Why do we need : at the end of our if and for loops? I spend approximately 6
> minutes/100 lines of code going back and finding all of the times I missed :.
> Is it for cheating?
Because new
Charles Hartman <[EMAIL PROTECTED]> writes:
> I'm working on text-handling programs that want plain-text files as
> input. It's fine to tell users to feed the programs with plain-text
> only, but not all users know what this means, even after you explain
> it, or they forget. So it would be nice t
"max(01)*" <[EMAIL PROTECTED]> writes:
> Peter Hansen wrote:
>> max(01)* wrote:
>>
>>> hi everybody.
>>>
>>> suppose that code-1.py imports code-2.py and code-3.py (because it
>>> uses names from both), and that code-2.py imports code-3.py.
>>>
>>> if python were c, code-1.c should only *include*
Andreas Beyer <[EMAIL PROTECTED]> writes:
> OK, you won. I read in an (regretably old) guidline for improving
> Python's performance that you should prefer map() compared to list
> comprehensions. Apparently the performance of list comprehensions has
> improved a lot, which is great. (Or the overh
"David Isaac" <[EMAIL PROTECTED]> writes:
> "Alan Isaac" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> I'd like to try personal financial management using Python.
>> I just found PyCheckbook, but it does not support check printing.
>> Is there a Python check printing application
[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.
Emacs is a computing environment. I read mail and news in it, so I
don't have to worry about learning some applications custom editor
(
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> Hi,
>
> I'm writing a small script that generates email and I've noticed that:
>
> 1) one should add the 'To' and 'CC' headers to the email message
> 2) one needs to specify the recipients in the smtplib sendmail() method
>
> Can someone explain ho
"max(01)*" <[EMAIL PROTECTED]> writes:
> hi.
>
> if i have a single program file, different class instances can share
> information in (at least) two fashions:
>
> 1. using instance variables:
>
> class AClass:
>def __init__(self):
> self.att_1 = 42
> self.att_2 = "Hello!"
>
> class
[EMAIL PROTECTED] (Aahz) writes:
> 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/
[EMAIL PROTECTED] writes:
> Hello, ... I am John McCormick (Systems Programmer ) and I am currently
> working on a python program which will connect (user) specified inputs
> and connect them to (user) selected outputs (like screen or
> video/audio-recording devices) and would like to know if ther
Ron_Adam <[EMAIL PROTECTED]> writes:
> In looking at ways to reduce the size of exe's created with py2exe,
> I've noticed that it will include a whole library or module even if I
> only need one function or value from it.
>
> What I would like to do is to import individual functions and then
> e
801 - 900 of 1299 matches
Mail list logo