Re: Zope 3

2006-04-25 Thread bruno at modulix
Steve Juranich wrote: Derick van Niekerk wrote: (snip) I would like to start my next web project (a database of demographic info on scientists in Africa) on Zope 3. Could anybody point me in the right direction? Where should I start? After you look through the tutorial (which is simply a

RE: Hooking things up in GUI application

2006-04-25 Thread Ryan Ginstrom
Behalf Of sturlamolden Ryan Ginstrom wrote: Yes, I've tried something similar with wxGlade. But GLADE is not wxGlade :-) Yes, I'm just saying that I've done something similar to your example. In fact, wxCard also does this auto-generation of handlers. That's a start, but it's still

Re: How do I open a mysql database with python

2006-04-25 Thread sturlamolden
http://sourceforge.net/projects/mysql-python -- http://mail.python.org/mailman/listinfo/python-list

Re: FOUNDIT (was Re: massive threading performance)

2006-04-25 Thread Paul Sijben
Lawrence D'Oliveiro wrote: In article [EMAIL PROTECTED], Paul Sijben [EMAIL PROTECTED] wrote: I found that the problem was caused by the sending thread not giving control back quickly enough to the receiving thread. Also in going through the code I found an old self.s.setblocking(0)call

How do I set the __debug__ flag in a win32com server?

2006-04-25 Thread ago
Hi all, When I use my win32com.server object from an excel client, the python process running the server always has __debug__==True. When using a python client the __debug__ flag for the server is determined by the client (i.e. if I start the client with 'python -o client.py' then __debug__ ==

Re: Coming from delphi - looking for an IDE - willing to spend money

2006-04-25 Thread RunLevelZero
Check out SciTE. It is from the creator of Scintilla and it's great. It's not a full IDE but with python you'll learn you really don't need it, at least IMHO. It's fast and works on windows and Linux. http://www.scintilla.org/SciTE.html I would also checkout WingIDE. Its one of the best, again

Re: Zope 3

2006-04-25 Thread Egon Frerich
What is pythonic? See: http://faassen.n--tree.net/blog/view/weblog/2005/08/06/0 bruno at modulix schrieb am 25.04.2006 17:10: Benji York wrote: bruno at modulix wrote: Zope is a world in itself - and is certainly not the simplest tool to learn (nor the most pythonic). Those statements

Re: MinGW and Python

2006-04-25 Thread Scott David Daniels
sturlamolden wrote: Robert Kern wrote: - gcc does not optimize particularly well. That is beyond BS. The more recent gcc releases optimize as well as any commercial compiler. This is an outrageous claim. Having worked a bit doing compilers, I no of no commercial compiler that would

Re: Hooking things up in GUI application

2006-04-25 Thread sturlamolden
Ryan Ginstrom wrote: But I don't want to argue this point, just state that this isn't the problem I want to solve. I really liked the idea of KVO/KVC in Cocoa that James Stroud mentioned. That is what I am after, or something like that. If there isn't anything like that, I think that it

Re: Zope 3

2006-04-25 Thread Steve Juranich
bruno at modulix wrote: Actually, the OP was asking about Zope3, which is a *very* different beast. Okay, so my ignorance is showing (/me pauses to stuff it back where it belongs). So is there some big master diff, along the lines of What's new in Python X.X that I could look at to get an

Tkinter: Dynamic entry widget

2006-04-25 Thread Arne
Hello ! I want to create entry widgets dynamically. var = [one, two, three] i=0 for x in var: textbox = t_, x textbox = entry(frame) textbox.grid(row=4+i, column=0) i = i + 1 This works ok. On the window are the entries like I want. When I want to get to entered data from the

Dell Support Web Site Automation.

2006-04-25 Thread S. D. Rose
Hello all. Awhile back I was playing with win32all package to get system information from the Dell PCs. However, I'm using a win32 program, bginfo, to get the information on the PC and insert it into a MySQL database. Of the fields I'm recording, I am saving the system serial number. I was

Re: MinGW and Python

2006-04-25 Thread Edward Elliott
Alex Martelli wrote: At the same time, if the 14% slowdown is representative, then it's not true that the compiler responsible for it optimizes as well as the other; indeed, does not optimize particularly well, under such a hypothesis, would be far from a beyond BS assertion. Maybe someone

Re: MinGW and Python

2006-04-25 Thread Edward Elliott
Alex Martelli wrote: about MacOSX, which also uses gcc: 14% faster pybench using Python 2.4.3 this is the second time I've seen that 14% figure. OOC, where does it come from? the data sets you posted show an average 12.6% speedup. 14 is an odd way to round. :) I don't think it's very useful

Re: MinGW and Python

2006-04-25 Thread Edward Elliott
Brian Elmegaard wrote: Martin v. Löwis [EMAIL PROTECTED] writes: You can build the entire Python interpreter with Cygwin (but you don't need to, because there is a precompiled version), and you can build extensions for the python.org binary using MingW. Great, then I tend to agree that

search an entire website given the homepage URL

2006-04-25 Thread Bell, Kevin
I know I can use urllib2 to get at a website given urllib2.urlopen(url) but I'm unsure how to then go through all pages that are linked to it, but still in the domain. If I want to search through the entire python website give the homepage, how would I go about it? I don't reinvent the wheel if

Re: How do I open a mysql database with python

2006-04-25 Thread BartlebyScrivener
Or mxODBC http://www.egenix.com/files/python/mxODBC.html rpd -- http://mail.python.org/mailman/listinfo/python-list

Re: Counting elements in a list wildcard

2006-04-25 Thread Edward Elliott
John Machin wrote: On 25/04/2006 6:26 PM, Iain King wrote: iain = re.compile((Ia(i)?n|Eoin)) steven = re.compile(Ste(v|ph|f)(e|a)n) IMHO, the amount of hand-crafting that goes into a *general-purpose* phonetic matching algorithm is already bordering on overkill. Your method using REs would

Re: python application ideas.

2006-04-25 Thread Anthony Greene
On Tue, 25 Apr 2006 09:51:42 -0500, Thomas Bartkus wrote: Anthony Greene [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I know this isn't really a python centric question, but I'm seeking help from my fellow python programmers. I've been learning python for the past year

Re: Counting elements in a list wildcard

2006-04-25 Thread Edward Elliott
John Machin wrote: On 25/04/2006 3:15 PM, Edward Elliott wrote: Phoneme matching seems overly complex and might grab things like Tsu-zi. It might *only* if somebody had a rush of blood to the head and devised yet another phonetic key algorithm. Tsuzi does *not* give the same result as any

Re: search an entire website given the homepage URL

2006-04-25 Thread Fredrik Lundh
Bell, Kevin wrote: I know I can use urllib2 to get at a website given urllib2.urlopen(url) but I'm unsure how to then go through all pages that are linked to it, but still in the domain. If I want to search through the entire python website give the homepage, how would I go about it? use a

Re: OOP / language design question

2006-04-25 Thread Duncan Booth
bruno at modulix wrote: class Base(object): def __init__(self, arg1): self.attr1 = arg1 self.dothis() def dothis(self): return self.attr1 class Derived(Base): def __init__(self, arg1, arg2=0): self.attr2 = arg2 Base.__init__(self, arg1) def

Re: Zope 3

2006-04-25 Thread Egon Frerich
Steve Juranich schrieb am 25.04.2006 18:24: bruno at modulix wrote: Actually, the OP was asking about Zope3, which is a *very* different beast. Okay, so my ignorance is showing (/me pauses to stuff it back where it belongs). So is there some big master diff, along the lines of What's

Re: MinGW and Python

2006-04-25 Thread sturlamolden
Edward Elliott wrote: if so, i do see good reason to build with mingw instead of gcc/cygwin. MinGW and Cygwin GCC is actually the same compiler. On Cygwin you can remove the dependency on the cygwin dll by compiling with -mno-cygwin. But as long as the cygwin dll is there, it creates an

Re: I have problems with creating the classic game Wumpus. the file: http://esnips.com/webfolder/b71bfe95-d363-4dd3-bfad-39999a9e36d0

2006-04-25 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: Im trying to create a version of the game Wumpus. Mine is called Belzebub. But im STUCK! And its due tuesday 2 maj. Im panicing! Can some one help me?? here is the file: http://esnips.com/webfolder/b71bfe95-d363-4dd3-bfad-3a9e36d0 What i have the biggest

Re: I have problems with creating the classic game Wumpus. the file: http://esnips.c

2006-04-25 Thread [EMAIL PROTECTED]
connyledin wrote: Im trying to create a version of the game Wumpus. Mine is called Belzebub. But im STUCK! And its due tuesday 2 maj. Im panicing! Can some one help me?? here is the file: http://esnips.com/webfolder/b71bfe95-d363-4dd3-bfad-3a9e36d0 What i have the biggest problems with

Re: Tkinter: Dynamic entry widget

2006-04-25 Thread Fredrik Lundh
Arne wrote: I want to create entry widgets dynamically. var = [one, two, three] i=0 for x in var: textbox = t_, x textbox = entry(frame) textbox.grid(row=4+i, column=0) i = i + 1 This works ok. On the window are the entries like I want. When I want to get to entered

Re: search an entire website given the homepage URL

2006-04-25 Thread Bell, Kevin
use a search engine (try the search box in the upper right corner). using a spider to download the entire site just so you can search through it is bloody impolite. Really? I'd argue that's impolite only if you're an impolite person with a rude agenda, which is not what I had in mind, but

Re: The whitespaceless frontend

2006-04-25 Thread Edward Elliott
[EMAIL PROTECTED] wrote: It's less explicit than self. but it's shorter, this improves typing, and allows to produce more compact code: return .join([Graph(, repr($o), , , repr($nodeData), )]) Instead of: return .join([Graph(, repr(self.o), , , repr(self.nodeData), )]) It also

Re: Probability Problem

2006-04-25 Thread Tim Peters
[Elliot Temple] I think I got it. I noticed my code is essentially the same as Tim Peter's (plus the part of the problem he skipped). I read his code 20 minutes before recreating mine from Alex's hints. Thanks! def main(): ways = ways_to_roll() total_ways = float(101**10)

Re: Zope 3

2006-04-25 Thread [EMAIL PROTECTED]
I have been using ZOPE (mostly with CMF/Plone) for a couple years now. MY recolleciton of the initial leraning curve, was hours reading through source code, newsgroups, web site, outdated garbage, days long marathons of coffee, beer and very little sleep. After about 2 weeks of this horrible

Re: MinGW and Python

2006-04-25 Thread Edward Elliott
sturlamolden wrote: MinGW and Cygwin GCC is actually the same compiler. On Cygwin you can remove the dependency on the cygwin dll by compiling with -mno-cygwin. But as long as the cygwin dll is there, it creates an overhead for any system call. Thanks for that very informative post! To

Re: I have problems with creating the classic game Wumpus. the file: http://esnips.c

2006-04-25 Thread conny . ledin
the file is on that side. But apparently you have to register to download it.. =( But i can send it to anone who is willing to look trough it. just send me an email [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: I have problems with creating the classic game Wumpus. the file: http://esnips.com/webfolder/b71bfe95-d363-4dd3-bfad-39999a9e36d0

2006-04-25 Thread conny . ledin
the file is on that side. But apparently you have to register to download it.. =( But i can send it to anone who is willing to look trough it. just send me an email [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Zope 3

2006-04-25 Thread Rene Pijlman
Steve Juranich: is there some big master diff, along the lines of What's new in Python X.X that I could look at to get an idea of what z3 has that 2.9 (which I'm currently still cutting my teeth on) doesn't? It's a redesign. Z2: mixin base classes Z3: component architecture with interfaces

Re: python application ideas.

2006-04-25 Thread Edward Elliott
Thomas Bartkus wrote: Tis the conundrum of programming in general. If all you know how to do is write code - then you truly have nothing to do. What *other* interests do you have? Hobbies? Job Skills? What *does* blow your hair back ;-) That's where your programming ideas need to come

parallel computing

2006-04-25 Thread Sori Schwimmer
Hi All, While working on a project, I discovered lots of little opportunities for real parallelism. For instance, the following class initialization: from pg import DB class example: def __init__(self): # find somehow HOST1, HOST2

Re: python application ideas.

2006-04-25 Thread [EMAIL PROTECTED]
Thats the best way to go about it. Python I find is fun because you can just play with the interpreter throwing commands at it and really just working with syntax and usually POC ideas. The most useful ideas usually just come to you. I recieved a pretty barebones MP3 player from my sister for

PyThreadState_SetAsyncExc and native extensions

2006-04-25 Thread gabriel . becedillas
Does anyone know if PyThreadState_SetAsyncExc stops a thread while its inside a native extension ? I'm trying to stop a testing script that boils down to this: while True: print aaa native_extension_call() print bbb Using PyThreadState_SetAsyncExc the module doesn't stop but if I add

Re: python application ideas.

2006-04-25 Thread Scott David Daniels
Anthony Greene wrote: So true man, I guess I need to truly sit down and determine these things. I love to do a lot of things, read, hang out, skate, which are a few amongst other things From the skating: OK, say you have a 3-d surface, what is the path a ball bearing with a particular

Xah's Edu Corner: Criticism vs Constructive Criticism

2006-04-25 Thread Xah Lee
Criticism versus Constructive Criticism Xah Lee, 2003-01 A lot intelligent people are rather confused about criticism, especially in our “free-speech” free-for-all internet age. When they say “constructive criticisms are welcome” they mostly mean “bitching and complaints not welcome”. Rarely do

Re: MS VC++ Toolkit 2003, where?

2006-04-25 Thread Martin v. Löwis
Fredrik Lundh wrote: however, note that the FAQ entry says that you can use an existing LIB file as well, so Python's standard import library should work. Right. MingW (GNU ld) was (apparently) changed to support that shortly after I started including libpython24.a files with the Windows

Multithreading and Queue

2006-04-25 Thread Jeffrey Barish
Several methods in Queue.Queue have warnings in their doc strings that they are not reliable (e.g., qsize). I note that the code in all these methods is bracketed with lock acquire/release. These locks are intended to protect the enclosed code from collisions with other threads. I am wondering

Re: Multithreading and Queue

2006-04-25 Thread Tim Peters
[Jeffrey Barish] Several methods in Queue.Queue have warnings in their doc strings that they are not reliable (e.g., qsize). I note that the code in all these methods is bracketed with lock acquire/release. These locks are intended to protect the enclosed code from collisions with other

Re: Xah's Edu Corner: Criticism vs Constructive Criticism

2006-04-25 Thread Ari Johnson
Xah Lee [EMAIL PROTECTED] writes: A large amount of free, constructive criticism follows. 1. Learn where to post things. Criticism versus Constructive Criticism 2. Learn when to capitalize words in a title. Xah Lee, 2003-01 3. Learn when to post things. A lot intelligent people are

pCFITSIO problems

2006-04-25 Thread Tommy Grav
I am trying to install pCFITSIO on my Mac (Mac OS X.4.  Numarray is already installed and imports fine in python (ActivePhyton v2.4.2), but when I try to build pCFITSIO itfails in finding a number of .h files for numarray. [tgravi] Desktop/pCFITSIO-0.99.3 -python setup.py buildrunning buildrunning

Re: MinGW and Python

2006-04-25 Thread Martin v. Löwis
Brian Elmegaard wrote: That is simply not true. Actually, you answered me then too. I misunderstood after reading http://sebsauvage.net/python/mingw.html. Is the information on that page not correct? Has it never been? It's not correct, to the best of my knowledge. However, since very

Re: search an entire website given the homepage URL

2006-04-25 Thread Fredrik Lundh
Bell, Kevin wrote: use a search engine (try the search box in the upper right corner). using a spider to download the entire site just so you can search through it is bloody impolite. Really? I'd argue that's impolite only if you're an impolite person with a rude agenda, which is not what

Re: MinGW and Python

2006-04-25 Thread Martin v. Löwis
Edward Elliott wrote: Thanks for that very informative post! To clarify, mingw (aka gcc -mno-cygwin) has no POSIX layer like cygwin. Because your post could also be (incorrectly) interpreted to mean mingw removes the cygwin dll dependency by just linking it in statically. But I googled and

Re: MinGW and Python

2006-04-25 Thread Martin v. Löwis
sturlamolden wrote: - there is no build process available to do that In MSYS: $ ./configure --prefix=/c/mingw $ make $ make install This should be obvious to any with Unix experience. MinGW actually distribute precompiled Python binaries as well (in MSYS-DTK). So how does that

Plotting package?

2006-04-25 Thread Andrew Koenig
This may be a foolish question, but what's the most straightforward way to plot a bunch of data in Python? That is, I want to write a program that does some number crunching, and then I want to change some parameters and watch how the changes affect the results. I could produce a file to hand

Re: list example

2006-04-25 Thread Andrew Koenig
PAolo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] for i in range(1,10): if i%2: odd.append(i) else: even.append(i) In 2.5 you'll be able to say for i in range(1,10): (odd if i%2 else even).append(i) Whether you want to

Re: Plotting package?

2006-04-25 Thread [EMAIL PROTECTED]
Try matplotlib, it's pretty nice and easy to use. -- http://mail.python.org/mailman/listinfo/python-list

Re: MinGW and Python

2006-04-25 Thread Ross Ridge
sturlamolden wrote: MinGW and Cygwin GCC is actually the same compiler. Not exactly. They're both GCC, but the MinGW compiler that you can download from MinGW WWW site is a native Win32 appliction, while the MinGW compiler included with Cygwin and invoked by -mno-cygwin is a Cygwin

Re: Plotting package?

2006-04-25 Thread Jorge Godoy
Andrew Koenig wrote: This may be a foolish question, but what's the most straightforward way to plot a bunch of data in Python? That is, I want to write a program that does some number crunching, and then I want to change some parameters and watch how the changes affect the results. I

Re: MinGW and Python

2006-04-25 Thread Ross Ridge
sturlamolden wrote: MinGW can compile MFC. Download Windows Platform SDK and you get the MFC source. Do not do this. The Platform SDK's EULA does not permit you to redistribute anything you build from the MFC sources included in the SDK. The only way to get a copy of MFC that you can

Re: Plotting package?

2006-04-25 Thread John Hunter
Andrew == Andrew Koenig [EMAIL PROTECTED] writes: Andrew This may be a foolish question, but what's the most Andrew straightforward way to plot a bunch of data in Python? in matplotlib/pylab from pylab import figure, show x = range(10) y = [val**2 for val in x] fig = figure()

Re: MinGW and Python

2006-04-25 Thread sturlamolden
Edward Elliott wrote: Couldn't you compile the msvc-python code under gcc/mingw? Yes I could, but I cannot compile the code under msvc for comparison. I only have MinGW. If build the mingw binary then someone else has to build the msvc binary for comparison. Then we could do pybenches on the

Re: OOP / language design question

2006-04-25 Thread Bruno Desthuilliers
Duncan Booth a écrit : bruno at modulix wrote: class Base(object): def __init__(self, arg1): self.attr1 = arg1 self.dothis() def dothis(self): return self.attr1 class Derived(Base): def __init__(self, arg1, arg2=0): self.attr2 = arg2 Base.__init__(self, arg1)

Re: search an entire website given the homepage URL

2006-04-25 Thread Steve Holden
Bell, Kevin wrote: use a search engine (try the search box in the upper right corner). using a spider to download the entire site just so you can search through it is bloody impolite. Really? I'd argue that's impolite only if you're an impolite person with a rude agenda, which is not

Re: Zope 3

2006-04-25 Thread Bruno Desthuilliers
Steve Juranich a écrit : bruno at modulix wrote: Actually, the OP was asking about Zope3, which is a *very* different beast. Okay, so my ignorance is showing (/me pauses to stuff it back where it belongs). So is there some big master diff, along the lines of What's new in Python X.X

released: RPyC 2.50A

2006-04-25 Thread gangesmaster
Remote Python Call 2.50 release-candidate http://rpyc.wikispaces.com -tomer -- http://mail.python.org/mailman/listinfo/python-list

Re: Xah's Edu Corner: Criticism vs Constructive Criticism

2006-04-25 Thread mfmorss
Would these contestants please GET OFF THE LIST with their non-Python-related contentiousness? Mark F. Morss Principal Analyst, Market Risk American Electric Power Ari Johnson

Re: MinGW and Python

2006-04-25 Thread Ross Ridge
Martin v. Löwis wrote: Well, there is no native C library on Microsoft Windows: the system simply doesn't include an official C library (I know there is crtdll.dll and msvcrt.dll, but these aren't endorsed system C libraries). MSVCRT.DLL has been a standard system compent of Windows since at

Re: MinGW and Python

2006-04-25 Thread [EMAIL PROTECTED]
sturlamolden wrote: But as long as the cygwin dll is there, it creates an overhead for any system call. The worst overhead is associated with the Unix fork() system call, which Cygwin must emulate as there are no Win32 equivalent. In particular, a fork() on Unix will be optimized with

cgi subprocess, cannot get output

2006-04-25 Thread Jakub Piotr Nowak
Hello, In the following cgi program, I cannot get subprocess output. I print the header, flush stdout to prepare it to new content, but variable 'o' is always empty. Could somebody help me with that? def main(): print Content-type: text/html\n\n sys.stdout.flush() if

Re: Multithreading and Queue

2006-04-25 Thread robert
Jeffrey Barish wrote: Several methods in Queue.Queue have warnings in their doc strings that they are not reliable (e.g., qsize). I note that the code in all these methods is bracketed with lock acquire/release. These locks are intended to protect the enclosed code from collisions with other

Re: MinGW and Python

2006-04-25 Thread Edward Elliott
sturlamolden wrote: Edward Elliott wrote: Couldn't you compile the msvc-python code under gcc/mingw? Yes I could, but I cannot compile the code under msvc for comparison. I only have MinGW. If build the mingw binary then someone else has to build the msvc binary for comparison. Then we

Re: Can one query full name (or version) of selected packages at pypi?

2006-04-25 Thread Caleb Hattingh
Hi Martin Pretty much exactly what I wanted :) How up-to-date does Debian keep its package list for python addons, or are you running Unstable? My big problem, being in South Africa, is that I have to get any distros on cover CDs or order from distro-resellers, and they never have Testing or

Re: MinGW and Python

2006-04-25 Thread Edward Elliott
Martin v. Löwis wrote: Well, you are not compiling with neither mingw, nor cygwin; you are compiling with gcc in either case. touche, mr. pedant. :) Well, there is no native C library on Microsoft Windows: the system simply doesn't include an official C library (I know there is crtdll.dll

Re: MinGW and Python

2006-04-25 Thread Edward Elliott
Ross Ridge wrote: MSVCRT.DLL ... It's not exactly endorsed, Microsoft would rather you use it's current compiler and runtime, but it is the standard official Windows system C library. Does it comply with the ANSI C89 standard? I'm still not seeing why mingw can't just link python to it. --

Re: Looking for resources for making the jump from Java to Python easier and more productive

2006-04-25 Thread Bruno Desthuilliers
bruno at modulix a écrit : Lawrence D'Oliveiro wrote: In article [EMAIL PROTECTED], bruno at modulix [EMAIL PROTECTED] wrote: Lawrence D'Oliveiro wrote: (snip) I suppose this is an instance of the more general rule: using OO when you don't have to. Lawrence, I'm afraid you're

Re: proposed Python logo

2006-04-25 Thread [EMAIL PROTECTED]
The simplest and most widely known Monty Python image I can think of is a dead parrot. So maybe an upside-down parrot? Could be nice and colorful too, not to mention memorable. It is true that many won't make the connection between some kind of Monty Python image and the Python language, as they

Re: search an entire website given the homepage URL

2006-04-25 Thread Bell, Kevin
Fredrik wrote: to grab entire sites ? try doing that on a commercial data provider's site, and chances are that you'll end up being banned (or sued) within hours ... - Me: Nope, I never said that to start with... Well I certainly am learning a lot. I never said I intended to

Re: MinGW and Python

2006-04-25 Thread sturlamolden
Edward Elliott wrote: Sorry, I didn't mean you personally, I meant you in the general sense. OK :-) I've just tried to build Python 2.4.3 with MinGW (MSYS 1.0.10, GCC 3.4.2): $ ./configure --prefix=/c/Python243-mingw $ make The build then failed on posixmodule.c. Sturla Molden

Re: MinGW and Python

2006-04-25 Thread Robert Kern
Edward Elliott wrote: Ross Ridge wrote: MSVCRT.DLL ... It's not exactly endorsed, Microsoft would rather you use it's current compiler and runtime, but it is the standard official Windows system C library. Does it comply with the ANSI C89 standard? I'm still not seeing why mingw can't just

Re: MinGW and Python

2006-04-25 Thread Neil Hodgson
sturlamolden: Uh .. I actually think it could be an EULA violation to publish mingw vs. msvc benchmarks without permission from Microsoft. I don't want to part of anything illegal or have M$ lawyers breathing down my back. If we are going to do this, then we must do it properly and get the

Re: MinGW and Python

2006-04-25 Thread sturlamolden
Martin v. Löwis wrote: Please believe me: there is currently no build process that gives the same results as the build process used. It might be fairly easy to create one, but none exists as of today. I tried to build with MinGW this eveing and it failed. I believe you We need to make a

Re: Plotting package?

2006-04-25 Thread Lou Pecora
In article [EMAIL PROTECTED], Andrew Koenig [EMAIL PROTECTED] wrote: This may be a foolish question, but what's the most straightforward way to plot a bunch of data in Python? That is, I want to write a program that does some number crunching, and then I want to change some parameters

Re: MinGW and Python

2006-04-25 Thread sturlamolden
Look what I just found: http://jove.prohosting.com/iwave/ipython/pyMinGW.html A build process for python 2.4.2 (i.e. not the latest) for MinGW. -- http://mail.python.org/mailman/listinfo/python-list

Re: MS VC++ Toolkit 2003, where?

2006-04-25 Thread Ross Ridge
Martin v. Löwis wrote: Right. MingW (GNU ld) was (apparently) changed to support that shortly after I started including libpython24.a files with the Windows distributions. A bug in binutils support for short import library records was fixed about year ago. You need to use MinGW binutils

Re: Xah's Edu Corner: Criticism vs Constructive Criticism

2006-04-25 Thread John Bokma
Ari Johnson [EMAIL PROTECTED] wrote: 24. Learn when not to reply to a troll (and bother several groups while doing so). -- John Bokma Freelance software developer Experienced Perl programmer: http://castleamber.com/ --

can someone explain why ..

2006-04-25 Thread Schüle Daniel
I don't understand what is the difference between commented lines 1 and 2 with 1 uncommented and 2 commented it works as expected with 1 commented and 2 uncommented the picture doesn't appear here is my code #!/usr/bin/env python from Tkinter import * from Tkconstants import * root = None

Re: can someone explain why ..

2006-04-25 Thread Farshid Lashkari
Schüle Daniel wrote: I don't understand what is the difference between commented lines 1 and 2 with 1 uncommented and 2 commented it works as expected with 1 commented and 2 uncommented the picture doesn't appear I'm not familiar with Tkinter, but it seems as thought with 2, the image

help finding

2006-04-25 Thread Gary Wessle
Hi I am going through some tutorials, how do I find out about running a script from the python prompt? is there a online ref and how to access it? thank you -- http://mail.python.org/mailman/listinfo/python-list

Re: can someone explain why ..

2006-04-25 Thread Schüle Daniel
Farshid Lashkari schrieb: Schüle Daniel wrote: I don't understand what is the difference between commented lines 1 and 2 with 1 uncommented and 2 commented it works as expected with 1 commented and 2 uncommented the picture doesn't appear I'm not familiar with Tkinter, but it seems as

Re: cmd module busy waiter ?

2006-04-25 Thread placid
Dennis Lee Bieber wrote: On 23 Apr 2006 23:49:51 -0700, placid [EMAIL PROTECTED] declaimed the following in comp.lang.python: Just wondering if the cmd module in python uses busy waiting for polling user command input as this is inefficient. Use the Source... At least on

Re: can someone explain why ..

2006-04-25 Thread Farshid Lashkari
Schüle Daniel wrote: thx for quick reply :) image is local variable of imageLabel I would expect that in case imageLabel lives, it should hold alife objects bound to its local variables I am just curious *why* reference to image is not hold by imageLabel which on his part is hold by

Re: search an entire website given the homepage URL

2006-04-25 Thread Terry Reedy
Bell, Kevin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I would like some feedback about my actual intention though, which is to scrape local newspaper websites for the names of people that I work with. Twice this month, colleagues have unknowingly been in the newspaper, and

Re: can someone explain why ..

2006-04-25 Thread Schüle Daniel
[..] These are the only lines of code that reference imageLabel: imageLabel = Label(master = frame1, image = image) imageLabel.pack() Unless the constructor of Label adds a reference of itself to frame1, imageLabel will also become garbage collected at the end of the constructor.

Re: Xah's Edu Corner: Criticism vs Constructive Criticism

2006-04-25 Thread Terry Reedy
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Would these contestants please GET OFF THE LIST with their non-Python-related contentiousness? [snip long repost of the very stuff complained about] -- http://mail.python.org/mailman/listinfo/python-list

Re: help finding

2006-04-25 Thread Scott David Daniels
Gary Wessle wrote: Hi I am going through some tutorials, how do I find out about running a script from the python prompt? Normally you don't do that. What OS and Python versions are you using? Do think about following the advice in smart questions. is there a online ref and how to access

Re: Xah's Edu Corner: Criticism vs Constructive Criticism

2006-04-25 Thread rambam
Xah Lee [EMAIL PROTECTED] writes: A large amount of free, constructive criticism follows. Just the usual repetitive content free stream-of-consciousness material that Xah Lee is notorious for. -- http://mail.python.org/mailman/listinfo/python-list

do while loop

2006-04-25 Thread
suggest add do while loop in later version -- http://mail.python.org/mailman/listinfo/python-list

Re: I have problems with creating the classic game Wumpus. the file: http://esnips.c

2006-04-25 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: the file is on that side. But apparently you have to register to download it.. =( But i can send it to anone who is willing to look trough it. just send me an email [EMAIL PROTECTED] Ok, e-mail it to me. But I cannot guarantee anything. I'll peruse it at my leisure.

Re: can someone explain why ..

2006-04-25 Thread Grant Edwards
On 2006-04-25, Farshid Lashkari [EMAIL PROTECTED] wrote: Schüle Daniel wrote: I don't understand what is the difference between commented lines 1 and 2 with 1 uncommented and 2 commented it works as expected with 1 commented and 2 uncommented the picture doesn't appear I'm not familiar

Re: python application ideas.

2006-04-25 Thread alex23
Anthony Greene wrote: Hello, I know this isn't really a python centric question, but I'm seeking help from my fellow python programmers. I've been learning python for the past year and a half, and I still haven't written anything substantial nor have I found an existing project which blows my

Building a Dynamic Library (libpython.so) for Python 2.4.3 Final

2006-04-25 Thread Dean
I've been trying to make python a dynamic library. I downloaded Python 2.4.3 Final from the Python web site and I cannot get it to create the library. I've tried using the directive: --enable-shared and --enable-shared=yes and both of them had the same effect of creating a bunch of parts of

Re: can someone explain why ..

2006-04-25 Thread Grant Edwards
On 2006-04-25, Schüle Daniel [EMAIL PROTECTED] wrote: I'm not familiar with Tkinter, but it seems as thought with 2, the image variable is garbage collected after the constructor of Main is called. With 1, you save a reference to the image, so it does not get garbage collected. Correct.

Re: MySQLdb begin() -

2006-04-25 Thread shearichard
What do i expect the begin method to do ? Explicitly start a transaction (and therefore suppress autocommits) in an environment where autocommit is on. No i haven't read the pep, thanks for that. -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   >