Re: Zope 3

2006-04-25 Thread Derick van Niekerk
This looks more or less like what I am looking for to learn Zope3! As is mentioned elsewhere in this thread Zope3 is *nothing* like Zope2 and after starting to learn the one, I knew nothing about the other. *Everything* is different - from the interface to the design methodologies. One thing Zope

Re: Introspection Class/Instance Name

2006-04-25 Thread Roland Heiber
*binarystar* wrote: > Hello there, > > what method would you use to return the name of the class and/or > instance introspectively eg. > > class Bollocks: > > def __init__( self ): > > print self.__method_that_returns_class_name__() > print self.__method_that_ret

Re: how to browse using urllib2 and cookeilib the correct way

2006-04-25 Thread jnair
ok , got it . Thanks -- http://mail.python.org/mailman/listinfo/python-list

Introspection Class/Instance Name

2006-04-25 Thread *binarystar*
Hello there, what method would you use to return the name of the class and/or instance introspectively eg. class Bollocks: def __init__( self ): print self.__method_that_returns_class_name__() print self.__method_that_returns_inst

Re: how to browse using urllib2 and cookeilib the correct way

2006-04-25 Thread Edward Elliott
[EMAIL PROTECTED] wrote: > can anybody explain, in the first case why i need to do two attempts. I would guess it's because redhat requires your browser to submit a session cookie with the login form. In the urllib2 example, the first request you make tries to submit login form data directly. Si

Re: search an entire website given the homepage URL

2006-04-25 Thread Fredrik Lundh
"Bell, Kevin" wrote: > 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 only became aware of it because someone stumbled

Re: search an entire website given the homepage URL

2006-04-25 Thread Fredrik Lundh
"Bell, Kevin" wrote: > Well I certainly am learning a lot. I never said I intended to download > anyone's entire website, as was assumed, but it's been fun to see how > folks feel about it anyway! never? "If I want to search through the entire python website give[n] the homepage, how wo

Passing Exceptions Across Threads

2006-04-25 Thread Adam Mullins
Hello, I'm writing a physics simulator back-end with a built-in, threaded server that for the moment is quite simple. I've faced a few problems in writing this code, however, as it's the first time I've played with threading. For the moment, everything works decently, but I need (or rather, want) a

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

2006-04-25 Thread Roedy Green
On 25 Apr 2006 12:21:43 -0700, "Xah Lee" <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who said : >Criticism versus Constructive Criticism I think you would do better to put this sort of thing on a website rather than post it in a newsgroup. It is too pretentious for a newsgroup

Re: MinGW and Python

2006-04-25 Thread Edward Elliott
Alex Martelli wrote: > I believe the single figure is a useful summary. Even the most > sophisticated benchmarks are eventually boiled down to single figures, > as in "so many SPECmarks" etc, because in everyday discourse a scalar is > what you can reasonably discuss. Sure, philosophically speaki

how to browse using urllib2 and cookeilib the correct way

2006-04-25 Thread jnair
Hi , I am using python2.4 "urllib2" and "cookelib". In line "5" below i provide my credentials to login into a web site.During the first attempt i "fail", judging from the output of line "6". I try again and the second time i succeed,judging from the output of line "8". Now using the "twill" modu

Re: MinGW and Python

2006-04-25 Thread Edward Elliott
Alex Martelli wrote: > I assume you mean "compare pybench on Python 2.4.3 compiled under" etc. Yep > Unfortunately, I suspect the ex-officio gcc defenders will only react by > finding yet another quibble (anything to avoid admitting that gcc may > not be as good at optimizing as a _Microsoft_ pro

how to save python interpreter's command history

2006-04-25 Thread Sakcee
this has been a problem for me for some time. I want to save the interpretters command history to a file, there is a history file in my user directory .pyhistory but it saves only like 500 or so how can I make it save all the commands and not delete it, any other suggestions that people use is w

Re: OOP / language design question

2006-04-25 Thread Alex Martelli
Duncan Booth <[EMAIL PROTECTED]> wrote: ... > Actually, this is quite an interesting example becaue it wouldn't work in > C++: if you tried the same trick the call to dothis from the base > constructor (even assuming it is virtual) would actually call Base.dothis. Yep. > I think you have demo

how to browse using urllib2 and cookeilib the correct way

2006-04-25 Thread jnair
Hi , I am using python2.4 "urllib2" and "cookelib". In line "5" below i provide my credentials to login into a web site.During the first attempt i "fail", judging from the output of line "6". I try again and the second time i succeed,judging from the output of line "8". Now using the "twill" modu

Re: MinGW and Python

2006-04-25 Thread Alex Martelli
Edward Elliott <[EMAIL PROTECTED]> wrote: > 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

Re: MinGW and Python

2006-04-25 Thread Alex Martelli
Edward Elliott <[EMAIL PROTECTED]> wrote: > 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

Re: 345 free programming books

2006-04-25 Thread Jonathan Daugherty
# http://ttcom.blogspot.com/2006/04/345-free-online-programming-books.html It seems this has been making the rounds today. The Practical PostgreSQL link is also broken; OpenDocs Publishing ceased to exist starting several months ago. -- Jonathan Daugherty http://www.parsed.org -- http://ma

Re: 345 free programming books

2006-04-25 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Check it out, ^_^ > > http://ttcom.blogspot.com/2006/04/345-free-online-programming-books.html Some of the urls on the listing page http://ttshare.googlepages.com/probooks.htm are not properly marked up as and diplayed as links. I b

Re: cgi subprocess, cannot get output

2006-04-25 Thread James Stroud
Jakub Piotr Nowak wrote: > 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"

REMINDER: BayPIGgies: April 26, 7:30pm (Google)

2006-04-25 Thread Aahz
NOTE: Special date of WEDNESDAY April 26 at Google, usual time of 7:30pm Please show up by 7:15 so we can start the meeting on time! This does not change the usual May meeting on May 11 at Google; stay tuned for an announcement of that. Special meeting! One of the lead developers of Django is

Drawing charts and graphs.

2006-04-25 Thread Jonathan Daugherty
Hello, I'm looking at a number of chart-drawing libraries and modules for Python and I'd like to know which one people tend to consider the best. I've tried gdchart2 but its interface seems somewhat limited, and pychart looks nice. I'd like to find something that will let me draw graphs similar

345 free programming books

2006-04-25 Thread ttdevelop
Check it out, ^_^ http://ttcom.blogspot.com/2006/04/345-free-online-programming-books.html -- http://mail.python.org/mailman/listinfo/python-list

How to avoid using files to store intermediate results

2006-04-25 Thread André
I wrote a small wxPython based app to test code snippets. (google for "python lightning compiler" if you want to see the full code). In the basic mode, I redirect the standard input and output and execute the code taken from the editor window so that the result appears in the output window. Here

Re: MySQLdb "begin()" -

2006-04-25 Thread shearichard
Thanks for your advice. In fact subsquent to posting I started using ... conn.autocommit = False ... as a synonm for ... conn.begin() ... and as you say that does the job. (Sorry i should have said it's not practicable to turn off autocommit always [or rather it may be but I'm not about to shak

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

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. Co

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: 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

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

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 leisur

do while loop

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

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

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 acc

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: 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 > const

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

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

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... > >

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

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 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 "imag

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 cla

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/ -- http:/

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 2.1

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: 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 par

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 bu

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 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 mi

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 ./Modul

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 downlo

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 w

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". >

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 i

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.d

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 Un

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 w

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 ot

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 form.has_key('sent

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 > cop

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

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

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: 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

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, w

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.

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 s

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 =

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 legiti

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.

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 applica

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: 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

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: 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 d

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 a

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, whic

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

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: 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

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 t

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 w

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 distr

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 p

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 m

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

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 my

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 self.member1=DB('database1',host=HOST1).query("SELECT..

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

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: 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: 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: 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 c

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 mindn

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: 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),

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 t

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 t

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 problem

  1   2   3   >