Re: Metaclasses and class variables

2005-08-04 Thread Bengt Richter
On Thu, 4 Aug 2005 17:53:28 +0200, Jan-Ole Esleben [EMAIL PROTECTED] wrote: Thanks! It's a bit icky, yes, but I've been so wrapped up in complicated thinking that I didn't see this. It's actually quite an OK solution (I need it because I have an internal representation for method interfaces that

Re: Wheel-reinvention with Python

2005-08-04 Thread Mike Meyer
In [EMAIL PROTECTED], Cliff Wells [EMAIL PROTECTED] typed: On Thu, 2005-08-04 at 01:04 -0400, Mike Meyer wrote: Right. Let's go back to the original question: What's the app I use on Unix that acts like py2exe on Windows and py2app on Unix? Here's where I ask *you* to stop being an ass.

Re: Python IDE's

2005-08-04 Thread Mike Meyer
bruno modulix [EMAIL PROTECTED] writes: Jon Hewer wrote: I do use Vim a lot. I am currently using it for some PHP development i'm doing. I'm been using it so much recently that i keep pressing ESC and typing vi commands out of vi. But, if i use Vi, then whenever i want to test some code

Re: cut paste text between tkinter widgets

2005-08-04 Thread Christopher Subich
Repton wrote: This poses a small problem. I'm not sure whether this is a Win32-related issue, or it's because the PRIMARY selection isn't fully configured. You need to select something first :-) That doesn't work for inter-process communication, though, at least not with win32 native

Re: pain

2005-08-04 Thread Mike Meyer
Grant Edwards [EMAIL PROTECTED] writes: On 2005-08-03, Mage [EMAIL PROTECTED] wrote: Isn't jython slower (I mean performance) than java? As well as I understand jython code will be interpreted twice. Jython gets compiled into Java byte code just like Java gets compiled into Java byte code.

Re: Is there a way to determine -- when parsing -- if a word contains a builtin name or other imported system module name?

2005-08-04 Thread Peter Hansen
Casey Hawthorne wrote: Is there a way to determine -- when parsing -- if a word contains a builtin name or other imported system module name? As David pointed out, the keys in sys.modules are the names of all imported modules throughout the interpreter (but not just those in the current

Re: Wheel-reinvention with Python

2005-08-04 Thread Mike Meyer
Torsten Bronger [EMAIL PROTECTED] writes: Hallöchen! Mike Meyer [EMAIL PROTECTED] writes: Torsten Bronger [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: Torsten Bronger [EMAIL PROTECTED] writes: [...] You didn't answer the question about how you define agile project.

Re: Parallel arithmetic?

2005-08-04 Thread Terrance N. Phillip
Thank-you very much for all the excellent replies. I'm thinking of using this to determine if a sequence is a run (as in a card game). If I've got a sorted hand [3, 4, 5, 6, 7], then I know I've got a 5-card run because [4, 5, 6, 7] - [3, 4, 5, 6] == [1, 1, 1, 1]. I want to avoid something

Re: Parallel arithmetic?

2005-08-04 Thread Robert Kern
Terrance N. Phillip wrote: Thank-you very much for all the excellent replies. I'm thinking of using this to determine if a sequence is a run (as in a card game). If I've got a sorted hand [3, 4, 5, 6, 7], then I know I've got a 5-card run because [4, 5, 6, 7] - [3, 4, 5, 6] == [1, 1, 1, 1].

Euclid's Algorithm in Python?

2005-08-04 Thread Erik the Red
In Fundamental Algorithms (The Art of Computer Programming), the first algorithm discussed is Euclid's Algorithm. The only idea I have of writing this in python is that it must involve usage of the modulo % sign. How do I write this in python? --

Re: Setting a drive's volume label

2005-08-04 Thread Bob Greschke
Reinhold Birkenfeld [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bob Greschke wrote: Looks like the label system command will do it in Windows. That's good enough for this exercise. So, in Linux...??? mlabel in the mtools package will do what you need. mkfs.vfat can also be

Re: Py: a very dangerous language

2005-08-04 Thread Luis M. Gonzalez
This is great! It's absolutely useless, like a real therapist, but it's free! -- http://mail.python.org/mailman/listinfo/python-list

Re: Euclid's Algorithm in Python?

2005-08-04 Thread jepler
Well, this article http://pythonjournal.cognizor.com/pyj1/AMKuchling_algorithms-V1.html was the first hit on google for 'euclid's algorithm python'. It contains this function: def GCD(a,b): assert a = b # a must be the larger number while (b != 0):

Re: Euclid's Algorithm in Python?

2005-08-04 Thread Jordan Rastrick
Raising an assertion error for a b is a bit of overkill, since its not really a case of bad input. So normally you see Euclid done like this: def gcd(a,b): # All lowercase for a function is a bit more conventional. if a b: a, b = b, a # Ensures a = b by swapping a and b if

Re: Idiots guide to fonts with tKinter

2005-08-04 Thread RangerElf
Well, all text classes in Tkinter can take a font=(...) argument to specify the face with which to display, for example: from tkinter import * label = Label(root, font=(Helvetica, bold, 13), ...) It's been a while since I've played with Tkinter, so I might be a little off on the exact

Newbie Program

2005-08-04 Thread Eric
I am reading a book on Python and ran across and exercise that I just can't seem to figure out. Its pretty simple, but I just can't get past a certain point. The task is to create a program that flips a coin 100 times and keeps track of the total of heads and tails which is printed to the

time.strftime %T missing in 2.3

2005-08-04 Thread Andy Leszczynski
Python 2.2/Unix time.strftime(%T) '22:12:15' time.strftime(%X) '22:12:17' Python 2.3/Windows time.strftime(%X) '22:12:47' time.strftime(%T) '' Any clues? A. -- http://mail.python.org/mailman/listinfo/python-list

Re: Idiots guide to fonts with tKinter

2005-08-04 Thread James Stroud
No doubt you have found Fredrik Lundh's intro: http://www.pythonware.com/library/tkinter/introduction/ You can get a long way with that and experimenting. Also, check out Tk: http://www.astro.princeton.edu/~rhl/Tcl-Tk_docs/tk8.0a1/contents.html If you can figure out how to translate the Tk

Re: time.strftime %T missing in 2.3

2005-08-04 Thread Robert Kern
Andy Leszczynski wrote: Python 2.2/Unix time.strftime(%T) '22:12:15' time.strftime(%X) '22:12:17' Python 2.3/Windows time.strftime(%X) '22:12:47' time.strftime(%T) '' From http://docs.python.org/lib/node252.html The full set of format codes supported varies across

Mail System Error - Returned Mail

2005-08-04 Thread MAILER-DAEMON
The original message was received at Fri, 5 Aug 2005 08:53:02 +0300 from python.org [182.250.185.89] - The following addresses had permanent fatal errors - python-list@python.org -- http://mail.python.org/mailman/listinfo/python-list

[ python-Bugs-1251631 ] Python 2.4.1 crashes when importing the attached script

2005-08-04 Thread SourceForge.net
Bugs item #1251631, was opened at 2005-08-04 09:18 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1251631group_id=5470 Please note that this message will contain a full copy of

[ python-Bugs-1163244 ] Syntax error on large file with MBCS encoding

2005-08-04 Thread SourceForge.net
Bugs item #1163244, was opened at 2005-03-14 22:20 Message generated for change (Comment added) made by tzot You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1163244group_id=5470 Please note that this message will contain a full copy of the comment thread,

[ python-Bugs-1251921 ] Fail codecs.lookup() on 'mbcs' and 'tactis'

2005-08-04 Thread SourceForge.net
Bugs item #1251921, was opened at 2005-08-04 16:11 Message generated for change (Comment added) made by lemburg You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1251921group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1251300 ] Decoding with unicode_internal segfaults on UCS-4 builds

2005-08-04 Thread SourceForge.net
Bugs item #1251300, was opened at 2005-08-03 21:49 Message generated for change (Comment added) made by lemburg You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1251300group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1251921 ] Fail codecs.lookup() on 'mbcs' and 'tactis'

2005-08-04 Thread SourceForge.net
Bugs item #1251921, was opened at 2005-08-04 09:11 Message generated for change (Comment added) made by liturgist You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1251921group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1251921 ] Fail codecs.lookup() on 'mbcs' and 'tactis'

2005-08-04 Thread SourceForge.net
Bugs item #1251921, was opened at 2005-08-04 09:11 Message generated for change (Comment added) made by liturgist You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1251921group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1251921 ] Fail codecs.lookup() on 'mbcs' and 'tactis'

2005-08-04 Thread SourceForge.net
Bugs item #1251921, was opened at 2005-08-04 09:11 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1251921group_id=5470 Please note that this message will contain a full copy of

[ python-Bugs-1196154 ] Error: ... ossaudiodev.c, line 48: Missing type specifier

2005-08-04 Thread SourceForge.net
Bugs item #1196154, was opened at 2005-05-05 19:53 Message generated for change (Comment added) made by diskman You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1196154group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1163244 ] Syntax error on large file with MBCS encoding

2005-08-04 Thread SourceForge.net
Bugs item #1163244, was opened at 2005-03-14 20:20 Message generated for change (Comment added) made by jkew You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1163244group_id=5470 Please note that this message will contain a full copy of the comment thread,

[ python-Bugs-1252149 ] IOError after normal write

2005-08-04 Thread SourceForge.net
Bugs item #1252149, was opened at 2005-08-04 19:30 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1252149group_id=5470 Please note that this message will contain a full copy of

[ python-Bugs-1252149 ] IOError after normal write

2005-08-04 Thread SourceForge.net
Bugs item #1252149, was opened at 2005-08-04 15:30 Message generated for change (Comment added) made by tim_one You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1252149group_id=5470 Please note that this message will contain a full copy of the comment

<    1   2