Re: redoing libgmail interface to "smtplib" blah?

2009-08-15 Thread John Haggerty
On Sat, Aug 15, 2009 at 7:23 PM, Dennis Lee Bieber wrote: > On Sat, 15 Aug 2009 14:23:26 -0600, John Haggerty > declaimed the following in gmane.comp.python.general: > > > The following program is theoretically supposed to use a supported > library. > > Issues have come up where the library is no

Re: OT Signature quote [was Re: Unrecognized escape sequences in string literals]

2009-08-15 Thread Douglas Alan
On Aug 15, 10:19 pm, Steven D'Aprano wrote: > On Sat, 15 Aug 2009 13:01:43 -0700, Douglas Alan wrote: > > P.S. I find it strange, however, that anyone who is not okay with > > "abusing" operator overloading in this manner, wouldn't also take > > umbrage at Python's overloading of "+" to work with

Re: A Exhibition Of Tech Geekers Incompetence: Emacs whitespace-mode

2009-08-15 Thread John Haggerty
I would have to agree with that since I've had to work with Word 2007 issues with formatting from some...demanding people in the past. Took at least 1hour plus. On Sat, Aug 15, 2009 at 8:22 PM, Steven D'Aprano < st...@remove-this-cybersource.com.au> wrote: > On Sat, 15 Aug 2009 12:24:26 -0700, Jo

Re: unittest

2009-08-15 Thread John Haggerty
This is an interesting question. I am just wondering: do you really have that many features that it would be impossible to just have a shell script run specific types of input or tests? When I did programming in the past for education they just had lists of input data and we ran the program agains

Re: ignored test cases in unittest

2009-08-15 Thread John Haggerty
So you are saying you have several hundred tests you have to do on your program? On Sat, Aug 15, 2009 at 7:04 PM, Terry wrote: > Hi, > > I have some 100s unittest cases with my python program. And sometimes, > I did quick-and-dirty work by ignoring some test cases by adding an > 'x' (or somethin

Re: Python or ActionScript 3.0

2009-08-15 Thread John Haggerty
If it were me I'd go with python at least based on the fact that it's more supported and more popular, enough so that it has o'reiley soruces on it. On Sat, Aug 15, 2009 at 3:32 PM, Jaseem wrote: > Hi, > > Is python similar to actionscript 3.0 > Which is better to create a rich gui internet appl

Re: random.gauss vs. random.normalvariate

2009-08-15 Thread John Haggerty
On Sat, Aug 15, 2009 at 7:23 PM, Dennis Lee Bieber wrote: > On Sat, 15 Aug 2009 14:34:36 -0600, John Haggerty > declaimed the following in gmane.comp.python.general: > > > What does the term "thread safe" mean exactly. I never had to program > with > > "threads" before > > That, part way

Re: ignored test cases in unittest

2009-08-15 Thread Terry Yin
Yes, should be more than 200. But now 187+ are running (some are 'ignored').It's a personal project, I just don't feel safe without all the testing as it grows bigger and bigger. On Sun, Aug 16, 2009 at 11:40 AM, John Haggerty wrote: > So you are saying you have several hundred tests you have t

Re: random.gauss vs. random.normalvariate

2009-08-15 Thread Paul Rubin
Dennis Lee Bieber writes: > No language can guard against independent access of a shared/global > object by multiple threads... Erlang? -- http://mail.python.org/mailman/listinfo/python-list

Re: random.gauss vs. random.normalvariate

2009-08-15 Thread John Haggerty
Erlang I assume is a computer programming language? On Sat, Aug 15, 2009 at 10:18 PM, Paul Rubin wrote: > Dennis Lee Bieber writes: > > No language can guard against independent access of a shared/global > > object by multiple threads... > > Erlang? > -- > htt

Re: Python or ActionScript 3.0

2009-08-15 Thread Sebastian Bassi
On Sat, Aug 15, 2009 at 10:29 PM, Douglas Alan wrote: > Python doesn't run in your typical web browser, but it is common to > use Python for doing the server-side programming, along with a Python- > based web development framework, such as Django. > You could use Jython to make a JVM applet that wo

Re: Komodo(!)

2009-08-15 Thread Kee Nethery
On Aug 14, 2009, at 1:55 PM, William wrote: Personally, I rather like Wing I tried Wing and basically as a newbie, there were too many setup parameters that I did not know how to set correctly and I could never get it to work for me. It runs under X11 and I guess that was just a bit too

Re: OT Signature quote [was Re: Unrecognized escape sequences in string literals]

2009-08-15 Thread Steven D'Aprano
On Sat, 15 Aug 2009 20:00:23 -0700, Douglas Alan wrote: > So, as far as I can tell, Python has no real authority to throw stones > at C++ on this little tiny particular issue. I think you're being a tad over-defensive. I asked a genuine question about a quote in somebody's signature. That's a qu

Re: redoing libgmail interface to "smtplib" blah?

2009-08-15 Thread John Haggerty
I did detect one problem thus far File "test.py", line 152 if len(args) == 1 and args[0] = "-c": On Sat, Aug 15, 2009 at 7:23 PM, Dennis Lee Bieber wrote: > On Sat, 15 Aug 2009 14:23:26 -0600, John Haggerty > declaimed the following in gmane.comp.python.general: > > > The following progra

Re: Python or ActionScript 3.0

2009-08-15 Thread Michel Claveau - MVP
Hi! > Python doesn't run in your typical web browser Yes, Python can do it... on Windows. Two (examples) ways: - ActiveScripting (PythonScript), include in PyWin32 - Gestalt (who mix Python, Ruby & Javascript, via Silverlight) And alse, these two solutions run OK in HTA (HTml Application) fo

Re: OT Signature quote [was Re: Unrecognized escape sequences in string literals]

2009-08-15 Thread Douglas Alan
On Aug 16, 1:05 am, Steven D'Aprano wrote: > On Sat, 15 Aug 2009 20:00:23 -0700, Douglas Alan wrote: > > So, as far as I can tell, Python has no real authority to throw stones > > at C++ on this little tiny particular issue. > I think you're being a tad over-defensive. Defensive? Personally, I p

Xah's Edu Corner: The importance of syntax & notations.

2009-08-15 Thread Xah Lee
Xah's Edu Corner: The importance of syntax & notations. http://www.stephenwolfram.com/publications/recent/mathml/mathml_abstract.html this article should teach the coding sophomorons and computer “science” idiotic authors who harbor the notion that syntax is not important, picked up by all the el

Re: Pygresql, and query meta informations

2009-08-15 Thread Tim Roberts
durumdara wrote: > >Pygresql, DB-API. > >I search for a solution to get meta information about last query, >because I must export these infos to Delphi. > >Delphi have TDataSet, and it have meta structure that must be defined >before I create it. >For char/varchar fields I must define their sizes!

Re: Is it possible to use python to get True Full Duplex on a Serial port?

2009-08-15 Thread John Nagle
Hendrik van Rooyen wrote: On Saturday 15 August 2009 14:40:35 Michael Ströder wrote: Hendrik van Rooyen wrote: In the past, on this group, I have made statements that said that on Linux, the serial port handling somehow does not allow transmitting and receiving at the same time, and nobody con

Re: Python 'for' loop is memory inefficient

2009-08-15 Thread Emmanuel Surleau
> Dr. Phillip M. Feldman wrote: [snip] > > def is_prime(n): > >for j in range(2,n): > > if (n % j) == 0: return False > >return True > > > > It seems as though Python is actually expanding range(2,n) into a list of > > numbers, even though this is incredibly wasteful of memory. Ther

Re: "for" cycle with assigning index

2009-08-15 Thread dmitrey
Thanks all, especially Dennis for your detailed answer. left_arr_indexes is list of nonnegative integers, eg [0,0,0,1,1,4] IndDict is a dict like {0: [1,2], 3: [0,1], 10:[0,2,3]}, so that's why I don't use python list instead. The code is taken from OpenOpt framework that I develop. Currently I hav

<    1   2