[ANN] Release 0.42 of Task Coach

2005-07-18 Thread Frank Niessink
Hi all, Hi all, I'm pleased to announce release 0.42 of Task Coach. New in this release: Bugs fixed: * Double clicking a task with children in the tree view would open the edit dialog and expand or collapse the task as well. Fixed to not collapse or expand the task when double clicking it. *

Roundup Issue Tracker release 0.8.4

2005-07-18 Thread Richard Jones
Roundup is a simple-to-use and -install issue-tracking system with command-line, web and e-mail interfaces. It is based on the winning design from Ka-Ping Yee in the Software Carpentry Track design competition. This 0.8.4 release fixes some bugs: Fixed: - extra CRs in CSV export files on

Sydney Python Meetup July 21: Python, Perl, and Cold Beverages

2005-07-18 Thread Alan Green
Date: Thursday July 21 Time: 6:00pm-8:30pm, with drinks and food during and after. Topics: Graham Dumpleton on The Vampire mod_python extension Paul Fenwick So you want to start a business? Place: James Squires Brewhouse 2 The Promenade, King St Wharf

Re: Who uses input()? [was Re: question on input]

2005-07-18 Thread Terry Reedy
Nathan Pinno [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I use input() all the time. I know many people say it ain't safe, but whose going to use it to crash their own comp? Only an insane person would, This is usage Guido intended it for, not for production apps distributed

Re: Ordering Products

2005-07-18 Thread Bernhard Holzmayer
Kay Schluehr wrote: Now lets drop the assumption that a and b commute. More general: let be M a set of expressions and X a subset of M where each element of X commutes with each element of M: how can a product with factors in M be evaluated/simplified under the condition of additional

Re: Efficiently Split A List of Tuples

2005-07-18 Thread Simon Dahlbacka
Oooh.. you make my eyes bleed. IMO that proposal is butt ugly (and looks like the C++.NET perversions.) -- http://mail.python.org/mailman/listinfo/python-list

Re: win32ui CreatePrintDialog

2005-07-18 Thread Eric Brunel
On Fri, 15 Jul 2005 18:08:35 -0400, Chris Lambacher [EMAIL PROTECTED] wrote: Hi, This question has come up a few times on the list with no one giving a public answer. How do you use CreatePrintDialog from win32ui? About a year ago someone posted that: dlg = win32ui.CreatePrintDialog(1538)

Java RMI-like services in Python

2005-07-18 Thread Maurice LING
Hi, I am wondering if Python has services or frameworks that does the same as Java RMI? What I am seeking is to do pseudo-clustering. That is, a server will contains a program to control what is needed for execution. This will be pretty much like process management. Call this controller,

Re: Django - Rails killer comes...

2005-07-18 Thread flab ba
Rails Killer is a rather high and mighty claim, and as such, it isn't unreasonable to ask for substantial evidence to back it up. Quoting directly from the web site, in the section Meet Django ...Django is well-suited for developing content-management system ... To me, this seems like it

Re: What is your favorite Python web framework?

2005-07-18 Thread laurent
hello, I follow somes projects that have a pythonic way to make web site. there's thats projects : http://www.cherrypy.org/ and http://subway.python-hosting.com/ subway aim to be like ruby on rails frameworks , simple and fast developpment. It uses cherrypy and other project like :

Returned mail: Data format error

2005-07-18 Thread online
Dear user of python.org, administration of python.org would like to let you know the following. Your account has been used to send a large amount of junk e-mail messages during the last week. We suspect that your computer was infected by a recent virus and now contains a trojaned proxy server.

Re: Efficiently Split A List of Tuples

2005-07-18 Thread Raymond Hettinger
[Ron Adam] Currently we can implicitly unpack a tuple or list by using an assignment. How is that any different than passing arguments to a function? Does it use a different mechanism? It is the same mechanism, so it is also only appropriate for low volumes of data: a, b, c = *args

Re: What is your favorite Python web framework?

2005-07-18 Thread Sybren Stuvel
Admin enlightened us with: Error 404 while looking up your page AND when looking for a suitable 404 page. Sorry! No such file /var/www/www.unrealtower.org/compiled/error404.py You must have caught me editing some stuff, try again ;-) I really need to create another virtual

Re: Environment Variable

2005-07-18 Thread Raymond Hettinger
[Vivek Chaudhary] Is it possible to set an environment variable in python script whose value is retained even after the script exits. There is an indirect approach: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/159462 Raymond --

Dose someone have installed python on IRIX ?

2005-07-18 Thread [EMAIL PROTECTED]
Hi, everyone, I'm a newbie in python. Does someone have experience about how to install python on IRIX ? I have tried several times but without success. ./configure and make are both ok, but got errors when I run make test. Thanks in advance. --

Re: Java RMI-like services in Python

2005-07-18 Thread Harald Massa
Maurice LING [EMAIL PROTECTED] wrote in news:dbfmbq$e49$1 @domitilla.aioe.org: I am wondering if Python has services or frameworks that does the same as Java RMI? google for pyro Harald -- http://mail.python.org/mailman/listinfo/python-list

Re: Ordering Products

2005-07-18 Thread Diez B.Roggisch
I have to admit that I don't understand what you mean with the 'constant parts' of an expression? From what I percieved of your example it seemed to me that you wanted to evaluate the constants like 7*9 first, so that an expression like a * 7 * 9 * b with variables a,b is evaluated like

Problem with threads

2005-07-18 Thread Stephan Popp
Hi all, I've got a problem with stopping python-threads. I'm starting a thread with twisteds reactor.deferToThread which start a methodcall in a seperate thread. In this thread a swig-wrapped c++ module is running. Now I want to stop the running thread from the main thread or another one, and

Re: Problem with threads

2005-07-18 Thread Simon Dahlbacka
You cannot really do that*. Use a flag or something that the thread checks if it should shut down. /Simon * well actually you can, sort of by using int PyThreadState_SetAsyncExc( long id, PyObject *exc) from C API. However, if you do that you swap one problem for a sh*tload of others, because of

Re: What is your favorite Python web framework?

2005-07-18 Thread Cyril Bazin
Hello, I never used a web framework using Python modules, but I think cheetah, Karrigel and CherryPy are not good since they allow user to play with the HTML code. IMO, it's not pythonic but phpythonic. Isn't there a python framework inspirated by the Smalltalk framework Seaside? I think it's

Re: Ordering Products

2005-07-18 Thread Ron Adam
Kay Schluehr wrote: Ron Adam wrote: Kay Schluehr wrote: On a more general note, I think a constrained sort algorithm is a good idea and may have more general uses as well. Something I was thinking of is a sort where instead of giving a function, you give it a sort key list. Then you can

wxPython Menu problem

2005-07-18 Thread linuxfreak
Hi all, I have a problem. I want to add items to a Menu iteratively and I'm stuck. Heres a snippet of my code fileMenuChoices=[('New','Start a New Document',self.onClick), ('Open File...','Open an Existing Document', self.onClick), ('Save','Save Current

Dictionary, keys and alias

2005-07-18 Thread Glauco
I want to insert a concept of alias in a dict_based class. The idea is to have a facoltative name in the same dict that correspond at the same value. With this alias i can change original value. example: mydict['a'] = 1 I must define an alias example: myFunctAlias( mydict, 'a', 'b') print

email format in python

2005-07-18 Thread [EMAIL PROTECTED]
I want to have the python equivalent function of this (that checks email format) function CheckEmail($Email = ) { if (ereg([[:alnum:[EMAIL PROTECTED]:alnum:]]+\.[[:alnum:]]+, $Email)) { return true; } else { return false; } }

Python s60

2005-07-18 Thread xen0n
Hi, I have looked around for any type of example of script that claims to read the contacts database from an s60 phone, but i cant figure how to use that examples. All i want is a simple, CLEAR, script that show how to open contact database of an s60 phone and load all contacts present into a

Re: email format in python

2005-07-18 Thread Benji York
[EMAIL PROTECTED] wrote: I want to have the python equivalent function of this (that checks email format) function CheckEmail($Email = ) { if (ereg([[:alnum:[EMAIL PROTECTED]:alnum:]]+\.[[:alnum:]]+, $Email)) { return true; } else { return false; } } While it is possible

Re: email format in python

2005-07-18 Thread Miki Tebeka
Hello met, I want to have the python equivalent function of this (that checks email format) function CheckEmail($Email = ) { if (ereg([[:alnum:[EMAIL PROTECTED]:alnum:]]+\.[[:alnum:]]+, $Email)) { return true; } else { return false; } } Check out the email library module

Re: ssh popen stalling on password redirect output?

2005-07-18 Thread P
for ssh automation I would in order: paramiko twisted keys + popen pexpect -- Pádraig Brady - http://www.pixelbeat.org -- -- http://mail.python.org/mailman/listinfo/python-list

Re: What is your favorite Python web framework?

2005-07-18 Thread paron
Admin: I have kept the following: - PyWork - http://pywork.sourceforge.net (Not sure if it's mature) - Django - http://www.djangoproject.com (Looks interesting) - CherryPy - http://www.cherrypy.org (Unsure) I have also found a more comprehensive list here:

Re: Django - Rails killer comes...

2005-07-18 Thread JZ
Dnia Mon, 18 Jul 2005 00:52:44 -0700, flab ba napisał(a): To me, this seems like it places itself in competition with Zope, not Rails. No. Zope is an application server, much more powerfull and complicated, with its own object database and total object approach to all elements of the system.

Re: What is your favorite Python web framework?

2005-07-18 Thread JZ
Dnia 18 Jul 2005 00:52:40 -0700, laurent napisał(a): I follow somes projects that have a pythonic way to make web site. there's thats projects : http://www.cherrypy.org/ and http://subway.python-hosting.com/ subway aim to be like ruby on rails frameworks , simple and fast

Re: Java RMI-like services in Python

2005-07-18 Thread Alan Kennedy
[Maurice LING] I am wondering if Python has services or frameworks that does the same as Java RMI? As Harald mentioned, Pyro is firmly in the Remote Method Invocation space. And there's always CORBA, of which there are multiple python and java implementations. Which might be useful, if you

Re: What is your favorite Python web framework?

2005-07-18 Thread Michael Maibaum
On 18 Jul 2005, at 10:29, Cyril Bazin wrote: Hello, I never used a web framework using Python modules, but I think cheetah, Karrigel and CherryPy are not good since they allow user to play with the HTML code. IMO, it's not pythonic but phpythonic. Well, pretty much anything would allow

goto

2005-07-18 Thread Hayri ERDENER
hi, what is the equivalent of C languages' goto statement in python? best regards -- http://mail.python.org/mailman/listinfo/python-list

Re: What is your favorite Python web framework?

2005-07-18 Thread JZ
Dnia 18 Jul 2005 04:24:12 -0700, paron napisał(a): I favor speed of development, intensive OO development, performance under heavy load, short learning curve, good documentation and community. I settled on CherryPy: Performance under load -- can't say one way or the other. I do know it's

Re: goto

2005-07-18 Thread Mage
Hayri ERDENER wrote: hi, what is the equivalent of C languages' goto statement in python? best regards You really shouldn't use goto. Fortunately you can't. Mage -- http://mail.python.org/mailman/listinfo/python-list

Re: goto

2005-07-18 Thread Simon Brunning
On 7/18/05, Hayri ERDENER [EMAIL PROTECTED] wrote: hi, what is the equivalent of C languages' goto statement in python? best regards http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/832906c6122dc137 Let's not go through *that* again... -- Cheers, Simon B, [EMAIL

Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-18 Thread Jason Tishler
Dean, On Tue, Feb 08, 2005 at 12:55:15PM -0500, Jason Tishler wrote: On Tue, Feb 08, 2005 at 08:01:11AM -0800, Dean N. Williams wrote: $ rebaseall /usr/bin/rebaseall: line 70: [: too many arguments /usr/bin/rebaseall: line 75: [: too many arguments /usr/bin/rebaseall: line 94: $TmpFile:

Re: What is your favorite Python web framework?

2005-07-18 Thread Admin
On Mon, 18 Jul 2005 08:45:22 -0300, JZ [EMAIL PROTECTED] wrote: Much more stable and much faster is e.g. Mygty (http://myghty.org) It is about 2x faster then CherryPy. Also faster than CherryPy is Webware and SkunkWeb. I did not check how fast is Django... It is fresh framework for open

Re: Efficiently Split A List of Tuples

2005-07-18 Thread Steven D'Aprano
On Sun, 17 Jul 2005 19:38:29 -0700, Raymond Hettinger wrote: Executive summary: Python's for-loops are both elegant and fast. It is a mistake to habitually avoid them. And frequently much more readable and maintainable than the alternatives. I cringe when I see well-meaning people trying to

Re: What is your favorite Python web framework?

2005-07-18 Thread JZ
Dnia Mon, 18 Jul 2005 09:26:10 -0300, Admin napisał(a): On Mon, 18 Jul 2005 08:45:22 -0300, JZ [EMAIL PROTECTED] wrote: Much more stable and much faster is e.g. Mygty (http://myghty.org) It is about 2x faster then CherryPy. Also faster than CherryPy is Webware and SkunkWeb. I did not check

Re: goto

2005-07-18 Thread Steven D'Aprano
On Mon, 18 Jul 2005 14:06:14 +0200, Mage wrote: Hayri ERDENER wrote: hi, what is the equivalent of C languages' goto statement in python? best regards You really shouldn't use goto. Fortunately you can't. Of course you can :-) You can write your own Python interpreter, in Python,

Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-18 Thread Dean N. Williams
Dear Jason, Thanks for fixing this problem. I'm sure all the CDAT/Cygwin users really appreciate it. I'll put the update on the CDAT web portal. Best regards, Dean Dean, On Tue, Feb 08, 2005 at 12:55:15PM -0500, Jason Tishler wrote: On Tue, Feb 08, 2005 at 08:01:11AM -0800, Dean

Re: goto

2005-07-18 Thread John Roth
Mage [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hayri ERDENER wrote: hi, what is the equivalent of C languages' goto statement in python? best regards You really shouldn't use goto. True. Fortunately you can't. Of course you can. Recent versions of Python have the ability

Re: Problem with threads

2005-07-18 Thread Peter Hansen
Stephan Popp wrote: I've got a problem with stopping python-threads. I'm starting a thread with twisteds reactor.deferToThread which start a methodcall in a seperate thread. In this thread a swig-wrapped c++ module is running. Now I want to stop the running thread from the main thread or

Re: goto

2005-07-18 Thread skip
what is the equivalent of C languages' goto statement in python? You really shouldn't use goto. Fortunately you can't. Steven Of course you can :-) Steven You can write your own Python interpreter, in Python, and add a Steven goto to it. Maybe easier would be to

Re: Dictionary, keys and alias

2005-07-18 Thread Peter Hansen
Glauco wrote: I want to insert a concept of alias in a dict_based class. ... Any suggestion ? Yes, in future don't attempt to start a new thread using Reply unless you are happy not having your post read by all those who have already killed the thread to which you replied. Anyone who was not

Re: Dictionary, keys and alias

2005-07-18 Thread Steven D'Aprano
On Mon, 18 Jul 2005 12:17:37 +0200, Glauco wrote: I want to insert a concept of alias in a dict_based class. The idea is to have a facoltative name in the same dict that correspond at the same value. With this alias i can change original value. example: mydict['a'] = 1 I must define

Re: goto

2005-07-18 Thread Comcast
In python there is no goto statement. In C I use goto only in one case: to exit more then one level of blocks (as a matter of fact, I always use goto EXIT in C, where EXIT is the label of the end of the function). In python you can mimic this by throwing an exception and catching it. Exception

Re: What is your favorite Python web framework?

2005-07-18 Thread Peter Hansen
JZ wrote: I think Django is more mature than Subway or CherryPy and can quickly become the black horse in area of pythonic frameworks. I'm not familiar with this expression. What do you mean by black horse? -- http://mail.python.org/mailman/listinfo/python-list

Re: Ordering Products

2005-07-18 Thread Kay Schluehr
Bernhard Holzmayer schrieb: Kay Schluehr wrote: Now lets drop the assumption that a and b commute. More general: let be M a set of expressions and X a subset of M where each element of X commutes with each element of M: how can a product with factors in M be evaluated/simplified under

Re: goto

2005-07-18 Thread Peter Hansen
Hayri ERDENER wrote: what is the equivalent of C languages' goto statement in python? Steven offered the best reply here, in that he wondered what you actually need this for. What usage of goto in C are you hoping to emulate? It's a certainty that some other non-goto technique will be more

Re: What is your favorite Python web framework?

2005-07-18 Thread Admin
On Mon, 18 Jul 2005 10:06:21 -0300, Peter Hansen [EMAIL PROTECTED] wrote: I'm not familiar with this expression. What do you mean by black horse? That will help me too :) -- Thanks, Admin. Want to buy me a book? http://tinyurl.com/78xzb :) --

Re: stdin/stdout fileno() always returning -1 from windows service

2005-07-18 Thread Jeff Epler
On Sun, Jul 17, 2005 at 06:43:00PM -0700, chuck wrote: I have found that sys.stdin.fileno() and sys.stdout.fileno() always return -1 when executed from within a win32 service written using the win32 extensions for Python. Anyone have experience with this or know why? because there *is* no

Re: What is your favorite Python web framework?

2005-07-18 Thread Gerhard Haering
On Mon, Jul 18, 2005 at 09:06:21AM -0400, Peter Hansen wrote: JZ wrote: I think Django is more mature than Subway or CherryPy and can quickly become the black horse in area of pythonic frameworks. I'm not familiar with this expression. What do you mean by black horse? Maybe the Ferrari

Re: win32ui CreatePrintDialog

2005-07-18 Thread Chris Lambacher
On Mon, Jul 18, 2005 at 09:18:45AM +0200, Eric Brunel wrote: On Fri, 15 Jul 2005 18:08:35 -0400, Chris Lambacher [EMAIL PROTECTED] wrote: Hi, This question has come up a few times on the list with no one giving a public answer. How do you use CreatePrintDialog from win32ui?

Re: What is your favorite Python web framework?

2005-07-18 Thread JZ
Dnia Mon, 18 Jul 2005 09:06:21 -0400, Peter Hansen napisał(a): I think Django is more mature than Subway or CherryPy and can quickly become the black horse in area of pythonic frameworks. I'm not familiar with this expression. What do you mean by black horse? I meant dark horse. Sorry for

Re: What is your favorite Python web framework?

2005-07-18 Thread Peter Hansen
Gerhard Haering wrote: On Mon, Jul 18, 2005 at 09:06:21AM -0400, Peter Hansen wrote: I'm not familiar with this expression. What do you mean by black horse? Maybe the Ferrari of pythonic frameworks (black horse on yellow background being the symbol of Ferrari). I know there are black sheep

Python ldap pointers for a newbie - Actually just trying to decifer the error..

2005-07-18 Thread rh0dium
Hi all, I have a script which appears to work but it errors and the following output is given. My code is listed below.. Traceback (most recent call last): File ./ldap-nsc2.py, line 96, in ? truc.search() File ./ldap-nsc2.py, line 49, in search (result_type, result_data) =

Re: wxPython Menu problem

2005-07-18 Thread [EMAIL PROTECTED]
try to check your definition of your function, self is usually used inside a class. pujo -- http://mail.python.org/mailman/listinfo/python-list

Re: goto

2005-07-18 Thread Mage
[EMAIL PROTECTED] wrote: what is the equivalent of C languages' goto statement in python? You really shouldn't use goto. Fortunately you can't. Steven Of course you can :-) Steven You can write your own Python interpreter, in Python, and add a Steven goto to it.

os.path.expanduser on Windows: UnicodeEncodeError

2005-07-18 Thread Bob Swerdlow
My application is getting this error on Windows XP (works fine on Mac OS X) when it calls os.path.expanduser: UnicodeEncodeError: 'ascii' codec can't encode characters in position 52-56: ordinal not in range(128) The code was built with Python 2.3.4. I found referenes to Path 957650, but

Re: Ann: Tkinter drag and drop module

2005-07-18 Thread Bruno Widmann
On 2005-07-14, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: i remember freezing a python console app i wrote some time ago using the mcmillan installer (kinda like py2exe) and was surprised to discover that binaries dragged and dropped onto the .exe file were handled properly as args...making a

Re: Ordering Products

2005-07-18 Thread Bernhard Holzmayer
I see, you're sensitive for the difficulties which might arise. That's the thing I wanted to point out. Maybe I was looking too far forward... My first thought was to add attributes/qualifiers to the operands to improve the sorting. Then I realized that these attributes/qualifiers were related to

Re: Dictionary, keys and alias

2005-07-18 Thread Cyril Bazin
I think hash doesn't guarantee the unicity of the result. But, it should avoid the collisions... foo = foo hash(foo) -740391237 hash(-740391237) -740391237 I think it's like some kind md5sum... I propose this solution: --- from

Re: stdin/stdout fileno() always returning -1 from windows service

2005-07-18 Thread chuck
Interesting. The stdin and stdout objects in my service seems respond to returing a string for the statements str(sys.stdin) and str(sys.stdout). I guess they are just not attached to files? Can you provide a reference (MSDN or otherwise) that indicates that Windows Services don't have standard

wxPython date

2005-07-18 Thread Jason
How do I form a new wxPython date using day, month and year? I've tried the wx.DateTimeFromDMY but it crashes in Pythonwin when I test it out and I get all manner of complaints when I try it from the command line. Surely there's an equivalent to the python datetime.date(2005,07,18) thanks,

Windows command line problem

2005-07-18 Thread MarkE
I'm sure someone else has posted a similar problem but I can't find it, nor the solution... I have a python script which accepts a command line argument. E.g. python.exe myscript.py -n Foo I build this as part of a package using distutils with the bdist_wininst option on a Windows 2K (SP4)

Re: wxPython date

2005-07-18 Thread Peter Decker
On 18 Jul 2005 07:52:06 -0700, Jason [EMAIL PROTECTED] wrote: How do I form a new wxPython date using day, month and year? I've tried the wx.DateTimeFromDMY but it crashes in Pythonwin when I test it out and I get all manner of complaints when I try it from the command line. Surely

re.IGNORECASE and re.VERBOSE

2005-07-18 Thread Jeremy
I am using regular expressions and I would like to use both re.IGNORECASE and re.VERBOSE options. I want to do something like the following (which doesn't work): matsearch = r'''^\ {0,4}([mM]\d+) ''' MatSearch = re.compile(matsearch, re.VERBOSE, re.IGNORECASE) Does anyone have any suggestions?

Re: re.IGNORECASE and re.VERBOSE

2005-07-18 Thread Peter Decker
On 7/18/05, Jeremy [EMAIL PROTECTED] wrote: I am using regular expressions and I would like to use both re.IGNORECASE and re.VERBOSE options. I want to do something like the following (which doesn't work): matsearch = r'''^\ {0,4}([mM]\d+) ''' MatSearch = re.compile(matsearch, re.VERBOSE,

Re: wxPython date

2005-07-18 Thread Jason
Thanks, Peter. I must have been having a bit of the stupids, your example worked fine for me too. Back to the salt mines! -- http://mail.python.org/mailman/listinfo/python-list

Re: re.IGNORECASE and re.VERBOSE

2005-07-18 Thread Simon Brunning
On 7/18/05, Jeremy [EMAIL PROTECTED] wrote: I am using regular expressions and I would like to use both re.IGNORECASE and re.VERBOSE options. I want to do something like the following (which doesn't work): matsearch = r'''^\ {0,4}([mM]\d+) ''' MatSearch = re.compile(matsearch, re.VERBOSE,

Re: re.IGNORECASE and re.VERBOSE

2005-07-18 Thread Reinhold Birkenfeld
Jeremy wrote: I am using regular expressions and I would like to use both re.IGNORECASE and re.VERBOSE options. I want to do something like the following (which doesn't work): matsearch = r'''^\ {0,4}([mM]\d+) ''' MatSearch = re.compile(matsearch, re.VERBOSE, re.IGNORECASE) Does anyone

Re: re.IGNORECASE and re.VERBOSE

2005-07-18 Thread Reinhold Birkenfeld
Simon Brunning wrote: On 7/18/05, Jeremy [EMAIL PROTECTED] wrote: I am using regular expressions and I would like to use both re.IGNORECASE and re.VERBOSE options. I want to do something like the following (which doesn't work): matsearch = r'''^\ {0,4}([mM]\d+) ''' MatSearch =

Re: stdin/stdout fileno() always returning -1 from windows service

2005-07-18 Thread Jeff Epler
It seems to simply be common wisdom. e.g., http://mail.python.org/pipermail/python-win32/2004-September/002332.html http://mail.mems-exchange.org/pipermail/quixote-users/2004-March/002743.html http://twistedmatrix.com/pipermail/twisted-python/2001-December/000644.html etc If you can find chapter

Re: goto

2005-07-18 Thread Kay Schluehr
Hayri ERDENER schrieb: hi, what is the equivalent of C languages' goto statement in python? best regards No, but some of goto's use cases can be covered by unconditional jumps provided by exceptions. Here is a C function using goto: void main() { int i, j; for ( i = 0; i 10; i++

Re: Filtering out non-readable characters

2005-07-18 Thread Michael Ströder
Peter Hansen wrote: ''.join(chr(c) for c in range(65, 91)) 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' Wouldn't this be a candidate for making the Python language stricter? Do you remember old Python versions treating l.append(n1,n2) the same way like l.append((n1,n2)). I'm glad this is forbidden now. Ciao,

Re: goto

2005-07-18 Thread Gerhard Haering
On Mon, Jul 18, 2005 at 08:40:16AM -0700, Kay Schluehr wrote: Hayri ERDENER schrieb: hi, what is the equivalent of C languages' goto statement in python? best regards No, but some of goto's use cases can be covered by unconditional jumps provided by exceptions. [...] I like the named

Python scripts wont run - HELP

2005-07-18 Thread windozbloz
Bye Bye Billy Bob... Hello All, I'm a fairly literate windoz amateur programmer mostly in visual basic. I have switched to SuSE 9.2 Pro and am trying to quickly come up to speed with Python 2.3.4. I can run three or four line scripts from the command line but have not been able to execute a

Re: Python scripts wont run - HELP

2005-07-18 Thread John Abel
windozbloz wrote: Bye Bye Billy Bob... Hello All, I'm a fairly literate windoz amateur programmer mostly in visual basic. I have switched to SuSE 9.2 Pro and am trying to quickly come up to speed with Python 2.3.4. I can run three or four line scripts from the command line but have not been

Re: Python scripts wont run - HELP

2005-07-18 Thread Damjan
I'm a fairly literate windoz amateur programmer mostly in visual basic. I have switched to SuSE 9.2 Pro and am trying to quickly come up to speed with Python 2.3.4. I can run three or four line scripts from the command line but have not been able to execute a script from a file. I have

Re: Image orientation and color information with PIL?

2005-07-18 Thread Ivan Van Laningham
Hi All-- [EMAIL PROTECTED] wrote: Does anyone know if it is possible to determine if an image is horizontal/vertical and color or black white using the python image library? I have been searching this news group and the information was not all clear on this. How are you going to

Re: Python scripts wont run - HELP

2005-07-18 Thread windozbloz
Damjan wrote: I'm a fairly literate windoz amateur programmer mostly in visual basic. I have switched to SuSE 9.2 Pro and am trying to quickly come up to speed with Python 2.3.4. I can run three or four line scripts from the command line but have not been able to execute a script from a

main window in tkinter app

2005-07-18 Thread William Gill
A short while ago someone posted that(unlike the examples) you should use Tk as the base for your main window in tkinter apps, not Frame. Thus : class MyMain(Frame): def __init__(self, master): self.root = master self.master=master

Re: Image orientation and color information with PIL?

2005-07-18 Thread Jeff Epler
i = Image.open(blue.jpg) i.size (3008, 2000) i.mode 'RGB' 'RGB' is the value for color jpeg images. I believe that for blackwhite images, i.mode is 'L' (luminosity). If you want to determine whether an existing image is landscape or portrait, then just compare i.size[0] (width) and i.size[1]

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread windozbloz
Jeff Epler wrote: I honestly don't know why anyone would spend money for a development environment, no matter how fancy. I don't knowdefinitelye would develop software in a language that doesn't have at least one open implementation. It's a great way to get screwed when Borland goes under

Re: Image orientation and color information with PIL?

2005-07-18 Thread Simon Dahlbacka
if you mean that you want to figure out which way the image is depending on the actual data in the image, then you'll most likely get to do the image processing yourself, on the other hand, if you are talking jpegs from a relatively new camera then I suppose that you should be able to get that

Re: Image orientation and color information with PIL?

2005-07-18 Thread Jeff Epler
On Mon, Jul 18, 2005 at 10:55:42AM -0600, Ivan Van Laningham wrote: How are you going to determine the orientation of an image without sophisticated image analysis? There is research on automatic image orientation detection. [...] If you write it I'll use it;-) There's research going on in

Re: ssh popen stalling on password redirect output?

2005-07-18 Thread [EMAIL PROTECTED]
Thanks for the help, this gives me a few options. I think the best way to do it is using the public/private key authentication. -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh popen stalling on password redirect output?

2005-07-18 Thread [EMAIL PROTECTED]
Thanks for the help, this gives me a few options. I think the best way to do it is using the public/private key authentication. thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: What is your favorite Python web framework?

2005-07-18 Thread Luis M. Gonzalez
Peter Hansen wrote: Gerhard Haering wrote: On Mon, Jul 18, 2005 at 09:06:21AM -0400, Peter Hansen wrote: I'm not familiar with this expression. What do you mean by black horse? Maybe the Ferrari of pythonic frameworks (black horse on yellow background being the symbol of Ferrari). I

Re: python certification

2005-07-18 Thread Rocco Moretti
[EMAIL PROTECTED] wrote: i want to get a small certificate or diploma in python. it should be online cuz i live in pakistan and wont have teast centers near me. it should be low cost as i am not rich. and hopefully it would be something like a a begginer certification cuz i am new to python.

Re: Python scripts wont run - HELP

2005-07-18 Thread rbt
On Mon, 2005-07-18 at 17:22 +0100, John Abel wrote: windozbloz wrote: Bye Bye Billy Bob... Hello All, I'm a fairly literate windoz amateur programmer mostly in visual basic. I have switched to SuSE 9.2 Pro and am trying to quickly come up to speed with Python 2.3.4. I can run three or

Re: Earthquake Forecasting Program July 11, 2005

2005-07-18 Thread Terry Reedy
Bob Officer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip over 100 lines that should have been snipped before] In particular I am interested in the EM dataset. There isn't any data set There are no formula... There is only EGD Crackpot.

Re: How do I send keystrokes to a console window in Windows XP?

2005-07-18 Thread GoogleGroups
Thank you, Benji. This gives me hope, but what I really need to do is to send keystrokes to an already existing console window. Any help there? (P.S. Sorry that I wasn't more specific.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread Caleb Hattingh
Hi Doug Not only was Kylix a letdown, there is talk also of it being discontinued. To be fair though, it is easy to see the difficulty for Borland to deploy a Linux IDE of the same quality as Delphi when so much in different Linux distributions is variable, the widget set being a prime

Re: What is your favorite Python web framework?

2005-07-18 Thread Scott David Daniels
Luis M. Gonzalez wrote: I read the expression Dark horse contender many times, and i guess it has some reminiscence from medieval times and the cavalry stories. It meaning is something like the unknown that could be the new champ, someone intriguing and mysterious who doesn't unveil its skills

Re: goto

2005-07-18 Thread rbt
On Mon, 2005-07-18 at 12:27 -0600, Steven Bethard wrote: Hayri ERDENER wrote: what is the equivalent of C languages' goto statement in python? Download the goto module: http://www.entrian.com/goto/ And you can use goto to your heart's content. And to the horror of all your

Re: Python ldap pointers for a newbie - Actually just trying to decifer the error..

2005-07-18 Thread Michael Ströder
rh0dium wrote: ldap_result_id = cnx.search_s(baseDN, searchScope, searchAttrs, retrieveAttrs) You are already using the synchronous search method which indeed return the search results. So this should read: result_data=cnx.search_s(baseDN,searchScope,searchAttrs,retrieveAttrs) result_type,

  1   2   >