Re: Pycrypto - active ??

2006-03-20 Thread dirvine
Yes the homepage says updated, but I think that refers to more than just pycrypto. The data etc. all seems old. Perhaps it's at it's level ? I just wonder if the project itself is active and more recent docs exist to answer some of the questions I have posed. I certainly hope theres some answers.

Re: Chained Comparisons

2006-03-20 Thread John Machin
On 20/03/2006 5:24 PM, Sathyaish wrote: > I) What does the following expression evaluate to? > > a < b == c > > 1) (a < b) and (b == c) > 2) (a < b) or (b == c) > Given the common idiom in mathematics (a <= b <= c) and what it means, please contemplate which of "and" and "or" might be the more

Re: Chained Comparisons

2006-03-20 Thread Sathyaish
John, I did "guess" but I wasn't quite sure and so I asked. OK, I did not perform a search on the docs, but that was because: 1) It is easier to learn through an interactive medium like a forum; and 2) A search in the same document you are reading takes you "off" and "adrift", and as such, is eq

Re: whats your favourite object relational mapper?

2006-03-20 Thread Giovanni Bajo
Jonathan Ellis wrote: > ... which, of course, goes to show how stupid a metric this is, now > that even Ian Bicking has admitted that SqlObject in its current form > is a dead end. Got a pointer? -- Giovanni Bajo -- http://mail.python.org/mailman/listinfo/python-list

Re: C API: Testing my reference counting

2006-03-20 Thread Martin v. Löwis
lord trousers wrote: > Is there a way I can get hold of these kinds of statistics for > debugging? This is best done when Python is build in debug mode. sys.gettotalrefcount then gives you the number of INCREF calls for which no DECREF has been made; you said that this shouldn't change. If it doe

Re: Python 2.5 Schedule

2006-03-20 Thread Martin v. Löwis
Ben Finney wrote: >> - ASCII is the default coding > > Er? How did this happen? > > To be specific, what about all the movement toward UTF-8? See PEP 263. ASCII is the default encoding for source code; if you want to use UTF-8 in source code, either put # -*- coding: utf-8 -*- into the fil

combining mod_python handlers publisher and psp problem

2006-03-20 Thread exhuma.twn
Simple problem: When I define a funtion the way you would with the publisher handler (without using psp), all works as expected. However when I define a publisher-like function and instantiate a PSP object in it ( as suggested on http://www.onlamp.com/pub/a/python/2004/02/26/python_server_pages.ht

Re: Chained Comparisons

2006-03-20 Thread Duncan Booth
Sathyaish wrote: > I did "guess" but I wasn't quite sure and so I asked. OK, I did not > perform a search on the docs, but that was because: > > 1) It is easier to learn through an interactive medium like a forum; and what exactly do you think the other people in the forum do? They go off and r

Error sending message [1142579362378.1884.rpppl] from [randpoly.com]

2006-03-20 Thread randpoly.com PostMaster
[<00>] V-POP3bounce: [EMAIL PROTECTED];Error=[550 Error: Invalid Attachment] [<01>] Error sending message [1142579362378.1884.rpppl] from [randpoly.com]. ID: Mail From: Rcpt To: <[EMAIL PROTECTED]> Server: [209.120.245.170] [<02>] The reason of the delivery failure was: 550 Err

Re: combining mod_python handlers publisher and psp problem

2006-03-20 Thread exhuma.twn
exhuma.twn wrote: > Simple problem: > > When I define a funtion the way you would with the publisher handler > (without using psp), all works as expected. However when I define a > publisher-like function and instantiate a PSP object in it ( as > suggested on > http://www.onlamp.com/pub/a/python/20

Re: IMAP Folder Size Information

2006-03-20 Thread Tim Williams (gmail)
On 20/03/06, Kevin F <[EMAIL PROTECTED]> wrote: I'm trying to use the following code to get my remote server's foldersize information.  Unfortunately, i'm getting the error:Traceback (most recent call last):   File "/Life/School/Homework/Spring 2006/OPIM 399/Tutorial/IMAP/mailboxsize.py", line 23,

Re: Programming challenge: wildcard exclusion in cartesian products

2006-03-20 Thread Dinko Tenev
Doug Quale wrote: > "funkyj" <[EMAIL PROTECTED]> writes: > > > One advantage of a generator over filtering the full product is that I, > > as the user of the generator, am not obligated to iterate over the > > entire solution space. > > > > Are there other _practical_ advantages of generators over

Error sending message [1142825372138.2332.rpppl] from [randpoly.com]

2006-03-20 Thread randpoly.com PostMaster
[<00>] V-POP3bounce: [EMAIL PROTECTED];Error=[550 Error: Invalid Attachment] [<01>] Error sending message [1142825372138.2332.rpppl] from [randpoly.com]. ID: Mail From: Rcpt To: <[EMAIL PROTECTED]> Server: [209.120.245.170] [<02>] The reason of the delivery failure was: 550 Err

Re: Keeping a function from taking to long--threads?

2006-03-20 Thread Rene Pijlman
<[EMAIL PROTECTED]>: >I'm using windows, and from what I've tried, the setdefaulttimeout >function doesn't work on my machine. It should. It does on mine. -- René Pijlman Wat wil jij leren? http://www.leren.nl -- http://mail.python.org/mailman/listinfo/python-list

mod_python + publisher + psp + session problems

2006-03-20 Thread exhuma.twn
Hi again, as soon as I try to make use of the "session" object inside a psp-template file, I get the following error: Mod_python error: "PythonHandler mod_python.publisher" Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDis

Re: Need design advice. What's my best approach for storing this data?

2006-03-20 Thread Magnus Lycka
Mudcat wrote: > I am trying to build a tool that analyzes stock data. Therefore I am > going to download and store quite a vast amount of it. Just for a > general number - assuming there are about 7000 listed stocks on the two > major markets plus some extras, 255 tradying days a year for 20 years,

Re: Keeping a function from taking to long--threads?

2006-03-20 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Thanks, however, I forgot to mention that I'm using windows, and from what > I've tried, the setdefaulttimeout function doesn't work on my machine. > Again, thanks for your help! > Brandon McGinty > What version of Python are you running? Under 3.4 setdefaulttimeout() w

Re: ANNOUNCE: xlrd 0.5.2 -- extract data from Excel spreadsheets

2006-03-20 Thread jcmendez
John Thanks for walking us through the comparison. On the xlrd website I saw that it does not import formulas from the Excel files, which is what I'm looking for. Any suggestions? Juan C. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python + publisher + psp + session problems

2006-03-20 Thread grahamd
exhuma.twn wrote: > Hi again, > > as soon as I try to make use of the "session" object inside a > psp-template file, I get the following error: > > Mod_python error: "PythonHandler mod_python.publisher" > > Traceback (most recent call last): > > File "/usr/lib/python2.4/site-packages/mod_python/

Re: Pycrypto - active ??

2006-03-20 Thread Paul Rubin
"dirvine" <[EMAIL PROTECTED]> writes: > I just wonder if the project itself is active and more recent docs > exist to answer some of the questions I have posed. > > I certainly hope theres some answers. You mentioned TLS/SSL, so I hope you do know about . But that doesn

Re: combining mod_python handlers publisher and psp problem

2006-03-20 Thread grahamd
You could also have done: def index(req, name='John'): s = 'Hello, there!' if name: names = ['a', 'b', 'c'] s = 'Hello, %s!' % name.capitalize() tmpl = psp.PSP(req, filename='index.psp') req.content_type = 'text/html' tmpl.run(vars = { 'g

Re: ANNOUNCE: xlrd 0.5.2 -- extract data from Excel spreadsheets

2006-03-20 Thread John Machin
On 20/03/2006 9:28 PM, jcmendez wrote: > John > > Thanks for walking us through the comparison. On the xlrd website I > saw that it does not import formulas from the Excel files, which is > what I'm looking for. Any suggestions? > > Juan C. > Juan, what do you want to do with the formulas afte

Re: Programming challenge: wildcard exclusion in cartesian products

2006-03-20 Thread Dinko Tenev
[EMAIL PROTECTED] wrote: > It would seem that your program is just filtering the full cartesian > product, right? The solution I'm looking for generates the elements > one-by-one so that it could be used in a loop. OK, having read some of the comments so far, I have the feeling that I may be missi

Re: Chained Comparisons

2006-03-20 Thread Sathyaish
>And firing up a news client, posting a message, and /waiting/ for a response isn't? In most cases, you could have read half the language reference manual in the time it takes to get an online response. No, it isn't because you continue reading the same stuff and you have the stuff open in another

Re: ANNOUNCE: xlrd 0.5.2 -- extract data from Excel spreadsheets

2006-03-20 Thread jcmendez
Hi John I'd like to create a dependency graph and plot it with Graphviz. I've played a bit with exporting the sheet in XML format, and parsing the XML. That somehow works, but it would be much better if the users wouldn't need to save as the sheets, just put them is a shared directory where I ca

Re: Is there no end to Python?

2006-03-20 Thread Magnus Lycka
John Salerno wrote: > But isn't Python sort of known for the opposite, i.e. 'one simple way', > or something to that effect? If we compare it with the "opposite" language--Perl, and think of these languages as natural languages, rather than programming languages, Perl's inventor Larry Wall, felt

Re: Relative paths in mod_python

2006-03-20 Thread Ivo van der Sangen
On 2006-03-19, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Ivo van der Sangen a écrit : >> I was wondering if I could use relative paths in a mod_python script. At >> the moment I am defining a constant string >> "/path/to/dir/where/script/resides". The problem with this is that when >> I mov

Re: ANNOUNCE: xlrd 0.5.2 -- extract data from Excel spreadsheets

2006-03-20 Thread John Machin
On 20/03/2006 10:00 PM, jcmendez wrote: > Hi John > > I'd like to create a dependency graph and plot it with Graphviz. I've > played a bit with exporting the sheet in XML format, and parsing the > XML. That somehow works, but it would be much better if the users > wouldn't need to save as the sh

Re: Chained Comparisons

2006-03-20 Thread Peter Otten
Sathyaish wrote: > I) What does the following expression evaluate to? > > a < b == c > > 1) (a < b) and (b == c) > 2) (a < b) or (b == c) then later > 1) It is easier to learn through an interactive medium like a forum; There is a convenient alternative to asking basic questions on c.l.py or

Re: markup.py - HTML/XML generator

2006-03-20 Thread Gerard Flanagan
Daniel Nogradi wrote: > Just in case the thought of not having a millionth implementation of a > HTML/XML generator for Python makes the world as we know it a > miserable place, well then your suffering might be over soon since > exactly the one millionth implementation is out. You can download >

Re: Chained Comparisons

2006-03-20 Thread Sathyaish
OK, I get it. Just stop whining endlessly about it, guys. I *do* use the interpreter. I posted a question here. Sorry, I committed a sin. -- http://mail.python.org/mailman/listinfo/python-list

Re: ANNOUNCE: xlrd 0.5.2 -- extract data from Excel spreadsheets

2006-03-20 Thread jcmendez
Exactly. Once I get the formulas, I can do a weak parsing of them and find the references. -- http://mail.python.org/mailman/listinfo/python-list

Re: ** Operator

2006-03-20 Thread Christoph Zwerschke
Alex Martelli wrote: > Sathyaish wrote: > >> I tried it on the interpreter and it looks like it is the "to the power >> of" operator symbol/function. Can you please point me to the formal >> definition of this operator in the docs? > > http://docs.python.org/ref/power.html I think this should be

Re: Importing an output from another function

2006-03-20 Thread Magnus Lycka
Byte wrote: > Now what do I do if Func1() has multiple outputs and Func2() requires > them all to give its own output, as follows: > > import random > > def Func1(): > choice = ('A', 'B', 'C') > output = random.choice(choice) > output2 = random.choice(choice) > return output >

Re: Pycrypto - active ??

2006-03-20 Thread dirvine
Thanks Paul I will check this out. Perhaps theres a case for pycrypto to be revamped and perhaps a new python cryptographic page to be created mentioning all these projects. I have foudn it a bit difficult to find info on this area. Mny thanks for this though. -- http://mail.python.org/mailman/l

Re: ANNOUNCE: xlrd 0.5.2 -- extract data from Excel spreadsheets

2006-03-20 Thread John Machin
On 20/03/2006 10:37 PM, jcmendez wrote: > Exactly. Yes, your requirement is exactly that, a list of references. > Once I get the formulas, I can do a weak parsing of them and > find the references. > A formula is not stored as input e.g. "(A1+A2)*3.0+$Z$29"; it's kept as an RPN stream of var

Re: Counting number of each item in a list.

2006-03-20 Thread per9000
Dear counters, I have also encountered the above problem, and I frequently use the two blocks of code below. The first one is commented already - except that this version does not start from an empty dict. The second "inverts" the first one. Meaning that a dict in word2hits style: my_dict['the'

Ink

2006-03-20 Thread mshawjr
Sorry guys. The spam stuff was not my intent. I do oppoligies and won't happen again. I have never been on newsgroups before and not sure how to work them. I hope you guys can forgive a bad choice. Murphey -- http://mail.python.org/mailman/listinfo/python-list

Re: Chained Comparisons

2006-03-20 Thread Peter Otten
Sathyaish wrote: > OK, I get it. Just stop whining endlessly about it, guys. Relax. Take what's in it for you and forget about the rest. > I *do* use the interpreter. I posted a question here. And I showed you an easy way to answer it yourself. Using the interpreter doesn't seem to be as ing

Re: Chained Comparisons

2006-03-20 Thread Sathyaish
Thanks, Peter. I do use the interpreter alongside while reading the documentation and also try out the examples. It was just a matter of chance that for this particular situation, I did not. Thank you for the answers, everyone. I hope I am still welcome here for more questions. -- http://mail.py

Re: Counting number of each item in a list.

2006-03-20 Thread Peter Otten
per9000 wrote: > A good idea could be to change the header of the first one (if you want > the option to start counting from zero) into: > def dict_add(inlist,indict={},init=1): make that def dict_add(inlist, indict=None, init=1): if indict is None: indict = {} See "5. Mutable defau

compile function and future statements

2006-03-20 Thread Fuzzyman
Hello all, The following is a copy of a blog entry. It's asking a question about future statements and the built in compile function. I'd appreciate any pointers or comments about possible approaches. `Movable Python `_ supports running both Python scrip

Re: ** Operator

2006-03-20 Thread Sathyaish
Thanks very much for helping out, Christopher. -- http://mail.python.org/mailman/listinfo/python-list

py2exe 0.6.5 released

2006-03-20 Thread Jimmy Retzlaff
py2exe 0.6.5 released = py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation. Console and Windows (GUI) applications, Windows NT services, exe and dll COM servers are supported

Re: cmp() on integers - is there guarantee of returning only +-1 or 0?

2006-03-20 Thread Christoph Zwerschke
Alex Martelli wrote: > <[EMAIL PROTECTED]> wrote: >> Why not >> >> def sign(n): >> return n and n/abs(n) or 0 > > If you assume n is a number, the 'or 0' appears redundant (if you don't > so assume, then the abs(n) and the division are doubtful;-). Without the 'or 0' it is also more c

Re: Chained Comparisons

2006-03-20 Thread Steve Holden
Sathyaish wrote: > Thanks, Peter. I do use the interpreter alongside while reading the > documentation and also try out the examples. It was just a matter of > chance that for this particular situation, I did not. > > Thank you for the answers, everyone. I hope I am still welcome here for > more q

compile function and future statements

2006-03-20 Thread Fuzzyman
Hello all, The following is a copy of a blog entry. It's asking a question about future statements and the built in compile function. I'd appreciate any pointers or comments about possible approaches. `Movable Python `_ supports running both Python scrip

Re: String comparison question

2006-03-20 Thread luc . saffre
Michael Spencer wrote: > Olivier Langlois wrote: > > > I would like to make a string comparison that would return true without > > regards of the number of spaces and new lines chars between the words > > > > like 'A B\nC' = 'A\nBC' Here is how I do such comparisons: if a.strip().split()

Re: Ink

2006-03-20 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Sorry guys. The spam stuff was not my intent. I do oppoligies and won't > happen again. I have never been on newsgroups before and not sure how to > work them. I hope you guys can forgive a bad choice. Murphey A gracious apology wipes out the sin. regards Steve --

Re: cmp() on integers - is there guarantee of returning only +-1 or 0?

2006-03-20 Thread Paul Rubin
Christoph Zwerschke <[EMAIL PROTECTED]> writes: > def sign(x): return (x>0)-(x<0) Cute, I'll try to remember that one. -- http://mail.python.org/mailman/listinfo/python-list

Re: String comparison question

2006-03-20 Thread Peter Otten
[EMAIL PROTECTED] wrote: > Michael Spencer wrote: >> Olivier Langlois wrote: >> >> > I would like to make a string comparison that would return true without >> > regards of the number of spaces and new lines chars between the words >> > >> > like 'A B\nC' = 'A\nBC' > > Here is how I do such

Re: Is there such an idiom?

2006-03-20 Thread Bruce Cropley
Per wrote: > http://jaynes.colorado.edu/PythonIdioms.html [snip] > Is this correct? > s = [1,2,3,4,5...] > t = [4,5,6,,8,...] > how to find whether there is/are common item(s) between two list in > linear-time? > how to find the number of common items between two list in linear-time? A common te

Dr. Dobb's Python-URL! - weekly Python news and links (Mar 20)

2006-03-20 Thread Peter Otten
QOTW: "Anything with 'Python' in its name can't market Python well." - Iain Bicking "Who really cares whether NASA uses Python? One thing I learned from having to sit through too many software marketing presentations is that organizations like NASA are to software what the Library of Congress is

Re: Chained Comparisons

2006-03-20 Thread Fredrik Lundh
Duncan Booth wrote: >> 2) A search in the same document you are reading takes you "off" and >> "adrift", and as such, is equivalant to a task-switch, because you're >> already reading some material from the same help file and are stuck at >> some point. > > I've tried reading this several times an

Re: Pycrypto - active ??

2006-03-20 Thread Frank Millman
dirvine wrote: > Thanks Paul > > I will check this out. Perhaps theres a case for pycrypto to be > revamped and perhaps a new python cryptographic page to be created > mentioning all these projects. I have foudn it a bit difficult to find > info on this area. Mny thanks for this though. Just as a

Re: String comparison question

2006-03-20 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: >> > I would like to make a string comparison that would return true without >> > regards of the number of spaces and new lines chars between the words >> > >> > like 'A B\nC' = 'A\nBC' > > Here is how I do such comparisons: > > if a.strip().split() == b.strip().spl

Bug Day on Friday, 31st of March

2006-03-20 Thread Georg Brandl
Hello, it's time for the 7th Python Bug Day. The aim of the bug day is to close as many bugs, patches and feature requests as possible, this time with a special focus on new features that can still go into the upcoming 2.5 alpha release. When? ^ The bug day will take place on Friday, March 3

Re: ANNOUNCE: xlrd 0.5.2 -- extract data from Excel spreadsheets

2006-03-20 Thread Felipe Almeida Lessa
Em Seg, 2006-03-20 às 23:01 +1100, John Machin escreveu: > *ALL* [ho ho chuckle chuckle] > you need to do is step through the tokens and do something with the ones > that contain references. And contribute back the code? =) -- Felipe. -- http://mail.python.org/mailman/listinfo/python-list

Dr. Dobb's Python-URL! - weekly Python news and links (Mar 20)

2006-03-20 Thread Peter Otten
QOTW: "Anything with 'Python' in its name can't market Python well." - Iain Bicking "Who really cares whether NASA uses Python? One thing I learned from having to sit through too many software marketing presentations is that organizations like NASA are to software what the Library of Congress is

Re: ** Operator

2006-03-20 Thread Ziga Seilnacht
Christoph Zwerschke wrote: > Alex Martelli wrote: > > Sathyaish wrote: > > > >> I tried it on the interpreter and it looks like it is the "to the power > >> of" operator symbol/function. Can you please point me to the formal > >> definition of this operator in the docs? > > > > http://docs.python.

Re: combining mod_python handlers publisher and psp problem

2006-03-20 Thread exhuma.twn
[EMAIL PROTECTED] wrote: > You could also have done: > >def index(req, name='John'): > s = 'Hello, there!' > if name: > names = ['a', 'b', 'c'] > s = 'Hello, %s!' % name.capitalize() > tmpl = psp.PSP(req, filename='index.psp') > req.content_type

Re: mod_python + publisher + psp + session problems

2006-03-20 Thread exhuma.twn
[EMAIL PROTECTED] wrote: > exhuma.twn wrote: > > Hi again, > > > > as soon as I try to make use of the "session" object inside a > > psp-template file, I get the following error: > > > > Mod_python error: "PythonHandler mod_python.publisher" > > > > Traceback (most recent call last): > > > > Fil

Re: Python equivalent of Perl-ISAPI?

2006-03-20 Thread rurpy
Waldemar Osuch wrote: > What Roger says and also: > http://pyisapie.sourceforge.net/ Thanks for your and Roger's responses. I looked at pyisapie and there seems to be almost no dvcumentation -- no sample code and the single readme is pretty opaque.The pywin isapi has a couple of examples but

Re: Esub with linux - possible?

2006-03-20 Thread Thrasher Remailer
On Mon, 20 Mar 2006 14:09:52 +, Thrasher Remailer wrote: > Are there any programs for linux that can use esub, or something similar, > to encrypt/recognise a.a.m. messages, like jbn and qs do for windows? The message above was posted in alt.privacy.anon-server, but sounds like it belongs her

Re: mydate.strftime('%x') and cgi script

2006-03-20 Thread Sibylle Koczian
Marc 'BlackJack' Rintsch schrieb: > In <[EMAIL PROTECTED]>, Sibylle Koczian wrote: > > >>I'm writing a cgi script which only needs to run in a small LAN. I tried >>to show dates in a reasonable format by using >> > > That's the web server's locale appropriate date representation then. > The we

Multifile EOF error

2006-03-20 Thread [EMAIL PROTECTED]
Hi, I had error in my script like "sudden EOF in MultiFile readline()" Why such error occur -- http://mail.python.org/mailman/listinfo/python-list

Win32 ActiveX with COM support

2006-03-20 Thread danbrwn
I am creating a web application where I access a database on a SQL server machine from local networked PC's via Javascript and HTML. Unfortunately, Microsoft does not allow the ado intervace to fire events back using Javascript or VBScript. I am trying to figure out how to notifiy each client that

Win32 ActiveX with COM support

2006-03-20 Thread danbrwn
I am creating a web application where I access a database on a SQL server machine from local networked PC's via Javascript and HTML. Unfortunately, Microsoft does not allow the ado intervace to fire events back using Javascript or VBScript. I am trying to figure out how to notifiy each client that

Re: Python equivalent of Perl-ISAPI?

2006-03-20 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Waldemar Osuch wrote: > >>What Roger says and also: >>http://pyisapie.sourceforge.net/ > > > Thanks for your and Roger's responses. > > I looked at pyisapie and there seems to be almost no > dvcumentation -- no sample code and the single readme > is pretty opaque.

Re: Python 2.5 Schedule

2006-03-20 Thread Don Taylor
Ravi Teja wrote: > http://msdn.microsoft.com/visualc/vctoolkit2003/ > Free. > True, but 'The Microsoft Toolkit Compiler doesn't come out-of-the-box with everything you need to compile extensions.' see: http://www.vrplumber.com/programming/mstoolkit/ If you are going ahead with the VC 7.1 Toolk

IMAP Checking Folder Size

2006-03-20 Thread Kevin F
I'm trying to use the following code to get my remote server's folder size information. Unfortunately, i'm getting the error: Traceback (most recent call last): File "/Life/School/Homework/Spring 2006/OPIM 399/Tutorial/IMAP/mailboxsize.py", line 23, in -toplevel- number_of_messages_al

Re: ** Operator

2006-03-20 Thread Christoph Zwerschke
Ziga Seilnacht wrote: > Christoph Zwerschke wrote: >> In the explanation about pow() at >> http://docs.python.org/lib/built-in-funcs.html, the notation 10**2 is >> suddenly used, without explaining that it is equivalent to pow(10,2). I >> think this could be improved in the docs. > > It is: > http:

Re: IMAP Checking Folder Size

2006-03-20 Thread Tim Williams (gmail)
On 20/03/06, Kevin F <[EMAIL PROTECTED]> wrote: Traceback (most recent call last):   File "/Life/School/ Homework/Spring 2006/OPIM 399/Tutorial/IMAP/mailboxsize.py", line 23, in -toplevel- number_of_messages_all += int(number_of_messages[0])ValueError: invalid literal for int(): The requested

Re: Pycrypto - active ??

2006-03-20 Thread Alex Martelli
Frank Millman <[EMAIL PROTECTED]> wrote: ... > The docs say that if you have any of m2crypto, cryptlib, pycrypto, or > GMPY installed, it will be used for fast cryptographic operations. I ... > However, I have not found an MSW binary for Python 2.4 for any of the > above packages. TLSLite wor

Re: markup.py - HTML/XML generator

2006-03-20 Thread Daniel Nogradi
> > Just in case the thought of not having a millionth implementation of a > > HTML/XML generator for Python makes the world as we know it a > > miserable place, well then your suffering might be over soon since > > exactly the one millionth implementation is out. You can download > > markup.py fro

Re: Pycrypto - active ??

2006-03-20 Thread Thomas G. Willis
On 19 Mar 2006 13:39:58 -0800, dirvine <[EMAIL PROTECTED]> wrote: Does anyone know if pycrypto is active at allThis was one of the packages that was updated today on my gentoo box. so, I would say yes.-- Thomas G. Willis--- http://i-see-sound.comhttp:

what's the general way of separating classes?

2006-03-20 Thread John Salerno
From my brief experience with C#, I learned that it was pretty standard practice to put each class in a separate file. I assume this is a benefit of a compiled language that the files can then be grouped together. What I'm wondering is how is this normally handled in Python? Is it normal for c

Re: what's the general way of separating classes?

2006-03-20 Thread Felipe Almeida Lessa
Em Seg, 2006-03-20 às 15:42 +, John Salerno escreveu: > Are related classes put into a single module then? Or is there some > recommended method for how to handle this? IMHO, if they can be put on the same file without creating a huge one (3000+ lines), then do it. If you can't, then instead

Re: what's the general way of separating classes?

2006-03-20 Thread John Salerno
Felipe Almeida Lessa wrote: > And create an program/modules/__init__.py that have something like > > from program.modules.class1 import class1 > from program.modules.class2 import class2 I'm not sure I understand the point of those two lines, if you are going to then do this: > And, in the res

Re: Chained Comparisons

2006-03-20 Thread Sathyaish
Thanks for the encouragement, Steve. I am learning Python out of earnest; I am intrigued by several languages such as Ruby, Python and Lisp. At work, I program VB6 (used to), VB.NET, C# and C over the Win32 platform. > that Sathyaish's time is more important than your time, of course. LOL. Cer

Re: what's the general way of separating classes?

2006-03-20 Thread Roy Smith
John Salerno <[EMAIL PROTECTED]> wrote: > From my brief experience with C#, I learned that it was pretty standard >practice to put each class in a separate file. I assume this is a >benefit of a compiled language that the files can then be grouped together. > >What I'm wondering is how is this n

Re: Chained Comparisons

2006-03-20 Thread Grant Edwards
On 2006-03-20, Sathyaish <[EMAIL PROTECTED]> wrote: >>And firing up a news client, posting a message, and /waiting/ >> for a response isn't? In most cases, you could have read half >> the language reference manual in the time it takes to get an >> online response. > > Posting a question in the new

Question about csv writer

2006-03-20 Thread tkpmep
I expected the following code to work: f = file(fn,"wb") writer = csv.writer(f) for i in range(IMax): writer.writerow([dates[i]].append([ReturnHistories[j][i] for j in range(N)])) but instead i got the following error message: Error: sequence expected However, if i modify the code to read w

Re: what's the general way of separating classes?

2006-03-20 Thread Felipe Almeida Lessa
Em Seg, 2006-03-20 às 16:01 +, John Salerno escreveu: > Felipe Almeida Lessa wrote: > > > And create an program/modules/__init__.py that have something like > > > > from program.modules.class1 import class1 > > from program.modules.class2 import class2 > > I'm not sure I understand the point

Re: MPI implementations

2006-03-20 Thread Konrad Hinsen
On Mar 18, 2006, at 5:04, Daniel Nogradi wrote: > I plan to use python parallel and -- fortunately or unfortunately -- > there are several implementations. At the moment I'm aware of > > http://datamining.anu.edu.au/~ole/pypar/ > http://pympi.sourceforge.net/ > http://www.fysik.dtu.dk/~schiotz/com

Re: Question about csv writer

2006-03-20 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I expected the following code to work: > > f = file(fn,"wb") > writer = csv.writer(f) > for i in range(IMax): > writer.writerow([dates[i]].append([ReturnHistories[j][i] for j in > range(N)])) > > but instead i got the following erro

Re: ** Operator

2006-03-20 Thread Kent Johnson
Christoph Zwerschke wrote: >>http://docs.python.org/lib/typesnumeric.html > > You're right, it's mentioned there in section 2.3.4, but the explanation > of pow() is already in section 2.1 prior to that. > > So it would be nice if the paragraph explaining pow() would mention that > you can also

Re: __dict__ strangeness

2006-03-20 Thread Alan Franzoni
Georg Brandl on comp.lang.python said: > It's 2.4.2, on Linux. The 2.5 SVN trunk has the same symptom. Yes, I confirm this. I think I had done something strange on my system (probably misspelled something). -- Alan Franzoni <[EMAIL PROTECTED]> - Togli .xyz dalla mia email per contattarmi. Rrem

Re: Programming challenge: wildcard exclusion in cartesian products

2006-03-20 Thread Mark Tarver
Hi, You wrote into the Qilang News group with your problem. This is a solution in 17 lines of Qi for any n-product >= 2. It falls short of your complete requirement since it uses generate and then test, rather than interleaving the two. (define challenge Patterns N X -> (filter (/. Y (member Y

Re: whats your favourite object relational mapper?

2006-03-20 Thread Jonathan Ellis
Giovanni Bajo wrote: > Jonathan Ellis wrote: > > > ... which, of course, goes to show how stupid a metric this is, now > > that even Ian Bicking has admitted that SqlObject in its current form > > is a dead end. > > > Got a pointer? http://blog.ianbicking.org/sqlobject-2.html -- http://mail.py

Re: Python / glade fundamentals

2006-03-20 Thread Franck Pommereau
> maybe you will find it easyer to use GladeGen to generate the > skeleton of your application rather then coding it yourself. Take a > look here: http://www.linuxjournal.com/article/7421 You may also use my PyGG module: http://freshmeat.net/projects/pygg Cheers, Franck -- http://mail.python

New-style Python icons

2006-03-20 Thread and-google
Personally, I *like* the new website look, and I'm glad to see Python having a proper logo at last! I've taken the opportunity to knock up some icons using it, finally banishing the poor old standard-VGA-palette snake from my desktop. If you like, you can grab them from: http://www.doxdesk.com/

Re: New-style Python icons

2006-03-20 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Personally, I *like* the new website look, and I'm glad to see Python > having a proper logo at last! > > I've taken the opportunity to knock up some icons using it, finally > banishing the poor old standard-VGA-palette snake from my desktop. If > you like, you can grab

Re: Python / glade fundamentals

2006-03-20 Thread Ido Yehieli
Franck: PyGG seems pretty cool, thanks for the link! -- http://mail.python.org/mailman/listinfo/python-list

Re: whats your favourite object relational mapper?

2006-03-20 Thread Steve Holden
Jonathan Ellis wrote: > Giovanni Bajo wrote: > >>Jonathan Ellis wrote: >> >> >>>... which, of course, goes to show how stupid a metric this is, now >>>that even Ian Bicking has admitted that SqlObject in its current form >>>is a dead end. >> >> >>Got a pointer? > > > http://blog.ianbicking.org/s

user-supplied locals dict for function execution?

2006-03-20 Thread Lonnie Princehouse
Can anyone think of a way to substitute a user-supplied dictionary as the local dict for a function call? e.g. def f(): x = 5 d = {} exec_function_in_dictionary( f, d ) # ??? print d["x"] # 5 #-- Right now, the way I'm doing this is to parse the function body out of it

Re: New-style Python icons

2006-03-20 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: > > You can also see a preview here: > http://www.doxdesk.com/img/software/py/icons.png Maybe you could change the ink color to better distinguish the pycon and pyc icons. -- -Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-li

Re: Python equivalent of Perl-ISAPI?

2006-03-20 Thread rurpy
Steve Holden wrote: > If you want CGI then there's no need for an ISAPI filter specific to > your programming language - you just need to associate .py requests with > the Python interpreter. > > If you want to use Python as an Active Scripting language (i.e. in the > same way that VBScript is use

Re: New-style Python icons

2006-03-20 Thread John Salerno
[EMAIL PROTECTED] wrote: > Personally, I *like* the new website look, and I'm glad to see Python > having a proper logo at last! > > I've taken the opportunity to knock up some icons using it, finally > banishing the poor old standard-VGA-palette snake from my desktop. If > you like, you can grab

Re: Python equivalent of Perl-ISAPI?

2006-03-20 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Steve Holden wrote: > >>If you want CGI then there's no need for an ISAPI filter specific to >>your programming language - you just need to associate .py requests with >>the Python interpreter. >> >>If you want to use Python as an Active Scripting language (i.e. in the >

  1   2   3   >