Re: Happy Christmas Pythoneers

2007-12-26 Thread Steven D'Aprano
On Wed, 26 Dec 2007 21:32:54 -0800, [EMAIL PROTECTED] wrote: >> > Anyway, happy New Years as well to all in the group. >> >> watch_fireworks() >> try: >>     champagne >> except NameError: >>     champagne = any_fizzy_alcoholic_drink_will_do() >> champagne.drink() >> shout("Happy New Years!!!") >>

Re: Happy Christmas Pythoneers

2007-12-26 Thread Steven D'Aprano
On Thu, 27 Dec 2007 09:09:49 +0200, Hendrik van Rooyen wrote: > "Zentrader" wrote: > >> And if you're not a Christian it would be Type Error bug. Anyway, >> happy New Years as well to all in the group. > > Followers of Shushla celebrate the new year at the time of the spring > equinox. > > Th

Re: Happy Christmas Pythoneers

2007-12-26 Thread Hendrik van Rooyen
"Zentrader" wrote: > And if you're not a Christian it would be Type Error bug. Anyway, > happy New Years as well to all in the group. Followers of Shushla celebrate the new year at the time of the spring equinox. This has been the cause of bloody wars between the Northern and Southern sects,

Re: Accessing Visuall C++ DLL with Python

2007-12-26 Thread Gabriel Genellina
En Thu, 20 Dec 2007 16:48:34 -0300, Murray, John <[EMAIL PROTECTED]> escribió: > I recently obtained USB device. Other users of the device apparently use > C or C++ to access it. I am more comfortable with Python and have used > it for other USB devices on a Windows system. I'm more of a hacker

Re: Counter-spam: Change the subject

2007-12-26 Thread Carl K
Jan Claeys wrote: > Op Tue, 11 Dec 2007 14:19:20 -0800, schreef Paul McGuire: > >> My ISP's news server only works for me when I am connected locally, not >> when I am travelling. Same here, so I use: sudo ssh -L119:newsgroups.comcast.net:119 [EMAIL PROTECTED] [EMAIL PROTECTED]:~$ cat /etc/hosts

Re: How to detect when a user switches between windows (in WinXP)?

2007-12-26 Thread Tim Roberts
[EMAIL PROTECTED] wrote: > >I'm a beginning-to-intermediate Python programmer with some experience >in other languages. At the moment I am trying to write a Python >program that will run in the background and execute a series of >commands whenever I switch between windows (my OS is Windows XP). For

Re: Extracting images from a PDF file

2007-12-26 Thread Carl K
Doug Farrell wrote: > Hi all, > > Does anyone know how to extract images from a PDF file? What I'm looking > to do is use pdflib_py to open large PDF files on our Linux servers, > then use PIL to verify image data. I want to do this in order > to find corrupt images in the PDF files. If anyone cou

Re: standalone python web server

2007-12-26 Thread rishi pathak
See if this helps www.*django*project.com On 12/27/07, eric <[EMAIL PROTECTED]> wrote: > > Hi all, > > I want to setup simple python web server and I want it to just unzip > and run, without any installation steps (have no right to do it). > > I've tried to write by myself, however, I find I am g

standalone python web server

2007-12-26 Thread eric
Hi all, I want to setup simple python web server and I want it to just unzip and run, without any installation steps (have no right to do it). I've tried to write by myself, however, I find I am getting into more details like processing image file, different file type(like FLV) .. etc. Any recomm

Re: Happy Christmas Pythoneers

2007-12-26 Thread [EMAIL PROTECTED]
On Dec 26, 9:43 pm, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Wed, 26 Dec 2007 18:04:31 -0800, Zentrader wrote: > >> Bah, humbug > > > And if you're not a Christian it would be Type Error bug. > > Not at all: if you inherit from any of the many pagan (that is, non- > Christian) religions that

Re: Python DLL in Windows Folder

2007-12-26 Thread Tim Roberts
"Markus Gritsch" <[EMAIL PROTECTED]> wrote: > >Instead of being upset about cutting your word (which was not my >intention, sorry about that), it would be nice if you could make a >statement concerning the problem I mentioned: Having an object being >created by one MSVC runtime, msvcr80.dll and pas

Extracting images from a PDF file

2007-12-26 Thread Doug Farrell
Hi all, Does anyone know how to extract images from a PDF file? What I'm looking to do is use pdflib_py to open large PDF files on our Linux servers, then use PIL to verify image data. I want to do this in order to find corrupt images in the PDF files. If anyone could help me out, or point me in t

Re: Happy Christmas Pythoneers

2007-12-26 Thread Steven D'Aprano
On Wed, 26 Dec 2007 18:04:31 -0800, Zentrader wrote: >> Bah, humbug > > And if you're not a Christian it would be Type Error bug. Not at all: if you inherit from any of the many pagan (that is, non- Christian) religions that celebrated midwinter festivals, or the old Roman Saturnalia festival

Subject changed: Bug in combining htmlentitydefs.py and ElementTree?

2007-12-26 Thread André
Sorry for the top posting - I found out that the problem I encountered was not something new in Python 3.0. Here's a test program: import xml.etree.ElementTree ElementTree = xml.etree.ElementTree import htmlentitydefs class XmlParser(ElementTree.ElementTree): def __init__(self, fi

EUROMEDIA 2008, April 9-11, 2008, FEUP-University of Porto, Portugal - 2nd Call for Papers

2007-12-26 Thread [EMAIL PROTECTED]
-- (Apologies for cross-posting) EUROMEDIA 2008, APRIL 9-11, 2008, FEUP-UNIVERSITY OF PORTO, PORTUGAL http://www.eurosis.org/cms/?q=taxonomy/term/100 We would a

Re: Happy Christmas Pythoneers

2007-12-26 Thread Zentrader
> > Bah, humbug And if you're not a Christian it would be Type Error bug. Anyway, happy New Years as well to all in the group. -- http://mail.python.org/mailman/listinfo/python-list

Re: missing pydoc gui

2007-12-26 Thread TommW
JimG wrote: > On Dec 26, 1:56 pm, Bernard Delmée <[EMAIL PROTECTED]> > wrote: >> (I know replying to self is a sure sign of aging :-) >> A quick update: after installing the 'tkinter' fedora >> package (still in live-cd mode), the following 3 lines >> script does what "pydoc -g " should: >> >>

Re: Python DLL in Windows Folder

2007-12-26 Thread Ross Ridge
Chris Mellon <[EMAIL PROTECTED]> wrote: >Python (when installed with "for everyone") is not (just) an >application, it's a runtime. Whatever you want to call it, the Python DLL is not part of the operating system, it's not a driver and doesn't belong in the system directory.

Re: Bug in htmlentitydefs.py with Python 3.0?

2007-12-26 Thread André
On Dec 26, 8:53 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > Without an additional parser, I was getting the following error > > message: > [...] > > xml.parsers.expat.ExpatError: undefined entity é: line 401, column 11 > > To understand that problem better, it would have been helpful to se

Re: Bug in htmlentitydefs.py with Python 3.0?

2007-12-26 Thread Martin v. Löwis
> Without an additional parser, I was getting the following error > message: [...] > xml.parsers.expat.ExpatError: undefined entity é: line 401, column 11 To understand that problem better, it would have been helpful to see what line 401, column 11 of the input file actually says. AFAICT, it must

Re: Counter-spam: Change the subject

2007-12-26 Thread Jan Claeys
Op Tue, 11 Dec 2007 14:19:20 -0800, schreef Paul McGuire: > My ISP's news server only works for me when I am connected locally, not > when I am travelling. Gmane ? -- JanC -- http://mail.python.org/mailman/listinfo/python-list

Unsubscribe

2007-12-26 Thread Alihuen
- Original Message - From: "Peter Pei" <[EMAIL PROTECTED]> Newsgroups: comp.lang.python To: Sent: Wednesday, December 26, 2007 8:22 PM Subject: Re: save gb-2312 web page in a .html file > You must be right, since I tried one page and it worked. But there is > something wrong with this

Re: Bug in htmlentitydefs.py with Python 3.0?

2007-12-26 Thread André
On Dec 26, 7:30 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > André wrote: > > In trying to parse html files using ElementTree running under Python > > 3.0a1, and using htmlentitydefs.py to add "character entities" to the > > parser, I found that I needed to create a customized version of > >

Re: save gb-2312 web page in a .html file

2007-12-26 Thread Peter Pei
I "view sourced" the original web page in IE7, and it does specify: So sounds like the encoding is gb2312... -- http://mail.python.org/mailman/listinfo/python-list

Re: Python/Tkinter DLL conflicts on Windows

2007-12-26 Thread Martin v. Löwis
> Any help in tracking down the source of this problem > would be appreciated. You could try installing a debugger on machine H, hoping that the debugger gets entered when pythonw crashes. The stack trace may provide some insight on what precisely fails. HTH, Martin -- http://mail.python.org/m

Re: Big-endian binary data to/from Python ints?

2007-12-26 Thread Matt Nordhoff
William McBrine wrote: > Here are a couple of functions that I feel stupid for having written. > They work, and they're pretty straightforward; it's just that I feel like > I must be missing an easier way to do this... > > def net_to_int(numstring): > """Convert a big-endian binary number, i

Re: save gb-2312 web page in a .html file

2007-12-26 Thread Martin v. Löwis
> .read() returns the bytes exactly how it downloads them. It doesn't > interpret them. If those bytes are GB-2312-encoded text, that's what > they are. There's no need to reencode them. Just .write(page) (of > course, this way you don't verify that it's correct). Alternatively, if the page is *no

Re: Bug in htmlentitydefs.py with Python 3.0?

2007-12-26 Thread Martin v. Löwis
André wrote: > In trying to parse html files using ElementTree running under Python > 3.0a1, and using htmlentitydefs.py to add "character entities" to the > parser, I found that I needed to create a customized version of > htmlentitydefs.py to make things work properly. Can you please state what

Re: save gb-2312 web page in a .html file

2007-12-26 Thread Matt Nordhoff
Peter Pei wrote: > You must be right, since I tried one page and it worked. But there is > something wrong with this particular page: > http://overseas.btchina.net/?categoryid=-1. When I open the saved file (with > IE7), it is all messed up. > > url = 'http://overseas.btchina.net/?categoryi

Re: how to generate html table from "table" data?

2007-12-26 Thread petr . jakes . tpc
Dennis, Thank you very much for your code snippet. I will try to install CherryTemplate and use it. I did not work with any template tool before and I am not the * class programmer as other people here, so my questions maybe look "strange" or "stup..". I didn't mean to offend somebody here an

Big-endian binary data to/from Python ints?

2007-12-26 Thread William McBrine
Here are a couple of functions that I feel stupid for having written. They work, and they're pretty straightforward; it's just that I feel like I must be missing an easier way to do this... def net_to_int(numstring): """Convert a big-endian binary number, in the form of a string of arbit

Re: Python DLL in Windows Folder

2007-12-26 Thread Martin v. Löwis
> Indeed, pywin32 stops working :( I installed Python "just for me", > then I installed pywin32-210, and now Pythonwin.exe is not able to > start. So for this scenario it seems to be necessary, that the Python > DLL is installed into the system32 folder. > > Maybe the Python installer should iss

Re: save gb-2312 web page in a .html file

2007-12-26 Thread Peter Pei
You must be right, since I tried one page and it worked. But there is something wrong with this particular page: http://overseas.btchina.net/?categoryid=-1. When I open the saved file (with IE7), it is all messed up. url = 'http://overseas.btchina.net/?categoryid=-1' headers = { 'User-A

Re: Read file, and append?

2007-12-26 Thread John Machin
On Dec 27, 9:04 am, Gilles Ganault <[EMAIL PROTECTED]> wrote: > On Tue, 25 Dec 2007 13:27:09 -0800, Dennis Lee Bieber > > <[EMAIL PROTECTED]> wrote: > >Ignoring the question of the proper I/O mode, I believe the I/O > >system MAY require one to perform a seek() when switching from read to > >write

Re: save gb-2312 web page in a .html file

2007-12-26 Thread Matt Nordhoff
Peter Pei wrote: > I am trying to read a web page and save it in a .html file. The problem is > that the web page is GB-2312 encoded, and I want to save it to the file with > the same encoding or unicode. I have some code like this: > url = 'http://blah/' > headers = { 'User-Agent' : 'Moz

Re: Performance on local constants?

2007-12-26 Thread William McBrine
Thanks for all the answers on this. (And, sorry the lousy Subject line; I couldn't think of a better one.) -- 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 -- pass it on -- http://mail.python.org/mailman/listinfo/python-list

save gb-2312 web page in a .html file

2007-12-26 Thread Peter Pei
I am trying to read a web page and save it in a .html file. The problem is that the web page is GB-2312 encoded, and I want to save it to the file with the same encoding or unicode. I have some code like this: url = 'http://blah/' headers = { 'User-Agent' : 'Mozilla/4.0 (compatible; MSIE

Bug in htmlentitydefs.py with Python 3.0?

2007-12-26 Thread André
In trying to parse html files using ElementTree running under Python 3.0a1, and using htmlentitydefs.py to add "character entities" to the parser, I found that I needed to create a customized version of htmlentitydefs.py to make things work properly. The change needed was to replace (at the bottom

Re: convert pdf to png

2007-12-26 Thread Piet van Oostrum
> Carl K <[EMAIL PROTECTED]> (CK) wrote: >CK> Here is what the code looks like that generates the pdf: >CK> buffer = StringIO() >CK> rw = dReportWriter(OutputFile=buffer, ReportFormFile=xmlfile, >Cursor=ds) >CK> rw.write() >CK> pdf = buffer.getvalue() >CK> return pdf You

Re: state of XSLT2/XPath2 or XQuery in CPython

2007-12-26 Thread Christof Hoeke
Stefan Behnel wrote: > Christof Hoeke wrote: >> I was wondering if there is any way to use XSLT2 or maybe even XQuery >> with "normal" CPython. Using Saxon/XSLT2 with Jython is no problem (I >> have not tried Saxon.NET with IronPython but suspect no problem?) but I >> could not find any way to use

Re: [newbie] Read file, and append?

2007-12-26 Thread Gilles Ganault
On Tue, 25 Dec 2007 13:27:09 -0800, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >Ignoring the question of the proper I/O mode, I believe the I/O >system MAY require one to perform a seek() when switching from read to >write and vice versa... I thought about this, but I don't understand why I woul

Re: Python DLL in Windows Folder

2007-12-26 Thread Lie
On Dec 27, 12:30 am, "Markus Gritsch" <[EMAIL PROTECTED]> wrote: > On 26/12/2007, Lie Ryan <[EMAIL PROTECTED]> wrote: > > > On Dec 25, 2007 4:43 PM, Markus Gritsch <[EMAIL PROTECTED]> wrote: > > > On 24/12/2007, Lie <[EMAIL PROTECTED]> wrote: > > > > > (good programs are not DLL implementation spec

Re: how to generate html table from "table" data?

2007-12-26 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Vasudev Ram wrote: >>Why not try writing your own code for this first? >>If nothing else, it'll help you learn more, and may also help you >>understand better, the other options. >> > > Thanks for your reply even it was not really helpful. The answers boil down to:

Re: Python/Tkinter DLL conflicts on Windows

2007-12-26 Thread kyosohma
On Dec 26, 1:03 pm, "Russell Blau" <[EMAIL PROTECTED]> wrote: > I have some Tkinter programs that I run on two different machines. On > Machine W, which runs Python 2.5.1 on Windows XP, these programs run fine. > On Machine H, which runs Python 2.5.1 on Windows XP, however, the same > programs cra

Re: CPython and a C extension using Boehm GC

2007-12-26 Thread MrJean1
FWIIW, I built GC 6.7 on a RHEL 3 (Opteron) system using ./configure --prefix=... --enable-redirect-malloc --enable- threads=posix --enable-thread-local-alloc make; make check; make install Then, I tried running a few examples with 3 different, existing Python binaries each pre-loaded with th

Re: state of XSLT2/XPath2 or XQuery in CPython

2007-12-26 Thread Stefan Behnel
Christof Hoeke wrote: > I was wondering if there is any way to use XSLT2 or maybe even XQuery > with "normal" CPython. Using Saxon/XSLT2 with Jython is no problem (I > have not tried Saxon.NET with IronPython but suspect no problem?) but I > could not find any way to use XSLT2 or XPath Features wit

Re: missing pydoc gui

2007-12-26 Thread JimG
On Dec 26, 1:56 pm, Bernard Delmée <[EMAIL PROTECTED]> wrote: > (I know replying to self is a sure sign of aging :-) > A quick update: after installing the 'tkinter' fedora > package (still in live-cd mode), the following 3 lines > script does what "pydoc -g " should: > > import Tkinter >

Python/Tkinter DLL conflicts on Windows

2007-12-26 Thread Russell Blau
I have some Tkinter programs that I run on two different machines. On Machine W, which runs Python 2.5.1 on Windows XP, these programs run fine. On Machine H, which runs Python 2.5.1 on Windows XP, however, the same programs crash regularly. The crashes are not Python exceptions, but rather a

Re: missing pydoc gui

2007-12-26 Thread Bernard Delmée
(I know replying to self is a sure sign of aging :-) A quick update: after installing the 'tkinter' fedora package (still in live-cd mode), the following 3 lines script does what "pydoc -g " should: import Tkinter import pydoc pydoc.gui() HTH, Bernard. -- http://mail.python.org/m

Re: missing pydoc gui

2007-12-26 Thread Bernard Delmée
I see what you mean, having started my fedora8-live image under virtualbox. -g support is apparently not there with this distribution, oddly enough. Perhaps you should post your question on a fedora support forum. Under the live cd (hence probably with a smaller selection of available packages tha

Re: how to generate html table from "table" data?

2007-12-26 Thread petr . jakes . tpc
> > Why not try writing your own code for this first? > If nothing else, it'll help you learn more, and may also help you > understand better, the other options. > > Vasudev Ram Thanks for your reply even it was not really helpful. Of course some attempts to generate html from tabular data are beh

Re: convert pdf to png

2007-12-26 Thread Carl K
Grant Edwards wrote: > On 2007-12-25, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: >> Carl K schrieb: >>> Grant Edwards wrote: On 2007-12-24, Carl K <[EMAIL PROTECTED]> wrote: >> If it is a multi page pdf Imagemagick will do: >> >> convert file.pdf page-%03d.png > I need py

Re: Writing Oracle Output to a File

2007-12-26 Thread t_rectenwald
On Dec 26, 12:10 pm, t_rectenwald <[EMAIL PROTECTED]> wrote: > On Dec 26, 12:06 pm, Paul Hankin <[EMAIL PROTECTED]> wrote: > > > > > > > On Dec 26, 4:51 pm, t_rectenwald <[EMAIL PROTECTED]> wrote: > > > > On Dec 26, 10:36 am, t_rectenwald <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > > > I atte

Re: Converting old "shelve" databases to gdbm

2007-12-26 Thread RayOsborn
On Dec 24, 10:01 pm, Istvan Albert <[EMAIL PROTECTED]> wrote: > On Dec 24, 7:38 pm, [EMAIL PROTECTED] wrote: > > > Any tips welcome. > > pickling has a text protocol that should be compatible across python > versions. Pickle  each of your database entries to a different file, > then read them in th

Re: list in a tuple

2007-12-26 Thread Arnaud Delobelle
On Dec 26, 1:08 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Mon, 24 Dec 2007 18:01:53 -0800, Raymond Hettinger wrote: [...] > > The first succeeds and the second fails. > > And this is a good idea? > > Shouldn't the tuple assignment raise the exception BEFORE calling > __

Re: Happy Christmas Pythoneers

2007-12-26 Thread Aahz
In article <[EMAIL PROTECTED]>, Paddy <[EMAIL PROTECTED]> wrote: > >After quite enjoying participating in the group in 2007, I'd like to >wish you all a Merry Xmas. Bah, humbug -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Typing is cheap. Thinking is expensive

Re: Python DLL in Windows Folder

2007-12-26 Thread Markus Gritsch
On 26/12/2007, Lie Ryan <[EMAIL PROTECTED]> wrote: > > > On Dec 25, 2007 4:43 PM, Markus Gritsch <[EMAIL PROTECTED]> wrote: > > On 24/12/2007, Lie <[EMAIL PROTECTED]> wrote: > > > > > > (good programs are not DLL implementation specific > > > > Assume an application embedding Python being compiled

Re: Writing Oracle Output to a File

2007-12-26 Thread t_rectenwald
On Dec 26, 12:06 pm, Paul Hankin <[EMAIL PROTECTED]> wrote: > On Dec 26, 4:51 pm, t_rectenwald <[EMAIL PROTECTED]> wrote: > > > > > > > On Dec 26, 10:36 am, t_rectenwald <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > I attempting to execute an Oracle query, and write the results to a > > > file

Re: Writing Oracle Output to a File

2007-12-26 Thread Paul Hankin
On Dec 26, 4:51 pm, t_rectenwald <[EMAIL PROTECTED]> wrote: > On Dec 26, 10:36 am, t_rectenwald <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > I attempting to execute an Oracle query, and write the results to a > > file in CSV format.  To do so, I've done the following: > > > import cx_Oracle >

Re: Writing Oracle Output to a File

2007-12-26 Thread t_rectenwald
On Dec 26, 10:36 am, t_rectenwald <[EMAIL PROTECTED]> wrote: > Hello, > > I attempting to execute an Oracle query, and write the results to a > file in CSV format.  To do so, I've done the following: > > import cx_Oracle > db = cx_Oracle.connect('user/[EMAIL PROTECTED]') > cursor = db.cursor() > cu

Re: Python DLL in Windows Folder

2007-12-26 Thread Chris Mellon
On Dec 24, 2007 5:23 PM, Ross Ridge <[EMAIL PROTECTED]> wrote: > Chris Mellon <[EMAIL PROTECTED]> wrote: > >What the python installer is doing is the Right Thing for making the > >standard python dll available to third party applications. > >Applications that want a specific version of a specific D

Re: Game Development

2007-12-26 Thread James Matthews
SO use pygame! but please don't spam this list! -- http://search.goldwatches.com/?Search=Movado+Watches http://www.jewelerslounge.com http://www.goldwatches.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python DLL in Windows Folder

2007-12-26 Thread James Matthews
You have read access just not write! Because you need the DLLS in there! On Dec 25, 2007 7:53 PM, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > * Stef Mientki (Tue, 25 Dec 2007 11:39:47 +0100) > > Another reason "not to put the DLL in win/wys32": > > on a lot of computers writing to win/sys32 or ev

Re: very newbie question about exception handling

2007-12-26 Thread James Matthews
In short input runs an eval on the text before it passes it! So input like ord('a') will work fine because it will run that code! On Dec 26, 2007 5:26 AM, <[EMAIL PROTECTED]> wrote: > Thanks guys! It worked. > > Merry Christmas! > -- > http://mail.python.org/mailman/listinfo/python-list > --

Re: Python for web...

2007-12-26 Thread James Matthews
Ha read an RFC for web dev! hehehhe Thats a new one! On Dec 26, 2007 9:43 AM, Bruno Desthuilliers < [EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] a écrit : > > Hi everyone, > > > > I have to develop a web based enterprise application > > "enterprise" ??? > > > for my final year > > project. Since

interactive mode in python with ctypes???

2007-12-26 Thread digitnctu
Dear all: I am coming with problem, to apply ctypes under interactive mode in python. libdll.dll is a third-party library. The below code segment will run well under the batch mode(ie. python test.py 11060) but when I type sequencially it doesn't work as usual. Can any give me a h

Re: missing pydoc gui

2007-12-26 Thread JimG
On Dec 26, 10:43 am, JimG <[EMAIL PROTECTED]> wrote: > On Dec 26, 9:46 am, Bernard Delmée <[EMAIL PROTECTED]> > wrote: > > > > > FWIW I am using 2.4.4 under debian etch and 2.5.1 under windows XP, > > and pydoc seems to support the -[pgkw] flags under both versions. > > When trying -g under debian,

Re: how to generate html table from "table" data?

2007-12-26 Thread vasudevram
> [EMAIL PROTECTED] a écrit : > > > Hi group, > > I would like to convert the output of the SQL query, or more generally > > I would like to convert any "table" data to the html table. > > > I would like to set some rules to format cells, columns or rows (font, > > colour etc.) of the html table, a

Re: missing pydoc gui

2007-12-26 Thread JimG
On Dec 26, 9:46 am, Bernard Delmée <[EMAIL PROTECTED]> wrote: > FWIW I am using 2.4.4 under debian etch and 2.5.1 under windows XP, > and pydoc seems to support the -[pgkw] flags under both versions. > When trying -g under debian, I am getting a stack-trace and a message > inviting me to install th

Writing Oracle Output to a File

2007-12-26 Thread t_rectenwald
Hello, I attempting to execute an Oracle query, and write the results to a file in CSV format. To do so, I've done the following: import cx_Oracle db = cx_Oracle.connect('user/[EMAIL PROTECTED]') cursor = db.cursor() cursor.arraysize = 500 cursor.execute(sql) result = cursor.fetchall() The abov

Re: CPython and a C extension using Boehm GC

2007-12-26 Thread MrJean1
It depends on how the GC inside the extension is built. If it is a drop-in replacement for malloc, then GC *must* be loaded and initialized upfront if possible. There is no need to memcpy anything between Python and the extension. However, if GC does not replace malloc, etc., then GC-ed memory i

Re: Pexpect and a Linux Terminal

2007-12-26 Thread [EMAIL PROTECTED]
On 25 déc, 15:49, [EMAIL PROTECTED] wrote: > On Dec 25, 8:42 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > On 25 déc, 10:14, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > On 25 déc, 09:41, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > Yes it's work ! :-D > > > > >

Re: missing pydoc gui

2007-12-26 Thread Bernard Delmée
FWIW I am using 2.4.4 under debian etch and 2.5.1 under windows XP, and pydoc seems to support the -[pgkw] flags under both versions. When trying -g under debian, I am getting a stack-trace and a message inviting me to install the python-tk package. Does "pydoc -g" provide any feedback on your ins

state of XSLT2/XPath2 or XQuery in CPython

2007-12-26 Thread Christof Hoeke
hi, I was wondering if there is any way to use XSLT2 or maybe even XQuery with "normal" CPython. Using Saxon/XSLT2 with Jython is no problem (I have not tried Saxon.NET with IronPython but suspect no problem?) but I could not find any way to use XSLT2 or XPath Features with CPython. All the usu

Geodetic software development

2007-12-26 Thread Fred
Dear software developer, GeoDLL supports the development of geodetic software on various platforms by providing geodetic functions. GeoDLL contains precise functions of the themes 2D and 3D coordinate transformation, geodetic datum shift and reference system conversion, meridian strip changing, us

Re: missing pydoc gui

2007-12-26 Thread JimG
On Dec 26, 8:27 am, Bernard Delmée <[EMAIL PROTECTED]> wrote: > Hi Jim, I guess you're missing tk and its tkinter > python wrapper. Sorry I don't know what the corresponding > packages would be called under fedora... Hi Bernard, Thanks for the suggestion, however, that does not seem to be the rea

Re: convert pdf to png

2007-12-26 Thread Boris Borcic
Carl K wrote: > Rob Wolfe wrote: >> Carl K <[EMAIL PROTECTED]> writes: >> >>> I need to take the take the pdf output from reportlab and create a >>> preview image for a web page. so png or something. I am sure >>> ghostscript will be involved. I am guessing PIL or ImageMagic ? >>> >>> all sugesti

Re: missing pydoc gui

2007-12-26 Thread Bernard Delmée
Hi Jim, I guess you're missing tk and its tkinter python wrapper. Sorry I don't know what the corresponding packages would be called under fedora... -- http://mail.python.org/mailman/listinfo/python-list

Game Development

2007-12-26 Thread [EMAIL PROTECTED]
We at AJ Aquare are engaged in design and development of PC-based, online and mobile games. Our Game designers are passionate towards creating games that people long to have. Our designs can drive millions of players to your site. Sources: http://www.ajsquare.com/games/game_design.php?game=design

Re: OMG please help

2007-12-26 Thread Paul Hankin
On Dec 26, 1:09 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Mon, 24 Dec 2007 17:14:58 +0100, Martin P. Hellwig wrote: > > As Dennis already pointed out I like to use dictionaries in these cases, > > so I would use sand = dict() instead of sands = list() and would do > > s

Re: convert pdf to png

2007-12-26 Thread Diez B. Roggisch
Carl K schrieb: > Diez B. Roggisch wrote: >> Carl K schrieb: >>> Grant Edwards wrote: On 2007-12-24, Carl K <[EMAIL PROTECTED]> wrote: >> If it is a multi page pdf Imagemagick will do: >> >> convert file.pdf page-%03d.png > I need python code to do this. It is going to be

Re: smtplib problem, Unable to relay for

2007-12-26 Thread Benedict Verheyen
Benedict Verheyen schreef: > Thanks for the responses. I solved it by adjusting the relayers list (i'm a domain admin) in others words i granted my pc the rights to relay. I did this by starting the Exchange System Manager and then going to Servers->->protocols->SMTP Then right click on "Defa

help hisham to set up an online business

2007-12-26 Thread sazali
Hello world. I had some problems with my business. My name is Noor Hisham Bin Ahmad. I,m from Malaysia. I need some funds to support my blog because I want set up an online business. this is my account number. Bank Simpanan Nasional 0210029816898886 via western union -- http://mail.python.org/m

M'I.5 Perse cution Mol estation du ring T ravel

2007-12-26 Thread mfimei
MI5 Persecution: Molestation during. Travel MI5s persecution of me varies. in intensity. Since 1990 it has been steady for perhaps 80% of the time; there was. a notable quiet period in 1993, and another. quiet period in Jan-Feb 1995, as well as a hiatus in the first two months of 1999.. It puzzle

M'I-5 Pers ecution , BB C Newscasters Li e & Deny Theyr e Wa tching Me

2007-12-26 Thread mifemeve
MI5 Persecution: BBC Newscasters Lie & Deny. They're Watching Me Central to the persecution campaign waged against me. for some nine years now by the Security Service is their use of the. media, and in particular the broadcast media, to make clear. to me that I am under surveillance and being wat

M.I'5`Pers ecution - Four Years of MI 5 Persecut ion Pos ts on Inter net Newsgrou ps

2007-12-26 Thread eivmvmvm
Four Years of. "MI5 Persecution" Posts on Internet Newsgroups For approximately the first three. years of the MI5 persecution, from June 1990 until late 1992, I kept as quiet as possible, in. the hope that by not reacting, MI5s interest in me would. decrease and they would simply go away of their

M`I'5.Persecuti on - MI 5 Waste Taxpay er Mil lions on Point less Hate-C ampaign

2007-12-26 Thread vfvfvefim
MI5 Persecution. Update: Friday 30 April, 1999 If You Intend To Reply, Please. Read This Please keep your. response to one page!. Faxes over a page or two will be. deleted without being read. Somewhere between. 0 and 100% The last few days there have been no clear. recordable instances of a

Re: Python for web...

2007-12-26 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Hi everyone, > > I have to develop a web based enterprise application "enterprise" ??? > for my final year > project. Since i am interested in open source, i searched the net. > Almost 90% of them were PHP and MySQL. Cant we use python for that ? Well, I don't know

M I.5'Per secution Comparin g the MI 5 Pe rsecution wit h Ge rman Fin al So lution

2007-12-26 Thread ieivevem
MI5. Persecution Update: Friday 16 April, 1999 If You Intend To. Reply, Please Read This Please. keep your response to one page!. Faxes over a page or two will be deleted. without being read. BBC newscaster Nicholas. Witchell cant stop himself laughing During 1990-91 there were. very many i

Re: how to generate html table from "table" data?

2007-12-26 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Hi group, > I would like to convert the output of the SQL query, or more generally > I would like to convert any "table" data to the html table. There's MoreThanOneWayToDoIt... from simple string formatting to a full-blown template engine. > I would like to set some