Re: PYQT 3 communication with 2 windows

2007-04-24 Thread Marcpp
On 21 abr, 02:43, David Boddie <[EMAIL PROTECTED]> wrote: > On Thursday 19 April 2007 22:38, Marcpp wrote: > > > Hi, I'm introducing to program in python + pyqt. > > I have a main window that call a second window (to introduce a info > > with textedit) > > when press the second window button I need

Re: PYQT 3 communication with 2 windows

2007-04-24 Thread Marcpp
On 21 abr, 02:43, David Boddie <[EMAIL PROTECTED]> wrote: > On Thursday 19 April 2007 22:38, Marcpp wrote: > > > Hi, I'm introducing to program in python + pyqt. > > I have a main window that call a second window (to introduce a info > > with textedit) > > when press the second window button I need

I/O Error

2007-04-24 Thread saif . shakeel
Hi, I am using File I/O to input an xml file form user and parse it.I have used something like this: file_input = raw_input("Enter The ODX File Path:") odx_file_output = raw_input("Enter the output file path : ") log_file_output = raw_input("Enter the path for LogFile : ") saveout = sys.std

Ann: lastfmsvc-0.9.1

2007-04-24 Thread Jarek Zgoda
What's this? It's a Python library that enables interaction with artist/album/tracks metadata on Last.fm. This library tries to recreate complete functionality of LastFM Client when it comes to metadata (not streams). What's this good for? The code in this library allows performing standard operat

Re: *** Watch BOMBSHELL video of Senator John Kerry admitting 911 was in INSIDE JOB ???

2007-04-24 Thread Andy
On 23 Apr 2007 21:12:45 -0700, [EMAIL PROTECTED] wrote: >http://www.911blogger.com/node/8053 > >Senator John Kerry was questioned concerning 9/11 during an appearance >at Book People in Austin, Texas. Members of Austin 9/11 Truth Now >asked Kerry about the officially unexplained collapse of WTC Bu

Re: Python Widget to read in user input box in blog

2007-04-24 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hey, > > I am helping to develop a project that displays images based on user > input. One possible way of implementing this is via a widget that > when it is run, would read in the users input from an input text field > (probably from a blog), and replace it with the

Re: Strange terminal behavior after quitting Tkinter application

2007-04-24 Thread Charles Sanders
Chris wrote: > ... Quitting by typing 'sys.exit()' in the interpreter > also works fine. Only quitting via the GUI seems to cause the > problem. As previously stated, I know nothing about Tkinter, but it definitely looks like there is some cleanup being skipped on a GUI exit that is in fac

Would You Write Python Articles or Screencasts for Money?

2007-04-24 Thread Jeff Rush
There is discussion by the Python Software Foundation of offering cash bounties or perhaps periodic awards to the "best of" for magazine articles, video/screencast clips and such. If YOU would be swayed to get involved in producing content in exchange for cash, please speak up on the advocacy mail

Getting python script to write to input box on another window

2007-04-24 Thread sophie_newbie
Hi, I'm wondering if there is a way to get a python script to write text to an input box in a window of another program that is running? For example a text box in a web browser window? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: I/O Error

2007-04-24 Thread Michael Hoffman
[EMAIL PROTECTED] wrote: > file_input = raw_input("Enter The ODX File Path:") > odx_file_output = raw_input("Enter the output file path : ") > log_file_output = raw_input("Enter the path for LogFile : ") > > saveout = sys.stdout > try: > f_open=open(odx_file_output, 'w') > except: > prin

Re: Tutorial creates confusion about slices

2007-04-24 Thread Michael Bentley
On Apr 24, 2007, at 1:39 AM, Antoon Pardon wrote: > On 2007-04-23, Michael Bentley <[EMAIL PROTECTED]> wrote: >> >> On Apr 23, 2007, at 7:38 AM, Antoon Pardon wrote: >> >>> The following is part of the explanation on slices in the >>> tutorial: >>> >>> The best way to remember how slices work is

Re: Tutorial creates confusion about slices

2007-04-24 Thread Antoon Pardon
On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: > > On Apr 24, 2007, at 1:39 AM, Antoon Pardon wrote: > >> I suspect that if you give this explanation to someone and explain >> that there is also a step parameter, chances are he will answer >> correctly if you ask him, what he thinks the

Re: Tutorial creates confusion about slices

2007-04-24 Thread Michael Bentley
On Apr 24, 2007, at 4:47 AM, Antoon Pardon wrote: > On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: >> >> On Apr 24, 2007, at 1:39 AM, Antoon Pardon wrote: >> >>> I suspect that if you give this explanation to someone and explain >>> that there is also a step parameter, chances are he w

Minidom Help

2007-04-24 Thread Robert Rawlins - Think Blue
Hello guys, Not got much experience with working with minidom, but I'm looking to parse this XML and retrieve the 'name' value from the xml. Think Blue 0x1002 1 I've got as far as parsing the XML using self.doc = xml.dom.minidom.parse(self.filepath) but that's as far as I've

Re: *** Watch BOMBSHELL video of Senator John Kerry admitting 911 was in INSIDE JOB ???

2007-04-24 Thread James Stroud
Andy wrote: > On 23 Apr 2007 21:12:45 -0700, [EMAIL PROTECTED] wrote: > >> http://www.911blogger.com/node/8053 >> >> Senator John Kerry was questioned concerning 9/11 during an appearance >> at Book People in Austin, Texas. Members of Austin 9/11 Truth Now >> asked Kerry about the officially unexp

Re: Would You Write Python Articles or Screencasts for Money?

2007-04-24 Thread Michael Hoffman
Jeff Rush wrote: > There is discussion by the Python Software Foundation of offering cash > bounties or perhaps periodic awards to the "best of" for magazine articles, > video/screencast clips and such. > > If YOU would be swayed to get involved in producing content in exchange for > cash, please

Re: Getting python script to write to input box on another window

2007-04-24 Thread Duncan Booth
sophie_newbie <[EMAIL PROTECTED]> wrote: > I'm wondering if there is a way to get a python script to write text > to an input box in a window of another program that is running? For > example a text box in a web browser window? > Yes there is, but the solution depends on the operating system and

Re: python cgi problem with textarea

2007-04-24 Thread placid
On Apr 24, 4:52 pm, Tim Roberts <[EMAIL PROTECTED]> wrote: > placid <[EMAIL PROTECTED]> wrote: > >On Apr 23, 1:01 am, Adrian Smith <[EMAIL PROTECTED]> wrote: > >> On Apr 22, 10:09 pm, placid <[EMAIL PROTECTED]> wrote: > > >> > i just tried it and its working. here it is > > >> >http://yallara.cs.rm

adjust

2007-04-24 Thread saif . shakeel
Hi, How do i right adjust my output using python.I need a output something like this: DID= 0x01,0x02,0x03,0x05,0x06,0x07,0x2B,0x30,0x31,0x4D,0x4E, 0x51,0x52,0x53,0x55, minlength= 3, 3, 4, 2, 10, 10, 40, 2, 150, 4, 1, 2, 2, 1, 2, 1, 6, 3, 17, 1, maxlength=

Re: adjust

2007-04-24 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hi, > How do i right adjust my output using python.I need a output > something like this: > DID= 0x01,0x02,0x03,0x05,0x06,0x07,0x2B,0x30,0x31,0x4D,0x4E, > 0x51,0x52,0x53,0x55, > minlength= 3, 3, 4, 2, 10, 10, 40, 2, 150, 4, 1, > 2, 2, 1,

Re: adjust

2007-04-24 Thread Michael Hoffman
[EMAIL PROTECTED] wrote: > How do i right adjust my output using python. http://docs.python.org/lib/typesseq-strings.html > minlength= 3, 3, 4, 2, 10, 10, 40, 2, 150, 4, 1, > 2, 2, 1, 2, 1, 6, 3, 17, 1, Something like: >>> def write_sequence(label, sequence

Re: adjust

2007-04-24 Thread A.T.Hofkamp
On 2007-04-24, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > How do i right adjust my output using python.I need a output > something like this: > DID= 0x01,0x02,0x03,0x05,0x06,0x07,0x2B,0x30,0x31,0x4D,0x4E, > 0x51,0x52,0x53,0x55, > minlength= 3, 3, 4, 2, 10, 10, 40, 2

Re: Does socket.setdefaulttimeout affect the timeouts in MySQLdb?

2007-04-24 Thread Steve Holden
John Nagle wrote: > Does setting "socket.setdefaulttimeout" affect the timeout in MySQLdb > for connections to the database? I'm getting database connection timeouts on > a local (same machine) connnection, and I've been setting > "socket.setdefaulttimeout" to 15 seconds so web page opens don

Re: TK-grid problem, please help

2007-04-24 Thread Ray
Hi Anton, Thanks again. This is what I need! my problem already solved. Ray Anton Vredegoor wrote: > Ray wrote: > >> hi, I have a question about how to use .grid_forget (in python/TK) >> >> I need to work on grid repeatly. everytime when a button is pressed, >> the rows of grid is different. su

Re: Tutorial creates confusion about slices

2007-04-24 Thread Antoon Pardon
On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: > > On Apr 24, 2007, at 4:47 AM, Antoon Pardon wrote: > >> On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: >>> >>> On Apr 24, 2007, at 1:39 AM, Antoon Pardon wrote: >>> I suspect that if you give this explanation to someone an

Re: Python's handling of unicode surrogates

2007-04-24 Thread Pete Forman
Ross Ridge <[EMAIL PROTECTED]> writes: > The Unicode standard doesn't require that you support surrogates, > or any other kind of character, so no you wouldn't be lying. +1 on Ross Ridge's contributions to this thread. If Unicode is processed using UTF-8 or UTF-32 encoding forms then there are

Catching a specific IO error

2007-04-24 Thread Tina I
Hi group :) I have this standard line: export = open(self.exportFileName , 'w') 'exportFileName' is a full path given by the user. If the user gives an illegal path or filename the following exception is raised: "IOError: [Errno 2] No such file or directory: /some/path/file.txt" So at

Re: Getting python script to write to input box on another window

2007-04-24 Thread Gabriel Genellina
En Tue, 24 Apr 2007 06:15:51 -0300, sophie_newbie <[EMAIL PROTECTED]> escribió: > I'm wondering if there is a way to get a python script to write text > to an input box in a window of another program that is running? For > example a text box in a web browser window? You could use pyWinAuto on W

Python Screen Scraper

2007-04-24 Thread James Stroud
Hello, Does anyone know of an example, however modest, of a screenscraper authored in python? I am using Firefox. Basically, I am answering problems via my browser and being scored for each problem. I have a tendency to go past my peak for training efficiency, so I would like to scrape the res

Re: Catching a specific IO error

2007-04-24 Thread Thomas Krüger
Tina I schrieb: > Now, this works but of course it catches every IOError, and I can not > figure out how to restrict it to only catch the "[Errno 2]"? There's an example that uses the error number: http://docs.python.org/tut/node10.html#SECTION001030 Thomas -- sinature: http://

Re: Python for Vcard Parsing in UTF16

2007-04-24 Thread Adam Atlas
On Apr 21, 7:28 pm, R Wood <[EMAIL PROTECTED]> wrote: > I know nothing about Python except that it interests me and has interested me > since I first learned the Rekall database frontend (Linux) runs on it. I just > ordered Learning Python and if that works out satisfactorily I'm going to go > bac

Re: Python for Vcard Parsing in UTF16

2007-04-24 Thread Adam Atlas
On Apr 21, 7:28 pm, R Wood <[EMAIL PROTECTED]> wrote: > To me this was a natural task for Perl. Turns out however, there's a catch. > Apple exports the file in UTF-16 to ensure anyone with Chinese characters in > their addressbook gets a legitimate Vcard file. Here's a function that, given a `s

Re: Catching a specific IO error

2007-04-24 Thread Gabriel Genellina
En Tue, 24 Apr 2007 08:44:05 -0300, Tina I <[EMAIL PROTECTED]> escribió: > Hi group :) > > I have this standard line: > > export = open(self.exportFileName , 'w') > > 'exportFileName' is a full path given by the user. If the user gives an > illegal path or filename the following exceptio

Re: *** Dr G Polya BRILLIANTLY analyses the Virgina Shooting Incident ***

2007-04-24 Thread Quadibloc
The Real Andy wrote: > Makes me wonder about the credibility of any statement Dr Gideon Polya > makes. . I never thought that I would feel the urge to call someone an edelweiss-eating Tanzanian devil, but Dr. Polya proved that I lacked imagination. (Note that "Tanzanian" is pronounced Tan.zan._ee_

Re: Catching a specific IO error

2007-04-24 Thread Steve Holden
Thomas Krüger wrote: > Tina I schrieb: >> Now, this works but of course it catches every IOError, and I can not >> figure out how to restrict it to only catch the "[Errno 2]"? > > There's an example that uses the error number: > http://docs.python.org/tut/node10.html#SECTION001030

Re: Tutorial creates confusion about slices

2007-04-24 Thread Michael Bentley
On Apr 24, 2007, at 6:35 AM, Antoon Pardon wrote: > On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: >> >> On Apr 24, 2007, at 4:47 AM, Antoon Pardon wrote: >> >>> On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: On Apr 24, 2007, at 1:39 AM, Antoon Pardon wrote: >

Re: Python Screen Scraper

2007-04-24 Thread Michael Bentley
On Apr 24, 2007, at 11:50 AM, James Stroud wrote: > Hello, > > Does anyone know of an example, however modest, of a screenscraper > authored in python? I am using Firefox. > > Basically, I am answering problems via my browser and being scored for > each problem. I have a tendency to go past my pe

Re: getting scancodes

2007-04-24 Thread andmarti
On Tue, Apr 24, 2007 at 04:40:11AM -, Grant Edwards wrote: > On 2007-04-24, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Anyone knows if its possible to get scan codes ??? > > What hardware? What OS? Debian Sarge/Etch, i386.. :P Molte grazie. Andres M. > > > I tried with getch ()

Re: Tutorial creates confusion about slices

2007-04-24 Thread Antoon Pardon
On 2007-04-24, Michael Bentley <[EMAIL PROTECTED]> wrote: > > On Apr 24, 2007, at 6:35 AM, Antoon Pardon wrote: > >> People don't read tutorials in a strictly linear fashion. They can >> continue to later subjects and then come back here to see how things >> tie together. So the fact that it is onl

Re: Tutorial creates confusion about slices

2007-04-24 Thread Michael Hoffman
Antoon Pardon wrote: >> Submit a patch if you want it changed. I'm sure your valuable >> insights will greatly improve the quality of the python documentation. > > Fat chance, if they reason like you. I don't think that Michael Bentley is the documents maintainer. Are you trying to pick a fi

Re: Tutorial creates confusion about slices

2007-04-24 Thread Antoon Pardon
On 2007-04-24, Michael Hoffman <[EMAIL PROTECTED]> wrote: > Antoon Pardon wrote: > >>> Submit a patch if you want it changed. I'm sure your valuable >>> insights will greatly improve the quality of the python documentation. >> >> Fat chance, if they reason like you. > > I don't think that Micha

Re: Python un-plugging the Interpreter

2007-04-24 Thread Jorgen Grahn
On Thu, 19 Apr 2007 20:39:57 -0700, Alex Martelli <[EMAIL PROTECTED]> wrote: > Steve Holden <[EMAIL PROTECTED]> wrote: > >> A long time ago Greg Stein produced a patch that removed the need for >> the GIL, but nobody seemed to want to pay the penalty it extracted in >> speed reduction, so it langui

Re: Domain Keys in Python

2007-04-24 Thread miked
Andrew --- Saw your thread on implementing DomainKeys in Python. Could you offer me some insight into your implementation? Thanks, Mike On 20 Apr, 15:58, Andrew Veitch <[EMAIL PROTECTED]> wrote: > --- Andrew Veitch <[EMAIL PROTECTED]> wrote: > > > In Perl I would just use Crypt:RSA which has

Re: Tutorial creates confusion about slices

2007-04-24 Thread Michael Hoffman
[Michael Hoffman] >> Personally, I do not think of slices in the way this tutorial suggests, >> but I think taking it out without replacement would not help. If you >> want to add a more accurate replacement, I think that would be better >> received than just saying that the section should be re

Re: Would You Write Python Articles or Screencasts for Money?

2007-04-24 Thread Steve Holden
Jeff Rush wrote: > There is discussion by the Python Software Foundation of offering cash > bounties or perhaps periodic awards to the "best of" for magazine articles, > video/screencast clips and such. > > If YOU would be swayed to get involved in producing content in exchange for > cash, please

Re: getting scancodes

2007-04-24 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > On Tue, Apr 24, 2007 at 04:40:11AM -, Grant Edwards wrote: >> On 2007-04-24, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> > Anyone knows if its possible to get scan codes ??? >> >> What hardware? What OS? > > Debian Sarge/Etch, i386.. > > :P Gret.

Re: getting scancodes

2007-04-24 Thread Larry Bates
Diez B. Roggisch wrote: > [EMAIL PROTECTED] wrote: > >> On Tue, Apr 24, 2007 at 04:40:11AM -, Grant Edwards wrote: >>> On 2007-04-24, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> Anyone knows if its possible to get scan codes ??? >>> What hardware? What OS? >> Debian Sarge/Etch, i386

Re: getting scancodes

2007-04-24 Thread Steve Holden
Diez B. Roggisch wrote: > [EMAIL PROTECTED] wrote: > >> On Tue, Apr 24, 2007 at 04:40:11AM -, Grant Edwards wrote: >>> On 2007-04-24, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> Anyone knows if its possible to get scan codes ??? >>> What hardware? What OS? >> Debian Sarge/Etch, i386

Re: Would You Write Python Articles or Screencasts for Money?

2007-04-24 Thread kyosohma
On Apr 24, 5:47 am, Michael Hoffman <[EMAIL PROTECTED]> wrote: > Jeff Rush wrote: > > There is discussion by the Python Software Foundation of offering cash > > bounties or perhaps periodic awards to the "best of" for magazine articles, > > video/screencast clips and such. > > > If YOU would be swa

Re: getting scancodes

2007-04-24 Thread andmarti
On Tue, Apr 24, 2007 at 09:32:29AM -0500, Larry Bates wrote: > Diez B. Roggisch wrote: > > [EMAIL PROTECTED] wrote: > > > >> On Tue, Apr 24, 2007 at 04:40:11AM -, Grant Edwards wrote: > >>> On 2007-04-24, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >>> > Anyone knows if its possible to

Re: Python un-plugging the Interpreter

2007-04-24 Thread Steve Holden
Jorgen Grahn wrote: > On Thu, 19 Apr 2007 20:39:57 -0700, Alex Martelli <[EMAIL PROTECTED]> wrote: >> Steve Holden <[EMAIL PROTECTED]> wrote: >> >>> A long time ago Greg Stein produced a patch that removed the need for >>> the GIL, but nobody seemed to want to pay the penalty it extracted in >>> sp

Re: getting scancodes

2007-04-24 Thread kyosohma
On Apr 23, 7:39 pm, [EMAIL PROTECTED] wrote: > Anyone knows if its possible to get scan codes ??? > I tried with getch () but with no success, just keycodes. > May be using the something in the sys.stdin module ?? > > Pleasee, any help would be very appreciated. > > -- > Andrés M. > ---

defining user exceptions

2007-04-24 Thread CSUIDL PROGRAMMEr
I am trying to write a user defined exception that will catch for failed dependencies when a rpm is installed try: rpm -ivh xxx.rpm --force; except RPMError: print RPM failed dependency Can some one tell me how to define this RPMError. I looked at python docs but they were not useful. -

Re: Python un-plugging the Interpreter

2007-04-24 Thread Alex Martelli
Jorgen Grahn <[EMAIL PROTECTED]> wrote: ... > > Perhaps the current wave of dual-core and quad-core CPUs in cheap > > consumer products would change people's perceptions -- I wonder... > > Maybe it would change /perceptions/, but would normal users suddenly > start running things that are (a) p

Re: python cgi problem with textarea

2007-04-24 Thread Adrian Smith
On Apr 24, 8:00 pm, placid <[EMAIL PROTECTED]> wrote: > oops...i did read the problem description, but i when i tried the code > it worked for me and when i put spaces into the TextArea it wasn't > reflected correctly back. So i thought this was the problem. > > Adrian, can you still try replacing

Re: defining user exceptions

2007-04-24 Thread Michael Hoffman
CSUIDL PROGRAMMEr wrote: > I am trying to write a user defined exception that will catch for > failed dependencies when a rpm is installed > > try: > rpm -ivh xxx.rpm --force; > except RPMError: >print RPM failed dependency > > > Can some one tell me how to define this RPMError. I looke

Re: Would You Write Python Articles or Screencasts for Money?

2007-04-24 Thread Alex Martelli
Steve Holden <[EMAIL PROTECTED]> wrote: ... > used to provide incentives to improve the available information about > Python, and possibly even the software that's available in Python. I > have undertaken to make a proposal to the PSF Board for an incentive > scheme. So please let me have your

Re: Learning Python - First Project

2007-04-24 Thread kyosohma
On Apr 23, 6:36 pm, 7stud <[EMAIL PROTECTED]> wrote: > On Apr 23, 5:04 pm, Kevin Haynes <[EMAIL PROTECTED]> wrote: > > > > > Hello > > > I was a python newbie just a month ago and found the following books a great > > help. > > > Beginning Python: From Novice to Professional (Beginning: From Novice

Re: No speedup on multi-processor machine?

2007-04-24 Thread Fuzzyman
On Apr 23, 9:52 pm, Klaas <[EMAIL PROTECTED]> wrote: > On Apr 21, 5:14 pm, Fuzzyman <[EMAIL PROTECTED]> wrote: > > > Additionally, extending IronPython from C# is orders of magnitude > > easier than extending CPython from C. > > Given the existence of Pyrex, that statement is pretty difficult to >

Convert a string to a list

2007-04-24 Thread rh0dium
Hi all, I am using pexpect to drive another tool. Some of the data I get back would be better suited as a list and I want to know a simple way to parse the data to push it into a list. For example I get the following string back. I want to convert this to a list: '("." ".." "cdslib_cleanup.py

Re: Would You Write Python Articles or Screencasts for Money?

2007-04-24 Thread Steve Holden
Alex Martelli wrote: > Steve Holden <[EMAIL PROTECTED]> wrote: >... >> used to provide incentives to improve the available information about >> Python, and possibly even the software that's available in Python. I >> have undertaken to make a proposal to the PSF Board for an incentive >> schem

Re: getting scancodes

2007-04-24 Thread pdalet
On 24 avr, 02:39, [EMAIL PROTECTED] wrote: > Anyone knows if its possible to get scan codes ??? > I tried with getch () but with no success, just keycodes. > May be using the something in the sys.stdin module ?? > > Pleasee, any help would be very appreciated. > > -- > Andrés M. > -

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Grant Edwards <[EMAIL PROTECTED]> wrote: >I need to be able to generate a PDF report which consists >mostly of vector images (which I can generate as encapsulated >Postscript, PDF, or SVG). What I need is a way to combine >these figures into a single PDF document.

Re: [python-advocacy] Would You Write Python Articles or Screencasts for Money?

2007-04-24 Thread Facundo Batista
2007/4/24, Steve Holden <[EMAIL PROTECTED]>: > and I was more looking for a way to reward authors of excellence, as > judged by some subset of the Python community - this might have to be > the PSF membership given the impracticality of running a meaningful poll > with a larger set of voters. Why

RPM error

2007-04-24 Thread CSUIDL PROGRAMMEr
Hi folks I am trying to write a program that will install RPM. IS there any built in Exception in python that will catch the faied dependencies in python. Also if not how can i write one ?? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Screen Scraper

2007-04-24 Thread Jeremy Sanders
Michael Bentley wrote: > Possibly the easiest thing will be to read from firefox' cache. > Otherwise I think your only real options are to either build a proxy > or sniff the wire... Maybe another way would be to write a firefox addon/plugin. I believe python is now supported... -- Jeremy Sander

freeze and problem with static libraries

2007-04-24 Thread Flyzone
Hi, i need to "compile" a python source (2.3.6) to make it standalone on Solaris 9. I get this warning on freezing my source: "Warning: unknown modules remain: _locale _random _socket array binascii cStringIO datetime fcntl math pwd select strop termios time" in the source i have: "import os, sta

Angelina Joli Paris Hilton MARISA MILLER

2007-04-24 Thread M M
Angelina Joli Paris HiltonMARISA MILLER www.alphasearch.gr -- http://mail.python.org/mailman/listinfo/python-list

noob questions

2007-04-24 Thread T.Crane
I'm new to python and I seem to get different behavior depending on... well who knows what. Here's my question concerning importation of packages/modules. I want to use scipy. So at the prompt (using iPython, installed with Enthought edition on Windows XP) I type: ln [1]: from scipy import * N

tkinter paint program

2007-04-24 Thread Gigs_
I'm working on tkinter paint program, mostly to learn tkinter canvas. I have method which create buttons for oval, rectangle, line, polygon etc. How to make oval button to be sunken when i click it and to remain sunken until i click on another button (like rectangle and than is another button sunk

Re: getting scancodes

2007-04-24 Thread andmarti
On Tue, Apr 24, 2007 at 07:41:38AM -0700, [EMAIL PROTECTED] wrote: > On Apr 23, 7:39 pm, [EMAIL PROTECTED] wrote: > > Anyone knows if its possible to get scan codes ??? > > I tried with getch () but with no success, just keycodes. > > May be using the something in the sys.stdin module ?? > > > > Pl

need help with ODE solver from scipy

2007-04-24 Thread T.Crane
Hi, OK, I'm trying to figure out how to use the ODE solver (scipy.integrate.ode.ode). Here's what I'm doing (in iPython) y0 = [0,1,1] dt = 0.01 tEnd = 12 t0 = 0 Y = zeros([tEnd/dt, 3]) As an aside, I've used this assignment for Y in the past and it worked. When I tried it this morning I got a

Re: No speedup on multi-processor machine?

2007-04-24 Thread Jorgen Grahn
On 23 Apr 2007 13:52:52 -0700, Klaas <[EMAIL PROTECTED]> wrote: > On Apr 21, 5:14 pm, Fuzzyman <[EMAIL PROTECTED]> wrote: > >> Additionally, extending IronPython from C# is orders of magnitude >> easier than extending CPython from C. > > Given the existence of Pyrex, that statement is pretty diffic

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Grant Edwards
On 2007-04-24, Cameron Laird <[EMAIL PROTECTED]> wrote: [...] >>I've looked at ReportLab's documentation, but although it >>appears to be able to use bitmap images (e.g jpeg) it doesn't >>appear to be able to use vector images (EPS/PDF/SVG). >> >>Is there a PDF generation library that can place EP

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Steve Holden
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Grant Edwards <[EMAIL PROTECTED]> wrote: >> I need to be able to generate a PDF report which consists >> mostly of vector images (which I can generate as encapsulated >> Postscript, PDF, or SVG). What I need is a way to combine >> these fig

Re: *** Dr G Polya BRILLIANTLY analyses the Virgina Shooting Incident ***

2007-04-24 Thread bill . sloman
On Apr 24, 2:09 pm, Quadibloc <[EMAIL PROTECTED]> wrote: > The Real Andy wrote: > > Makes me wonder about the credibility of any statement Dr Gideon Polya > > makes. > > . > I never thought that I would feel the urge to call someone an > edelweiss-eating Tanzanian devil, but Dr. Polya proved that I

Re: Python Screen Scraper

2007-04-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Michael Bentley <[EMAIL PROTECTED]> wrote: > >On Apr 24, 2007, at 11:50 AM, James Stroud wrote: > >> Hello, >> >> Does anyone know of an example, however modest, of a screenscraper >> authored in python? I am using Firefox. >> >> Basically, I am answering problems v

Feedback on Until recipe

2007-04-24 Thread Thomas Nelson
Occasionally someone posts to this group complaining about the lack of "repeat ... until" in python. I too have occasionally wished for such a construct, and after some thinking, I came up with the class below. I'm hoping to get some feedback here, and if people besides me think they might use it

Re: [python-advocacy] Would You Write Python Articles or Screencasts for Money?

2007-04-24 Thread Steve Holden
Facundo Batista wrote: > 2007/4/24, Steve Holden <[EMAIL PROTECTED]>: > >> and I was more looking for a way to reward authors of excellence, as >> judged by some subset of the Python community - this might have to be >> the PSF membership given the impracticality of running a meaningful poll >> wi

RPM error

2007-04-24 Thread CSUIDL PROGRAMMEr
Hi folks I am new to python I am trying to write a program that will install rpm using rpm -ivh xxx.rpm I want to know if python has in-built exceptions to catch no- dependencies error. If not how can i build them thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: noob questions

2007-04-24 Thread Steve Holden
T.Crane wrote: > I'm new to python and I seem to get different behavior depending on... > well who knows what. Here's my question concerning importation of > packages/modules. > > I want to use scipy. So at the prompt (using iPython, installed with > Enthought edition on Windows XP) I type: > >

feedback on Until recipe

2007-04-24 Thread Thomas Nelson
Occasionally people post complaining about the lack of a "repeat...until" structure in python. I thought about it and came up with this recipe that I like. The only ugly thing is having to use lambdas, otherwise it's very terse and readable. Tell me what you think, and if anyone besides me think

Re: q: how to output a unicode string?

2007-04-24 Thread Diez B. Roggisch
Frank Stajano wrote: > A simple unicode question. How do I print? > > Sample code: > > # -*- coding: utf-8 -*- > s1 = u"héllô wórld" > print s1 > # Gives UnicodeEncodeError: 'ascii' codec can't encode character > # u'\xe9' in position 1: ordinal not in range(128) > > > What I actually want to

Re: Socket exceptions aren't in the standard exception hierarchy

2007-04-24 Thread John Nagle
Steve Holden wrote: > John Nagle wrote: > [socket.error bug report] > >>> >>> Where did you get this information? If true it would certainly need >>> to be logged as a bug, but under Windows on 2,4 I see >>> >>> >>> issubclass(socket.gaierror, Exception) >>> True >>> >>> >>> >>> and the same un

Re: noob questions

2007-04-24 Thread Robert Kern
T.Crane wrote: > I'm new to python and I seem to get different behavior depending on... > well who knows what. Here's my question concerning importation of > packages/modules. > > I want to use scipy. So at the prompt (using iPython, installed with > Enthought edition on Windows XP) I type: > >

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Grant Edwards
On 2007-04-24, Steve Holden <[EMAIL PROTECTED]> wrote: >>> I've looked at ReportLab's documentation, but although it >>> appears to be able to use bitmap images (e.g jpeg) it doesn't >>> appear to be able to use vector images (EPS/PDF/SVG). >>> >>> Is there a PDF generation library that can place

Re: need help with ODE solver from scipy

2007-04-24 Thread Robert Kern
T.Crane wrote: > Hi, > > OK, I'm trying to figure out how to use the ODE solver > (scipy.integrate.ode.ode). You will get more help from the scipy-user list than you will here. http://www.scipy.org/Mailing_Lists > Here's what I'm doing (in iPython) > > y0 = [0,1,1] > dt = 0.01 > tEnd = 12 >

Re: *** Dr G Polya BRILLIANTLY analyses the Virgina Shooting Incident ***

2007-04-24 Thread Rich Grise
On Tue, 24 Apr 2007 09:00:56 -0700, bill.sloman wrote: > On Apr 24, 2:09 pm, Quadibloc <[EMAIL PROTECTED]> wrote: >> The Real Andy wrote: >> > Makes me wonder about the credibility of any statement Dr Gideon Polya >> > makes. >> . >> I never thought that I would feel the urge to call someone an >>

Simple sqlite3 question

2007-04-24 Thread cjl
P: I am using python 2.5.1 on windows. I have the following code: conn = sqlite3.connect('.\optiondata') c = conn.cursor() try: c.execute('''create table options (ssymbol text, strike real, osymbol text, bid real, mpp real, upp real)''') except sqlite3.OperationalError: pass I am hoping

Re: Socket exceptions aren't in the standard exception hierarchy

2007-04-24 Thread Steve Holden
John Nagle wrote: > Steve Holden wrote: >> John Nagle wrote: >> [socket.error bug report] >> Where did you get this information? If true it would certainly need to be logged as a bug, but under Windows on 2,4 I see >>> issubclass(socket.gaierror, Exception) True >>>

Re: *** Watch BOMBSHELL video of Senator John Kerry admitting 911 was in INSIDE JOB ???

2007-04-24 Thread Richard The Dreaded Libertarian
On Mon, 23 Apr 2007 21:12:45 -0700, lemnitzer wrote: > WHAT THE HELL|?| Are you saying that building was wired that day? Or > well in advance? 'Splain, please. No, you idiot. That was the Murrah building in OK city. Cheers! Rich -- http://mail.python.org/mailman/listinfo/python-list

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Steve Holden
Grant Edwards wrote: > On 2007-04-24, Steve Holden <[EMAIL PROTECTED]> wrote: > I've looked at ReportLab's documentation, but although it appears to be able to use bitmap images (e.g jpeg) it doesn't appear to be able to use vector images (EPS/PDF/SVG). Is there a PDF gene

Trees, Lists and Check Boxes

2007-04-24 Thread P-Cubed
I'm looking for some assistance extending the TreeListCtrl class to include the check box ability of the CustomTreeCtrl as well as 3-state check boxes. Main Column Column1 -- [o] Child1 |-[ ]Child1.1 |-[ ]Ch

Re: Feedback on Until recipe

2007-04-24 Thread Steve Holden
Thomas Nelson wrote: > Occasionally someone posts to this group complaining about the lack of > "repeat ... until" in python. I too have occasionally wished for such > a construct, and after some thinking, I came up with the class below. > I'm hoping to get some feedback here, and if people beside

If Dict Contains a particular key

2007-04-24 Thread Robert Rawlins - Think Blue
Hello Guys, I'm Looking to build a quick if/else statement that checks a dictionary for a key like follows. If myDict contains ThisKey: Do this... Else Do that... Thats the best way of doing this? Thanks, Rob -- http://mail.python.org/mailman

Re: Convert a string to a list

2007-04-24 Thread Nick Craig-Wood
rh0dium <[EMAIL PROTECTED]> wrote: > I am using pexpect to drive another tool. Some of the data I get back > would be better suited as a list and I want to know a simple way to > parse the data to push it into a list. > > For example > > I get the following string back. I want to convert t

Re: Python Screen Scraper

2007-04-24 Thread kyosohma
On Apr 24, 7:17 am, Michael Bentley <[EMAIL PROTECTED]> wrote: > On Apr 24, 2007, at 11:50 AM, James Stroud wrote: > > > > > Hello, > > > Does anyone know of an example, however modest, of a screenscraper > > authored in python? I am using Firefox. > > > Basically, I am answering problems via my br

Re: If Dict Contains a particular key

2007-04-24 Thread Michael Bentley
On Apr 24, 2007, at 12:28 PM, Robert Rawlins - Think Blue wrote: Hello Guys, I’m Looking to build a quick if/else statement that checks a dictionary for a key like follows. If myDict contains ThisKey: Do this... Else Do that... Thats the best way o

Re: If Dict Contains a particular key

2007-04-24 Thread Carsten Haese
On Tue, 2007-04-24 at 18:28 +0100, Robert Rawlins - Think Blue wrote: > Hello Guys, > > > > I’m Looking to build a quick if/else statement that checks a > dictionary for a key like follows. > > > > If myDict contains ThisKey: > > Do this... > > Else > > Do

Re: Python un-plugging the Interpreter

2007-04-24 Thread John Nagle
Alex Martelli wrote: > Jorgen Grahn <[EMAIL PROTECTED]> wrote: >... > >>>Perhaps the current wave of dual-core and quad-core CPUs in cheap >>>consumer products would change people's perceptions -- I wonder... > IronPython would appear to be coming along nicely and getting acceptance > in the

  1   2   >