Re: Regular Expressions

2007-02-10 Thread John Machin
On Feb 11, 10:26 am, Geoff Hill [EMAIL PROTECTED] wrote: What's the way to go about learning Python's regular expressions? I feel like such an idiot - being so strong in a programming language but knowing nothing about RE. I suggest that you work through the re HOWTO

Re: Hacking in python

2007-02-10 Thread Geoff Hill
The word hack can be known as a smart/quick fix to a problem. -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expressions

2007-02-10 Thread Paul Rubin
John Machin [EMAIL PROTECTED] writes: What's the way to go about learning Python's regular expressions? I feel like such an idiot - being so strong in a programming language but knowing nothing about RE. I suggest that you work through the re HOWTO http://www.amk.ca/python/howto/regex/

Re: Python 2.4 pdf Tutorial--Available

2007-02-10 Thread Gabriel Genellina
En Sat, 10 Feb 2007 21:20:43 -0300, W. Watson [EMAIL PROTECTED] escribió: Gabriel Genellina wrote: En Sat, 10 Feb 2007 16:45:08 -0300, W. Watson [EMAIL PROTECTED] escribió: I was able to download the 2.5 tutorial, but think I may need the 2.4 tutorial (Guido van Rossum) if it exists.

Re: Python 2.4 pdf Tutorial--Available

2007-02-10 Thread W. Watson
Gabriel Genellina wrote: En Sat, 10 Feb 2007 21:20:43 -0300, W. Watson [EMAIL PROTECTED] escribió: Gabriel Genellina wrote: En Sat, 10 Feb 2007 16:45:08 -0300, W. Watson [EMAIL PROTECTED] escribió: I was able to download the 2.5 tutorial, but think I may need the 2.4 tutorial (Guido van

Re: Regular Expressions

2007-02-10 Thread gregarican
On Feb 10, 6:26 pm, Geoff Hill [EMAIL PROTECTED] wrote: What's the way to go about learning Python's regular expressions? I feel like such an idiot - being so strong in a programming language but knowing nothing about RE. I highly recommend reading the book Mastering Regular Expressions, which

Can anyone explain a part of a telnet client code to me..

2007-02-10 Thread Jia Lu
Hello I have a program that can telnet to a host. But I cannot understand from [for c in data] part, can anyone explain it to me? Thank you very much. [CODE] import sys, posix, time from socket import * BUFSIZE = 1024 # Telnet protocol characters IAC = chr(255) # Interpret as command

Re: Regular Expressions

2007-02-10 Thread Shawn Milo
On 10 Feb 2007 18:58:51 -0800, gregarican [EMAIL PROTECTED] wrote: On Feb 10, 6:26 pm, Geoff Hill [EMAIL PROTECTED] wrote: What's the way to go about learning Python's regular expressions? I feel like such an idiot - being so strong in a programming language but knowing nothing about RE.

Re: Regular Expressions

2007-02-10 Thread Geoff Hill
Thanks. O'Reilly is the way I learned Python, and I'm suprised that I didn't think of a book by them earlier. -- http://mail.python.org/mailman/listinfo/python-list

Re: unique elements from list of lists

2007-02-10 Thread azrael
no heart feelings. i was just throwing ideas. no time to testing it. On Feb 9, 3:55 pm, Tekkaman [EMAIL PROTECTED] wrote: Thanks everybody!Azrael: your suggestions involve python-level membership testing and dummy list construction just like my uniter3 example, so I'm afraid they would not

Re: Best Free and Open Source Python IDE

2007-02-10 Thread Kirk Sluder
In article [EMAIL PROTECTED], Stef Mientki [EMAIL PROTECTED] wrote: Which brings me to some other questions on waste: - isn't it a pitty so many people are involved in writing another editor / IDE ? I don't know about that. Most of the new editor development appears to involve one of the

Re: pygame and python 2.5

2007-02-10 Thread [EMAIL PROTECTED]
On Feb 10, 4:07?pm, Ben Sizer [EMAIL PROTECTED] wrote: On Feb 10, 6:31 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Feb 9, 11:39?am, Ben Sizer [EMAIL PROTECTED] wrote: Hopefully in the future, some of those convoluted steps will be fixed, but that requires someone putting in the

favourite editor

2007-02-10 Thread azrael
Since i'm new on this forum, and first time meeting a python comunity, i wanted to ask you for your python editors. Im looking for some good python editor, with integrated run function, without having to set it up manualy like komodo. I found the pyscripter, and it has all i need, but it's

os.tmpfile() - permission denied (Win XP)

2007-02-10 Thread John Machin
Hi, Here's what's happening: 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 os | os.tmpfile() Traceback (most recent call last): File stdin, line 1, in module OSError: [Errno 13]

Re: pygame and python 2.5

2007-02-10 Thread skip
However, the difference between the open-source people and Microsoft is the the open-source people aren't being paid by you for the use of their product, so they're not obligated in any way to help you. mensanator This argument has become tiresome. The Python community

Re: Can anyone explain a part of a telnet client code to me..

2007-02-10 Thread Gabriel Genellina
En Sun, 11 Feb 2007 00:48:57 -0300, Jia Lu [EMAIL PROTECTED] escribió: I have a program that can telnet to a host. But I cannot understand from [for c in data] part, can anyone explain it to me? data is the received string. The for statement is used to iterate over a sequence; a string is

Re: os.tmpfile() - permission denied (Win XP)

2007-02-10 Thread Gabriel Genellina
En Sun, 11 Feb 2007 01:57:52 -0300, John Machin [EMAIL PROTECTED] escribió: | os.tmpfile() Traceback (most recent call last): File stdin, line 1, in module OSError: [Errno 13] Permission denied 1. Before I start checking what permissions who has to do what to which, what directory is

Re: os.tmpfile() - permission denied (Win XP)

2007-02-10 Thread John Machin
On Feb 11, 4:15 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Sun, 11 Feb 2007 01:57:52 -0300, John Machin [EMAIL PROTECTED] escribió: | os.tmpfile() Traceback (most recent call last): File stdin, line 1, in module OSError: [Errno 13] Permission denied 1. Before I start

Re: pygame and python 2.5

2007-02-10 Thread [EMAIL PROTECTED]
On Feb 10, 11:03�pm, [EMAIL PROTECTED] wrote: � � However, the difference between the open-source people and Microsoft � � is the the open-source people aren't being paid by you for the use of � � their product, so they're not obligated in any way to help you. � � mensanator This argument

Re: Retry:Question about optparse/OptionParser callback.

2007-02-10 Thread Steven Bethard
Steven W. Orr wrote: I'm writing a program that needs to process options. Due to the nature of the program with its large number of commandline options, I would like to write a callback to be set inside add_option. Something like this: parser.add_option(-b, action=callback,

Re: pygame and python 2.5

2007-02-10 Thread Hendrik van Rooyen
Steve Holden [EMAIL PROTECTED] Hendrik van Rooyen wrote: [EMAIL PROTECTED] wrote: Ben Sizer [EMAIL PROTECTED] wrote: Ben Python extensions written in C require recompilation for each new Ben version of Python, due to Python limitations. Can you propose a means to

Re: os.tmpfile() - permission denied (Win XP)

2007-02-10 Thread John Machin
On Feb 11, 4:33 pm, John Machin [EMAIL PROTECTED] wrote: On Feb 11, 4:15 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Sun, 11 Feb 2007 01:57:52 -0300, John Machin [EMAIL PROTECTED] escribió: | os.tmpfile() Traceback (most recent call last): File stdin, line 1, in module

Stereo 3D photography capture stereoscopic still and motion images

2007-02-10 Thread icester
http://www.tyrell-innovations-usa.com/shack3d/productinfo/jpsBrown/jpsBrownInfo.htm http://tyrell-innovations-usa.com/shack3d/ -- http://mail.python.org/mailman/listinfo/python-list

can't find a way to display and print pdf through python.

2007-02-10 Thread krishnakant Mane
hello all, I am stuck with a strange requirement. I need a library that can help me display a pdf file as a report and also want a way to print the same pdf file in a platform independent way. if that's not possible then I at least need the code for useing some library for connecting to acrobat

RE: can't find a way to display and print pdf through python.

2007-02-10 Thread Vishal Bhargava
Use Report Lab... Cheers, Vishal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of krishnakant Mane Sent: Saturday, February 10, 2007 10:46 PM To: python-list@python.org Subject: can't find a way to display and print pdf through python. hello all, I am

Re: can't find a way to display and print pdf through python.

2007-02-10 Thread krishnakant Mane
On 11/02/07, Vishal Bhargava [EMAIL PROTECTED] wrote: Use Report Lab... I mentioned in my first email that I am already using reportlab. but I can only generate pdf out of that. I want to display it on screen and I also will be giving a print button which should do the printing job. by the way I

Re: wxPython libraries never detected

2007-02-10 Thread Steve Holden
hg wrote: hg wrote: [EMAIL PROTECTED] wrote: On Feb 10, 1:07 pm, hg [EMAIL PROTECTED] wrote: By default, you need to have wx installed in the python site-package path / under Mandriva, I have wx 2.8 installed here: /usr/lib/python2.4/site-packages/wx-2.8-gtk2-ansi/ hg Ah, now I see.

Re: Regular Expressions

2007-02-10 Thread Steve Holden
Geoff Hill wrote: What's the way to go about learning Python's regular expressions? I feel like such an idiot - being so strong in a programming language but knowing nothing about RE. In fact that's a pretty smart stance. A quote attributed variously to Tim Peters and Jamie Zawinski

RE: can't find a way to display and print pdf through python.

2007-02-10 Thread Vishal Bhargava
Are you trying to do real time or post real time. -Vishal -Original Message- From: krishnakant Mane [mailto:[EMAIL PROTECTED] Sent: Saturday, February 10, 2007 10:50 PM To: Vishal Bhargava Cc: python-list@python.org Subject: Re: can't find a way to display and print pdf through python.

Re: HTML Parsing

2007-02-10 Thread Ayaz Ahmed Khan
mtuller typed: I have also tried Beautiful Soup, but had trouble understanding the documentation As Gabriel has suggested, spend a little more time going through the documentation of BeautifulSoup. It is pretty easy to grasp. I'll give you an example: I want to extract the text between the

Re: pygame and python 2.5

2007-02-10 Thread Steve Holden
Ben Sizer wrote: On Feb 10, 8:42 am, Steve Holden [EMAIL PROTECTED] wrote: Hendrik van Rooyen wrote: [EMAIL PROTECTED] wrote: Ben Sizer [EMAIL PROTECTED] wrote: Ben Python extensions written in C require recompilation for each new Ben version of Python, due to Python limitations.

Re: can't find a way to display and print pdf through python.

2007-02-10 Thread krishnakant Mane
On 11/02/07, Vishal Bhargava [EMAIL PROTECTED] wrote: Are you trying to do real time or post real time. -Vishal post real time. I want to first display the report on screen by default and the user at his choice will click the print button and the report will be printed. regards. Krishnakant. --

Re: pygame and python 2.5

2007-02-10 Thread Steve Holden
[EMAIL PROTECTED] wrote: On Feb 10, 4:07?pm, Ben Sizer [EMAIL PROTECTED] wrote: On Feb 10, 6:31 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Feb 9, 11:39?am, Ben Sizer [EMAIL PROTECTED] wrote: Hopefully in the future, some of those convoluted steps will be fixed, but that requires

Re: can't find a way to display and print pdf through python.

2007-02-10 Thread Geoff Hill
Are you trying to: a) Make the PDF file open in it's default application? b) Create a PDF-reader in Python? ...because your question is somewhat unclear. Report Lab has no PDF viewer. You would need a PDF/PostScript parser to do that and that's more of a job than I think you're looking

Re: pygame and python 2.5

2007-02-10 Thread Hendrik van Rooyen
Ben Sizer [EMAIL PROTECTED] wrote: On Feb 10, 8:42 am, Steve Holden [EMAIL PROTECTED] wrote: Hendrik van Rooyen wrote: [EMAIL PROTECTED] wrote: Ben Sizer [EMAIL PROTECTED] wrote: Ben Python extensions written in C require recompilation for each new Ben version of Python,

[ python-Feature Requests-1656675 ] Drop-Handler for Python files

2007-02-10 Thread SourceForge.net
Feature Requests item #1656675, was opened at 2007-02-10 12:36 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=355470aid=1656675group_id=5470 Please note that this message will contain a

[ python-Bugs-1653416 ] print f, Hello produces no error: normal?

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

[ python-Feature Requests-1656675 ] Drop-Handler for Python files

2007-02-10 Thread SourceForge.net
Feature Requests item #1656675, was opened at 2007-02-10 11:36 Message generated for change (Settings changed) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=355470aid=1656675group_id=5470 Please note that this message will contain a full copy of

[ python-Bugs-1656559 ] I think, I have found this bug on time.mktime()

2007-02-10 Thread SourceForge.net
Bugs item #1656559, was opened at 2007-02-10 03:41 Message generated for change (Comment added) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1656559group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Feature Requests-1654367 ] [PATCH] Debuggers need a way to change the locals of a frame

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

[ python-Bugs-1657034 ] 'Ok' key in options dialog does nothing

2007-02-10 Thread SourceForge.net
Bugs item #1657034, was opened at 2007-02-11 01:35 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1657034group_id=5470 Please note that this message will contain a full copy of

[ python-Bugs-1656581 ] tarfile.TarFile fileobject use needs clarification

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

<    1   2