Re: Py3K idea: why not drop the colon?
On 2006-11-10 15:24:50 -0500, Bjoern Schliessmann <[EMAIL PROTECTED]> said: > Marc 'BlackJack' Rintsch wrote: > >> No it doesn't -- look again at the example given above. It's >> legal syntax in Python but doesn't have the semantics implied by >> the example. > > Sorry, I don't understand -- what is the difference between the > example as it is and the implied semantics of it? > > Regards, > > > Björn Yes, I'm not sure myself. In [1]: color = "red" In [2]: if color == "red" or "blue" or "green": ...: print 'Works.' ...: ...: Works. In [3]: if color == "blue" or "red" or "green": ...: print 'Works.' ...: ...: Works. In [4]: if not color == "blue" or "green": ...: print 'Works.' ...: ...: Works. -- http://mail.python.org/mailman/listinfo/python-list
Re: Py3K idea: why not drop the colon?
On 2006-11-10 15:47:42 -0500, Max Erickson <[EMAIL PROTECTED]> said: color='orange' if color=='red' or 'blue' or 'green': > print "Works?" > > > Works? No! No no no. I won't hear of it. Don't you know that with insufficient test cases, everything is right? Sheesh. Best, James -- http://mail.python.org/mailman/listinfo/python-list
Re: How to choose the right GUI toolkit ?
On 2006-11-09 14:06:06 -0500, "Dan Lenski" <[EMAIL PROTECTED]> said: > [snip] > > My understanding is that wx wraps Windows, OSX, Qt, and GTK+... I guess > some of the wrappers fit the native apps better than others? > > Dan WxWidgets does wrap Windows, OS X (Carbon), and GTK; it does not wrap Qt. On this page is a list of WxWidgets ports: http://wiki.wxwidgets.org/docbrowse.cgi/wxwin_wxplatforminfo.html According to the WxWidgets wiki, there's nothing stopping a person from writing a Qt port. http://www.wxwidgets.org/wiki/index.php/WxWidgets_Compared_To_Other_Toolkits Best, James -- http://mail.python.org/mailman/listinfo/python-list
Re: Python v PHP: fair comparison?
On 2006-11-15 10:47:07 -0500, "Demel, Jeff" <[EMAIL PROTECTED]> said: > [...] > That's true, but I was lucky enough to find webfaction.com for python > hosting, including Django. Good prices and they know Python. I think > they used to be python-hosting.com or something. > > -Jeff Dirt-cheap Dreamhost also offers Python with Django (as well as Ruby with Rails), though I haven't used those capabilities so I can't judge how good the environment is. I suspect it isn't that great. The people at Dreamhost are great; the service itself is - at best! - unreliable. Best, James -- http://mail.python.org/mailman/listinfo/python-list
Re: Python v PHP: fair comparison?
On 2006-11-15 20:59:26 -0500, "walterbyrd" <[EMAIL PROTECTED]> said: > > Bruno Desthuilliers wrote: >> walterbyrd a écrit : > >> You mean there are web hosting companies that are still using Apache >> 1.3.x ? >> > > Practically all web-hosters still use Apache 1.3.x. Certainly all of > the lower priced hosters. Not true. Dreamhost, at least, uses Apache 2. > >> C'mon, let's be serious. I just ordered a dedibox - a small dedicated >> web server - for my personal use. It's only 30 euros a month, you know... > > What if I only need 25mb of space? I can that with a PHP hoster for $10 > a year. That is about 1/36th the price that you posting about. > > Maybe you don't mind paying 30 euros a month, but a lot others do. Of course, you can't get $10 a year plans on Dreamhost. But with deals you can get it down to about that low, at least for the first year. I suppose I'm lucky enough not to miss $8 a month otherwise. Best, James -- http://mail.python.org/mailman/listinfo/python-list
Re: Python v PHP: fair comparison?
On 2006-11-16 05:46:45 -0500, Steve Holden <[EMAIL PROTECTED]> said: > James Cunningham wrote: >> On 2006-11-15 20:59:26 -0500, "walterbyrd" <[EMAIL PROTECTED]> said: >> >>> Bruno Desthuilliers wrote: >>>> walterbyrd a écrit : >>>> You mean there are web hosting companies that are still using Apache >>>> 1.3.x ? >>>> >>> Practically all web-hosters still use Apache 1.3.x. Certainly all of >>> the lower priced hosters. >> >> Not true. Dreamhost, at least, uses Apache 2. > > So you thin a single counter-example disproves an assertion that begins > with "practically all"? Nope. It disproves your assertion that "certainly all of the lower priced hosters" use Apache 1.3. "Certainly all". "Certainly" "all". Best, James -- http://mail.python.org/mailman/listinfo/python-list
Re: Python v PHP: fair comparison?
On 2006-11-16 09:08:43 -0500, Steve Holden <[EMAIL PROTECTED]> said: > James Cunningham wrote: >> On 2006-11-16 05:46:45 -0500, Steve Holden <[EMAIL PROTECTED]> said: >> >>> James Cunningham wrote: >>>> On 2006-11-15 20:59:26 -0500, "walterbyrd" <[EMAIL PROTECTED]> said: >>>> >>>>> Bruno Desthuilliers wrote: >>>>>> walterbyrd a écrit : >>>>>> You mean there are web hosting companies that are still using Apache >>>>>> 1.3.x ? >>>>>> >>>>> Practically all web-hosters still use Apache 1.3.x. Certainly all of >>>>> the lower priced hosters. >>>> Not true. Dreamhost, at least, uses Apache 2. >>> So you thin a single counter-example disproves an assertion that begins >>> with "practically all"? >> >> Nope. It disproves your assertion that "certainly all of the lower >> priced hosters" use Apache 1.3. >> >> "Certainly all". >> >> "Certainly" "all". >> > Certainly. But not my assertion. > > regards > Steve So I should be bothered to read the name of whom I'm replying to? Sheesh. ;) Best, James -- http://mail.python.org/mailman/listinfo/python-list
Re: Python v PHP: fair comparison?
On 2006-11-16 12:46:05 -0500, "walterbyrd" <[EMAIL PROTECTED]> said: > > James Cunningham wrote: > >> Nope. It disproves your assertion that "certainly all of the lower >> priced hosters" use Apache 1.3. > > Okay, where can I get Python and Apache 2.X for $10 a year? Frankly, I can't find *anybody* who advertises hosting for <= $10 a year - the cheapeast I can find is $18 - and such a plan would be too limited for me to consider anyway. But with easily-available promotional codes, you can pay less than that at least for Dreamhost, which offers Apache 2.x and Python 2.4. I consider it low-cost hosting, but YMMV. Best James -- http://mail.python.org/mailman/listinfo/python-list
Re: ANN: CherryPy 3.0 RC1
On 2006-11-29 08:37:46 -0500, "Christian" <[EMAIL PROTECTED]> said: >> "Christian Wyglendowski" <[EMAIL PROTECTED]> writes: >> >>> I'm happy to announce the first release candidate for CherryPy 3.0. > > Ben Finney wrote: >> >> Congratulations, I'm glad to see an announcement for CherryPy. >> >> Please, in future, don't send HTML message bodies to public forums; >> plain text is far better for such a wide audience. > > My apologies. I wrongly assumed that anyone using an email client that > only supported plain text would simply use the plain text part of the > email. Thanks for bringing this to my attention. > > Christian > http://www.dowski.com Some people are reading this on comp.lang.python. Best, James -- http://mail.python.org/mailman/listinfo/python-list
Re: how to determine Operating System in Use?
On 2006-12-13 19:28:14 -0500, [EMAIL PROTECTED] said: > > > On Dec 13, 6:32 pm, "Ian F. Hood" <[EMAIL PROTECTED]> wrote: >> Hi >> In typically windows environments I have used: >> if 'Windows' in os.environ['OS']... >> to prove it, but now I need to properly support different environments. >> To do so I must accurately determine what system the python instance is >> running on (linux, win, mac, etc). >> Is there a best practises way to do this? >> TIA >> Ian > > I would do this: > > if os.name == ''posix': > linuxStuff() > elif os.name == 'nt': > windowsStuff() > elif os.name == 'os2': ... > --- > os.name is 'posix', 'nt', 'os2', 'mac', 'ce' or 'riscos' > > -N Bearing in mind, of course, that Mac will return "posix", too. And Cygwin might. Erg. Best, James -- http://mail.python.org/mailman/listinfo/python-list