ANN: MyNewspaper-1.0

2005-07-17 Thread Iñigo Serna
Hi there, I'm really pleased to announce the first public release of MyNewspaper. MyNewspaper is a personal RSS Aggregator and Reader, licensed under GPL. Why? As everybody says, I couldn't find any which fulfills all my requirements. In fact I used liferea and was pretty happy with it, but it

Python HTTP digest authentication woes...

2005-07-17 Thread john
I'm trying to access the XML version of my Tivo now playing list with python. It uses auth digest HTTP authentication. I could really use some help! I'm able to get this page using curl: curl --dump-header tivoHeaders --insecure --anyauth --user tivo:808

Re: SSL problem... SSL23_GET_SERVER_HELLO:unknown protocol

2005-07-17 Thread Martin v. Löwis
John Reese wrote: Morning. I've been running into an error message pertaining to SSL that I don't understand, and I was hoping someone had some insight. Gmail provides POP access over SSL on port 587, so I tried to use poplib.POP_SSL, with the following results: [...] socket.sslerror: (1,

Re: How can I import a py script by its absolute path name?

2005-07-17 Thread J.Bijsterbosch
Hello James, James Dennett [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] J.Bijsterbosch wrote: [ snip ] and didn't remember Windows uses path names which need special treatment. Hmm, what you call special treatmentg comes from pythons deep underlying C and C++ language

I just wanna know about os.path module..

2005-07-17 Thread kimes
I've just started digging into how python works.. I found that other mudules are clearly declared like one file per a module.. But the only os.path doesn't have their own file.. ye I know is has actually depending on os like in my case posixpath.. What I'd love to know is.. when I call import

Re: SSL problem... SSL23_GET_SERVER_HELLO:unknown protocol

2005-07-17 Thread Paul Rubin
Martin v. Löwis [EMAIL PROTECTED] writes: [EMAIL PROTECTED]:~/doc$ telnet pop.gmail.com 587 Trying 64.233.185.111... Connected to pop.gmail.com. Escape character is '^]'. 220 mx.gmail.com ESMTP 13sm5173422wrl This rather looks like an unencrypted SMTP connection to me. Indeed, port 587 is

Re: I just wanna know about os.path module..

2005-07-17 Thread James
kimes wrote: I've just started digging into how python works.. I found that other mudules are clearly declared like one file per a module.. But the only os.path doesn't have their own file.. ye I know is has actually depending on os like in my case posixpath.. What I'd love to know is..

Ordering Products

2005-07-17 Thread Kay Schluehr
Here might be an interesting puzzle for people who like sorting algorithms ( and no I'm not a student anymore and the problem is not a students 'homework' but a particular question associated with a computer algebra system in Python I'm currently developing in my sparetime ). For motivation lets

Re: SSL problem... SSL23_GET_SERVER_HELLO:unknown protocol

2005-07-17 Thread Stephen Illingworth
John Reese wrote: Morning. I've been running into an error message pertaining to SSL that I don't understand, and I was hoping someone had some insight. Gmail provides POP access over SSL on port 587, so I tried to use poplib.POP_SSL, with the following results: GMail uses port 995. --

Re: Filtering out non-readable characters

2005-07-17 Thread Peter Hansen
Steven D'Aprano wrote: On Sat, 16 Jul 2005 16:42:58 -0400, Peter Hansen wrote: Come on, Steven. Don't tell us you didn't have access to a Python interpreter to check before you posted: Er, as I wrote in my post: Steven who is still using Python 2.3, and probably will be for quite some

Re: Tuples in function argument lists

2005-07-17 Thread Robert Kern
Steven D'Aprano wrote: I'm trying to understand the use of tuples in function argument lists. I did this: def tester(a, (b,c)): ... print a, b, c ... tester(1, 2) Traceback (most recent call last): File stdin, line 1, in ? File stdin, line 1, in tester TypeError: unpack

beginner question fibonacci

2005-07-17 Thread Joon
# Fibonacci series: ... # the sum of two elements defines the next ... a, b = 0, 1 while b 10: ... print b ... a, b = b, a+b ... 1 1 2 3 5 8 a, b = 0, 1 while b 10: print b a = b b = a+b 1 2 4 8 Why a, b = b, a+b isn't a = b; b = a+b ?

Re: beginner question fibonacci

2005-07-17 Thread Robert Kern
Joon wrote: # Fibonacci series: ... # the sum of two elements defines the next ... a, b = 0, 1 while b 10: ... print b ... a, b = b, a+b ... 1 1 2 3 5 8 a, b = 0, 1 while b 10: print b a = b b = a+b 1 2 4 8 Why a, b = b,

Re: beginner question fibonacci

2005-07-17 Thread Michael Hoffman
Joon wrote: a, b = 0, 1 while b 10: print b a = b b = a+b 1 2 4 8 Why a, b = b, a+b isn't a = b; b = a+b ? Because you changed a before you added it to b. Let's call your existing a and b a0 and b0, and the next a and b a1 and b1. When you do a, b = b, a+b

Re: beginner question fibonacci

2005-07-17 Thread ralobao
The case is that Python in attribution commands solves first the right side, so he atributes the vars. So the a+b expression is executed first. Joon escreveu: # Fibonacci series: ... # the sum of two elements defines the next ... a, b = 0, 1 while b 10: ... print b ... a, b

Re: beginner question fibonacci

2005-07-17 Thread Joon
Yes, i see. Thank you very much for the fast help! -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh popen stalling on password redirect output?

2005-07-17 Thread Cameron Laird
In article [EMAIL PROTECTED], Cantankerous Old Git [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: In general, it is good idea to use expect kind of tool to deal with interactive programs like ssh. You may try using pexpect (http://pexpect.sourceforge.net). I tried tha once (on Solaris)

Re: Environment Variable

2005-07-17 Thread Cameron Laird
In article [EMAIL PROTECTED], Sybren Stuvel [EMAIL PROTECTED] wrote: tuxlover enlightened us with: No, the replies from Grant's and Sybren's do answer my question. It would be a lot more polite to actually thank the people helping you. . .

Re: Python vs. Access VBA

2005-07-17 Thread Chris Lambacher
If you are going to go with Python, don't include Access in the mix at all. If you want a small light-weight, serverless database back-end, you would be better to go with SQLite. Its cross platform and well proven. I think Firebird will give you that too, though I have never used it. Most

ConfigParser : overwrite ?

2005-07-17 Thread cantabile
Hi, I'm trying and updating an .ini file with ConfigParser but each time I call 'write', it appends the whole options another time to the file. For example : Here's the inital ini file [section1] foodir: %(dir)s/whatever dir: foo Here's my code : filename = ... config =

Re: ConfigParser : overwrite ?

2005-07-17 Thread Robert Kern
cantabile wrote: Hi, I'm trying and updating an .ini file with ConfigParser but each time I call 'write', it appends the whole options another time to the file. For example : Here's the inital ini file [section1] foodir: %(dir)s/whatever dir: foo Here's my code : filename = ...

Re: ConfigParser : overwrite ?

2005-07-17 Thread cantabile
Robert Kern a écrit : cantabile wrote: Hi, I'm trying and updating an .ini file with ConfigParser but each time I call 'write', it appends the whole options another time to the file. For example : Here's the inital ini file [section1] foodir: %(dir)s/whatever dir: foo Here's my code :

Re: I just wanna know about os.path module..

2005-07-17 Thread kimes
Thanks for all you guys help.. But Peter, You said 'At first os - module, or package, it doesn't matter here - is imported.' I'm still confused about that.. When I just call import os.path without calling import os.. In that case, you mean 'import os' is called implicitly? Why? and How? how

Re: SSL problem... SSL23_GET_SERVER_HELLO:unknown protocol

2005-07-17 Thread John Reese
On Sun, 17 Jul 2005 11:05:06 +0100, Stephen Illingworth [EMAIL PROTECTED] wrote: John Reese wrote: Morning. I've been running into an error message pertaining to SSL that I don't understand, and I was hoping someone had some insight. Gmail provides POP access over SSL on port 587, so I tried

Re: Ordering Products

2005-07-17 Thread Ron Adam
Kay Schluehr wrote: Here might be an interesting puzzle for people who like sorting algorithms ( and no I'm not a student anymore and the problem is not a students 'homework' but a particular question associated with a computer algebra system in Python I'm currently developing in my sparetime

Re: Python Programming Contest

2005-07-17 Thread John Hazen
* Brian Quinlan [EMAIL PROTECTED] [2005-07-15 02:08]: You can find the first problem here: http://www.sweetapp.com/pycontest/contest1 I have one question about the problem. Is the cost we are to minimize the cost of arriving in the target city at all, or the cost of arriving at the target

Re: Filtering out non-readable characters

2005-07-17 Thread Steven Bethard
Bengt Richter wrote: Thanks for the nudge. Actually, I know about generator expressions, but at some point I must have misinterpreted some bug in my code to mean that join in particular didn't like generator expression arguments, and wanted lists. I suspect this is bug 905389 [1]: def

What is your favorite Python web framework?

2005-07-17 Thread Admin
I am doing some research for a Python framework to build web applications. I have discarted Zope because from what I've read, the learning curve is too steep, and it takes more time to build applications in general with Zope. I have kept the following: - PyWork -

Re: What is your favorite Python web framework?

2005-07-17 Thread Sybren Stuvel
Admin enlightened us with: But I'd like to know your opinion on what you think is best. The Python framework I'll use will be to build an e-commerce application looking like Amazon.com I'm greatly in favour of Cheetah. Also see http://www.unrealtower.org/mycheetah. I need to put up way more

Re: What is your favorite Python web framework?

2005-07-17 Thread Admin
On Sun, 17 Jul 2005 19:15:49 -0300, Sybren Stuvel [EMAIL PROTECTED] wrote: http://www.unrealtower.org/mycheetah Error 404 while looking up your page AND when looking for a suitable 404 page. Sorry! No such file /var/www/www.unrealtower.org/compiled/error404.py I can't

Re: Python Programming Contest

2005-07-17 Thread John Machin
John Hazen wrote: * Brian Quinlan [EMAIL PROTECTED] [2005-07-15 02:08]: You can find the first problem here: http://www.sweetapp.com/pycontest/contest1 I have one question about the problem. Is the cost we are to minimize the cost of arriving in the target city at all, or the cost of

Re: What is your favorite Python web framework?

2005-07-17 Thread Luis M. Gonzalez
I really like Karrigell ( http://karrigell.sourceforge.net ). It is, IMHO, the most pythonic framework because all you need to know is the python language. You don't need to learn any template or special language, you only use plain and regular python. It also gives you a lot of freedom when

Re: Ordering Products

2005-07-17 Thread Diez B.Roggisch
Kay Schluehr kay.schluehr at gmx.net writes: Now lets drop the assumption that a and b commute. More general: let be M a set of expressions and X a subset of M where each element of X commutes with each element of M: how can a product with factors in M be evaluated/simplified under the

Re: Filtering out non-readable characters

2005-07-17 Thread Raymond Hettinger
[George Sakkis] It's only obvious in the sense that _after_ you see this idiom, you can go back to the docs and realize it's not doing something special; OTOH if you haven't seen it, it's not at all the obvious solution to how do I get the first 256 characters. So IMO it should be

stdin/stdout fileno() always returning -1 from windows service

2005-07-17 Thread chuck
I have found that sys.stdin.fileno() and sys.stdout.fileno() always return -1 when executed from within a win32 service written using the win32 extensions for Python. Anyone have experience with this or know why? -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficiently Split A List of Tuples

2005-07-17 Thread Raymond Hettinger
Variant of Paul's example: a = ((1,2), (3, 4), (5, 6), (7, 8), (9, 10)) zip(*a) or [list(t) for t in zip(*a)] if you need lists instead of tuples. [Peter Hansen] (I believe this is something Guido considers an abuse of *args, but I just consider it an elegant use of zip() considering

Re: What is your favorite Python web framework?

2005-07-17 Thread Philippe C. Martin
http://cheetahtemplate.org/ Admin wrote: On Sun, 17 Jul 2005 19:15:49 -0300, Sybren Stuvel [EMAIL PROTECTED] wrote: http://www.unrealtower.org/mycheetah Error 404 while looking up your page AND when looking for a suitable 404 page. Sorry! No such file

Re: Efficiently Split A List of Tuples

2005-07-17 Thread Raymond Hettinger
[Richard] I know I can use a 'for' loop and create two new lists using 'newList1.append(x)', etc. Is there an efficient way to create these two new lists without using a slow for loop? If trying to optimize before writing and timing code, then at least validate your assumptions. In Python,

Re: Parsing html :: output to comma delimited

2005-07-17 Thread samuels
Thanks for the replies, I'll post here when/if I get it finally working. So, now I know how to extract the links for the big page, and extract the text from the individual page. Really what I need to find out is how run the script on each individual page automatically, and get the output in

list implementation

2005-07-17 Thread sj
I believe the type list is implemented as an array of pointers. Thus, random access is an O(1) operation while insertion/deletion is an O(n) operation. That said, I have the following questions: 1. Am I correct in saying the above? 2. Implementing list as an array is part of language

list implementation

2005-07-17 Thread sj
I believe the type list is implemented as an array of pointers. Thus, random access is an O(1) operation while insertion/deletion is an O(n) operation. That said, I have the following questions: 1. Am I correct in saying the above? 2. Implementing list as an array is part of language

Re: list implementation

2005-07-17 Thread Terry Reedy
sj [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I believe the type list is implemented as an array of pointers. A Python list is sematically/behaviorally defined as a mutable extensible sequence of references to Python objects. For the CPython reference implementation, the

Re: Who uses input()? [was Re: question on input]

2005-07-17 Thread Stephen Thorne
On 15/07/05, Terry Hancock [EMAIL PROTECTED] wrote: On Thursday 14 July 2005 07:00 am, Michael Hoffman wrote: Devan L wrote: Use raw_input instead. It returns a string of whatever was typed. Input expects a valid python expression. Who actually uses this? It's equivalent to

Re: Ordering Products

2005-07-17 Thread Kay Schluehr
Diez B.Roggisch wrote: Kay Schluehr kay.schluehr at gmx.net writes: Now lets drop the assumption that a and b commute. More general: let be M a set of expressions and X a subset of M where each element of X commutes with each element of M: how can a product with factors in M be

Re: Who uses input()? [was Re: question on input]

2005-07-17 Thread Nathan Pinno
I use input() all the time. I know many people say it ain't safe, but whose going to use it to crash their own comp? Only an insane person would, or a criminal trying to cover his/her tracks. Sorry if I waded into the debate, but this debate originated from one of my posts. Nathan Pinno

Re: Ordering Products

2005-07-17 Thread Kay Schluehr
Ron Adam wrote: Kay Schluehr wrote: Here might be an interesting puzzle for people who like sorting algorithms ( and no I'm not a student anymore and the problem is not a students 'homework' but a particular question associated with a computer algebra system in Python I'm currently

Re: list implementation

2005-07-17 Thread Raymond Hettinger
[sj] I believe the type list is implemented as an array of pointers. Yes. Thus, random access is an O(1) operation while insertion/deletion is an O(n) operation. Yes. 2. Implementing list as an array is part of language specification or implementation-dependent? Implementation

[ python-Bugs-1239681 ] email.Utils.formatdate documetaion missing

2005-07-17 Thread SourceForge.net
Bugs item #1239681, was opened at 2005-07-17 04:09 Message generated for change (Settings changed) made by montanaro You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1239681group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Feature Requests-414059 ] Floating point second in date/time tuple

2005-07-17 Thread SourceForge.net
Feature Requests item #414059, was opened at 2001-04-05 19:33 Message generated for change (Settings changed) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=355470aid=414059group_id=5470 Please note that this message will contain a full copy of

[ python-Feature Requests-445484 ] pickle lacks float('inf')

2005-07-17 Thread SourceForge.net
Feature Requests item #445484, was opened at 2001-07-28 17:21 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=355470aid=445484group_id=5470 Please note that this message will contain a full copy of the

[ python-Feature Requests-449227 ] rlcompleter add quot; (quot; to callables feature

2005-07-17 Thread SourceForge.net
Feature Requests item #449227, was opened at 2001-08-08 20:04 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=355470aid=449227group_id=5470 Please note that this message will contain a full copy of the

[ python-Bugs-1239186 ] Install Error: cannot compute sizeof (int), 77

2005-07-17 Thread SourceForge.net
Bugs item #1239186, was opened at 2005-07-15 18:00 Message generated for change (Comment added) made by rgazzale You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1239186group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Feature Requests-567972 ] Missing 4 socket object properties

2005-07-17 Thread SourceForge.net
Feature Requests item #567972, was opened at 2002-06-12 13:56 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=355470aid=567972group_id=5470 Please note that this message will contain a full copy of the

[ python-Feature Requests-778763 ] Optional type enforcement

2005-07-17 Thread SourceForge.net
Feature Requests item #778763, was opened at 2003-07-28 08:18 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=355470aid=778763group_id=5470 Please note that this message will contain a full copy of the

[ python-Bugs-1223238 ] race in os.makedirs()

2005-07-17 Thread SourceForge.net
Bugs item #1223238, was opened at 2005-06-18 18:37 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1223238group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1061920 ] k specifier in PyArg_ParseTuple incomplete documentated

2005-07-17 Thread SourceForge.net
Bugs item #1061920, was opened at 2004-11-07 15:28 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1061920group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1014761 ] Missing urllib.urlretrieve docs

2005-07-17 Thread SourceForge.net
Bugs item #1014761, was opened at 2004-08-24 00:05 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1014761group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1099363 ] refman doesn't know about universal newlines

2005-07-17 Thread SourceForge.net
Bugs item #1099363, was opened at 2005-01-10 11:33 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1099363group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-912943 ] 7.5.6 Thread Objects is too vague

2005-07-17 Thread SourceForge.net
Bugs item #912943, was opened at 2004-03-09 20:16 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=912943group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1223238 ] race in os.makedirs()

2005-07-17 Thread SourceForge.net
Bugs item #1223238, was opened at 2005-06-18 19:37 Message generated for change (Comment added) made by nirs You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1223238group_id=5470 Please note that this message will contain a full copy of the comment thread,

[ python-Bugs-872769 ] os.access() documentation should stress race conditions

2005-07-17 Thread SourceForge.net
Bugs item #872769, was opened at 2004-01-08 02:40 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=872769group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1217591 ] make frameworkinstall fails for non-default location

2005-07-17 Thread SourceForge.net
Bugs item #1217591, was opened at 2005-06-09 16:54 Message generated for change (Comment added) made by jackjansen You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1217591group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1238681 ] freed pointer is used in longobject.c:long_pow()

2005-07-17 Thread SourceForge.net
Bugs item #1238681, was opened at 2005-07-15 01:06 Message generated for change (Comment added) made by tim_one You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1238681group_id=5470 Please note that this message will contain a full copy of the comment