Where can I get Lucid Toolkit?

2008-11-11 Thread est
Hi guys, I tried to grab source code for Lucid Toolkit http://www.clarographics.org/svn_details which was mentioned http://wiki.python.org/moin/GuiProgramming So is this project abandoned? Is there any backup that I can get the code? Any other recommands for simple GUI development, with out la

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

2008-11-11 Thread Matthias Klose
Martin v. Löwis schrieb: >> 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 t

inspect.findsource problem with llinecache

2008-11-11 Thread Rafe
Hi, I think I have discovered two bugs with the inspect module and I would like to know if anyone can spot any traps in my workaround. I needed a function which takes a function or method and returns the code inside it (it also adjusts the indent because I have to paste the to a text string witho

Re: Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-11 Thread Arnaud Delobelle
Steven D'Aprano <[EMAIL PROTECTED]> writes: > I am very happy to say that x=1 implies that the value of x is the object > 1 itself, in fact I would insist on such a definition of value. > > If you insist that Python is call by value, the only way that can work is > by defining values to be refer

Re: SHA1withRSA in python

2008-11-11 Thread Python Nutter
For simple hashing algorithms, then use the aformentioned built in hashlib in Python. However for the rest you need M2Crypto to get a wrapper around OpenSSL: M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including AES);

Re: Parsing: request for pointers

2008-11-11 Thread Steven D'Aprano
On Tue, 11 Nov 2008 11:59:50 -0800, André wrote: > 4. I want to do this only using modules in the standard Python >library, as I want to use this to learn about the basics of parsing. >So, please don't *simply* suggest to use a third-party module, such >as >[1] plex, [2] yapps, [3

Re: How can a function know what module it's in?

2008-11-11 Thread Rafe
On Nov 12, 11:17 am, Joe Strout <[EMAIL PROTECTED]> wrote: > Some corrections, to highlight the depth of my confusion... > > On Nov 11, 2008, at 9:10 PM, Joe Strout wrote: > > >    doctest.testmod(mymodule) > > > This actually works fine if I'm importing the module (with the   > > standard name) so

Re: How can a function know what module it's in?

2008-11-11 Thread Joe Strout
Some corrections, to highlight the depth of my confusion... On Nov 11, 2008, at 9:10 PM, Joe Strout wrote: doctest.testmod(mymodule) This actually works fine if I'm importing the module (with the standard name) somewhere else Actually, it does not. I noticed that a function object

How can a function know what module it's in?

2008-11-11 Thread Joe Strout
I've been using docstring to exercise each of my modules, with code like this: def _test(): import doctest doctest.testmod() if __name__ == "__main__": _test() This works great when I execute each module by itself. However, if I want to call mymodule._test() from s

Re: cannot pickle object returned by urllib2.urlopen()

2008-11-11 Thread Steven D'Aprano
On Wed, 12 Nov 2008 11:00:26 +0800, scsoce wrote: > got a exception: "a class that defines __slots__ without defining > __getstate__ cannot be pickled " > why? > and is there any other dump method but for pickle to store the kind of > object ? I can't answer either of your questions, but why are

Re: Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-11 Thread Steven D'Aprano
On Wed, 12 Nov 2008 02:44:42 +, Steven D'Aprano wrote: > But one thing is clear: values aren't references. Given the assignment > x=1, the value of x is not "a reference to 1" but 1 itself. So the one > thing we can unambiguously say is that Algol's assignment model is not > the same as Python

cannot pickle object returned by urllib2.urlopen()

2008-11-11 Thread scsoce
got a exception: "a class that defines __slots__ without defining __getstate__ cannot be pickled " why? and is there any other dump method but for pickle to store the kind of object ? -- http://mail.python.org/mailman/listinfo/python-list

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

2008-11-11 Thread Geon.
On 11월11일, 오후6시10분, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > * 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 e

Re: Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-11 Thread Steven D'Aprano
On Wed, 12 Nov 2008 13:10:10 +1300, greg wrote: > Here is the definition of call-by-value from the "Revised Report on the > Algorithmic Language Algol 60" > : Why should anyone take the "Revised Report on the Algorithmic Language Algol 60" as the "offi

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

2008-11-11 Thread Steve Holden
Phillip B Oldham wrote: > 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

Re: Strange output from list

2008-11-11 Thread Steve Holden
Rob Williscroft wrote: > 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

Re: Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-11 Thread Aahz
In article <[EMAIL PROTECTED]>, greg <[EMAIL PROTECTED]> wrote: > >Here is the definition of call-by-value from the >"Revised Report on the Algorithmic Language Algol 60" >: > >4.7.3.1. Value assignment (call by value). All formal parameters quoted in the

Re: sorting list of complex numbers

2008-11-11 Thread Steve Holden
Thomas Bellman wrote: > 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'

Re: python bug when subclassing list?

2008-11-11 Thread Steve Holden
Hamish McKenzie wrote: > I want to write a Vector class and it makes the most sense to just > subclass list. I also want to be able to instantiate a vector using either: > > > > Vector( 1, 2, 3 ) > > OR > > Vector( [1, 2, 3] ) > > > > > > so I have this: > > > > class Vector(list)

Re: Simple question about Python lists

2008-11-11 Thread Ben Finney
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Wed, 12 Nov 2008 10:08:45 +1100, Ben Finney wrote: > > > Eric <[EMAIL PROTECTED]> writes: > >> In MATLAB, if I just want the first, fifth and eighth element I > >> might do something like this: > >> > >> b = a([1 5 8]); > > > > Yes: the above c

Re: Simple question about Python lists

2008-11-11 Thread Robert Kern
Steven D'Aprano wrote: On Wed, 12 Nov 2008 10:08:45 +1100, Ben Finney wrote: Eric <[EMAIL PROTECTED]> writes: 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

Re: How to make arrays from Lists

2008-11-11 Thread Robert Kern
[EMAIL PROTECTED] wrote: On Nov 11, 7:48 pm, [EMAIL PROTECTED] wrote: gc_ott: How do I change the value of any element to produce (say) [[99,0,0],[0,0,0],[0,0,0]] ? gordc To create a 2D list, that is a list of lists: x = [[0] * ncols for i in nrows] (Don't do what you were doing, because you

Re: best python unit testing framwork

2008-11-11 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Brendan Miller <[EMAIL PROTECTED]> wrote: > What would heavy python unit testers say is the best framework? > > I've seen a few mentions that maybe the built in unittest framework > isn't that great. I've heard a couple of good things about py.test and > nose. Ar

Re: Simple question about Python lists

2008-11-11 Thread Steven D'Aprano
On Wed, 12 Nov 2008 10:08:45 +1100, Ben Finney wrote: > Eric <[EMAIL PROTECTED]> writes: > >> 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 t

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

2008-11-11 Thread Ben Finney
Phillip B Oldham <[EMAIL PROTECTED]> writes: > Even with using OpenID in this way, it still doesn't resolve the > issue we have: quick user registration & sign-on. The user will need > to register an OpenID account then register with each service/webapp > we provide. Why? You presumably have *exi

Re: How to make arrays from Lists

2008-11-11 Thread gc_ottawa
On Nov 11, 7:48 pm, [EMAIL PROTECTED] wrote: > gc_ott: > > > How do I change the value of any element to produce (say) > > [[99,0,0],[0,0,0],[0,0,0]] ? > > > gordc > > To create a 2D list, that is a list of lists: > x = [[0] * ncols for i in nrows] > (Don't do what you were doing, because you end w

Re: Problem with sqlite3 cursor and imbricated for loop

2008-11-11 Thread Michiel Overtoom
Charles V. wrote: It seems the second call to execute modify the first cursor. Is it normal ? How am I suppose to write this ? Maybe introduce a second cursor? import sqlite3 conn = sqlite3.connect(':memory:') c = conn.cursor() d = conn.cursor() # second cursor c.execute('''create table stock

Re: How to make arrays from Lists

2008-11-11 Thread bearophileHUGS
gc_ott: > How do I change the value of any element to produce (say) > [[99,0,0],[0,0,0],[0,0,0]] ? > > gordc To create a 2D list, that is a list of lists: x = [[0] * ncols for i in nrows] (Don't do what you were doing, because you end with many references to the same list, and that will give you t

Re: python bug when subclassing list?

2008-11-11 Thread Ethan Furman
Hamish McKenzie wrote: I want to write a Vector class and it makes the most sense to just subclass list. I also want to be able to instantiate a vector using either: Vector( 1, 2, 3 ) OR Vector( [1, 2, 3] ) so I have this: class Vector(list): def __new__( cls, *a ): try:

baa ob baa

2008-11-11 Thread megiacomonadeau
http://fromhollywood.net -- http://mail.python.org/mailman/listinfo/python-list

Re: How to make arrays from Lists

2008-11-11 Thread Benjamin Kaplan
On Tue, Nov 11, 2008 at 7:32 PM, <[EMAIL PROTECTED]> wrote: > I want to construct a 2-dimensional array from a List but I cannot > find a simple way of changing any element. For example, construct a > 3x3 array like this:- > >>> x=[0,0,0] > x=[x]*3 > this produces [[0,0,0],[0,0,0],[0,0,0]. S

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

2008-11-11 Thread Phillip B Oldham
On Nov 11, 11:48 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > Phillip B Oldham <[EMAIL PROTECTED]> writes: > > > I think maybe there's some misunderstanding. The protocol isn't the > > issue; I'm happy to use whatever (HTTP, LDAP, SOAP, XMPP, etc). The > > issue is that OpenID, by its name, is open.

How to make arrays from Lists

2008-11-11 Thread gc_ottawa
I want to construct a 2-dimensional array from a List but I cannot find a simple way of changing any element. For example, construct a 3x3 array like this:- >>> x=[0,0,0] x=[x]*3 this produces [[0,0,0],[0,0,0],[0,0,0]. So far so good. How do I change the value of any element to produce (say)

Re: best python unit testing framwork

2008-11-11 Thread J Kenneth King
Brendan Miller <[EMAIL PROTECTED]> writes: > What would heavy python unit testers say is the best framework? > > I've seen a few mentions that maybe the built in unittest framework > isn't that great. I've heard a couple of good things about py.test and > nose. Are there other options? Is there an

Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-11 Thread greg
Here is the definition of call-by-value from the "Revised Report on the Algorithmic Language Algol 60" : 4.7.3.1. Value assignment (call by value). All formal parameters quoted in the value part of the procedure declaration heading are assigned the valu

Re: Where to locate existing standard encodings in python

2008-11-11 Thread Tim Chase
Content-Type: text/html; charset=utf-8lias For Python to parse this, I had to use Python's list of known encodings in order to determine whether I could even parse the site (for passing it to a string's .encode() method). You haven't said why you think you need a list of known encodings!

Re: Where to locate existing standard encodings in python

2008-11-11 Thread Grzegorz Staniak
On 11.11.2008, Tim Chase <[EMAIL PROTECTED]> wroted: > (Aside: stupid dilbert.com site developers...what sorta rubbish is > "utf-8lias"?! It's not like it's something that would appear > accidentally. It very much looks like an accident during httpd.conf editing, e.g. pasting part of an "Al

Re: Null object pattern

2008-11-11 Thread Terry Reedy
Ben Finney wrote: Terry Reedy <[EMAIL PROTECTED]> writes: We're not going to add the "feature" back that None compares smaller than everything. It's a slippery slope that ends with all operations involving None returning None -- I've seen a proposal made in all earnestness requesting that None+

Re: best python unit testing framwork

2008-11-11 Thread Ben Finney
Brendan Miller <[EMAIL PROTECTED]> writes: > What would heavy python unit testers say is the best framework? > > I've seen a few mentions that maybe the built in unittest framework > isn't that great. That's right, there are many flaws in ‘unittest’. It nevertheless has the overwhelming advantag

Problem with sqlite3 cursor and imbricated for loop

2008-11-11 Thread Charles V.
Hi, I hope this is not already known. But Google wasn't any help. So here begins a script to explain my problem. - import sqlite3 conn = sqlite3.connect(':memory:') c = conn.cursor() c.execute('''create table stocks (date text, trans text, symbol text, qty real, price re

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

2008-11-11 Thread Ben Finney
Phillip B Oldham <[EMAIL PROTECTED]> writes: > I think maybe there's some misunderstanding. The protocol isn't the > issue; I'm happy to use whatever (HTTP, LDAP, SOAP, XMPP, etc). The > issue is that OpenID, by its name, is open. We don't want to allow > anyone with an openid account to register

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

2008-11-11 Thread Jeremiah Dodds
On Tue, Nov 11, 2008 at 6:29 PM, Phillip B Oldham <[EMAIL PROTECTED]>wrote: > > anyone with an openid account to register with our webapps, we simply > want to centralise registration and sign-on for our employees. > -- > http://mail.python.org/mailman/listinfo/python-list > Are your webapps writ

Re: Finding the instance reference of an object

2008-11-11 Thread greg
Steven D'Aprano wrote: If you equate "arguments within the called procedure" to the *name* of the arguments, then changing the arguments would mean changing the NAME If "changing the name" means "rebinding the name", then I agree -- that's exactly the point I was trying to make. If you equate

Re: Where to locate existing standard encodings in python

2008-11-11 Thread John Machin
On 12/11/2008 10:07, Tim Chase wrote: You haven't explained why you think that you *need* a list of all encodings that exist at a point in time. What are you going to do with the list? Just because I ran into this recently, the Dilbert.com site returns a bogus Content-type header with Cont

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

2008-11-11 Thread Phillip B Oldham
On Nov 11, 11:00 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > Phillip B Oldham <[EMAIL PROTECTED]> writes: > > > I've searched around but can only seem to find OpenID servers, which > > will probably be too "open" for our needs. > > Please, if you're going to be coding new systems, use established,

Null object pattern (was: Python 3.0 - is this true?)

2008-11-11 Thread Ben Finney
Terry Reedy <[EMAIL PROTECTED]> writes: > We're not going to add the "feature" back that None compares smaller > than everything. It's a slippery slope that ends with all operations > involving None returning None -- I've seen a proposal made in all > earnestness requesting that None+42 == None, N

Re: Simple question about Python lists

2008-11-11 Thread Ben Finney
Eric <[EMAIL PROTECTED]> writes: > 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

Re: SHA1withRSA in python

2008-11-11 Thread Jeremiah Dodds
On Tue, Nov 11, 2008 at 12:40 PM, Mailing List SVR <[EMAIL PROTECTED]>wrote: > 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 > http://docs.python.org/librar

Re: Where to locate existing standard encodings in python

2008-11-11 Thread Tim Chase
You haven't explained why you think that you *need* a list of all encodings that exist at a point in time. What are you going to do with the list? Just because I ran into this recently, the Dilbert.com site returns a bogus Content-type header with Content-Type: text/html; charset=utf-8lias

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

2008-11-11 Thread Ben Finney
Phillip B Oldham <[EMAIL PROTECTED]> writes: > I've searched around but can only seem to find OpenID servers, which > will probably be too "open" for our needs. Huh? I'm sure you use HTTP for transferring requests and responses, too, and that protocol is at least as as open. What does the opennes

best python unit testing framwork

2008-11-11 Thread Brendan Miller
What would heavy python unit testers say is the best framework? I've seen a few mentions that maybe the built in unittest framework isn't that great. I've heard a couple of good things about py.test and nose. Are there other options? Is there any kind of concensus about the best, or at least how t

Re: Python 2.5 and sqlite

2008-11-11 Thread david . lyon
> Can you ask them if sqlite3 is installed? and if not... to install it? Why would he have to install SQLite?! Seems a stupid question. If he wants to use SQLite... it needs to be on the system ould include in your discussions "well sqlite3 is part of python" > "if it isn't, you haven'

Re: Where to locate existing standard encodings in python

2008-11-11 Thread rurpy
On Nov 11, 11:19 am, Philip Semanchuk <[EMAIL PROTECTED]> wrote: > 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

Re: Where to locate existing standard encodings in python

2008-11-11 Thread John Machin
On Nov 10, 11:00 am, News123 <[EMAIL PROTECTED]> wrote: > Hi, > > I was googling quite some time before finding the answer to my question: > 'what are the names for the encodings supported by python?' > > I found the answer athttp://python.active-venture.com/lib/node127.html > > Now my question: >

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

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

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

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

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

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

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

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

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

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

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

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

  1   2   >