Next meeting of the Hamburg Python User Group

2007-11-07 Thread Gerhard Häring
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, if you happen to be in Hamburg, Germany at November, 14th, and you'd like to meet fellow Pythonistas, you should come to Jarrestraße 46 at DDD design, who are generously hosting us again. We will start at 19:30 and this time we will have a

New book: Object-Oriented Programming in Python

2007-11-07 Thread Michael H. Goldwasser
We are pleased to announce the release of a new Python book. Object-Oriented Programming in Python by Michael H. Goldwasser and David Letscher Prentice Hall, 2008 (available as of 10/29/2007) This book is based on materials developed after switching our curriculum to the use of

[ANN] Release 0.66.1 of Task Coach

2007-11-07 Thread Frank Niessink
Hi, I'm happy to announce release 0.66.1 of Task Coach. This bug fix release addresses four bugs: * When changing the sort order in a tree viewer, keep collapsed items collapsed and expanded items expanded. * Sort categories alphabetically in task editor. * Double clicking a task in the tree

ANN: NumPy 1.0.4

2007-11-07 Thread Jarrod Millman
I'm pleased to announce the release of NumPy 1.0.4. NumPy is the fundamental package needed for scientific computing with Python. It contains: * a powerful N-dimensional array object * sophisticated (broadcasting) functions * basic linear algebra functions * basic Fourier transforms

Re: Drawing charts in Qt

2007-11-07 Thread Michel Albert
On Nov 6, 5:08 pm, David Boddie [EMAIL PROTECTED] wrote: On Tue Nov 6 15:46:07 CET 2007, Michel Albert wrote: [PyQwt and matplotlib] PyQwt looks much more interesting, but I have trouble installing it. On my machine it complains that sipconfig has no attribute '_pkg_config'. Is the

RE: Parallel Python environments..

2007-11-07 Thread Thorsten Kampe
* bruce (Tue, 6 Nov 2007 13:43:10 -0800) if i have python 2.4.3 installed, it gets placed in the python2.4 dir.. if i don't do anything different, and install python 2.4.2, it too will get placed in the python2.4 tree... which is not what i want. i'm running rhel4/5... So you're using rpm

Re: command-line arguments in IDLE

2007-11-07 Thread Ginger
it does have one in activepython Thanks and Regards, Ginger - Original Message - From: Russ P. [EMAIL PROTECTED] To: python-list@python.org Sent: Wednesday, November 07, 2007 8:56 AM Subject: command-line arguments in IDLE Is it possible to pass command-line arguments when running

Strange behavior of __get__ in a descriptor in IPython

2007-11-07 Thread Jakub Hegenbart
Hi, I'm studying the descriptor protocol and its usage from the following document: http://users.rcn.com/python/download/Descriptor.htm There is some sample code: http://users.rcn.com/python/download/Descriptor.htm#descriptor-example that behaves in a different way on my machine than the

Re: Retrieving all open applications ...

2007-11-07 Thread Ajay Deshpande
hi guys: well i still havent found a solution to this ... since i am using ubuntu 7.10, i cannot use the hammond modules ... -Ajay On 11/4/07, Ajay Deshpande [EMAIL PROTECTED] wrote: applications ... i need to retrieve all currently open applications ... thx for your help ... -Ajay On

Re: Strange behavior of __get__ in a descriptor in IPython

2007-11-07 Thread Diez B. Roggisch
Jakub Hegenbart wrote: Hi, I'm studying the descriptor protocol and its usage from the following document: http://users.rcn.com/python/download/Descriptor.htm There is some sample code: http://users.rcn.com/python/download/Descriptor.htm#descriptor-example that behaves in a

Re: Looking for a good Python environment

2007-11-07 Thread [EMAIL PROTECTED]
On Nov 7, 3:51 am, Jens [EMAIL PROTECTED] wrote: Just wrote a mini review of three Python code editors on my blog... http://pyminer.blogspot.com/2007/11/python-code-editors.html I use PSPad or Notepad++ for quick editing, and Komodo Edit 4.2 for longer sessions. Komodo Edit is the only one

Re: LaTeX tutorial updated

2007-11-07 Thread Hendrik Maryns
[EMAIL PROTECTED] schreef: On Nov 6, 12:30 pm, Nicola Talbot [EMAIL PROTECTED] wrote: Hi, I've updated my Using LaTeX to write a PhD thesis tutorial. Both PDF and HTML versions can be reached viahttp://theoval.cmp.uea.ac.uk/~nlct/latex/ I have added/deleted sections, so if you have any

Re: Confused about closures and scoping rules

2007-11-07 Thread Bruno Desthuilliers
Michele Simionato a écrit : On Nov 6, 7:37 pm, Chris Mellon [EMAIL PROTECTED] wrote: On Nov 6, 2007 6:23 PM, Jean-Paul Calderone [EMAIL PROTECTED] wrote: Lots of people ask about this. The behavior you observed is the expected (by the implementors, anyway) behavior. Are there languages where

a revolutionary principle please read that

2007-11-07 Thread No1
With Agloco you can earn in future properly money, the principle is new! earlier you beginst so much the better are your chances. the great in it is: in every person you mediate you earn and even from those them again your provided mediate, this about 5 levels. The principle is easy and efficient.

Re: Looking for a good Python environment

2007-11-07 Thread Fabio Zadrozny
On 11/6/07, Jens [EMAIL PROTECTED] wrote: Just wrote a mini review of three Python code editors on my blog... http://pyminer.blogspot.com/2007/11/python-code-editors.html I use PSPad or Notepad++ for quick editing, and Komodo Edit 4.2 for longer sessions. Komodo Edit is the only one with

Re: Looking for a good Python environment

2007-11-07 Thread jwelby
On Nov 6, 10:56 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hey, I'm looking for a good Python environment. That is, at least an editor and a debugger, and it should run on Windows. Does anyone have any idea? I currently use Python Scripter as a lightweight editor for Windows. For project

Re: Looking for a good Python environment

2007-11-07 Thread [EMAIL PROTECTED]
On Nov 7, 1:15 pm, jwelby [EMAIL PROTECTED] wrote: On Nov 6, 10:56 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hey, I'm looking for a good Python environment. That is, at least an editor and a debugger, and it should run on Windows. Does anyone have any idea? I currently use Python

Re: regular expressions

2007-11-07 Thread J. Cliff Dyer
Paul McGuire wrote: On Nov 6, 11:07 am, J. Clifford Dyer [EMAIL PROTECTED] wrote: On Tue, Nov 06, 2007 at 08:49:33AM -0800, [EMAIL PROTECTED] wrote regarding regular expressions: hi i am looking for pattern in regular expreesion that replaces anything starting with and betweeen

Re: Mikhail Khodorkovsky was a Rothschild frontman and he obtained his initial capital and manipulation knowledge from there. Re: 911 operation by evil JEWS and Mossad

2007-11-07 Thread thermate
On Nov 7, 9:32 am, Matimus [EMAIL PROTECTED] wrote: On Nov 7, 8:35 am, [EMAIL PROTECTED] wrote: Google is a half russian jew company. We have had to make new accounts as a result of it sending us a cookie which cripples postings. The jew agents involved in this process are the ones that

Deep comparison of sets?

2007-11-07 Thread Daryl Spitzer
The second assertion in the following code fails: class Value(object): def __init__(self, value): super(Value, self).__init__() self.value = value def __cmp__(self, other): if self.value other.value: return 1 if self.value other.value: return -1

Re: os.popen does not seem to catch stdout

2007-11-07 Thread [EMAIL PROTECTED]
On Nov 7, 11:31 am, [EMAIL PROTECTED] wrote: On Nov 7, 7:58 am, [EMAIL PROTECTED] wrote: Hi there, I've been banging my head against this for a day, and I can't take it anymore. It's probably a stupid error, but I don't see where. I'm trying to use Python to call an external

Re: Strange behavior of __get__ in a descriptor in IPython

2007-11-07 Thread Fernando Perez
Jakub Hegenbart wrote: Hi, I'm studying the descriptor protocol and its usage from the following document: http://users.rcn.com/python/download/Descriptor.htm There is some sample code: http://users.rcn.com/python/download/Descriptor.htm#descriptor-example that behaves in a

regular expression syntax the same in Python, Perl and grep?

2007-11-07 Thread [EMAIL PROTECTED]
How similar is Python's re module (regular expressions) compared to Perl's and grep's regular expression syntaxes? I really hope regular expression syntax is sufficiently standardized that we don't have to learn new dialects everytime we move from one language or shell command to another. chris

Re: Need help writing coroutine

2007-11-07 Thread Paul Hankin
Matthew Wilson wrote: I'm working on two coroutines -- one iterates through a huge stream, and emits chunks in pieces. The other routine takes each chunk, then scores it as good or bad and passes that score back to the original routine, so it can make a copy of the stream with the score

Re: Looking for a good Python environment

2007-11-07 Thread Paul Rubin
Colin J. Williams [EMAIL PROTECTED] writes: Could you elaborate on lightweight please? I find PyScripter to be a powerful editor/debugger combination. What functionality does Eclipse have that PyScripter does not? While we're at it, do any of these debuggers implement a good way to debug

Mikhail Khodorkovsky was a Rothschild frontman and he obtained his initial capital and manipulation knowledge from there. Re: 911 operation by evil JEWS and Mossad

2007-11-07 Thread zionist . news2
Google is a half russian jew company. We have had to make new accounts as a result of it sending us a cookie which cripples postings. The jew agents involved in this process are the ones that make deflecting replies. Their operating procedure: Deflect, when you cannot defend. Therefore, we ignore

Re: os.popen does not seem to catch stdout

2007-11-07 Thread kyosohma
On Nov 7, 7:58 am, [EMAIL PROTECTED] wrote: Hi there, I've been banging my head against this for a day, and I can't take it anymore. It's probably a stupid error, but I don't see where. I'm trying to use Python to call an external program, and then catch and process the output of that

Re: subprocess chokes on spaces in path

2007-11-07 Thread BartlebyScrivener
On Nov 6, 2:48 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: Use a list of arguments [antiword, word_doc] and let subprocess handle the spaces the right way. Got it working. Thank you both. p = subprocess.Popen([antiword, word_doc], stdout=subprocess.PIPE) doc_text = p.stdout.read() rd

Re: What colour model does the image use in PIL

2007-11-07 Thread Hrvoje Niksic
Johny [EMAIL PROTECTED] writes: I would need to apply a threshold value to the image, where everything above a certain brightness level becomes white, and everything below the level becomes black. How can I do that with PIL? I think you're supposed to use the point method, but I don't have

Re: finding bluetooth serial port

2007-11-07 Thread Grant Edwards
On 2007-11-07, Paul Sijben [EMAIL PROTECTED] wrote: To automate/ease configuration in my app I am trying to find out to which serial port a certain bluetooth device is connected. With pybluez I can find out which bluetooth devices I have, but it will not tell me the serial port they are

Re: Looking for a good Python environment

2007-11-07 Thread Gerhard Häring
[EMAIL PROTECTED] wrote: Hey, I'm looking for a good Python environment. That is, at least an editor and a debugger, and it should run on Windows. Does anyone have any idea? I like ERIC. You can get it at http://www.die-offenbachs.de/eric/eric4-download.html Or just download and install

Re: manually cutting a picture

2007-11-07 Thread Joseph king
Thanks that is a pretty good idea one thought that i came up with (honestly the only one that made sense) was to give the user a type of cookie cutter approach. where they would be presented with a selection of premade piece's that could divide the picture that they chose to how ever many

Re: Looking for a good Python environment

2007-11-07 Thread Colin J. Williams
jwelby wrote: On Nov 6, 10:56 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hey, I'm looking for a good Python environment. That is, at least an editor and a debugger, and it should run on Windows. Does anyone have any idea? I currently use Python Scripter as a lightweight editor for

Re: How to use list as key of dictionary?

2007-11-07 Thread Wildemar Wildenburger
Duncan Booth wrote: Better, just don't try passing it a recursive data structure. a = [1, 2, 3] a[1] = a a [1, [...], 3] tupleize(a) Traceback (most recent call last): File pyshell#5, line 1, in module tupleize(a) File pyshell#1, line 5, in tupleize return

Re: a simple tcp server sample

2007-11-07 Thread Robert Hicks
On Nov 7, 1:54 pm, Tzury Bar Yochay [EMAIL PROTECTED] wrote: hi, the following sample (from docs.python.org) is a server that can actually serve only single client at a time. In my case I need a simple server that can serve more than one client. I couldn't find an example on how to do that

a simple tcp server sample

2007-11-07 Thread Tzury Bar Yochay
hi, the following sample (from docs.python.org) is a server that can actually serve only single client at a time. In my case I need a simple server that can serve more than one client. I couldn't find an example on how to do that and be glad to get a hint. Thanks in advance import socket HOST

Re: LaTeX tutorial updated [OT]

2007-11-07 Thread Caboose
that looks like a great latex resource. maybe you should post it to latex users groups. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is pyparsing really a recursive descent parser?

2007-11-07 Thread Just Another Victim of the Ambient Morality
Neil Cerutti [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 2007-11-05, Just Another Victim of the Ambient Morality [EMAIL PROTECTED] wrote: Kay Schluehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm not sure one needs to start again with a naive approach just

Need help writing coroutine

2007-11-07 Thread Matthew Wilson
I'm working on two coroutines -- one iterates through a huge stream, and emits chunks in pieces. The other routine takes each chunk, then scores it as good or bad and passes that score back to the original routine, so it can make a copy of the stream with the score appended on. I have the code

Re: a simple tcp server sample

2007-11-07 Thread Jean-Paul Calderone
On Wed, 07 Nov 2007 18:54:39 -, Tzury Bar Yochay [EMAIL PROTECTED] wrote: hi, the following sample (from docs.python.org) is a server that can actually serve only single client at a time. In my case I need a simple server that can serve more than one client. I couldn't find an example on how

Re: python tutorial on a single html page?

2007-11-07 Thread Tony Nelson
In article [EMAIL PROTECTED], BartlebyScrivener [EMAIL PROTECTED] wrote: Is the main Python tutorial posted on single searchable page somewhere? As opposed to browsing the index and clicking NEXT etc. For completeness (though a bit late), I'll mention that Google can search a group of web

911 operation by evil JEWS and Mossad

2007-11-07 Thread zionist . jews
911 carried out by evil jews and mossad http://www.guba.com/watch/2000991770 911 truckload of Explosives on the George Washington Bridge http://www.youtube.com/watch?v=J520P-MD9a0 Benjamin Freedman's SEMINAL TESTIMONIAL SPEECH http://video.google.com/videoplay?docid=3552214685532803163 Benjamin

os.popen does not seem to catch stdout

2007-11-07 Thread zane . selvans
Hi there, I've been banging my head against this for a day, and I can't take it anymore. It's probably a stupid error, but I don't see where. I'm trying to use Python to call an external program, and then catch and process the output of that program. Seems simple enough. The command I'm

Re: regular expression syntax the same in Python, Perl and grep?

2007-11-07 Thread Martin Marcher
2007/11/7, Chris Mellon [EMAIL PROTECTED]: On Nov 7, 2007 12:11 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How similar is Python's re module (regular expressions) compared to Perl's and grep's regular expression syntaxes? Somewhat. I really hope regular expression syntax is

Re: Deep comparison of sets?

2007-11-07 Thread Marc 'BlackJack' Rintsch
On Wed, 07 Nov 2007 10:22:27 -0800, Daryl Spitzer wrote: def __cmp__(self, other): if self.value other.value: return 1 if self.value other.value: return -1 return 0 This can be written a bit shorter:: def __cmp__(self, other): return cmp(self.value,

Re: regular expression syntax the same in Python, Perl and grep?

2007-11-07 Thread Chris Mellon
On Nov 7, 2007 12:11 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How similar is Python's re module (regular expressions) compared to Perl's and grep's regular expression syntaxes? Somewhat. I really hope regular expression syntax is sufficiently standardized that we don't have to learn

command-line arguments in IDLE

2007-11-07 Thread Russ P.
Is it possible to pass command-line arguments when running a program in IDLE? The Run menu does not seem to provide that option. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Retrieving all open applications ...

2007-11-07 Thread Gabriel Genellina
En Wed, 07 Nov 2007 06:36:49 -0300, Ajay Deshpande [EMAIL PROTECTED] escribió: well i still havent found a solution to this ... since i am using ubuntu 7.10, i cannot use the hammond modules ... As you said list of window handles I thought you were working on Windows. Try with: man ps Use

Re: Deep comparison of sets?

2007-11-07 Thread Diez B. Roggisch
Daryl Spitzer schrieb: The second assertion in the following code fails: class Value(object): def __init__(self, value): super(Value, self).__init__() self.value = value def __cmp__(self, other): if self.value other.value: return 1 if self.value

Re: LaTeX tutorial updated [OT]

2007-11-07 Thread John DeRosa
On Wed, 07 Nov 2007 16:23:56 +0900, Byung-Hee HWANG [EMAIL PROTECTED] wrote: On Wed, 2007-11-07 at 00:10 +, [EMAIL PROTECTED] wrote: On Nov 6, 12:30 pm, Nicola Talbot [EMAIL PROTECTED] wrote: Hi, I've updated my Using LaTeX to write a PhD thesis tutorial. Both PDF My understanding is

Re: Help for Otsu implementation from C

2007-11-07 Thread Johny
On Sep 22, 6:24 pm, azrael [EMAIL PROTECTED] wrote: Thanks Man, I did it. It works fantastic. Can you please posted the working Python implementation of the Otsu filter . Thanks L. -- http://mail.python.org/mailman/listinfo/python-list

Re: global name is not defined

2007-11-07 Thread barronmo
Thanks, seems to be fixed with importing MySQLdb, menus, EMR_main, etc in the Name_find module. Is there a better way to do things? I thought I was avoiding using global variables by putting the shared ones in their own module. Thanks for the help. Mike --

Re: What colour model does the image use in PIL

2007-11-07 Thread Hrvoje Niksic
Johny [EMAIL PROTECTED] writes: I use PIL and with it im.getpixel((x,y)) to find out the colour of a pixel. But how can I find out in which color model the the return value is? im.mode gives you a string such as 'RGBA' or 'CMYK'. im.getbands() returns a tuple such as ('R', 'G', 'B', 'A').

Re: a simple tcp server sample

2007-11-07 Thread Erik Jones
On Nov 7, 2007, at 12:54 PM, Tzury Bar Yochay wrote: hi, the following sample (from docs.python.org) is a server that can actually serve only single client at a time. In my case I need a simple server that can serve more than one client. I couldn't find an example on how to do that and be

Re: Populating huge data structures from disk

2007-11-07 Thread Rhamphoryncus
On Nov 6, 2:42 pm, Michael Bacarella [EMAIL PROTECTED] wrote: Note that you're not doing the same thing at all. You're pre-allocating the array in the C code, but not in Python (and I don't think you can). Is there some reason you're growing a 8 gig array 8 bytes at a time? They spend

Re: os.popen does not seem to catch stdout

2007-11-07 Thread Marc 'BlackJack' Rintsch
On Wed, 07 Nov 2007 18:35:51 +, kyosohma wrote: I've never had to put the command into a list or tuple...but you're welcome to try it that way. You don't *have* to but if you do the module takes care of quoting the arguments if necessary. Ciao, Marc 'BlackJack' Rintsch --

What colour model does the image use in PIL

2007-11-07 Thread Johny
I use PIL and with it im.getpixel((x,y)) to find out the colour of a pixel. But how can I find out in which color model the the return value is? For example for png picture format im.getpixel((20,50)) gives the result 60. What does the value mean? Is it possible to find out the RGB model

Re: manually cutting a picture

2007-11-07 Thread Cameron Walsh
Amit Khemka wrote: Cut image by m X m grid (bigger the m, the more varied shapes you would be able to generate), this will give you m*m square pieces. With each piece store a vector which represents the polygon (say by storing co-ordinates of the corners). Now visualize this set of pieces as

Re: a simple tcp server sample

2007-11-07 Thread Paul Rubin
Tzury Bar Yochay [EMAIL PROTECTED] writes: In my case I need a simple server that can serve more than one client. I couldn't find an example on how to do that and be glad to get a hint. See the SocketServer module, both the documentation and the source code. --

Re: List to Tuple and Tuple to List?

2007-11-07 Thread Wildemar Wildenburger
Davy wrote: Hi all, I am curious about whether there is function to fransform pure List to pure Tuple and pure Tuple to pure List? Isn't that just the same topic as in your other thread? I think it is somewhat unfriendly that you ignore that one. It makes me feel that you see this group as

manually cutting a picture

2007-11-07 Thread Joseph king
well so far the problem for me is not the linking i have a kinda good code for that. here is a little snippet of the idea that i used on an old version that split the picture without input from the user. #this code defines that the edges have a place on the grid. def join_point(self, type):

Re: What colour model does the image use in PIL

2007-11-07 Thread Johny
On Nov 7, 2:53 pm, Hrvoje Niksic [EMAIL PROTECTED] wrote: Johny [EMAIL PROTECTED] writes: I use PIL and with it im.getpixel((x,y)) to find out the colour of a pixel. But how can I find out in which color model the the return value is? im.mode gives you a string such as 'RGBA' or 'CMYK'.

Re: Confused about closures and scoping rules

2007-11-07 Thread Rhamphoryncus
On Nov 6, 5:37 pm, Chris Mellon [EMAIL PROTECTED] wrote: On Nov 6, 2007 6:23 PM, Jean-Paul Calderone [EMAIL PROTECTED] wrote: On Tue, 06 Nov 2007 17:07:47 -0700, Fernando Perez [EMAIL PROTECTED] wrote: [snip] This struck me as counterintuitive, but I couldn't find anything in the

Re: Is pyparsing really a recursive descent parser?

2007-11-07 Thread Just Another Victim of the Ambient Morality
Neil Cerutti [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 2007-11-07, Just Another Victim of the Ambient Morality [EMAIL PROTECTED] wrote: Neil Cerutti [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You might be interested in the Early parsing algorithm. It is

Re: LaTeX tutorial updated [OT]

2007-11-07 Thread Wayne Brehaut
On Wed, 07 Nov 2007 09:00:12 -0800, John DeRosa [EMAIL PROTECTED] wrote: On Wed, 07 Nov 2007 16:23:56 +0900, Byung-Hee HWANG [EMAIL PROTECTED] wrote: On Wed, 2007-11-07 at 00:10 +, [EMAIL PROTECTED] wrote: On Nov 6, 12:30 pm, Nicola Talbot [EMAIL PROTECTED] wrote: Hi, I've updated my

Re: How can i find the form name without nr=0

2007-11-07 Thread John J. Lee
alex23 [EMAIL PROTECTED] writes: On Nov 6, 8:56 am, scripteaze [EMAIL PROTECTED] wrote: Is it possible then to have a form with no name and if so, how can i access this form Hey scripteaze, I'm not sure about mechanize, but you might have more success using another one of the author's

Re: Looking for a good Python environment

2007-11-07 Thread VSmirk
On Nov 7, 9:16 am, Gerhard Häring [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hey, I'm looking for a good Python environment. That is, at least an editor and a debugger, and it should run on Windows. Does anyone have any idea? I like ERIC. You can get it

Re: Mikhail Khodorkovsky was a Rothschild frontman and he obtained his initial capital and manipulation knowledge from there. Re: 911 operation by evil JEWS and Mossad

2007-11-07 Thread Matimus
On Nov 7, 8:35 am, [EMAIL PROTECTED] wrote: Google is a half russian jew company. We have had to make new accounts as a result of it sending us a cookie which cripples postings. The jew agents involved in this process are the ones that make deflecting replies. Their operating procedure:

Re: How to use list as key of dictionary?

2007-11-07 Thread Wildemar Wildenburger
Duncan Booth wrote: Wildemar Wildenburger [EMAIL PROTECTED] wrote: maybe something like this could help: def tupleize(non_tuple): try: return tuple(tupleize(thing) for thing in non_tuple) except TypeError: # non_tuple is not iterable return non_tuple

pydoc - generating HTML docs from string input

2007-11-07 Thread [EMAIL PROTECTED]
Has anyone ever tried mucking with pydoc to the point where you can get it to give you output from a string input? For example I'd like to give it a whole module to generate documentation for but all within a string: #little sample module_code=''' Module docstring def func1(): some

Re: os.popen does not seem to catch stdout

2007-11-07 Thread kyosohma
On Nov 7, 12:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Nov 7, 11:31 am, [EMAIL PROTECTED] wrote: On Nov 7, 7:58 am, [EMAIL PROTECTED] wrote: Hi there, I've been banging my head against this for a day, and I can't take it anymore. It's probably a stupid error, but I

os.EX_USAGE and friends not available in Windows?

2007-11-07 Thread Rush Manbert
I'm writing scripts that run on Mac OS X and Windows. For automated testing purposes, I wanted to standardize my exit codes, so discovered that the Unix sysexit codes were available from the posix module as os.EX_*. I changed things around on the Mac, then tested on Windows and the constants

Re: Is pyparsing really a recursive descent parser?

2007-11-07 Thread Neil Cerutti
On 2007-11-07, Just Another Victim of the Ambient Morality [EMAIL PROTECTED] wrote: Neil Cerutti [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You might be interested in the Early parsing algorithm. It is more efficient than the naive approach used in your prototype, and still

Re: Is pyparsing really a recursive descent parser?

2007-11-07 Thread Chris Mellon
On Nov 7, 2007 3:15 PM, Just Another Victim of the Ambient Morality [EMAIL PROTECTED] wrote: In short, it hasn't really evovled into a user-friendly package yet. Thank you. How is it that I seem to be the only one in the market for a correct parser? Earley has a runtine of O(n^3)

Re: pydoc - generating HTML docs from string input

2007-11-07 Thread Laszlo Nagy
[EMAIL PROTECTED] wrote: Has anyone ever tried mucking with pydoc to the point where you can get it to give you output from a string input? For example I'd like to give it a whole module to generate documentation for but all within a string: #little sample module_code=''' Module

PIL Problem

2007-11-07 Thread tonylabarbara
Hi; I´ve installed Zope 2.10.5 on top of Python 2.4.2 (not optimal, but it will work, according to the build instructions). I installed Plone 3.0.2 and I get errors when I crank up Zope, all related to a non-existent PIL. So I d/l/d the latest PIL, plopped it in my Extensions dir, ran this:

Re: command-line arguments in IDLE

2007-11-07 Thread [EMAIL PROTECTED]
On Nov 7, 6:27 am, Russ P. [EMAIL PROTECTED] wrote: Is it possible to pass command-line arguments when running a program in IDLE? The Run menu does not seem to provide that option. Thanks. Can't you just fake the command line args by setting sys.argv? This isn't too sophisticated, but it

Re: Questions on Using Python to Teach Data Structures and Algorithms

2007-11-07 Thread Wayne Brehaut
On Thu, 28 Sep 2006 17:23:25 +0200, Ramon Diaz-Uriarte [EMAIL PROTECTED] wrote: Going back to the original question, a related question: does anybody know why there are so few books on data structures and algorithms that use Python? I remember that, at least ~ 12 years ago there were many (and

Re: Is pyparsing really a recursive descent parser?

2007-11-07 Thread Steven D'Aprano
On Wed, 07 Nov 2007 21:15:50 +, Just Another Victim of the Ambient Morality wrote: Why can't I find a pyparsing-esque library with this implementation? I'm tempted to roll my own except that it's a fairly complicated algorithm and I don't really understand how it's any more efficient than

Re: command-line arguments in IDLE

2007-11-07 Thread Tal Einat
Russ P. wrote: Is it possible to pass command-line arguments when running a program in IDLE? The Run menu does not seem to provide that option. Thanks. thunderfoot's workaround should work well, but requires changing the script. If you want IDLE environment, but don't mind running IDLE from

Re: Retrieving all open applications ...

2007-11-07 Thread Paul Boddie
On 7 Nov, 21:33, Gabriel Genellina [EMAIL PROTECTED] wrote: En Wed, 07 Nov 2007 06:36:49 -0300, Ajay Deshpande [EMAIL PROTECTED] escribió: well i still havent found a solution to this ... since i am using ubuntu 7.10, i cannot use the hammond modules ... As you said list of window handles

Re: Questions on Using Python to Teach Data Structures and Algorithms

2007-11-07 Thread Wayne Brehaut
On Thu, 28 Sep 2006 17:32:06 +0200, Fredrik Lundh [EMAIL PROTECTED] wrote: Ramon Diaz-Uriarte wrote: Going back to the original question, a related question: does anybody know why there are so few books on data structures and algorithms that use Python? Probably because Python has better

Re: Is pyparsing really a recursive descent parser?

2007-11-07 Thread Just Another Victim of the Ambient Morality
Chris Mellon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Nov 7, 2007 3:15 PM, Just Another Victim of the Ambient Morality [EMAIL PROTECTED] wrote: In short, it hasn't really evovled into a user-friendly package yet. Thank you. How is it that I seem to be the

Re: Is pyparsing really a recursive descent parser?

2007-11-07 Thread Just Another Victim of the Ambient Morality
Steven D'Aprano [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 07 Nov 2007 21:15:50 +, Just Another Victim of the Ambient Morality wrote: Why can't I find a pyparsing-esque library with this implementation? I'm tempted to roll my own except that it's a fairly

Re: pydoc - generating HTML docs from string input

2007-11-07 Thread [EMAIL PROTECTED]
On Nov 7, 4:47 pm, Laszlo Nagy [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Has anyone ever tried mucking with pydoc to the point where you can get it to give you output from a string input? For example I'd like to give it a whole module to generate documentation for but all within

Re: Is pyparsing really a recursive descent parser?

2007-11-07 Thread Chris Mellon
On Nov 7, 2007 5:15 PM, Just Another Victim of the Ambient Morality [EMAIL PROTECTED] wrote: Chris Mellon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Nov 7, 2007 3:15 PM, Just Another Victim of the Ambient Morality [EMAIL PROTECTED] wrote: In short, it hasn't really

pydoc - how to generate documentation for an entire package?

2007-11-07 Thread Jens
I have a project/package for which I want to generate documentation using pydoc. My problem is that when I type pydoc.py -w MyPackage it only generates documentation for the package - no modules, classes or methods or sub-packages. Just a single HTML file called MyPackage.html That's strange -

Re: a simple tcp server sample

2007-11-07 Thread Tzury Bar Yochay
Even simpler, use Twisted: I am afraid Twisted is not the right choice in my case. I am looking for smaller, simpler and minimal server sample. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is pyparsing really a recursive descent parser?

2007-11-07 Thread Just Another Victim of the Ambient Morality
Chris Mellon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Nov 7, 2007 5:15 PM, Just Another Victim of the Ambient Morality [EMAIL PROTECTED] wrote: Chris Mellon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Nov 7, 2007 3:15 PM, Just Another Victim of the

Re: How can i find the form name without nr=0

2007-11-07 Thread scripteaze
On Nov 7, 1:35 pm, [EMAIL PROTECTED] (John J. Lee) wrote: alex23 [EMAIL PROTECTED] writes: On Nov 6, 8:56 am, scripteaze [EMAIL PROTECTED] wrote: Is it possible then to have a form with no name and if so, how can i access this form Hey scripteaze, I'm not sure about mechanize, but you

911 operation by evil JEWS and Mossad

2007-11-07 Thread zionist . news
911 carried out by evil jews and mossad http://www.guba.com/watch/2000991770 911 truckload of Explosives on the George Washington Bridge http://www.youtube.com/watch?v=J520P-MD9a0 Benjamin Freedman's SEMINAL TESTIMONIAL SPEECH http://video.google.com/videoplay?docid=3552214685532803163 Benjamin

Source insight support files

2007-11-07 Thread Jiwon Seo
Is there anyone who uses source insight for python source code editing/browsing? It seems like Tim used to use it ( http://mail.python.org/pipermail/python-list/2001-May/082137.html )..., but I'm not sure if he still uses it. Anyway, if there's anyone who uses it and has a customized support

Re: a simple tcp server sample

2007-11-07 Thread Tzury Bar Yochay
See the SocketServer module, both the documentation and the source code. I firstly looked at this module and its __doc__, yet I still need an 'hello world' sample. and couldn't get it straight how can I write my own hello world sample with SocketServer objects. --

Using python as primary language

2007-11-07 Thread Michel Albert
In our company we are looking for one language to be used as default language. So far Python looks like a good choice (slacking behind Java). A few requirements that the language should be able cope with are: * Database access to Sybase. This seems to be available for python, but the

Re: Confused about closures and scoping rules

2007-11-07 Thread Jakub Hegenbart
On Wed, 07 Nov 2007 01:37:00 +0100, Chris Mellon [EMAIL PROTECTED] wrote: Are there languages where closures *don't* behave like this? A closure that used a copy of the state rather than the actual state itself doesn't seem as useful. For references sake, JavaScript (the only language that a)

Re: Is pyparsing really a recursive descent parser?

2007-11-07 Thread Kay Schluehr
What do you mean by disambiguate? Do you mean disambiguate the grammar? One of the conditions of the problem is that you have no control over the grammar, so that's really not an option. Also, an implicit condition of solving a problem is that the problem be... solved, so not accepting

help parsing ipv6 addresses and subnets

2007-11-07 Thread Prabhu Gurumurthy
Hello list, I would like to parse IPv6 addresses and subnet using re module in python. I am able to either parse the ipv6 address or ipv6 network but not both using single line. any help appreciated. BTW is there a metacharacter for hex digits. Thanks Prabhu -

Re: a simple tcp server sample

2007-11-07 Thread Tzury Bar Yochay
here is its: # a simple tcp server import SocketServer class EchoRequestHandler(SocketServer.BaseRequestHandler ): def setup(self): print self.client_address, 'connected!' self.request.send('hi ' + str(self.client_address) + '\n') def handle(self): while 1:

An important message to all jobseekers ,and internet users

2007-11-07 Thread jobmasters
hi friends An important message to all jobseekers ,and internet users Hi, this is your friend , administrator -india either you are fresher or experienced, searching for any job, any location in India. [job guarantee for your challenging career.] Do this two things 1] Post your resume on

easy 3D graphics for rendering geometry?

2007-11-07 Thread gsal
What would be the easiest way to go about offering 3D graphics for the purpose of rendering geometry? Suppose engineers (my co-workes) have to design some enclosure, nozzle, bracket, or whatever physical part/component, I would like to write a program where they can at least see the resulting

  1   2   >