[ANN] argparse 0.5 - Command-line parsing library

2007-01-17 Thread Steven Bethard
Announcing argparse 0.5 --- argparse home: http://argparse.python-hosting.com/ argparse single module download: http://argparse.python-hosting.com/file/trunk/argparse.py?format=raw argparse bundled downloads at PyPI: http://www.python.org/pypi/argparse/ About this

Ann: apsw 3.3.10-r1 (Another Python SQLite Wrapper)

2007-01-17 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 APSW 3.3.10-r1 is now available. Home page: http://www.rogerbinns.com/apsw.html APSW provides an SQLite 3 wrapper that provides the thinnest layer over SQLite 3 possible. Everything you can do from the C API to SQLite 3, you can do from Python.

ANN: shove 0.1, the next-generation shelve

2007-01-17 Thread L. C. Rees
shove is a object storage frontend inspired by the standard library's shelve module. It features a dictionary-style API, automatic object storage (with pickle) with in-storage compression (with zlib), and multiple storage and caching backends. The currently supported storage backends are: *

ANN: OSCON 2007: Call for Proposals

2007-01-17 Thread Kevin Altis
OSCON 2007 http://conferences.oreillynet.com/os2007/ Save the date for the 9th annual O'Reilly Open Source Convention, happening July 23-27, 2007 at the Oregon Convention Center in beautiful Portland, Oregon. Call For Participation -- Submit a proposal-fill out the form

PyWeek #4 in April!

2007-01-17 Thread richard
PyWeek #4 (a cold cup 'o tea) is has been scheduled the first week of April: Start: 00:00UTC Sunday 1st April Finish: 00:00UTC Sunday 8th April REGISTRATION IS NOT YET OPEN Registration will open at the start of March. Visit the PyWeek website for more information: http://pyweek.org/

ANN: amplee 0.4.0

2007-01-17 Thread Sylvain Hellegouarch
Hi all, I finally released a new version of amplee. I've moved from 0.3.x to 0.4.x as there are a couple of modification to the API that were worse the bump. I think this version is much more stable and bug free. Mind you it's a long way before I can claim is entirely unit tested. But it gets

Re: How can i eval subindex on list[ ][ ] ?

2007-01-17 Thread Terry Reedy
James Stroud [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | jairodsl wrote: | Excuse me, i was trying in too many ways but i couldnt access subindex | on a list , the problem is the next: | | I have | | indif=[[0,'A'],[1,'B'],[2,'C'],[3,'D']] | | and | |

Re: connection to server not accepted (but no error) only after several hours

2007-01-17 Thread seb
Hi Dennis, I am using indeed using python logging in the appel_log2 module. But I wanted to keep it extremly simple while accepting connection from different processes or thread. Regarding my main problem, I did some more testing : 1) I have enabled one time server that can be run as a service

Re: How to determine what exceptions a method might raise?

2007-01-17 Thread George Sakkis
Ben Finney wrote: Ed Jensen [EMAIL PROTECTED] writes: it would be handy if there was something I could do in the interactive interpreter to make it tell me what exceptions the file method might raise (such as IOError). For what purpose would this be handy? Surely the benefit of the

Re: Conflicting needs for __init__ method

2007-01-17 Thread BJörn Lindqvist
On 1/16/07, Ben Finney [EMAIL PROTECTED] wrote: BJörn Lindqvist [EMAIL PROTECTED] writes: import rational rational.rational(45) rational.rational(45.0) rational.rational([45, 45.5]) def rational(obj): initers = [(int, from_int), (basestring, from_str), (list, from_list)]

Re: How to determine what exceptions a method might raise?

2007-01-17 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], George Sakkis wrote: Ben Finney wrote: But, in case it helps: Any code may raise any exception at any time. This is a feature, since it encourages program that are tested properly. That's a silly argument, really, unless perhaps you'd consider a box of pills that

Re: How can I create a linked list in Python?

2007-01-17 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], bearophileHUGS wrote: In CPython they are dynamic arrays, they aren't lists. Try adding elements at the beginning of a list compared to adding elements at the beginning or in the middle of a python list and you will see the efficiency differences. Python has a list type

Re: Class data members in C

2007-01-17 Thread Hendrik van Rooyen
Nick Maclaren [EMAIL PROTECTED] wrote: Hmm. The extensions documentation describes how to add instance members to a class (PyMemberDef), but I want to add a class member. Yes, this is constant for all instances of the class. Any pointers? When? - at time of defining base class, between

Re: asyncore/asynchat and terminator string

2007-01-17 Thread Hendrik van Rooyen
David Hirschfield [EMAIL PROTECTED] wrote: 8 --- problems on syncing up in serial comms - I have seen people address this with success by using stuff like: XXHEADERXX as a here starts the lesson identifier, with no trouble, on a high volume newsfeed. If you assume

Re: Conflicting needs for __init__ method

2007-01-17 Thread Ben Finney
BJörn Lindqvist [EMAIL PROTECTED] writes: On 1/16/07, Ben Finney [EMAIL PROTECTED] wrote: Use the supplied value as you expect to be able to use it, and catch the exception (somewhere) if it doesn't work. That will allow *any* type that exhibits the correct behaviour, without needlessly

Re: smtplib question

2007-01-17 Thread jean-michel bain-cornu
The mail server in my organization is MS exchange. Obviously I can email to any email address from my MS outlook. What's the easiest way to fix the program? You will need to get smtplib to authenticate when connecting to the exchange server.Use the login function and the same

Re: How to determine what exceptions a method might raise?

2007-01-17 Thread Duncan Booth
George Sakkis [EMAIL PROTECTED] wrote: As for the OP's question, since file is a fixed builtin, I think it should be possible to know all the possible exceptions that can be raised; I'm not sure if it's clearly documented though. Just calling 'file' the most obvious exceptions it can raise

Re: I wrote a C++ code generator in Python, would anyone please help me to review the code? :)

2007-01-17 Thread Kevin Wan
I've added a document for fgen. Please check it. Thanks, Kevin [EMAIL PROTECTED] wrote: Kevin Wan wrote: fgen is a free command line tool that facilitates cross platform c++ development, including header generation, cpp file generation, makefile generation, unit test framework generation,

Re: Class data members in C

2007-01-17 Thread Nick Maclaren
In article [EMAIL PROTECTED], Hendrik van Rooyen [EMAIL PROTECTED] writes: | | Hmm. The extensions documentation describes how to add instance | members to a class (PyMemberDef), but I want to add a class member. | Yes, this is constant for all instances of the class. | | When? - at time

Re: How can I create a linked list in Python?

2007-01-17 Thread bearophileHUGS
Marc 'BlackJack' Rintsch: Python has a list type without the s, it's a real list. Don't confuse the *ADT list* with *linked lists* which are just one implementation of the ADT list. Right, I was mostly talking about (single/double) linked lists :-) Bye, bearophile --

2.3-2.5 what improved?

2007-01-17 Thread Robin Becker
A large cgi based web Python-2.3 application needs to be speed improved. experiments show the following under reasonable testing (these are 2 second reportlab pdf productions) 1) 2.3 -- 2.5 improvement small 1-2% 2) cgi -- fcgi improvement medium 10-12% I sort of remember claims being made

Re: Check a windows service

2007-01-17 Thread Tim Golden
awel wrote: Sorry, but could you give me an example with a real service 'cause I've tried this script but nothings happened, no error, nothings ; even if I launch it in cmd prompt. Well, as that example said, it was designed to show automatic services which are not running. If you don't have

Re: Python and Soap protocol

2007-01-17 Thread Simon Brunning
On 1/16/07, Grzegorz Smith [EMAIL PROTECTED] wrote: Hi folks I must write webb application that will comunicate with delphi desktop application by SOAP protocol. Can you recommend any Python Soap Libary? I founded: SOAPpy and Zolera SOAP Infrastructure (ZSI). Any tip which is better to use?

Re: Regex Question

2007-01-17 Thread Gabriel Genellina
At Tuesday 16/1/2007 16:36, Bill Mill wrote: py import re py rgx = re.compile('1?') py rgx.search('a1').groups() (None,) py rgx = re.compile('(1)+') py rgx.search('a1').groups() But shouldn't the ? be greedy, and thus prefer the one match to the zero? This is my sticking point - I've

Re: Making a simple script standalone

2007-01-17 Thread Gabriel Genellina
At Tuesday 16/1/2007 19:49, Rikishi 42 wrote: What I want to do is to compile/bundle/prepare/whatever_term a simple Python script for deployment on a Windows machine. Installing Python itself on that machine, is not an option. Ideally I would like to obtain a single executable file, but a

Re: Help: asyncore/asynchat and terminator string

2007-01-17 Thread Gabriel Genellina
At Tuesday 16/1/2007 20:05, David Hirschfield wrote: I'm implementing a relatively simple inter-application communication system that uses asyncore/asynchat to send messages back and forth. The messages are prefixed by a length value and terminator string, to signal that a message is incoming,

Re: How can i eval subindex on list[ ][ ] ?

2007-01-17 Thread Gabriel Genellina
At Tuesday 16/1/2007 20:08, jairodsl wrote: Excuse me, i was trying in too many ways but i couldnt access subindex on a list , the problem is the next: I have indif=[[0,'A'],[1,'B'],[2,'C'],[3,'D']] and indic=[[0,'B'],[1,'C'],[2,'D'],[3,'E']] i need to eval if indic[i][j] is equal to

Re: Anyone has a nice view_var procedure ?

2007-01-17 Thread Gabriel Genellina
At Tuesday 16/1/2007 20:13, Stef Mientki wrote: Ok, here's my current solution, probably not very Pythonian, (so suggestions are welcome) but it works. It appears that you're a number crunching guy - you absolutely ignore all types except numeric ones! :) (Too bad I can get the name of

Re: How to convert float to sortable integer in Python

2007-01-17 Thread Gabriel Genellina
At Wednesday 17/1/2007 03:36, shellon wrote: I'm sorry I mistake the function name, the function is floatToRawIntBits(), it convert ieee 754 floating point number to integer, e.g. if f1f2 then floatToRawBits(f1) floatToRawBits(f1) I want convert floating point number to sortable string to

Re: 2.3-2.5 what improved?

2007-01-17 Thread robert
Robin Becker wrote: A large cgi based web Python-2.3 application needs to be speed improved. experiments show the following under reasonable testing (these are 2 second reportlab pdf productions) 1) 2.3 -- 2.5 improvement small 1-2% 2) cgi -- fcgi improvement medium 10-12% I sort of

Distributed computation of jobs (was: Parallel Python)

2007-01-17 Thread A.T.Hofkamp
On 2007-01-12, robert [EMAIL PROTECTED] wrote: [1] http://www.python.org/pypi/parallel I'd be interested in an overview. For ease of use a major criterion for me would be a pure python solution, which also does the job of starting and controlling the other process(es) automatically right

Re: Projects anyone?

2007-01-17 Thread billie
placid wrote: Hi all, I'm looking for anyone who is working on a project at the moment that needs help (volunteer). The last project i worked on personally was screen-scraping MySpace profiles (read more at the following link)

Re: A note on heapq module

2007-01-17 Thread Antoon Pardon
On 2007-01-16, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: In few minutes I have just written this quite raw class, it lacks doctring (the same of the functions of the heapq module), it may contain bugs still, I haven't tested it much. It's just a simple wrapper around some of the functions of

generate tuples from sequence

2007-01-17 Thread Will McGugan
Hi, I'd like a generator that takes a sequence and yields tuples containing n items of the sqeuence, but ignoring the 'odd' items. For example take_group(range(9), 3) - (0,1,2) (3,4,5) (6,7,8) This is what I came up with.. def take_group(gen, count): i=iter(gen) while True:

Re: A note on heapq module

2007-01-17 Thread Neil Cerutti
On 2007-01-16, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Scott David Daniels: I'd suggest some changes. It is nice to have Heaps with equal contents equal no matter what order the inserts have been done. Consider how you want Heap([1, 2, 3]) and Heap([3, 1, 2]) to behave. Similarly, it is

Re: generate tuples from sequence

2007-01-17 Thread Will McGugan
Will McGugan wrote: Hi, I'd like a generator that takes a sequence and yields tuples containing n items of the sqeuence, but ignoring the 'odd' items. For example Forgot to add, for my purposes I will always have a sequence with a multiple of n items. Will --

Re: 2.3-2.5 what improved?

2007-01-17 Thread bruno . desthuilliers
Robin Becker a écrit : A large cgi based web Python-2.3 application needs to be speed improved. experiments show the following under reasonable testing (these are 2 second reportlab pdf productions) 1) 2.3 -- 2.5 improvement small 1-2% 2) cgi -- fcgi improvement medium 10-12% I sort of

Re: 2.3-2.5 what improved?

2007-01-17 Thread billie
robert wrote Robin Becker wrote: A large cgi based web Python-2.3 application needs to be speed improved. experiments show the following under reasonable testing (these are 2 second reportlab pdf productions) 1) 2.3 -- 2.5 improvement small 1-2% 2) cgi -- fcgi improvement medium

Re: generate tuples from sequence

2007-01-17 Thread Peter Otten
Will McGugan wrote: I'd like a generator that takes a sequence and yields tuples containing n items of the sqeuence, but ignoring the 'odd' items. For example take_group(range(9), 3) - (0,1,2) (3,4,5) (6,7,8) I like items = range(9) N = 3 zip(*[iter(items)]*N) [(0, 1, 2), (3, 4, 5), (6,

Re: generate tuples from sequence

2007-01-17 Thread Tim Williams
On 17 Jan 2007 04:50:33 -0800, Will McGugan [EMAIL PROTECTED] wrote: Will McGugan wrote: Hi, I'd like a generator that takes a sequence and yields tuples containing n items of the sqeuence, but ignoring the 'odd' items. For example Forgot to add, for my purposes I will always have a

IMAP SEARCH Error

2007-01-17 Thread Roopesh
I am using the imaplib to fetch mails. There is an error thrown in the search function, which I am not able to comprehend. My program is as follows : import imaplib M = imaplib.IMAP4(10.1.1.1,1143) M.login(roopesh, roopesh12) type, data = M.select(INBOX, 1) print type, data

Re: generate tuples from sequence

2007-01-17 Thread Neil Cerutti
On 2007-01-17, Will McGugan [EMAIL PROTECTED] wrote: Hi, I'd like a generator that takes a sequence and yields tuples containing n items of the sqeuence, but ignoring the 'odd' items. For example take_group(range(9), 3) - (0,1,2) (3,4,5) (6,7,8) This is what I came up with.. def

Number methods

2007-01-17 Thread Nick Maclaren
I can't find any description of these. Most are obvious, but some are not. Note that this is from the point of view of IMPLEMENTING them, not USING them. Specifically: Does Python use classic division (nb_divide) and inversion (nb_invert) or are they entirely historical? Note that I can very

Re: generate tuples from sequence

2007-01-17 Thread M�ta-MCI
Hi! r=iter(range(9)) print zip(r,r,r) But, it's few like Peter... -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: How can i eval subindex on list[ ][ ] ?

2007-01-17 Thread raghu
its working for me i think its better to mention the value of i and j for both lists or you might have done mistake while formatting strings it should be %s for strings and %d for numbers if any subelement in lists does not formatted properly it may lead to error --

Re: 2.3-2.5 what improved?

2007-01-17 Thread skip
Robin I sort of remember claims being made about 2.5 being 10% faster Robin than 2.4/2.3 etc etc. Can anyone say where the speedups were? What's New might be enlightening: http://www.google.com/search?q=what%27s+new+site%3Apython.org Skip --

The proper use of QSignalMapper

2007-01-17 Thread borntonetwork
Hi. I am trying to implement QTCore.QSignalMapper using PyQT. I finally got to a point where I don't receive any compile or runtime error messages, but I also do not see the final slot function fire off. Here is a snippet of the code: self.signalMapper = QtCore.QSignalMapper(window)

Re: Conflicting needs for __init__ method

2007-01-17 Thread Chuck Rhode
Ben Finney wrote this on Wed, Jan 17, 2007 at 08:27:54PM +1100. My reply is below. I recommend, instead, separate factory functions for separate input types. Uh, how 'bout separate subclasses for separate input types? -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather:

Re: IMAP SEARCH Error

2007-01-17 Thread jean-michel bain-cornu
imaplib.abort: command: SEARCH = unexpected response: '*' Can anyone tell me why this happens ? It looks like a server problem. What kind of server are you using ? Exchange, Cyrus ? Did you try with two different Imap servers ? If it is a unix server, did you have a look in /var/log ? Or in

Re: Distributed computation of jobs (was: Parallel Python)

2007-01-17 Thread Paul Boddie
A.T.Hofkamp skrev: Let me add a few cents to the discussion with this announcement: [Notes about exec_proxy, batchlib and rthread] I've added entries for these modules, along with py.execnet, to the parallel processing solutions page on the python.org Wiki:

Re: IMAP SEARCH Error

2007-01-17 Thread Thomas Guettler
Roopesh wrote: I am using the imaplib to fetch mails. There is an error thrown in the search function, which I am not able to comprehend. I had difficulties with the imaplib, too. It is very low level. You need to know some parts of the IMAP protocol. I solved my problems by checking with

Re: *POLL* How many sheeple believe in the 911 fairy tale and willing to accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread dlzc
Dear schoenfeld: After 6 years we still have a situation where almost all the worlds physicists, engineers, and other so called academics promote the idea that a few minor fires can cause two towers to free fall. Why should physics and mechanics be any different than it is for 12 story

Python Web Frameworks

2007-01-17 Thread Shortash
Hi Gurus, I want to build a Python web app but im not sure which one to go for. I prefer something like asp.Net , which would allow me to fully seperate the presentation layer from the logic. Please advise? thanks, Shortash' -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Web Frameworks

2007-01-17 Thread Diez B. Roggisch
Shortash wrote: Python Web Frameworks weak google skills you have, young friend. http://wiki.python.org/moin/WebFrameworks Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: The proper use of QSignalMapper

2007-01-17 Thread David Boddie
borntonetwork wrote: I am trying to implement QTCore.QSignalMapper using PyQT. I finally got to a point where I don't receive any compile or runtime error messages, but I also do not see the final slot function fire off. Here is a snippet of the code: self.signalMapper =

Re: 2.3-2.5 what improved?

2007-01-17 Thread Robin Becker
[EMAIL PROTECTED] wrote: Robin I sort of remember claims being made about 2.5 being 10% faster Robin than 2.4/2.3 etc etc. Can anyone say where the speedups were? What's New might be enlightening: http://www.google.com/search?q=what%27s+new+site%3Apython.org Skip thanks --

Re: 2.3-2.5 what improved?

2007-01-17 Thread Robin Becker
[EMAIL PROTECTED] wrote: Robin Becker a écrit : AFAIK, most of the speedup comes from optimization of the builtin dict type, which is the central data structure in Python. But anyway, as Robert pointed out, using CGI means lauching a new Python process for each and every HTTP

question about module resolution

2007-01-17 Thread Emin
Dear Experts, I often find myself wanting to have a child module get some parameters defined in a parent module. For example, imagine I have the following directory structure and want something in baz.py to look at a value in config.py. I end up putting in things like import sys;

Re: Python Web Frameworks

2007-01-17 Thread Andrey Khavryuchenko
Shortash, S == Shortash wrote: S I want to build a Python web app but im not sure which one to go for. I S prefer something like asp.Net , which would allow me to fully seperate S the presentation layer from the logic. Please advise? Django? http://www.djangoproject.com -- Andrey V

Re: question about module resolution

2007-01-17 Thread Peter Otten
Emin wrote: I often find myself wanting to have a child module get some parameters defined in a parent module. For example, imagine I have the following directory structure and want something in baz.py to look at a value in config.py. I end up putting in things like import sys;

how to write unicode to a txt file?

2007-01-17 Thread Frank Potter
I want to change an srt file to unicode format so mpalyer can display Chinese subtitles properly. I did it like this: txt=open('dmd-guardian-cd1.srt').read() txt=unicode(txt,'gb18030') open('dmd-guardian-cd1.srt','w').write(txt) But it seems that python can't directly write unicode to a file, I

Re: Globbing files by their creation date

2007-01-17 Thread tkpmep
Thanks a mill - os.path.getctime(f) is what I needed. Unfortunately, my attempts to turn the integer it returns into a date have failed. os.path.getctime(fn)#fn was created today, 1/17/2007 1168955503 I tried to convert this to a date object by typing datetime.date.fromordinal(1168955503)

cannot import libxml2 python module on windoze using activePerl or Python IDLE

2007-01-17 Thread Andrew Marlow
guys, I have been using libxml2 with python with no problems for just over a week but now I come to see if my script will work in someone else's environment and the libxml2 import fails. I am using the python that comes with cygwin. When I try using ActivePython (2.3) or Python IDLE (2.5) there

Re: how to write unicode to a txt file?

2007-01-17 Thread Peter Otten
Frank Potter wrote: I want to change an srt file to unicode format so mpalyer can display Chinese subtitles properly. I did it like this: txt=open('dmd-guardian-cd1.srt').read() txt=unicode(txt,'gb18030') open('dmd-guardian-cd1.srt','w').write(txt) But it seems that python can't

Re: Python Web Frameworks

2007-01-17 Thread Bruno Desthuilliers
Shortash a écrit : Hi Gurus, I want to build a Python web app but im not sure which one to go for. I prefer something like asp.Net , which would allow me to fully seperate the presentation layer from the logic. Please advise? Django, Turbogears, Pylons(HQ), web.py, etc, etc, etc... Welcome

Re: how to write unicode to a txt file?

2007-01-17 Thread Jean-Paul Calderone
On 17 Jan 2007 08:28:14 -0800, Frank Potter [EMAIL PROTECTED] wrote: I want to change an srt file to unicode format so mpalyer can display Chinese subtitles properly. I did it like this: txt=open('dmd-guardian-cd1.srt').read() txt=unicode(txt,'gb18030') open('dmd-guardian-cd1.srt','w').write(txt)

Re: Globbing files by their creation date

2007-01-17 Thread Jean-Paul Calderone
On 17 Jan 2007 08:31:07 -0800, [EMAIL PROTECTED] wrote: Thanks a mill - os.path.getctime(f) is what I needed. Unfortunately, my attempts to turn the integer it returns into a date have failed. os.path.getctime(fn)#fn was created today, 1/17/2007 1168955503 I tried to convert this to a date

Re: 2.3-2.5 what improved?

2007-01-17 Thread Bruno Desthuilliers
billie a écrit : robert wrote Robin Becker wrote: A large cgi based web Python-2.3 application needs to be speed improved. experiments show the following under reasonable testing (these are 2 second reportlab pdf productions) 1) 2.3 -- 2.5 improvement small 1-2% 2) cgi -- fcgi

Re: urrlib2 multithreading error

2007-01-17 Thread Facundo Batista
[EMAIL PROTECTED] wrote: I'm using urllib2 to retrieve some data usign http in a multithreaded application. Here's a piece of code: req = urllib2.Request(url, txdata, txheaders) opener = urllib2.build_opener() opener.addheaders = [('User-agent',

Re: how to write unicode to a txt file?

2007-01-17 Thread Facundo Batista
Frank Potter wrote: But it seems that python can't directly write unicode to a file, You need to use the method open from module codecs: import codecs a = codecs.open(pru_uni.txt, w, utf-8) txt = unicode(campeón\n, utf-8) a.write(txt) a.close() So, then, from command line: [EMAIL

predefined empty base class ??

2007-01-17 Thread iwl
Hi, is there an predefined empty base class which I can instanziate to have an container i can copy attributes in? -- http://mail.python.org/mailman/listinfo/python-list

Re: predefined empty base class ??

2007-01-17 Thread Diez B. Roggisch
is there an predefined empty base class which I can instanziate to have an container i can copy attributes in? No, but you can always do class Foo(object): pass foo = Foo() foo.attribute = value Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie: Capture traceback message to string?

2007-01-17 Thread Chris Mellon
On 17 Jan 2007 15:31:03 GMT, Thomas Guettler [EMAIL PROTECTED] wrote: Sean Schertell wrote: Hello! I'm new to Python and this is my first post to the list. I'm trying to simply capture exception text to a few strings which can be passed to a PSP page to display a pretty error

XLM prolgoue

2007-01-17 Thread fscked
How do I go about creating the XML prologue like I want it to be? Specifically, I am trying to add encoding and some namespace stuff. -- http://mail.python.org/mailman/listinfo/python-list

Re: predefined empty base class ??

2007-01-17 Thread robert
iwl wrote: Hi, is there an predefined empty base class which I can instanziate to have an container i can copy attributes in? you are not the only one missing such class http://groups.google.com/group/comp.lang.python/msg/3ff946e7da13dba9 RFE SF #1637926 Robert --

Re: Distributed computation of jobs

2007-01-17 Thread robert
Paul Boddie wrote: A.T.Hofkamp skrev: Let me add a few cents to the discussion with this announcement: [Notes about exec_proxy, batchlib and rthread] I've added entries for these modules, along with py.execnet, to the parallel processing solutions page on the python.org Wiki:

Re: *POLL* How many sheeple believe in the 911 fairy tale and willing to accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread st911
... buildings collapse all the time when you design to the cold-formed strength rather than the hot-formed strength of a material, then heat the material removing its tempered strength (which for steel occurs at much lower than usual flame temeratures). Actually, modern steel frame buildings

Re: *POLL* How many sheeple believe in the 911 fairy tale and willing to accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread Robert Hicks
Please, none of the real facts points to anything else except what actually happened. Two planes hit two towers and they came down. -- http://mail.python.org/mailman/listinfo/python-list

Re: predefined empty base class ??

2007-01-17 Thread robert
robert wrote: iwl wrote: Hi, is there an predefined empty base class which I can instanziate to have an container i can copy attributes in? you are not the only one missing such class http://groups.google.com/group/comp.lang.python/msg/3ff946e7da13dba9 RFE SF #1637926 ( and

Re: *POLL* How many sheeple believe in the 911 fairy tale and willing to accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread David Bostwick
In article [EMAIL PROTECTED], Robert Hicks [EMAIL PROTECTED] wrote: Please, none of the real facts points to anything else except what actually happened. Two planes hit two towers and they came down. You're talking to the wind. This is a conspiracy precisely because people deny the crackpots.

RE: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread Carroll, Barry
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 17, 2007 10:23 AM To: python-list@python.org Subject: Re: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

RE: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread Carroll, Barry
-Original Message- From: Robert Hicks [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 17, 2007 10:33 AM To: python-list@python.org Subject: Re: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ? Please,

Re: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread Robert Hicks
snip Regards, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stones must always be envisioning cathedrals. -Quarry worker's creed Sure, but did you actually post your phone number on USENET? Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: question about module resolution

2007-01-17 Thread Emin
I put the lines you suggested in baz.py, but got an error: Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import baz Traceback (most recent call last): File stdin, line 1, in module File

Re: Check a windows service

2007-01-17 Thread awel
Thanks for all 'cause you've really helped me Just one thing in the last line for the specific service, you' ve writted : print service but I think it is : print service.Caption Tim Golden a écrit : awel wrote: Sorry, but could you give me an example with a real service 'cause

Re: *POLL* How many sheeple believe in the 911 fairy tale and willing to accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread st911
Robert Hicks wrote: Please, none of the real facts points to anything else except what actually happened. Two planes hit two towers and they came down. The issue is the causality of the towers coming down. A magician pulls appears to cast a spell and out comes a rabbit out of his hat. There

Re: A note on heapq module

2007-01-17 Thread Steven Bethard
Antoon Pardon wrote: For me, your class has the same drawback as the heappush, heappop procedurers: no way to specify a comparision function. Agreed. I'd love to see something like ``Heap(key=my_key_func)``. STeVe -- http://mail.python.org/mailman/listinfo/python-list

Re: Making a simple script standalone

2007-01-17 Thread Rikishi 42
On Wednesday 17 January 2007 03:33, Gabriel Genellina wrote: At Tuesday 16/1/2007 19:49, Rikishi 42 wrote: What I want to do is to compile/bundle/prepare/whatever_term a simple Python script for deployment on a Windows machine. Installing Python itself on that machine, is not an option.

Re: Making a simple script standalone

2007-01-17 Thread Rikishi 42
On Wednesday 17 January 2007 00:22, James Stroud wrote: There is nothing graphical, nothing fancy about the script. The only imports are: os, stat, string and time. Any suggestions on an - easy and clear - path to follow ? pyinstaller + innosetup. I will look into it, thanks! Hope it's

Re: Making a simple script standalone

2007-01-17 Thread Rikishi 42
On Wednesday 17 January 2007 00:48, Larry Bates wrote: There is nothing graphical, nothing fancy about the script. The only imports are: os, stat, string and time. Any suggestions on an - easy and clear - path to follow ? I use py2exe and inno installer. Works great. Thanks, I will look

Re: *POLL* How many sheeple believe in the 911 fairy tale and willing to accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread st911
David Bostwick wrote: In article [EMAIL PROTECTED], Robert Hicks [EMAIL PROTECTED] wrote: Please, none of the real facts points to anything else except what actually happened. Two planes hit two towers and they came down. You're talking to the wind. This is a conspiracy precisely because

Re: Python-list Digest, Vol 40, Issue 215

2007-01-17 Thread David Brochu
How is it that when I try to send out a valid response to help someone with their python issue I get flagged, but this guy can send out something totally useless to the python community? -- Forwarded message -- From: [EMAIL PROTECTED] (David Bostwick) To:

RE: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread Carroll, Barry
-Original Message- From: David Bostwick [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 17, 2007 10:43 AM To: python-list@python.org Subject: Re: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ? In

Re: *POLL* How many sheeple believe in the 911 fairy tale and willing to accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread st911
Robert Hicks wrote: [EMAIL PROTECTED] wrote: Robert Hicks wrote: Please, none of the real facts points to anything else except what actually happened. Two planes hit two towers and they came down. The issue is the causality of the towers coming down. A magician pulls appears to

Re: XLM prolgoue

2007-01-17 Thread Sébastien Boisgérault
fscked wrote: How do I go about creating the XML prologue like I want it to be? Specifically, I am trying to add encoding and some namespace stuff. The XML declaration and the DTD that may appear in the prolog are optional. [22]prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? [23]

RE: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread Carroll, Barry
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 17, 2007 11:05 AM To: python-list@python.org Subject: Re: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

RE: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread Carroll, Barry
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 17, 2007 11:12 AM To: python-list@python.org Subject: Re: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

Re: *POLL* How many sheeple believe in the 911 fairy tale and willing to accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread st911
Hix, look at links on this link/page for pop mech: http://mail.python.org/pipermail/python-list/2006-September/403442.html it has v v goood links [EMAIL PROTECTED] wrote: Robert Hicks wrote: [EMAIL PROTECTED] wrote: Robert Hicks wrote: Please, none of the real facts points to anything

Re: *POLL* How many sheeple believe in the 911 fairy tale and willing to accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread David Bostwick
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: David Bostwick wrote: [...] Indeed, the 19 hijacker theory is a fairy tale based on illogical forensic investigation. As for dissent, Bush is on video record to utter, Lets not tolerate any conspiracy theories. The video is floating on the

Re: *POLL* How many sheeple believe in the 911 fairy tale and willing to accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread st911
David Bostwick wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: David Bostwick wrote: [...] Indeed, the 19 hijacker theory is a fairy tale based on illogical forensic investigation. As for dissent, Bush is on video record to utter, Lets not tolerate any conspiracy

  1   2   >