Re: Remote control of firefox (mozilla) from a python program

2008-11-11 Thread Riccardo Lemmi
Scott wrote: > I have a requirement to control a firefox web browser from an external > python program. The python program running under linux from a command > shell needs to first find all open firefox web browser windows read > the URL currently displayed in each web browser and if the URL matc

Re: Project layout / Import files from different subdirectories

2008-11-11 Thread Diez B. Roggisch
Markus Mayer schrieb: Hi folks. I'm new to python and have a slight problem importing - or maybe understanding - modules. I'm writing a GUI application using Qt4 and wanted to separate the business from the view logic. So I have my folder structure as following: project/ main.py import

Re: [Newbie] Strange output from list

2008-11-11 Thread Gilles Ganault
On Mon, 10 Nov 2008 20:02:39 -0600, Andrew <[EMAIL PROTECTED]> wrote: >sql = 'SELECT id FROM master' >rows=list(cursor.execute(sql)) >for id in rows: > sql = 'SELECT COUNT(code) FROM companies WHERE code="%s"' % id[0] > result = list(cursor.execute(sql)) > print "Code=%s, number=%

Re: pysqlite install error on hp ux (ld: Can't find library for -lpython2.5)

2008-11-11 Thread Thorsten Kampe
* Geon. (Mon, 10 Nov 2008 18:00:56 -0800 (PST)) > On 11?10?, ??1?31?, ??? <[EMAIL PROTECTED]> wrote: > > On Nov 10, 10:29 am, "Geon." <[EMAIL PROTECTED]> wrote: > > > when i install pysqlite i meet bellow error. ( use easy_install and > > > source code building same problem ) > > > > > ld: Can't fi

Re: Python 2.5 and sqlite

2008-11-11 Thread Thorsten Kampe
* [EMAIL PROTECTED] (Mon, 10 Nov 2008 15:33:22 -0800 (PST)) > On a (sun) webserver that I use, there is python 2.5.1 installed. I'd > like to use sqlite3 with this, however sqlite3 is not installed on the > webserver. Python comes with SQLite support. It's not necessary to have SQLite installed f

Re: IBM integer and double formats

2008-11-11 Thread Mark Dickinson
On Nov 10, 11:49 pm, John Machin <[EMAIL PROTECTED]> wrote: > Call me crazy if you like, but I'd name that function IEEEtoIBM. But it's topsy-turvy day! Didn't you get the memo? Oh, all right. IEEEtoIBM it is. > That's a hexadecimal representation in lowercase with no leading > zeroes ... vari

Re: [Newbie] Strange output from list

2008-11-11 Thread Chris Rebert
On Tue, Nov 11, 2008 at 12:56 AM, Gilles Ganault <[EMAIL PROTECTED]> wrote: > On Mon, 10 Nov 2008 20:02:39 -0600, Andrew <[EMAIL PROTECTED]> wrote: >>sql = 'SELECT id FROM master' >>rows=list(cursor.execute(sql)) >>for id in rows: >> sql = 'SELECT COUNT(code) FROM companies WHERE code="%s"' %

Re: Project layout / Import files from different subdirectories

2008-11-11 Thread Markus Mayer
Diez B. Roggisch schrieb: > > By placing a __init__.py into project, and then > > import project.main > import project.gui.mainwindow > > > Diez Ouch. Thanks. Markus -- PGP/GPG key 0x2EB39BF9 -- http://mail.python.org/mailman/listinfo/python-list

Re: Final Python Class of 2008

2008-11-11 Thread Steve Holden
Steve Holden wrote: > As the year draws to a close, Holden Web is pleased to remind readers > that its final public "Introduction to Python" class of this year will > be held from 9-11 December at our education center close to Washington, DC. > > There are several hotels conveniently located withi

Air Force1 and Air Jordan shoes PAYPAL wholesale

2008-11-11 Thread air force1 shoes
Air Force1 and Air Jordan shoes PAYPAL wholesale www.z-a-z-a.com air force1 shoes. air force1 high shoes. air force1 light shoes . we are professional produce air force1 and jordan shoes supplier ,carry PAYPAL.main air force1-25th AF1-high AF1-low .air jordan 1-14,air jordan 23,air force 1&jordan

Re: My first Python program -- a lexer

2008-11-11 Thread Thomas Mlynarczyk
John Machin schrieb: You are getting closer. A better analogy is that using a dict is like transporting passengers along an autobahn in an aeroplane or helicopter that never leaves the ground. It is not a bad idea to transport passengers in an airplane, but then the airplane should not follow

Re: Sync paramstyle between sqlite and mysql

2008-11-11 Thread Daniel
On Nov 10, 11:00 am, Daniel <[EMAIL PROTECTED]> wrote: > Hello, > > I'm developing an application that accesses both a MySQL and an SQLite > database.  I would like to have named parameters in my SQL and have > found the following: > > For MySQL my named parameters need to look like this: %(paramna

Re: Python 3.0 - is this true?

2008-11-11 Thread George Sakkis
On Nov 11, 8:02 am, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: > On 2008-11-11 02:10, Steven D'Aprano wrote: > > > On Mon, 10 Nov 2008 12:51:51 +, Duncan Grisby wrote: > > >> I have an object database written in Python. It, like Python, is > >> dynamically typed. It heavily relies on being able

Re: Python 3.0 - is this true?

2008-11-11 Thread Robin Becker
M.-A. Lemburg wrote: On 2008-11-11 02:10, Steven D'Aprano wrote: On Mon, 10 Nov 2008 12:51:51 +, Duncan Grisby wrote: I have an object database written in Python. It, like Python, is dynamically typed. It heavily relies on being able to sort lists where some of the members are None. To som

Re: My first Python program -- a lexer

2008-11-11 Thread Steve Holden
Thomas Mlynarczyk wrote: > John Machin schrieb: > >> You are getting closer. A better analogy is that using a dict is like >> transporting passengers along an autobahn in an aeroplane or >> helicopter that never leaves the ground. > > It is not a bad idea to transport passengers in an airplane, b

Close access to the base class public methods

2008-11-11 Thread RinKaMeAri
Hi! Could you imagine any way to block access to the base class public methods? Here is an example: class B: def public_method(): pass class A(B): def public_a_method(): pass def a = A() Is there any way to block the call a.public_method() without any changes to B class?

Re: Where to locate existing standard encodings in python

2008-11-11 Thread News123
Hi Philip, Thanks for your answer: The fact, that a module 'encodings' exists was new to me. encodings.aliases.aliases has however one problem. It helps to locate all encoding aliases, but it won't find entries for which no aliases exist: So I can find koi8_r and its aliases [ [k,v] for k,v in

Re: Close access to the base class public methods

2008-11-11 Thread Steve Holden
RinKaMeAri wrote: > Hi! > Could you imagine any way to block access to the base class public > methods? > Here is an example: > class B: > def public_method(): > pass > > class A(B): > def public_a_method(): > pass > > def a = A() > > Is there any way to block the call a

Re: Where to locate existing standard encodings in python

2008-11-11 Thread Philip Semanchuk
On Nov 11, 2008, at 1:08 PM, News123 wrote: Hi Philip, Thanks for your answer: The fact, that a module 'encodings' exists was new to me. We both learned something new today. =) encodings.aliases.aliases has however one problem. It helps to locate all encoding aliases, but it won't find en

subprocess communication, exec()

2008-11-11 Thread Chuckk Hubbard
If I run 'python -i subprocessclient.py' I expect to see the nice level of it go up 2, and the nice level of the subprocess go up 1. But all I see is the nice level of the client change. What am I doing wrong? subprocessserver.py: #!/usr/bin/python2.5 import os impor

Re: disable ctrl-P in idle?

2008-11-11 Thread timw.google
On Nov 10, 4:53 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 10, 3:27 pm, "timw.google" <[EMAIL PROTECTED]> wrote: > > > > > On Nov 10, 2:57 pm, Robert Singer <[EMAIL PROTECTED]> wrote: > > > > On Mon, 10 Nov 2008 20:56:46 +0100, Robert Singer <[EMAIL PROTECTED]> > > > wrote: > > > >

Re: disable ctrl-P in idle?

2008-11-11 Thread timw.google
On Nov 10, 10:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 10, 4:49 pm, RichardT <[EMAIL PROTECTED]> wrote: > > > > > On Mon, 10 Nov 2008 10:40:28 -0800 (PST), "timw.google" > > > <[EMAIL PROTECTED]> wrote: > > >Is there a way to disable ctrl-P (print window) in IDLE? I'm editing

Re: Python 3.0 - is this true?

2008-11-11 Thread Terry Reedy
Duncan Grisby wrote: Yes, very hard. There is a difference between 'very hard' (to get 'right') and 'to slow' (for a particular application). I accept the latter. There are only ever simple types in the lists -- strings, integers, Nones, very occasionally floats, and lists of those things

Re: Python 3.0 - is this true?

2008-11-11 Thread Terry Reedy
M.-A. Lemburg wrote: I think the special case for None should be readded to Python 3.0. Quick summary of thread that MAL started on Python-3000-dev list: Once upon a time, 0 < None was true. When rich comparisons were added, None < 0 (and *most* other things) become true as an intentionall

Re: f2py usage problem

2008-11-11 Thread Robert Kern
[EMAIL PROTECTED] wrote: Hi Python gurus, I have installed numpy and interested in testing f2py module using the first example in the documentation. Hi, You will want to ask numpy questions on the numpy mailing list. http://www.scipy.org/Mailing_Lists First I tried: C:\test>python "C:\Pr

Re: Project layout / Import files from different subdirectories

2008-11-11 Thread Almar Klein
> It works when the program you are executing is in the current working > directory, because Python always puts the directory containing the > program you are executing (not the current working directory) on the path. Aha, that makes sense. I also found with a quick test that importing a module fr

Printing a "status " line from a python script

2008-11-11 Thread Chris Seymour
Hi All, I am working on a python script for my colleague that will walk a directory and search in the different files for a specific string. These pieces I am able to do. What my colleague wants is that when she runs the script the filename is replaced by the current file that is being processed.

Re: plot for sale

2008-11-11 Thread Brian Blais
On Nov 7, 2008, at 7:27 , [EMAIL PROTECTED] wrote: A plot in the new economic zone of the city Plots can be done using a library called matplotlib, and its free as far as I know. I'm not sure if the licensing prohibits selling the plots, but you'd need to post on that list for more details

Re: Close access to the base class public methods

2008-11-11 Thread RinKaMeAri
On Nov 11, 9:12 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > RinKaMeAri wrote: > > Hi! > > Could you imagine any way to block access to the base class public > > methods? > > Here is an example: > > class B: > >     def public_method(): > >         pass > > > class A(B): > >     def public_a_metho

Re: Printing a "status " line from a python script

2008-11-11 Thread Steve Holden
Chris Seymour wrote: > Hi All, > I am working on a python script for my colleague that will walk a > directory and search in the different files for a specific string. > These pieces I am able to do. What my colleague wants is that when > she runs the script the filename is replaced by the current

Re: Bug in PIL 1.1.6

2008-11-11 Thread bearophileHUGS
Markus Mayer: > Any idea where I should send this (and/or more) information to? You can send your note and and image to effbot. You can also put an image online somewhere and give here the link (a small image, to avoid saturating your server, etc) so people can test it. Bye, bearophile -- http://

Re: Printing a "status " line from a python script

2008-11-11 Thread Chris Rebert
On Tue, Nov 11, 2008 at 11:02 AM, Chris Seymour <[EMAIL PROTECTED]> wrote: > Hi All, > I am working on a python script for my colleague that will walk a > directory and search in the different files for a specific string. > These pieces I am able to do. What my colleague wants is that when > she r

Re: Project layout / Import files from different subdirectories

2008-11-11 Thread Steve Holden
Almar Klein wrote: > If your main file is in the root of the project, you can just > use absolute imports. So you can use gui.anotherwindow > or project.important from all files. > > I'm not sure this is good practice though... > > I was first under the impression that you can always import > mod

Re: Snippets management

2008-11-11 Thread Edwin
On Nov 10, 3:14 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > expora wrote: > > On Nov 6, 12:38 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > > >> Edwin wrote: > > >>> Hi there, > > >>> I've been looking for a snippet manager and found PySnippet but it > >>> requires PyGTK. Do you know any other op

Re: Final Python Class of 2009

2008-11-11 Thread skip
>> Steve, have you been in Guido's time machine again? Steve> No, honest (hides hands behind back). Well then what's that red stuff on your face that looks like strawberry jam? Could it be the special grease we store next to the keys to the time machine? Skip -- http://mail.python.org/m

Re: [Python-Dev] Python 2.5.3: call for patches

2008-11-11 Thread Martin v. Löwis
> I would like to apply fixes for some CVE's which are addressed in 2.5 but not > yet in 2.4. this would include > > CVE-2007-4965 > CVE-2008-1679 > CVE-2008-1721 > CVE-2008-2315 > CVE-2008-3144 > CVE-2008-1887 > CVE-2008-4864 Can you identify the revisions that would need backporting? I could o

Re: subprocess communication, exec()

2008-11-11 Thread Jeff McNeil
On Nov 11, 1:23 pm, "Chuckk Hubbard" <[EMAIL PROTECTED]> wrote: > If I run 'python -i subprocessclient.py' I expect to see the nice > level of it go up 2, and the nice level of the subprocess go up 1. > But all I see is the nice level of the client change. What am I doing > wrong? > > subprocessse

Re: Close access to the base class public methods

2008-11-11 Thread Steve Holden
RinKaMeAri wrote: > On Nov 11, 9:12 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >> RinKaMeAri wrote: >>> Hi! >>> Could you imagine any way to block access to the base class public >>> methods? >>> Here is an example: >>> class B: >>> def public_method(): >>> pass >>> class A(B): >>>

Re: Close access to the base class public methods

2008-11-11 Thread Chris Rebert
On Tue, Nov 11, 2008 at 11:16 AM, RinKaMeAri <[EMAIL PROTECTED]> wrote: > On Nov 11, 9:12 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >> RinKaMeAri wrote: >> > Hi! >> > Could you imagine any way to block access to the base class public >> > methods? >> > Here is an example: >> > class B: >> > d

Simple question about Python lists

2008-11-11 Thread Eric
I'm learning Python (while coming from MATLAB). One question I have is that if I have a list with say 8 elements, and I want just a few of them how do I select them out. In MATLAB, if I just want the first, fifth and eighth element I might do something like this: b = a([1 5 8]); I can't seem to f

Re: Simple question about Python lists

2008-11-11 Thread Marc 'BlackJack' Rintsch
On Tue, 11 Nov 2008 11:47:53 -0800, Eric wrote: > I'm learning Python (while coming from MATLAB). One question I have is > that if I have a list with say 8 elements, and I want just a few of them > how do I select them out. In MATLAB, if I just want the first, fifth and > eighth element I might do

Re: Python 2.5 and sqlite

2008-11-11 Thread Martin v. Löwis
> Sqlite3 is an optional part of Python. It has no dependencies on SQLite. That's not true. To build the _sqlite3 module, you need the SQLite3 sources or binaries, in addition to the Python sources. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing a "status " line from a python script

2008-11-11 Thread Chris Seymour
Thanks guys for the ideas. Appreciate the help. Cheers. Chris -- http://mail.python.org/mailman/listinfo/python-list

Parsing: request for pointers

2008-11-11 Thread André
Hi everyone, I would like to implement a parser for a mini-language and would appreciate some pointers. The type of text I would like to parse is an extension of: http://www.websequencediagrams.com/examples.html For those that don't want to go to the link, consider the following, *very* simplif

Re: Python 2.5 and sqlite

2008-11-11 Thread Thorsten Kampe
* "Martin v. Löwis" (Tue, 11 Nov 2008 20:54:37 +0100) > > Sqlite3 is an optional part of Python. It has no dependencies on > > SQLite. > > That's not true. To build the _sqlite3 module, you need the SQLite3 > sources or binaries, in addition to the Python sources. That's not what I meant: the que

Re: [ANN] sqlite 0.8.3

2008-11-11 Thread Thorsten Kampe
* sandro (Tue, 11 Nov 2008 11:42:00 GMT) > ANNOUNCE: sqlkit 0.8.3 > > November, 10 2008 > > I'm happy to announce release 0.8.3 of sqlkit package for python - the > first public release. Are you aware that you announced "sqlite 0.8.3" in the subjec

Re: Sync paramstyle between sqlite and mysql

2008-11-11 Thread Thorsten Kampe
* Jerry Hill (Tue, 11 Nov 2008 11:24:50 -0500) > On Mon, Nov 10, 2008 at 1:00 PM, Daniel <[EMAIL PROTECTED]> wrote: > > I have read in PEP249 (http://www.python.org/dev/peps/pep-0249/) that > > there are five paramstyles, though it wasn't clear if I should expect > > these to be implemented in all

Re: Simple question about Python lists

2008-11-11 Thread Guilherme Polo
On Tue, Nov 11, 2008 at 5:47 PM, Eric <[EMAIL PROTECTED]> wrote: > I'm learning Python (while coming from MATLAB). One question I have is > that if I have a list with say 8 elements, and I want just a few of > them how do I select them out. In MATLAB, if I just want the first, > fifth and eighth el

sys.stdout, urllib and unicode... I don't understand.

2008-11-11 Thread Thierry
Hello fellow pythonists, I'm a relatively new python developer, and I try to adjust my understanding about "how things works" to python, but I have hit a block, that I cannot understand. I needed to output unicode datas back from a web service, and could not get back unicode/multibyte text before

Re: Python 2.5 and sqlite

2008-11-11 Thread Guilherme Polo
On Tue, Nov 11, 2008 at 6:04 PM, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > * "Martin v. Löwis" (Tue, 11 Nov 2008 20:54:37 +0100) >> > Sqlite3 is an optional part of Python. It has no dependencies on >> > SQLite. >> >> That's not true. To build the _sqlite3 module, you need the SQLite3 >> sources

Re: Python 3.0 - is this true?

2008-11-11 Thread Martin v. Löwis
> The sorting is in a performance-critical part of the system, so the > overhead of evaluating a key function is not insignificant. Can you easily produce an example? It doesn't have to be real data, but should have the structure (typewise) of the real data. I would like to perform some measuremen

Has anyone tried calling zip.py in feedback.py and print out an innerHTML to provide a download link?

2008-11-11 Thread David Shi
Hello, there.   Has anyone tried calling zip.py in feedback.py and print out an innerHTML to provide a download link?   I find difficult to make it work.   Sincerely,   David  #** # Description: #Zips the contents of a folder.

Re: Project layout / Import files from different subdirectories

2008-11-11 Thread Markus Mayer
Steve Holden schrieb: > If you want shorter names in your main code, of course, you can use > > import project.main as main > import project.gui.mainwindow as window > > or somethihg similar. > > regards > Steve Yeah, I was going with the "from x import y" scheme by now, didn't know "as" was a

Re: etymology of "list comprehension"?

2008-11-11 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: > [EMAIL PROTECTED] writes: > > Ah, thanks... and does "comprehension" have any special computer > > science meaning? > > It is from mathematical set theory. If you write something like > >{ p | [some logical expr

Re: [Newbie] Strange output from list

2008-11-11 Thread Steve Holden
Chris Rebert wrote: > On Tue, Nov 11, 2008 at 12:56 AM, Gilles Ganault <[EMAIL PROTECTED]> wrote: >> On Mon, 10 Nov 2008 20:02:39 -0600, Andrew <[EMAIL PROTECTED]> wrote: >>> sql = 'SELECT id FROM master' >>> rows=list(cursor.execute(sql)) >>> for id in rows: >>> sql = 'SELECT COUNT(code) FRO

Re: Python 2.5 and sqlite

2008-11-11 Thread Thorsten Kampe
* Thorsten Kampe (Tue, 11 Nov 2008 10:45:28 +0100) > * (Mon, 10 Nov 2008 18:48:28 -0500) > > Can you ask them if sqlite3 is installed? and if not... to install it? > > Why would he have to install SQLite?! > > > You could include in your discussions "well sqlite3 is part of python" > > "if it i

Re: Python 2.5 and sqlite

2008-11-11 Thread Martin v. Löwis
> That's not what I meant: the question is, do you need SQLite /after/ > you've built from source or if you install the Python binary. Depends on how you built SQLite on your system. If it was a static library, you won't need it - if it is a shared library, you certainly need the shared library a

Re: Simple question about Python lists

2008-11-11 Thread Robert Kern
Guilherme Polo wrote: On Tue, Nov 11, 2008 at 5:47 PM, Eric <[EMAIL PROTECTED]> wrote: I'm learning Python (while coming from MATLAB). One question I have is that if I have a list with say 8 elements, and I want just a few of them how do I select them out. In MATLAB, if I just want the first, fi

Re: Simple question about Python lists

2008-11-11 Thread Eric
On Nov 11, 1:51 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Tue, 11 Nov 2008 11:47:53 -0800, Eric wrote: > > I'm learning Python (while coming from MATLAB). One question I have is > > that if I have a list with say 8 elements, and I want just a few of them > > how do I select them

Re: Python 2.5 and sqlite

2008-11-11 Thread Thorsten Kampe
* "Martin v. Löwis" (Tue, 11 Nov 2008 21:40:44 +0100) > > That's not what I meant: the question is, do you need SQLite /after/ > > you've built from source or if you install the Python binary. > > Depends on how you built SQLite on your system. If it was a static > library, you won't need it - if

Re: concurrency program design stackless python tasklet or python thread?

2008-11-11 Thread Aahz
In article <[EMAIL PROTECTED]>, davy zhang <[EMAIL PROTECTED]> wrote: > >first here is my basic idea is every actor holds their own msg queue, >the process function will handle the message as soon as the dispatcher >object put the message in. Sounds like a standard design. >This idea naturally le

Re: Python 3.0 - is this true?

2008-11-11 Thread M.-A. Lemburg
On 2008-11-11 02:10, Steven D'Aprano wrote: > On Mon, 10 Nov 2008 12:51:51 +, Duncan Grisby wrote: > >> I have an object database written in Python. It, like Python, is >> dynamically typed. It heavily relies on being able to sort lists where >> some of the members are None. To some extent, it

Are there any FOSS Python Single-Sign-on Servers?

2008-11-11 Thread Phillip B Oldham
Are there any FOSS Python Single-Sign-on Servers? We're looking to centralise the sign-on for our numerous "internal" webapps (across multiple servers, languages, and domains) to speed user management and application development. I've searched around but can only seem to find OpenID servers, whic

Re: Simple question about Python lists

2008-11-11 Thread Robert Kern
Eric wrote: On Nov 11, 1:51 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: On Tue, 11 Nov 2008 11:47:53 -0800, Eric wrote: I'm learning Python (while coming from MATLAB). One question I have is that if I have a list with say 8 elements, and I want just a few of them how do I select the

Re: subprocess communication, exec()

2008-11-11 Thread Chuckk Hubbard
On Tue, Nov 11, 2008 at 9:39 PM, Jeff McNeil <[EMAIL PROTECTED]> wrote: > On Nov 11, 1:23 pm, "Chuckk Hubbard" <[EMAIL PROTECTED]> > wrote: >> If I run 'python -i subprocessclient.py' I expect to see the nice >> level of it go up 2, and the nice level of the subprocess go up 1. >> But all I see is

Re: module cwiid and threading: how to use cwiid.Wiimote without blocking

2008-11-11 Thread News123
The only solution, that I found was recompiling the libcwiid wrapper, such that it allows threading (the patch existed already on the libcwiid Trac data base, though it's not part of an official release) bye N News123 wrote: > Hi, > > I'm using the module cwiid to conncet to a wiimote. > > i

Re: [Python-Dev] Python 2.5.3: call for patches

2008-11-11 Thread Matthias Klose
Martin v. Löwis schrieb: > Within a few weeks, we will release Python 2.5.3. This will be the last > bug fix release of Python 2.5, afterwards, future releases of 2.5 will > only include security fixes, and no binaries (for Windows or OSX) will > be provided anymore (from python.org). > > In princ

Re: wildcard match with list.index()

2008-11-11 Thread Mr . SpOOn
Thanks, I just have to choose which one to use :) -- http://mail.python.org/mailman/listinfo/python-list

SHA1withRSA in python

2008-11-11 Thread Mailing List SVR
Hi all, in java there are several libraries for sha1withrsa, there is something similar in python? thanks Nicola -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.0 - is this true?

2008-11-11 Thread Robin Becker
Terry Reedy wrote: M.-A. Lemburg wrote: I think the special case for None should be readded to Python 3.0. Quick summary of thread that MAL started on Python-3000-dev list: Once upon a time, 0 < None was true. When rich comparisons were added, None < 0 (and *most* other things) become tru

Re: Are there any FOSS Python Single-Sign-on Servers?

2008-11-11 Thread paul
Phillip B Oldham schrieb: Are there any FOSS Python Single-Sign-on Servers? [snip] I've searched around but can only seem to find OpenID servers, which will probably be too "open" for our needs. So if it is not OpenID, which protocol are you going to implement? cheers Paul -- http://mail.

Re: Python 2.5 and sqlite

2008-11-11 Thread Thorsten Kampe
* (Mon, 10 Nov 2008 18:48:28 -0500) > Quoting "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>: > > On a (sun) webserver that I use, there is python 2.5.1 installed. I'd > > like to use sqlite3 with this, however sqlite3 is not installed on the > > webserver. If I were able to compile sqlite using a sun ma

Re: Final Python Class of 2009

2008-11-11 Thread Steve Holden
Steven D'Aprano wrote: > On Mon, 10 Nov 2008 22:14:16 -0500, Steve Holden wrote: > > Subject: Final Python Class of 2009 > > Steve, have you been in Guido's time machine again? > :-) > > No, honest (hides hands behind back). regards Steve -- Steve Holden+1 571 484 6266 +1 800 494

Re: Project layout / Import files from different subdirectories

2008-11-11 Thread Jeremiah Dodds
On Tue, Nov 11, 2008 at 7:08 AM, Markus Mayer <[EMAIL PROTECTED]> wrote: > Steve Holden schrieb: > > If you want shorter names in your main code, of course, you can use > > > > import project.main as main > > import project.gui.mainwindow as window > > > > or somethihg similar. > > > > regards > >

Re: Project layout / Import files from different subdirectories

2008-11-11 Thread Almar Klein
If your main file is in the root of the project, you can just use absolute imports. So you can use gui.anotherwindow or project.important from all files. I'm not sure this is good practice though... I was first under the impression that you can always import modules that are in your current worki

Re: IBM integer and double formats

2008-11-11 Thread Mark Dickinson
On Nov 11, 12:07 pm, Mark Dickinson <[EMAIL PROTECTED]> wrote: > "All character data are stored in ASCII, regardless of the > operating system." But character data is not the same thing as numeric data. Okay--- you win again, John. > Sheesh. [...] Apologies for annoying you. Mark -- http://ma

[ANN] sqlite 0.8.3

2008-11-11 Thread sandro
ANNOUNCE: sqlkit 0.8.3 November, 10 2008 I'm happy to announce release 0.8.3 of sqlkit package for python - the first public release. http://sqlkit.argolinux.org/ The package --- SQLkit PyGtk package provides Mask and Table widgets to

Bug in PIL 1.1.6

2008-11-11 Thread Markus Mayer
Hi again. I seem to have stumbled over a bug in PIL 1.1.6's ImageQt module. It has problems with _some_ GIFs, which appear sheared after the conversion. Seems to be a scanline length problem or something. > ImageQt(Image.open(specific_gif_file)) displayed using a PyQt4 painter. Any idea where I

Re: Strange output from list

2008-11-11 Thread John Machin
On Nov 11, 10:47 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Chris Rebert wrote: > > On Tue, Nov 11, 2008 at 12:56 AM, Gilles Ganault <[EMAIL PROTECTED]> wrote: > >> On Mon, 10 Nov 2008 20:02:39 -0600, Andrew <[EMAIL PROTECTED]> wrote: > >>> sql = 'SELECT id FROM master' > >>> rows=list(cursor.ex

Re: Sync paramstyle between sqlite and mysql

2008-11-11 Thread Jerry Hill
On Mon, Nov 10, 2008 at 1:00 PM, Daniel <[EMAIL PROTECTED]> wrote: > I have read in PEP249 (http://www.python.org/dev/peps/pep-0249/) that > there are five paramstyles, though it wasn't clear if I should expect > these to be implemented in all DBAPI2 compliant modules. I have found > that I can se

f2py usage problem

2008-11-11 Thread bkamrani
Hi Python gurus, I have installed numpy and interested in testing f2py module using the first example in the documentation. First I tried: C:\test>python "C:\Program Files\Python25\Scripts\f2py.py" -c fib1.f running build running config_cc unifing config_cc, config, build_clib, build_ext, build c

Re: Are there any FOSS Python Single-Sign-on Servers?

2008-11-11 Thread Phillip B Oldham
On Nov 11, 9:24 pm, paul <[EMAIL PROTECTED]> wrote: > Phillip B Oldham schrieb:> Are there any FOSS Python Single-Sign-on Servers? > > [snip] > > > I've searched around but can only seem to find OpenID servers, which > > will probably be too "open" for our needs. > > So if it is not OpenID, which p

Wing IDE 3.1.5 released

2008-11-11 Thread Wingware
Hi, Wingware has released version 3.1.5 of Wing IDE, a bugfix release for all three product levels of Wing IDE. *Release Highlights* This release includes the following: * Avoid auto-starting batch searches when a new project is opened * Several vi mode fixes * Added debug 'watch' item to edit

Re: Strange output from list

2008-11-11 Thread Rob Williscroft
Steve Holden wrote in news:mailman.3804.1226412496.3487.python- [EMAIL PROTECTED] in comp.lang.python: >> Shouldn't it be GROUP BY master.id? I would have thought that SQL >> would be sad about a non-aggregate (master.id) that's in the SELECT >> list but not also in the GROUP BY list. >> > Well,

Re: Bug in PIL 1.1.6

2008-11-11 Thread Markus Mayer
[EMAIL PROTECTED] schrieb: > Markus Mayer: >> Any idea where I should send this (and/or more) information to? > > You can send your note and and image to effbot. > You can also put an image online somewhere and give here the link (a > small image, to avoid saturating your server, etc) so people ca

Re: Bug in PIL 1.1.6

2008-11-11 Thread Markus Mayer
Steve Holden schrieb: > [EMAIL PROTECTED] wrote: > From > > http://www.pythonware.com/products/pil/ > > """ > You can join the Image SIG via python.org's subscription page, or by > sending a mail to [EMAIL PROTECTED] Put subscribe in the > message body to automatically subscribe to the list, or

Re: Finding the instance reference of an object [long and probably boring]

2008-11-11 Thread Steve Holden
greg wrote: > Arnaud Delobelle wrote: >> But in the course of conversation I might refer to >> Napoleon, meaning Napoleon Bonaparte (1769 - 1821) or Napoleon III (1808 >> - 1873). > > That's more like referring to the name 'Napoleon' in > two different namespaces. The original binding still > exis

Re: Bug in PIL 1.1.6

2008-11-11 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Markus Mayer: >> Any idea where I should send this (and/or more) information to? > > You can send your note and and image to effbot. > You can also put an image online somewhere and give here the link (a > small image, to avoid saturating your server, etc) so people can

Re: sys.stdout, urllib and unicode... I don't understand.

2008-11-11 Thread Tino Wildenhain
Thierry wrote: Hello fellow pythonists, I'm a relatively new python developer, and I try to adjust my understanding about "how things works" to python, but I have hit a block, that I cannot understand. I needed to output unicode datas back from a web service, and could not get back unicode/multi

Re: Strange output from list

2008-11-11 Thread Steve Holden
John Machin wrote: > On Nov 11, 10:47 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >> Chris Rebert wrote: >>> On Tue, Nov 11, 2008 at 12:56 AM, Gilles Ganault <[EMAIL PROTECTED]> wrote: On Mon, 10 Nov 2008 20:02:39 -0600, Andrew <[EMAIL PROTECTED]> wrote: > sql = 'SELECT id FROM master' >>>

Re: IBM integer and double formats

2008-11-11 Thread Mark Dickinson
On Nov 11, 11:36 am, John Machin <[EMAIL PROTECTED]> wrote: > > wants to write the converted float out to an ASCII file, in hex. > > Sheesh. It's an *IBM mainframe* file. It would need to be in EBCDIC, > not ASCII. But why guess? He said he wanted to write it out in SAS > XPORT format. Which is st

Re: Bug in PIL 1.1.6

2008-11-11 Thread Markus Mayer
Markus Mayer schrieb: > Okay, for the* tip, here we go: *2nd tip that is. I need some sleep. -- PGP/GPG key 0x2EB39BF9 -- http://mail.python.org/mailman/listinfo/python-list

Re: Project layout / Import files from different subdirectories

2008-11-11 Thread Stef Mientki
On Tue, Nov 11, 2008 at 8:46 AM, Markus Mayer <[EMAIL PROTECTED]> wrote: > Hi folks. > > I'm new to python and have a slight problem importing - or maybe > understanding - modules. I'm writing a GUI application using Qt4 and > wanted to separate the business from the view logic. So I have my folde

Re: sorting list of complex numbers

2008-11-11 Thread Thomas Bellman
Steve Holden <[EMAIL PROTECTED]> wrote: > Only half the number, of course. The advantage of the key function is > that each element requires only one call out to a Python function, and > the comparisons then take place using a C-coded comparison function. You don't need any Python-coded function

Re: IBM integer and double formats

2008-11-11 Thread John Machin
On Nov 11, 8:15 pm, Mark Dickinson <[EMAIL PROTECTED]> wrote: > On Nov 10, 11:49 pm, John Machin <[EMAIL PROTECTED]> wrote: > > > Call me crazy if you like, but I'd name that function IEEEtoIBM. > > But it's topsy-turvy day!  Didn't you get the memo? > > Oh, all right.  IEEEtoIBM it is. > > > That'

Re: Where to locate existing standard encodings in python

2008-11-11 Thread News123
Hi Philip, Your answer touches exaclty one point, which I was slightly afraid of: - The list is not exhaustive - python versions might have implemented different codecs. This is why I wondered whether there's any way of querying python for a list of codecs it supports. thanks again for your and

Re: concurrency program design stackless python tasklet or python thread?

2008-11-11 Thread Aleksandar Radulovic
Hi there, On Tue, Nov 11, 2008 at 5:57 AM, davy zhang <[EMAIL PROTECTED]> wrote: > first here is my basic idea is every actor holds their own msg queue, > the process function will handle the message as soon as the dispatcher > object put the message in. Using stackless, every tasklet can have a

Re: Final Python Class of 2009

2008-11-11 Thread Steve Holden
[EMAIL PROTECTED] wrote: > >> Steve, have you been in Guido's time machine again? > > Steve> No, honest (hides hands behind back). > > Well then what's that red stuff on your face that looks like strawberry jam? > Could it be the special grease we store next to the keys to the time > mach

Final "Introduction to Python" of 2008

2008-11-11 Thread Steve Holden
As the year draws to a close, Holden Web is pleased to remind readers that its final public "Introduction to Python" class of this year will be held from 9-11 December at our education center close to Washington, DC. There are several hotels conveniently located within walking distance, and we pro

Re: Python 3.0 - is this true?

2008-11-11 Thread Duncan Grisby
In article <[EMAIL PROTECTED]>, Terry Reedy <[EMAIL PROTECTED]> wrote: >> I have an object database written in Python. It, like Python, is >> dynamically typed. It heavily relies on being able to sort lists where >> some of the members are None. To some extent, it also sorts lists of >> other mix

  1   2   >