Re: Dynamic class methods misunderstanding

2005-01-28 Thread Bill Mill
Diez, On Fri, 28 Jan 2005 16:57:37 +0100, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > > > > Why doesn't m get the implicit self parameter in the self.method() > > call? How would I make it a proper member of the class, so that a > > self.method() call would work with the above "m" function? > >

Re: Help with web dashboard

2005-01-28 Thread Chris
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Ifd you want to use standard CGI I've written a CGI user > authentication/management module called logintools. > Would this be preferred (or easier) than using an application server (ie. Zope or Webware)? If possible, I think it woul

Re: Dynamic class methods misunderstanding

2005-01-28 Thread Bill Mill
Hans, On Fri, 28 Jan 2005 11:09:16 -0500, Hans Nowak <[EMAIL PROTECTED]> wrote: > > m is a function. When you assign it to self.method, it's still a > function. You don't create a new method that way; all you have is a new > attribute called 'method' containing the function. > I figured as

Re: Dynamic class methods misunderstanding

2005-01-28 Thread Bill Mill
Kamilche, On Fri, 28 Jan 2005 08:10:07 -0800 (PST), Kamilche <[EMAIL PROTECTED]> wrote: > I see what you're attempting to do. However, your code, if it DID run, > would result in a method being added to the object, not the object's > class! Modify the class itself, not the object, as follows: >

Re: Installing Numeric with ATLAS and LAPACK

2005-01-28 Thread Diez B. Roggisch
> Could someone please provide instructions for install Numeric > with ATLAS and LAPACK? No idea - but telling us what os and versions of python and numeric you use might make others comment on that. -- Regards, Diez B. Roggisch -- http://mail.python.org/mailman/listinfo/python-list

Re: Transparent (redirecting) proxy with BaseHTTPServer

2005-01-28 Thread aurora
It should be very safe to count on the host header. Maybe some really really old browser would not support that. But they probably won't work in today's WWW anyway. Majority of today's web site is likely to be virtually hosted. One Apache maybe hosting for 50 web addresses. If a client strip

Re: Installing Numeric with ATLAS and LAPACK

2005-01-28 Thread Carl
drife wrote: > Hello, > > Could someone please provide instructions for install Numeric > with ATLAS and LAPACK? > > I've actually done this correctly, I think. But I don't see any > difference in the speed. > > I'm calculating eigenvalues for a 3600 X 3600 covariance matrix. > > Calculating t

Re: Dynamic class methods misunderstanding

2005-01-28 Thread Hans Nowak
Bill Mill wrote: On Fri, 28 Jan 2005 11:09:16 -0500, Hans Nowak <[EMAIL PROTECTED]> wrote: > To add m as a new method to the *class*, do this: >>> class test: ... def __init__(self, method): ... self.__class__.method = method ... self.method() ... >>> def m(self): print self ..

Re: Dynamic class methods misunderstanding

2005-01-28 Thread Bill Mill
On Fri, 28 Jan 2005 11:59:50 -0500, Hans Nowak <[EMAIL PROTECTED]> wrote: > Bill Mill wrote: > > > On Fri, 28 Jan 2005 11:09:16 -0500, Hans Nowak <[EMAIL PROTECTED]> wrote: > > > > > >>To add m as a new method to the *class*, do this: > >> > >> >>> class test: > >>... def __init__(self, meth

Re: Dynamic class methods misunderstanding

2005-01-28 Thread Craig Ringer
On Fri, 2005-01-28 at 11:17 -0500, Bill Mill wrote: > Beautiful! thank you very much. Looking into the "new" module in > python 2.4, that's equivalent to: > > self.m = type(self.__init__)(method, self, Test) > > I didn't know that you could call types to create another type. Well, a type is ess

Re: a sequence question

2005-01-28 Thread Michael Hartl
For problems like this I use a partition function defined in a utils.py file that I use (based on Peter Norvig's utils file at http://aima.cs.berkeley.edu/python/utils.py). Using partition, the problem you posed can be solved by writing #for a, b in partition([1, 2, 3, 4], 2): #print a, b Th

Re: Installing Numeric with ATLAS and LAPACK

2005-01-28 Thread John Hunter
> "drife" == drife <[EMAIL PROTECTED]> writes: drife> Hello, Could someone please provide instructions for drife> install Numeric with ATLAS and LAPACK? Locate libcblas.a and add that dir to the setup.py library_dirs_list. Eg on my system, /usr/local/lib/ATLAS/lib/Linux_P4SSE2_2/libc

Best python postgres module?

2005-01-28 Thread Roland Heiber
Hi, i recently migrated from mysql to postgresql and did use severel python postgres-modules. All do what they are designed for, so which one would you use? psycopg, pygresql, pypgsql? psycopg seems to be the best solution for heavy traffic/multiple connections i have no real testing envir

Re: HTML Tree View with and

2005-01-28 Thread Eddie Corns
Gregor Horvath <[EMAIL PROTECTED]> writes: >Hi, >Before I reinvent the wheel I`d like to ask if someone has done this >before since I did not find an advice at Google. >The goal is to create a dynamic Tree View in HTML. >Say I have a data strucure like this: >structList = >{'Sun':{'Sun.1':['

extract files from MS-TNEF attachments

2005-01-28 Thread David Isaac
I'm looking for Python code to extract files from MS-TNEF attachments. (I'm aware of the C code at http://tnef.sourceforge.net/ ) Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: What's so funny? WAS Re: rotor replacement

2005-01-28 Thread Terry Hancock
On Tuesday 25 January 2005 01:51 am, Fredrik Lundh wrote: > ah, you're the guy who flamed me and called me names because PIL didn't > fit some hypothetical GNU-inspired definition of "open source software." it's > always sad when people have to attack those who don't share their religion, > but it

Re: [PyCon] Reg: Registration

2005-01-28 Thread Steve Holden
Aahz, writing as [EMAIL PROTECTED], wrote: It's still January 28 here -- register now! I don't know if we'll be able to extend the registration price beyond that. Just in case anybody else might be wondering when the early bird registration deadline is, I've asked the registration team to allow t

Re: Elliptic Code

2005-01-28 Thread Nick Craig-Wood
Philip Smith <[EMAIL PROTECTED]> wrote: > I understand the algorithm quite well but how to code the multiplication > stage most efficiently in python eludes me. You might want to look at http://gmpy.sourceforge.net/ It has very fast multiplication up to any size you like! -- Nick Craig-Woo

Re: debugging os.spawn*() calls

2005-01-28 Thread Nick Craig-Wood
Martin Franklin <[EMAIL PROTECTED]> wrote: > Skip Montanaro wrote: > > I have an os.spawnv call that's failing: > > > > pid = os.spawnv(os.P_NOWAIT, "ssh", > > ["ssh", remote, > > "PATH=%(path)s nice -20 make -C %(pwd)s" % locals()]) > > > > When I wa

py.dll for version 2.2.1 (Windows)

2005-01-28 Thread mike
Just recently, my virus checker detected what it called a Trojan Horse in the py.dll file in the python22 folder. Installation is version 2.2.1 and I think that it came installed when I bought the PC in October 2002. Does anyone know where I can get a copy of the py.dll file from version 2.2.1 fo

installing tkiner

2005-01-28 Thread Robert
I am trying to use tkinter on macos 10.2.6. I am not having any luck. I have tried this. python python2.4 after downloading downloaded TclTkAquaBI-8.4.6.1-Jaguar.dmg and installed python2.4 could not find tkiniter downloaded macpython 2.3.3 macphyton find tkinter but got an application except

handling xls with pyuno

2005-01-28 Thread John Hunter
Does anyone have any example scripts using the OpenOffince python-bridge module pyuno to load xls, extract the data, and/or save to another format such as xsc or csv. Thanks, JDH -- http://mail.python.org/mailman/listinfo/python-list

Re: threading and internet explorer com

2005-01-28 Thread James
thak you Roger :) thank you so much :) best regards, James Roger Upole wrote: You'll need to call pythoncom.CoInitialize() in each thread. Roger "James" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] hi, i'm using python 2.4 with pywin32... I've tried to use internet explor

Re: Who should security issues be reported to?

2005-01-28 Thread Aahz
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Aahz wrote: >> In article <[EMAIL PROTECTED]>, >> <[EMAIL PROTECTED]> wrote: >>> >>>Who are the appropriate people to report security problems to in >>>respect of a module included with the Python distribution? I don't >>>feel it approp

Re: Installing Numeric with ATLAS and LAPACK

2005-01-28 Thread drife
Thanks John. Those are the steps I followed, and to no avail. Interestingly, I downloaded and installed SciPy, and ran the same eigenvector problem. SciPy greatly speeds up the calculation...was 1.5 hours using Numeric, now only 15 min with SciPy. Unfortunately, SciPy only solves ordinary and gen

Re: Dynamic class methods misunderstanding

2005-01-28 Thread Terry Reedy
"Kamilche" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I see what you're attempting to do. However, your code, if it DID run, > would result in a method being added to the object, not the object's > class! Modify the class itself, not the object, as follows: > > |class Test: > |

Re: py.dll for version 2.2.1 (Windows)

2005-01-28 Thread Terry Reedy
"mike" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Just recently, my virus checker detected what it called a Trojan Horse > in the py.dll file in the python22 folder. Installation is version > 2.2.1 and I think that it came installed when I bought the PC in > October 2002. My

Re: Who should security issues be reported to?

2005-01-28 Thread Tim Peters
[EMAIL PROTECTED] > Who are the appropriate people to report security problems to > in respect of a module included with the Python distribution? > I don't feel it appropriate to be reporting it on general mailing > lists. The Python project has no non-public resources for this. Filing a bug repo

Re: Installing Numeric with ATLAS and LAPACK

2005-01-28 Thread John Hunter
> "drife" == drife <[EMAIL PROTECTED]> writes: drife> Thanks John. Those are the steps I followed, and to no drife> avail. Make sure you get a clean build by rm -rf ing the build dir before you build again. Then capture the output of your build to a file. When you say "to no avai

Re: Dynamic class methods misunderstanding

2005-01-28 Thread Bill Mill
On Fri, 28 Jan 2005 14:41:16 -0500, Terry Reedy <[EMAIL PROTECTED]> wrote: > > "Kamilche" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >I see what you're attempting to do. However, your code, if it DID run, > > would result in a method being added to the object, not the object's

Re: some kind of LFU dict...

2005-01-28 Thread Skip Montanaro
Joh> so i wondered if i can not use some kind of cache, i googled and Joh> found information on LRU, LFU, and LFU interested me : keep only Joh> most frequently used items inside dict (and memory) and writing Joh> others on disk for a possible future reuse. I have a Cache class th

Re: How to post news articles with NNTPlib

2005-01-28 Thread python
Do Re Mi chel La Si Do wrote: > Hi ! > > > nntplib.NNTP(newsserver,port,user,passe) > > > > -- > Michel Claveau Thank you -- http://mail.python.org/mailman/listinfo/python-list

Re: Best python postgres module?

2005-01-28 Thread Dave Brueck
Roland Heiber wrote: i recently migrated from mysql to postgresql and did use severel python postgres-modules. All do what they are designed for, so which one would you use? psycopg, pygresql, pypgsql? psycopg seems to be the best solution for heavy traffic/multiple connections i have no re

Re: Proccess termination

2005-01-28 Thread George Yoshida
alexrait1 wrote: I use popen.popen2 or popen.popen3 to start a new process and read from it's stdout/ write to it's stdin. But I need a way to know when a process terminates. Do you know about a library that provides these tools other then the standard os module... or should I use it otherwise? po

Where can I find sample "beginner" programs to study?

2005-01-28 Thread Todd_Calhoun
I'm trying to learn Python (and programming), and I'm wondering if there are any places where I can find small, simple programs to study. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Mac OS and MySQLdb

2005-01-28 Thread Skip Montanaro
Thomas> is there a MySQLdb-Version for the latest Mac OS (or can I use Thomas> the Linux-tarball)? I just built the latest version from source (1.1.7 or something). Skip -- http://mail.python.org/mailman/listinfo/python-list

RE: Best python postgres module?

2005-01-28 Thread Robert Brewer
Roland Heiber wrote: > i recently migrated from mysql to postgresql and did use > severel python > postgres-modules. All do what they are designed for, so > which one would > you use? psycopg, pygresql, pypgsql? psycopg seems to be the best > solution for heavy traffic/multiple connections ...

Yet another Python commercial application

2005-01-28 Thread Philippe C. Martin
SnakeCard release SCF 1.0: a smart card simulation and Q&A platform based on Python. (I said I would :-) sorry but I'm walking on air Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/lis

Re: Where can I find sample "beginner" programs to study?

2005-01-28 Thread wes weston
Todd_Calhoun wrote: I'm trying to learn Python (and programming), and I'm wondering if there are any places where I can find small, simple programs to study. Thanks. Todd, Have you been here: http://www.python.org/doc/ and tried the tutorial or beginners guide? The tutorial has all the piec

Re: Where can I find sample "beginner" programs to study?

2005-01-28 Thread moma
Todd_Calhoun wrote: I'm trying to learn Python (and programming), and I'm wondering if there are any places where I can find small, simple programs to study. Thanks. Hello, http://www.python.org (docs -> tutorial) http://www.python.org/doc/ ! http://www.diveintopython.org http://www.byteofpyth

Accessing Postgress from Windows

2005-01-28 Thread Greg Lindstrom
Hello, All- I am running Python 2.3 on a Windows XP box and would like to access a postgres database running on a Linux fileserver. I've googled for Python and Postgres but most of the stuff I saw looked stale. I would like to use a secure connection (ssl) and a direct connection, if possible

Re: [perl-python] 20050127 traverse a dir

2005-01-28 Thread Skip Montanaro
abigail> @@ No. Second, learn Python. Third, learn Perl (optional). :) abigail> Just leave the third option out. Let him learn Python. We don't abigail> want him. ;-) We don't want him either. Perhaps we can persuade him to learn INTERCAL... Skip -- http://mail.python.org/mailman

Pystone benchmark: Win vs. Linux (again)

2005-01-28 Thread Franco Fiorese
Hi all, I am relatively new about Python benchmarks. After some experiments I found that Python on my PC Windows XP has a relevant higher performance than on Linux. The simple test using pystone.py shows this: * Windows XP Pro: 16566.7 pystones/second * Linux (kernel 2.6.9 NPTL): 12346.2 pyst

Re: Accessing Postgress from Windows

2005-01-28 Thread Robby Russell
On Fri, 2005-01-28 at 14:51 -0600, Greg Lindstrom wrote: > Hello, All- > > I am running Python 2.3 on a Windows XP box and would like to access a > postgres database running on a Linux fileserver. I've googled for > Python and Postgres but most of the stuff I saw looked stale. I would > like

Re: How to test that an exception is raised ?

2005-01-28 Thread StepH
Antoon Pardon a écrit : Op 2005-01-28, StepH schreef <[EMAIL PROTECTED]>: Thanks for you answer. I'm new to Python (coming from C/C++). Do you say that it's not possible to test (using unittest) if an exception is well raised if the tested code catch it ? How to solve this paradoxe ? How to automa

Re: handling xls with pyuno

2005-01-28 Thread Guido Goldstein
Hi! On Fri, 28 Jan 2005 12:59:11 -0600 John Hunter <[EMAIL PROTECTED]> wrote: > Does anyone have any example scripts using the OpenOffince > python-bridge module pyuno to load xls, extract the data, and/or save > to another format such as xsc or csv. There is something called BlueDCS which can

Re: Installing Numeric with ATLAS and LAPACK

2005-01-28 Thread Fernando Perez
drife wrote: > Thanks John. Those are the steps I followed, and to no avail. > > Interestingly, I downloaded and installed SciPy, and ran the > same eigenvector problem. SciPy greatly speeds up the > calculation...was 1.5 hours using Numeric, now only 15 min > with SciPy. > > Unfortunately, SciP

Re: [perl-python] 20050127 traverse a dir

2005-01-28 Thread Abigail
Skip Montanaro ([EMAIL PROTECTED]) wrote on CLXVIII September MCMXCIII in news:[EMAIL PROTECTED]>: __ __ abigail> @@ No. Second, learn Python. Third, learn Perl (optional). :) __ __ abigail> Just leave the third option out. Let him learn Python. We don't __ abigail> want him

Re: Where can I find sample "beginner" programs to study?

2005-01-28 Thread JanC
Todd_Calhoun schreef: > I'm trying to learn Python (and programming), and I'm wondering if > there are any places where I can find small, simple programs to study. Try: -- JanC "Be strict when sending and toler

Re: py.dll for version 2.2.1 (Windows)

2005-01-28 Thread John Machin
mike wrote: > Just recently, my virus checker detected what it called a Trojan Horse > in the py.dll file in the python22 folder. Sorry to come on like the Inquisition, but this _might_ be something of significance to the whole Windows Python community: When was "just recently"? Which virus chec

Re: Who should security issues be reported to?

2005-01-28 Thread Aahz
In article <[EMAIL PROTECTED]>, Tim Peters <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] >> >> Who are the appropriate people to report security problems to >> in respect of a module included with the Python distribution? >> I don't feel it appropriate to be reporting it on general mailing >> list

Re: LinearAlgebra incredibly slow for eigenvalue problems

2005-01-28 Thread David M. Cooke
"drife" <[EMAIL PROTECTED]> writes: > Hello, > > I need to calculate the eigenvectors and eigenvalues for a 3600 X 3600 > covariance matrix. > > The LinearAlgebra package in Python is incredibly slow to perform the > above calculations (about 1.5 hours). This in spite of the fact that > I have ins

Re: debugging os.spawn*() calls

2005-01-28 Thread Skip Montanaro
Nick> If using 2.4 the subprocess module is a good solution too. It Nick> lets you catch stdout/stderr easily. Yeah, thought of that already. Currently not an option though. Thx, Skip -- http://mail.python.org/mailman/listinfo/python-list

Problems with PyQt

2005-01-28 Thread Michael McGarry
Hi, I am having a problem making a widget appear. I have 5 widgets which are windows with no parents. 3 of the widgets appear without a problem the other 2 widgets will not appear when I invoke widget.show() from within a handler for another widget. I am completely clueless as to why these 2 widge

Re: How to test that an exception is raised ?

2005-01-28 Thread Dan Perl
"StepH" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > So why the assertRaises function in unittest ? My goal is to test if an > exception is well raised when a bad filename is passed to the mps2xml > function. It is for functions in which the exception is raised and not caught

Re: Textual markup languages (was Re: What YAML engine do you use?)

2005-01-28 Thread Alan Kennedy
[Alan Kennedy] >>However, I'm torn on whether to use ReST for textual content. On the one >>hand, it's looks pretty comprehensive and solidly implemented. But OTOH, >>I'm concerned about complexity: I don't want to commit to ReST if it's >>going to become a lot of hard work or highly-inefficient wh

Re: example needed: sip + Qt

2005-01-28 Thread Uwe Mayer
On Friday 28 January 2005 14:47 pm, Phil Thompson wrote: > > The QLabel example in the SIP reference manual yields syntax errors for > > me. > > What syntax errors? If there is a documentation bug then I'll fix it. I'll come to that a little later, that happened in the simple c++ word example.

An mysql-python tutorial?

2005-01-28 Thread Dfenestr8
Hi. Been told by the admin of my (free!) server that he'd rather I should learn to use mysql if I want to continue writing cgi scripts there. Not even sure exactly what mysql is. Is there a simple tutorial anywhere on the web about using python + mysql? -- http://mail.python.org/mailman/listi

Re: example needed: sip + Qt

2005-01-28 Thread Uwe Mayer
On Friday 28 January 2005 14:24 pm, Craig Ringer wrote: > Out of curiosity, would this be for an extension module used in an > embedded Python interpreter, or for plain extension module for use with > a standalone interpreter? I am writing an application program using Python and PyQt: https://sava

Re: Talking to the wind

2005-01-28 Thread David H Wild
In article <[EMAIL PROTECTED]>, Terry Reedy <[EMAIL PROTECTED]> wrote: > > Xah Lee, > > > > Do you want to be taken seriously? > > First, stop posting. > > Second, learn perl. > > Third, learn python. > Hey all, I have seen no evidence that XL even reads the responses that > have been directed

Re: example needed: sip + Qt

2005-01-28 Thread Uwe Mayer
Friday 28 January 2005 23:18 pm Uwe Mayer wrote: > Traceback (most recent call last): > File "", line 1, in ? > ImportError: ./hello.so: undefined symbol: _ZTV5Hello > > $ c++filt _ZTV5Hello > vtable for Hello > > The compilation did not give any warnings or error messages. Any ideas? $ ldd -d

Re: Installing Numeric with ATLAS and LAPACK

2005-01-28 Thread drife
Hi John, When I built Numeric with ATLAS and LAPACK, the eigenvalue calculation took the same amount of time. Per your suggestion, I will capture the output of the build and post it to the Numpy discussion group. Thanks, Daran -- http://mail.python.org/mailman/listinfo/python-list

Re: LinearAlgebra incredibly slow for eigenvalue problems

2005-01-28 Thread drife
Hi David, I performed the above check, and sure enough, Numeric is --not-- linked to the ATLAS libraries. I followed each of your steps outlined above, and Numeric still is not linking to the ATLAS libraries. My setup.py file is attached below. Thanks , Daran --#!/usr/bin/env python # To use:

Re: Elliptic Code

2005-01-28 Thread Paul Rubin
Nick Craig-Wood <[EMAIL PROTECTED]> writes: > > I understand the algorithm quite well but how to code the multiplication > > stage most efficiently in python eludes me. > > You might want to look at > > http://gmpy.sourceforge.net/ > > It has very fast multiplication up to any size you like

Re: Who should security issues be reported to?

2005-01-28 Thread Terry Reedy
OP: >>I find this response a bit dissappointing frankly. Open Source people >>make such a big deal about having lots of people being able to look at >>source code and from that discover security problems, thus making it >>somehow making it better than proprietary source code. OP: Did you discover

Re: example needed: sip + Qt

2005-01-28 Thread Uwe Mayer
Friday 28 January 2005 23:39 pm Uwe Mayer wrote: > Friday 28 January 2005 23:18 pm Uwe Mayer wrote: >> Traceback (most recent call last): >> File "", line 1, in ? >> ImportError: ./hello.so: undefined symbol: _ZTV5Hello >> >> $ c++filt _ZTV5Hello >> vtable for Hello >> >> The compilation did n

Daylight savings and getmtime

2005-01-28 Thread Qvx
Hello, I'we written a simple web deployment program which scans for the changes made to local copy of web site. Changed files are than packaged into a zip file and deployed to web server. Now here's the catch. Changes are computed using (1) log file from the last deployment and (2) local file sys

Re: LinearAlgebra incredibly slow for eigenvalue problems

2005-01-28 Thread John Hunter
> "drife" == drife <[EMAIL PROTECTED]> writes: drife> Hi David, I performed the above check, and sure enough, drife> Numeric is --not-- linked to the ATLAS libraries. drife> I followed each of your steps outlined above, and Numeric drife> still is not linking to the ATLAS lib

boa constructor & mysql

2005-01-28 Thread Michele
I've search a lot to found how visualize a mysql table in a gui (wxpython). I think to use wxgrid to visualize this table...but I don't know how... Anyone help me? Thanks a lot for the patience. Michele -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with PyQt

2005-01-28 Thread Phil Thompson
I suggest that you post your question to the PyKDE mailing list and include a complete example that demonstrates your problem as an attachment (so the indentation is preserved). Phil On Friday 28 January 2005 9:42 pm, Michael McGarry wrote: > Hi, > > I am having a problem making a widget appear

what's OOP's jargons and complexities?

2005-01-28 Thread Xah Lee
in computer languages, often a function definition looks like this: subroutine f (x1, x2, ...) { variables ... do this or that } in advanced languages such as LISP family, it is not uncommon to define functions inside a function. For example: subroutine f (x1, x2, ...) { variables... subroutine

Re: What's so funny? WAS Re: rotor replacement

2005-01-28 Thread "Martin v. Löwis"
Paul Rubin wrote: Let's see, the urandom module was recently released in 2.4, I think initially at my urging. There is no urandom module in Python 2.4. If you can't speak for others, how can you say there's no policy in force? I should say I'm not aware of a policy. If Guido says "no crypto", is

Re: Mac OS and MySQLdb

2005-01-28 Thread T. Kaufmann
Andy Dustman wrote: The source is for all platforms. Use the Source, Luke. If 1.1.9 does not compile on Mac OS X, file a bug. Thanks a lot;-). -- http://mail.python.org/mailman/listinfo/python-list

Re: what's OOP's jargons and complexities?

2005-01-28 Thread Dan Perl
"Xah Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > public class test { > public static void main(String[] args) { > String a = new String("a string"); > String b = new String("another one"); > StringBuffer c = new StringBuffer(40); > c.append(a); c.append(b); > System.out.pri

Re: example needed: sip + Qt

2005-01-28 Thread Uwe Mayer
Saturday 29 January 2005 00:23 am Phil Thompson wrote: > So have you created the library you are trying to wrap? The documentation > is describing how to wrap a library and describes a fictional library as > the basis for the example. No, the extracts from before are from the code example of the

Re: what's OOP's jargons and complexities?

2005-01-28 Thread Dan Perl
"Dan Perl" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Actually, it can be as simple as: > public class test { >public static void main(String[] args) { >String c = new String("a string"+" another one"); >System.out.println(c); >} > } I forgot. It can b

Mail sent to Hibernian has a virus !!!

2005-01-28 Thread MAILsweeper
Mail sent to Hibernian was received with a computer virus infected attachment. The mail has been intercepted and did not reach the intended recipient. Sender please remove the virus from the message and resend the mail. From: python-list@python.org To: [EMAIL PROTECTED] Subject: Mail Delive

Re: what's OOP's jargons and complexities?

2005-01-28 Thread PA
On Jan 29, 2005, at 00:10, Xah Lee wrote: Tomorrow i shall cover more manmade jargons and complexities arising out of the OOP hype, in particular Java. Good read. Keep them coming :) Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: LinearAlgebra incredibly slow for eigenvalue problems

2005-01-28 Thread drife
Hi John, I do have more than one version of Python laying around. To do the build and install I am typing: /d2/python/bin/python setup.by build > &! build.out /d2/python/bin/python setup.by install > &! install.out Should I be doing something different? Daran -- http://mail.python.org/mailman

Re: Daylight savings and getmtime

2005-01-28 Thread [EMAIL PROTECTED]
on my windows xp box os.path.getmtime gives back local time (I just saved the file): >>> os.path.getmtime('c:\\temp\\testset.py') 1106955016 >>> print time.mktime(time.localtime()) 1106955034.0 You can try to figure out if DST is on by comparing time.localtime() versus time.gmtime(). In the Wester

Re: example needed: sip + Qt

2005-01-28 Thread Phil Thompson
So have you created the library you are trying to wrap? The documentation is describing how to wrap a library and describes a fictional library as the basis for the example. Phil On Friday 28 January 2005 11:02 pm, Uwe Mayer wrote: > Friday 28 January 2005 23:39 pm Uwe Mayer wrote: > > Friday 2

Re: Daylight savings and getmtime

2005-01-28 Thread Christophe Cavalaria
Qvx wrote: > Hello, > > I'we written a simple web deployment program which scans for the > changes made to local copy of web site. Changed files are than > packaged into a zip file and deployed to web server. > > Now here's the catch. Changes are computed using (1) log file from the > last deplo

Re: Where can I find sample "beginner" programs to study?

2005-01-28 Thread Todd_Calhoun
Thanks for the great links. The cookbook page has some smaller stuff that looks great. "JanC" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Todd_Calhoun schreef: > >> I'm trying to learn Python (and programming), and I'm wondering if >> there are any places where I can find sma

Re: LinearAlgebra incredibly slow for eigenvalue problems

2005-01-28 Thread David M. Cooke
"drife" <[EMAIL PROTECTED]> writes: > Hi David, > > I performed the above check, and sure enough, Numeric > is --not-- linked to the ATLAS libraries. > > I followed each of your steps outlined above, and Numeric > still is not linking to the ATLAS libraries. > > My setup.py file is attached below.

Re: what's OOP's jargons and complexities?

2005-01-28 Thread Martin Ambuhl
Dan Perl wrote: Actually, it can be as simple as: public class test { There is no "public" or "class" in C. Please don't post such trash to comp.lang.c. In fact, C++ is not topical in any of the five newsgroups you posted to. I don't know where you're posting from, so I apologize to the perl,

move bugs from Zope BITS into Bugzilla?

2005-01-28 Thread lmhaskins
I inherited a bug reporting system at work, and it's currently in Zope BITS (Bug Information Tracking System). This version of BITS uses ZODB -- not the RDBMS version. I would like to export all the incident reports from BITS to later import into Bugzilla, but as of yet I haven't quite figured it

Re: Where can I find sample "beginner" programs to study?

2005-01-28 Thread Marc Poulin
Todd_Calhoun wrote: > I'm trying to learn Python (and programming), and I'm wondering if there > are any places where I can find small, simple programs to study. > > Thanks. Look at http://www.livewires.org.uk/python/ Good projects and tutorials for beginners. -- http://mail.python.org/mailma

Re: what's OOP's jargons and complexities?

2005-01-28 Thread Keith Thompson
"Xah Lee" <[EMAIL PROTECTED]> writes: [snip] If you must post a followup to this, please drop comp.lang.c from the newsgroups header. I can't speak for the other newsgroups, but it's definitely off-topic here in comp.lang.c. Thank you. -- Keith Thompson (The_Other_Keith) [EMAIL PROTECTED]

Re: what's OOP's jargons and complexities?

2005-01-28 Thread Martin Ambuhl
Xah Lee wrote his usual masturbatory crap: Lisp is not topical in 3 of the 5 newsgroups you spewed on. Java is not topical in 5 of the 5 newsgroups you spewed on. Get your head out your butt and post to Java newsgroups if you want and they'll have you. Are you inflicting this crap on the rest of

Re: LinearAlgebra incredibly slow for eigenvalue problems

2005-01-28 Thread drife
Hi David, Yes, when Numeric compiles it does look like the linking is being done properly. I captured the build to a file and see a few lines similar to: gcc -pthread -shared build/temp.linux-i686-2.4/Src/lapack_litemodule.o -L/d2/lib/atlas -llapack -lptcblas -lptf77blas -latlas -lg2c -o build/l

Re: LinearAlgebra incredibly slow for eigenvalue problems

2005-01-28 Thread drife
David, One more thing. I checked to see if the SciPy libraries had dependencies on ATLAS. They do not, however, the eigenvector calculation is still much faster than Numeric? This is very strange. Daran -- http://mail.python.org/mailman/listinfo/python-list

Re: what's OOP's jargons and complexities?

2005-01-28 Thread Carl Banks
Dan Perl wrote: > I will not get into your "history" of the "OOP hype". The best thing to is just ignore him. But, if he bothers you too much to let it slide, then don't take issue with anything he writes. Just post a follow-up warning the newbies that he's a pest, that his claims are untrue a

Re: move bugs from Zope BITS into Bugzilla?

2005-01-28 Thread richard
[EMAIL PROTECTED] wrote: > I inherited a bug reporting system at work, and it's currently in Zope > BITS (Bug Information Tracking System). This version of BITS uses ZODB > -- not the RDBMS version. I would like to export all the incident > reports from BITS to later import into Bugzilla, but as

Re: some kind of LFU dict...

2005-01-28 Thread Larry Bates
Sounds like you want a database (e.g. on disk storage of keys and values that get accessed via the key). Take a look at one of the databases for storing your key/value pairs. Larry Bates Joh wrote: Hello, (first i'm sorry for my bad english...) for a program, i need to have some kind of dictionary

Re: what's OOP's jargons and complexities?

2005-01-28 Thread PA
On Jan 29, 2005, at 01:09, Martin Ambuhl wrote: Xah Lee wrote his usual masturbatory crap: Well... I have to admit that I tremendously enjoyed such "masturbatory crap" (sic). Eagerly looking toward the next installment. Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/ -- http://mail.pytho

Re: LinearAlgebra incredibly slow for eigenvalue problems

2005-01-28 Thread drife
David, I noticed that the libraries that ATLAS builds are not shared objects (e.g., liblapack.a). Should these be shared objects? I see nothing in the ATLAS documentation about building things as shared objects. Wondering if this is why the Numeric install is failing. Daran -- http://mail.pyth

Re: a sequence question

2005-01-28 Thread Nick Coghlan
Duncan Booth wrote: Try this: l = [1, 2, 3, 4] for a, b in zip(*[iter(l)]*2): print a, b zip(*[iter(seq)]*N) will group by N (but if there are any odd items at the end it will ignore them). map(None, *[iter(seq)]*N) will group by N padding the last item with None if it needs to. For anyone el

Re: what's OOP's jargons and complexities?

2005-01-28 Thread Eric Sosman
Xah Lee wrote: [...] Tomorrow i shall cover more manmade jargons and complexities arising out of the OOP hype, in particular Java. [...] I hope you will not, or that if you do so you will do it elsewhere. Go pound sand. -- Eric Sosman [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinf

Re: LinearAlgebra incredibly slow for eigenvalue problems

2005-01-28 Thread Robert Kern
drife wrote: David, I noticed that the libraries that ATLAS builds are not shared objects (e.g., liblapack.a). Should these be shared objects? I see nothing in the ATLAS documentation about building things as shared objects. Wondering if this is why the Numeric install is failing. No, they should w

Re: limited python virtual machine

2005-01-28 Thread Nick Coghlan
Alex Martelli wrote: Steven Bethard <[EMAIL PROTECTED]> wrote: ... If I could see how to go from 'object' (or 'int', 'str', 'file', etc.) to 'eval' or '__import__', that would help out a lot... object.__subclasses__() [, , , , , , , , , , , , , , , , ] Traipse through these, find one class that

<    1   2   3   >