PyRTF-0.46 RTF document creation library

2007-05-19 Thread Grant Edwards
the enhanced version from: ftp://ftp.visi.com/users/grante/python/PyRTF-0.46.tar.gz -- Grant Edwards grante Yow! Could I have a drug at overdose? visi.com -- http

Re: pyserial and com port interrupts

2005-01-12 Thread Grant Edwards
. -- Grant Edwards grante Yow! Someone is DROOLING at on my collar!! visi.com -- http://mail.python.org/mailman/listinfo/python-list

Re: how to control the mouse pointer with python?

2005-01-13 Thread Grant Edwards
On 2005-01-13, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Sorry, I should have mentioned it's linux (debian). Thanks. What environment? Console? X11? MGR? ??? -- Grant Edwards grante Yow! My ELBOW is a remote

Re: List problems in C code ported to Python

2005-01-16 Thread Grant Edwards
questions reference. -- Grant Edwards grante Yow! Hello? Enema at Bondage? I'm calling visi.combecause I want to be happy, I

Re: List problems in C code ported to Python

2005-01-17 Thread Grant Edwards
gaurantee that somebody will explain why it doesn't do what you want and how to fix it. -- Grant Edwards grante Yow! LOU GRANT froze at my ASSETS!! visi.com -- http

Re: List problems in C code ported to Python

2005-01-17 Thread Grant Edwards
. Then the next function, etc. -- Grant Edwards grante Yow! My ELBOW is a remote at FRENCH OUTPOST!! visi.com -- http://mail.python.org/mailman/listinfo/python-list

Re: hex notation funtion

2005-01-18 Thread Grant Edwards
On 2005-01-18, tertius [EMAIL PROTECTED] wrote: Is there a builtin function that will enable me to display the hex notation of a given binary string? (example below) ' '.join('%02x' % ord(b) for b in s) -- Grant Edwards grante Yow! This is a NO-FRILLS

Re: hex notation funtion

2005-01-18 Thread Grant Edwards
On 2005-01-18, Grant Edwards [EMAIL PROTECTED] wrote: On 2005-01-18, tertius [EMAIL PROTECTED] wrote: Is there a builtin function that will enable me to display the hex notation of a given binary string? (example below) ' '.join('%02x' % ord(b) for b in s) Oops. Should be: ' '.join

Re: Another scripting language implemented into Python itself?

2005-01-25 Thread Grant Edwards
. Bottom line: Don't exec or eval untrusted code. Don't import untrusted modules. I still don't see how that's any different for Python than for any other language. -- Grant Edwards grante Yow! I'm EXCITED!! I want

Re: py2exe problem

2005-01-25 Thread Grant Edwards
, let me know and I'll post a snippet from my setup.py file. -- Grant Edwards grante Yow! Sometime in 1993 at NANCY SINATRA will lead a visi.comBLOODLESS COUP on GUAM!! -- http

Re: exclude binary files from os.walk

2005-01-26 Thread Grant Edwards
of this pertains to files on Windows XP and Python 2.4 -- Grant Edwards grante Yow! Now that I have my at APPLE, I comprehend COST visi.comACCOUNTING!! -- http://mail.python.org/mailman

Re: exclude binary files from os.walk

2005-01-26 Thread Grant Edwards
just be binary data that happens to have bit 7 == 0. We could be of more help, if you would take the time to explain a little about what you are trying to do. Yup. -- Grant Edwards grante Yow! Now, let's SEND OUT

Re: getting data from a port in use

2005-01-31 Thread Grant Edwards
() call. print data s.close() -- Grant Edwards grante Yow! Actually, what at I'd like is a little toy visi.comspaceship!! -- http://mail.python.org/mailman/listinfo/python

Re: need for binary floats (except performance)?

2005-01-31 Thread Grant Edwards
a pretty huge except for some applications. -- Grant Edwards grante Yow! HUGH BEAUMONT died at in 1982!! visi.com -- http://mail.python.org/mailman/listinfo/python-list

Where are list methods documented?

2005-02-01 Thread Grant Edwards
'L.sort(cmpfunc=None) -- stable sort *IN PLACE*; cmpfunc(x, y) - -1, 0, 1' -- Grant Edwards grante Yow! But they went to MARS at around 1953!! visi.com -- http://mail.python.org

Re: Where are list methods documented?

2005-02-01 Thread Grant Edwards
On 2005-02-01, Tim Peters [EMAIL PROTECTED] wrote: [Grant Edwards] I'm trying to figure out how to sort a list, and I've run into a problem that that I have tripped over constantly for years: where are the methods of basic types documented? The methods on mutable sequence types

Re: Where are list methods documented?

2005-02-01 Thread Grant Edwards
-mutable.html Yes, that last page was the one I was looking for. I didn't know enough to spell list as mutable sequence type. -- Grant Edwards grante Yow! I think my CAREER at is RUINED

Re: Where are list methods documented?

2005-02-01 Thread Grant Edwards
On 2005-02-01, Tim Peters [EMAIL PROTECTED] wrote: [Grant Edwards] I did. I looked up sort in the library index, and it took me to 3.3.5 Emulating container types, It doesn't for me. Here: http://docs.python.org/lib/genindex.html#letter-s There are two entries for sort: sort

Re: how about writing some gui to a known console application

2005-02-01 Thread Grant Edwards
On 2005-02-01, alexrait1 [EMAIL PROTECTED] wrote: Do something useful... (at least for me) For instance I need a gtk frontend for pgp. So here you can have an opportunity to learn both pyGTK and pgp. A lot of python code... :) Um, to whom are you addressing your commands? -- Grant Edwards

Re: getting data from a port in use

2005-02-01 Thread Grant Edwards
can't do it using accept. You have to use the pcap library. You're going to have to accurately describe what you're trying to do, or none of us are going to be able to help you. -- Grant Edwards grante Yow! HERE!! Put

Re: getting data from a port in use

2005-02-01 Thread Grant Edwards
version of pylibpcap. Good luck. :) -- Grant Edwards grante Yow! Did an Italian CRANE at OPERATOR just experience visi.comuninhibited sensations

Re: how about writing some gui to a known console application

2005-02-02 Thread Grant Edwards
On 2005-02-01, Jeremy Bowers [EMAIL PROTECTED] wrote: On Tue, 01 Feb 2005 21:57:45 +, Grant Edwards wrote: On 2005-02-01, alexrait1 [EMAIL PROTECTED] wrote: Do something useful... (at least for me) For instance I need a gtk frontend for pgp. So here you can have an opportunity to learn

Re: how about writing some gui to a known console application

2005-02-02 Thread Grant Edwards
saw the post to which you intended to reply. -- Grant Edwards grante Yow! The entire CHINESE at WOMEN'S VOLLEYBALL TEAM all visi.comshare ONE personality

Re: Big development in the GUI realm

2005-02-07 Thread Grant Edwards
is not valid. An EXE that uses a GPL'd DLL must be distributed according to the terms of the GPL. Were that not the case, the LGPL would not have been needed. -- Grant Edwards grante Yow! Yow! Maybe I should at have asked

Re: Big development in the GUI realm

2005-02-07 Thread Grant Edwards
, and if you try to worm your way around them, you're dishonorable, theiving scum. -- Grant Edwards grante Yow! I know things about at TROY DONAHUE that can't visi.comeven

Re: Big development in the GUI realm

2005-02-07 Thread Grant Edwards
On 2005-02-08, Robert Kern [EMAIL PROTECTED] wrote: Grant Edwards wrote: Spare us your clueless, junior-high legal analyses [etc.] Hey! There's no need for name-calling. This is a tricky legal area that can be very confusing even to the most legal-minded of us. While I think Luke

Re: Basic file operation questions

2005-02-08 Thread Grant Edwards
by the garbage collection algorithm. That will happen sometime after the for loop exits and before the program exits. In normal C-Python I believe it happens immediately after the for loop exits. However, that behavior is not guaranteed by the language spec. -- Grant Edwards grante

A great Alan Kay quote

2005-02-09 Thread Grant Edwards
sums things up nicely. The rest of the interview is pretty interesting as well. -- Grant Edwards grante Yow! Look!! Karl Malden! at visi.com -- http://mail.python.org

Re: negative integer division

2005-02-09 Thread Grant Edwards
application language is different problem. -- Grant Edwards grante Yow! ... I think I'd at better go back to my visi.comDESK and toy with a few

Re: A great Alan Kay quote

2005-02-09 Thread Grant Edwards
style languages, where there's a real center and imputed style to how you're supposed to do everything. Then Perl is an agglutination of styles, while Python might be considered a crystallization of features... Exactly. -- Grant Edwards grante Yow! NOW

Re: negative integer division

2005-02-09 Thread Grant Edwards
much completely off-topic now. :) -- Grant Edwards grante Yow! I'm definitely not at in Omaha! visi.com -- http://mail.python.org/mailman/listinfo/python-list

Re: negative integer division

2005-02-09 Thread Grant Edwards
On 2005-02-09, Jive Dadson [EMAIL PROTECTED] wrote: intentionally I disagree! -- Grant Edwards grante Yow! ... I don't like at FRANK SINATRA or his visi.comCHILDREN

Re: goto, cls, wait commands

2005-02-10 Thread Grant Edwards
, but I don't do windows. And last, how do I put program to wait certain amount of seconds ? time.sleep(1) will wait for 1 second. time.sleep(5.5) will wait for 5.5 seconds. -- Grant Edwards grante Yow! Yow! I like my new

Re: Newbie: SWIG or SIP?

2005-02-10 Thread Grant Edwards
negligible. -- Grant Edwards grante Yow! By MEER biz doo at SCHOIN... visi.com -- http://mail.python.org/mailman/listinfo/python-list

Re: [N00B] What's %?

2005-02-10 Thread Grant Edwards
with 1 left over. -- Grant Edwards grante Yow! If I pull this SWITCH at I'll be RITA HAYWORTH!! Or visi.coma SCIENTOLOGIST! -- http://mail.python.org/mailman/listinfo/python

Re: goto, cls, wait commands

2005-02-10 Thread Grant Edwards
On 2005-02-10, Bruno Desthuilliers [EMAIL PROTECTED] wrote: Grant Edwards a écrit : On 2005-02-10, BOOGIEMAN [EMAIL PROTECTED] wrote: First of all, what's Python command equivalent to QBasic's goto ? There isn't one. One defines functions and calls them. One uses for and while

Re: [N00B] What's %?

2005-02-10 Thread Grant Edwards
On 2005-02-10, Peter Hansen [EMAIL PROTECTED] wrote: Grant Edwards wrote: It's the modulus operator. It returns the remainder of integer division. As we used to say in second grade: 4 goes into 107 26 times with 3 left over. 3 goes into 4 2 times with 1 left over. How long were you

Re: Loading functions from a file during run-time

2005-02-10 Thread Grant Edwards
-- Grant Edwards grante Yow! Clear the at laundromat!! This visi.comwhirl-o-matic just had a nuclear meltdown!! -- http

Re: Alternative to raw_input ?

2005-02-11 Thread Grant Edwards
suggest you go look at it. -- Grant Edwards grante Yow! ... the MYSTERIANS at are in here with my visi.comCORDUROY SOAP DISH!! -- http://mail.python.org/mailman/listinfo/python

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Grant Edwards
., that show that the users have this need. This is open source. You don't just order somebody else to do what you want. You _do_ it and donate it to the community. please review the initial thread with care, i've pointed to some documents/thread. So what? You want it, you do it. -- Grant

Re: ValueError: invalid literal for int(): 1.0000000000e+00

2005-02-14 Thread Grant Edwards
On 2005-02-14, Martin MOKREJ© [EMAIL PROTECTED] wrote: is this a bug or feature that I have to use float() to make int() autoconvert from it? It's a feature. Integers don't have decimal points... -- Grant Edwards grante Yow! I just had a NOSE

Re: Can't subclass datetime.datetime?

2005-02-14 Thread Grant Edwards
On 2005-02-14, Steven Bethard [EMAIL PROTECTED] wrote: Grant Edwards wrote: Is it true that a datetime object can convert itself into a string, but not the other way around? IOW, there's no simple way to take the output from str(d) and turn it back into d? I assume this is true because

parsing IMAP responses?

2005-02-14 Thread Grant Edwards
before you can do much with them. Is there a library somewhere that impliments the IMAP protocol syntax? -- Grant Edwards grante Yow! Now I understand the at meaning of THE MOD SQUAD

Re: parsing IMAP responses?

2005-02-14 Thread Grant Edwards
an IMAP server? No, I'm writing a client, and I was a bit surprised to find out that imaplib doesn't really parse the responses at all. Since I'm writing a client I only have to parse the responses to the commands that I actually send, but it still a bit messy. -- Grant Edwards

Re: parsing IMAP responses?

2005-02-14 Thread Grant Edwards
On 2005-02-14, Damien Wyart [EMAIL PROTECTED] wrote: * Grant Edwards [EMAIL PROTECTED] in comp.lang.python: Is there a library somewhere that impliments the IMAP protocol syntax? Maybe the core part of getmail could be reused, it seems cleanly written. http://www.qcc.ca/~charlesc/software

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Grant Edwards
and moan about how nobody will jump when he tells them to. -- Grant Edwards grante Yow! I always liked FLAG at DAY!! visi.com -- http://mail.python.org/mailman/listinfo/python

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Grant Edwards
On 2005-02-15, bruno modulix [EMAIL PROTECTED] wrote: Ilias Lazaridis wrote: impressive. but things are much simpler. Could you be more prolific ? Good god, let's hope not! -- Grant Edwards grante Yow! I'm working under

Re: newbie question - iterating through dictionary object

2005-02-17 Thread Grant Edwards
two 3 three I wouldn't recommend this for large dictionaries. -- Grant Edwards grante Yow! RELATIVES!! at visi.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Set an environment variable

2005-10-20 Thread Grant Edwards
unchanged. -- Grant Edwards grante Yow! Are you mentally here at at Pizza Hut?? visi.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Set an environment variable

2005-10-20 Thread Grant Edwards
On 2005-10-20, Christian [EMAIL PROTECTED] wrote: How do I export an environment variable in a .py script? http://www.python.org/doc/current/lib/os-procinfo.html#l2h-1548 -- Grant Edwards grante Yow! My BIOLOGICAL ALARM

Re: need some advice on x y plot

2005-10-20 Thread Grant Edwards
x (time of the plot) with respect to time. Gnuplot does that just fine. Just give it two columns of data, the first being the x value (time) and the second being the y value. All of the other plotting packages handle this as well. -- Grant Edwards grante Yow! I

Re: need some advice on x y plot

2005-10-20 Thread Grant Edwards
this off ? Huh? Gnuplot by default does exactly what you seem to want if you just pass it x,y values. -- Grant Edwards grante Yow! I always liked FLAG at DAY!! visi.com

Re: need some advice on x y plot

2005-10-20 Thread Grant Edwards
. Just pass a set of time,value pairs and they'll get plotted as desired. -- Grant Edwards grante Yow! As a FAD follower, at my BEVERAGE choices are visi.comrich and fulfilling

Re: need some advice on x y plot

2005-10-20 Thread Grant Edwards
On 2005-10-20, Grant Edwards [EMAIL PROTECTED] wrote: and insert None (or whatever value is used by charting package) for times where observations were not taken. This will mean that you have to preprocess your data by determining a time step step value that will fit your data. If you get 3

Re: Accessing a dll from Python

2005-10-21 Thread Grant Edwards
it in the references configuration. But I can't access it from python. I tried the ctypes module. ctypes has always worked for me. Sorry, I've no clue about anything VB-related unless it's Victoria Bitter. -- Grant Edwards grante Yow! I have a VISION! It's

Re: Set an environment variable

2005-10-21 Thread Grant Edwards
.py script look)? Good grief, that's ugly. Just use os.putenv(). That would be much more what is my basic problem. And even Google knows the correct answer http://www.google.com/search?hl=enlr=q=python+set+environment+variable Follow the first hit. -- Grant Edwards grante

Re: Execute C code through Python

2005-10-21 Thread Grant Edwards
On 2005-10-21, Ernesto [EMAIL PROTECTED] wrote: Thanks. Can anyone provide an example of using *subprocess* to run helloWorld.C through the python interpreter. No. You can't run a .C file. You can run a .exe file (I'm guessing you're using Windows based on the question). -- Grant Edwards

Re: Compile C program - .pyc file

2005-10-21 Thread Grant Edwards
be terribly difficult, but doing so for C would be pretty tough because you'd have to figure out how to fake all the low-level pointer shenanigans which C allows (or some would say depends upon). -- Grant Edwards grante Yow! Are we live

Re: Execute C code through Python

2005-10-21 Thread Grant Edwards
On 2005-10-21, Micah Elliott [EMAIL PROTECTED] wrote: On Oct 21, Grant Edwards wrote: I'm guessing you're using Windows based on the question. +1 QOTW. Yow! That's two in one day, what do I win? -- Grant Edwards grante Yow! I'll take ROAST BEEF

Re: need some advice on x y plot

2005-10-21 Thread Grant Edwards
in ticx] ticstrings = ['%s %f' % (t[1],t[0]-start) for t in tics] gp('set xtics (%s)' % ','.join(ticstrings)) gp.plot(data) pause() outfile = 'foo.png' gp('set term png') gp('set out %s' % outfile) gp.plot(data) --8-- -- Grant Edwards

Re: Set an environment variable

2005-10-21 Thread Grant Edwards
to a child process. Either of the lines of code above will do that, so what's with all the shellular shenanigans? -- Grant Edwards grante Yow! Youth of today! Join at me in a mass rally

Re: Set an environment variable

2005-10-21 Thread Grant Edwards
On 2005-10-21, Mike Meyer [EMAIL PROTECTED] wrote: Grant Edwards [EMAIL PROTECTED] writes: My point: the OP wanted to know how to export an environment variable to a child process. Either of the lines of code above will do that, so what's with all the shellular shenanigans? Actually, the OP

Re: need some advice on x y plot

2005-10-21 Thread Grant Edwards
On 2005-10-21, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: gp('set term png') is this an example of sending normal gnuplot commands? Yes. if so, are all of the gnuplot commands available ? Yes. -- Grant Edwards grante Yow! Do you like TENDER

Re: Set an environment variable

2005-10-24 Thread Grant Edwards
obvious and what isn't. -- Grant Edwards grante Yow! My face is new, my at license is expired, and I'm visi.comunder a doctor's care -- http://mail.python.org/mailman/listinfo

Re: need some advice on x y plot

2005-10-25 Thread Grant Edwards
the program to do and post the output from that program. Do _not_ attempt to re-type the output from the program. Either redirect it to a file or cut/paste it. -- Grant Edwards grante Yow! PUNK ROCK!! DISCO at DUCK

Re: need some advice on x y plot

2005-10-25 Thread Grant Edwards
at the ticstrings value that worked, and look at the ticstrings value that didn't work. What is the difference between the two? because its a little different application of time. i think i am having trouble knowing exactly what the set xtics line is looking for. -- Grant Edwards

Re: need some advice on x y plot

2005-10-25 Thread Grant Edwards
xdata = [x+start for x in xdata] print xdata data = Gnuplot.Data(xdata,ydata,with='linespoints',using=(1,2)) gp('set xdata time') gp('set timefmt %s') gp('set format x %r') gp('set xtics 120') gp.plot(data) pause() --8-- -- Grant

Re: need some advice on x y plot

2005-10-25 Thread Grant Edwards
On 2005-10-25, Grant Edwards [EMAIL PROTECTED] wrote: It looks like it. Though I've used custom tics in the past, it was never for time values. Based on the help from gnuplot, I suspect you can get what you want without doing custom tics, but rather using the commands set xdata time

Re: need some advice on x y plot

2005-10-25 Thread Grant Edwards
On 2005-10-25, Grant Edwards [EMAIL PROTECTED] wrote: It appears that the Gnuplot modules has coerced my data into single-precision -- thus throwing away most of the resolution on the x-axis. Passing Gnuplot.Data a Numeric array object is a good work-around. Otherwise, Gnuplot.Data

Re: Top-quoting defined [was: namespace dictionaries ok?]

2005-10-26 Thread Grant Edwards
referring to is top-posting. -- Grant Edwards grante Yow! ... If I had heart at failure right now, visi.comI couldn't be a more

Re: Top-quoting defined [was: namespace dictionaries ok?]

2005-10-26 Thread Grant Edwards
On 2005-10-26, Duncan Booth [EMAIL PROTECTED] wrote: Grant Edwards wrote: Uh, no. Isn't what we're doing here top-quoting? The quoted stuff is at the top. Everything is in chronological order. I think what you're referring to is top-posting. Yes, Iain King already pointed this out

Re: Suggestion for (re)try statement

2005-10-28 Thread Grant Edwards
you can come up with a syntax that is really that much better than the for loop, but give it a go if you like. -- Grant Edwards grante Yow! My BIOLOGICAL ALARM at CLOCK just went off

Re: popen2

2005-10-29 Thread Grant Edwards
. -- Grant Edwards grante Yow! NOW, I'm supposed at to SCRAMBLE two, and HOLD visi.comth' MAYO!! -- http://mail.python.org/mailman/listinfo/python-list

Re: popen2

2005-10-29 Thread Grant Edwards
know there's no way to do that under Unix. IIRC, the OP is running Win32, and I'm not quite as confident that it can't be dont under Win32, but I don't think it can. -- Grant Edwards grante Yow! With YOU, I can

Re: Python's website does a great disservice to the language

2005-11-01 Thread Grant Edwards
? Maybe we could build a basic CMS on top of Django or TurboGears (displaying Python's capability as a web development stack)? I like the Python web site. It's simple, easy to read, and easy to use. Just like the lanuage. -- Grant Edwards grante Yow! Yow!! That's

Re: WTF?

2005-11-01 Thread Grant Edwards
On 2005-11-01, James Stroud [EMAIL PROTECTED] wrote: Why do my posts get held for suspcious headers and troll Xha Lee gets to post all sorts of profanity and ranting without any problem? Held? It's not a moderated group... -- Grant Edwards grante Yow! I'm

Re: Python's website does a great disservice to the language

2005-11-01 Thread Grant Edwards
have a large blank rectangle where the flash stuff is supposed to be. These guys have figured out that they should put something _under_ the flash rectangle that elicits a click out of people who have flash disabled by default. Um, not that I clicked, or anything... -- Grant Edwards

Re: WTF?

2005-11-01 Thread Grant Edwards
On 2005-11-01, James Stroud [EMAIL PROTECTED] wrote: On Tuesday 01 November 2005 14:26, Grant Edwards wrote: On 2005-11-01, James Stroud [EMAIL PROTECTED] wrote: Why do my posts get held for suspcious headers ... Held? It's not a moderated group... And I quoteth (that's King James

Re: About the Python Expert

2005-11-02 Thread Grant Edwards
. but it is ur decision. There's _already_ a tutor mailing list and a general Python newsgroup -- both full of knowledgeable and helpful people. [Since I took a shot at this guy's spelling, there's _got_ to be a spelling error in my post, but I can't find it...] -- Grant Edwards

Re: reading internet data to generate random numbers.

2005-11-02 Thread Grant Edwards
every 2nd, 3rd, or 4th byte to protect privacy? 2nd, 3rd, 4th, byte of what? Doesn't your OS have an entropy-gathering RN generator built-in? -- Grant Edwards grante Yow! Yow! I forgot my at PAIL

Re: Hexadecimal Conversion in Python

2005-11-02 Thread Grant Edwards
this: b = ord(s[2]) For example: s = ABC ord(s[0]) 65 ord(s[1]) 66 ord(s[2]) 67 If you want a list of the integer equivalents of the bytes in a string, do this: bl = [ord(c) for c in s] [ord(c) for c in s] [65, 66, 67] -- Grant Edwards grante Yow! Make me

Re: reading internet data to generate random numbers.

2005-11-03 Thread Grant Edwards
the timing of network events, not the user-data associated with those events. -- Grant Edwards grante Yow! ... this must be what at it's like to be a COLLEGE visi.comGRADUATE

Re: reading internet data to generate random numbers.

2005-11-03 Thread Grant Edwards
how to read every nth byte of the Internet stream, so I assumed he had something like that in mind. I agree that would be a pretty bad idea unless you went to some effort to reduce the bias in the distribution of the value of data bytes. -- Grant Edwards grante Yow

Re: reading internet data to generate random numbers.

2005-11-03 Thread Grant Edwards
just waited for the OP to explain what the heck he meant by the Internet stream, you'd have saved ever so much time. ;-) (But then, if we always did that Usenet wouldn't be any fun.) That's for sure. The real questions are rarely as interesting and the imagined ones. -- Grant Edwards

Re: UART parity setting as mark or space (using Pyserial???)

2005-11-04 Thread Grant Edwards
OSes drain functions are notoriously inaccurate. -- Grant Edwards grante Yow! Did I say I was a at sardine? Or a bus??? visi.com -- http://mail.python.org/mailman/listinfo

Re: Using Which Version of Linux

2005-11-05 Thread Grant Edwards
(or at least not for the poor and impatient). Since it compiles packages from source, a full-featured desktop install on a slow machine can take days to finish. -- Grant Edwards grante Yow! if it GLISTENS, at gobble

Re: Using Which Version of Linux

2005-11-05 Thread Grant Edwards
quite badly. You'd say the same think about Debian if all you had ever used was dpgk, and I dare you to try to do anything with dselect. Debian and SUSE are both pretty good choices. -- Grant Edwards grante Yow! I just got my PRINCE

Re: Goto XY

2005-11-08 Thread Grant Edwards
could always use tput -- and it will still be portable. -- Grant Edwards grante Yow! I'm GLAD I at remembered to XEROX all visi.commy UNDERSHIRTS!! -- http://mail.python.org

Re: PYTHON LOOSING FOR JAVA???????

2005-11-09 Thread Grant Edwards
On 2005-11-09, James Colannino [EMAIL PROTECTED] wrote: Bill Mill wrote: +1 QOTW My ignorance shows here. What does that mean? :-P It's a vote for Qutoe of the Week. -- Grant Edwards grante Yow! Are we live

Re: Floating numbers and str

2005-11-09 Thread Grant Edwards
= %0.4g % x y '0.1324' -- Grant Edwards grante Yow! A GRAM?? A BRAM... A at GROOM... A BROOM... Oh, visi.comYeh!! Wash the ROOM!! -- http://mail.python.org/mailman/listinfo

Re: Floating numbers and str

2005-11-09 Thread Grant Edwards
On 2005-11-09, Tuvas [EMAIL PROTECTED] wrote: Wait, one more question. If the number is something like: 1.32042 It is like 1.32 stuff I would like it's size to remain constant. Any way around this? http://www.python.org/doc/current/lib/typesseq-strings.html#l2h-211 -- Grant Edwards

Re: Python obfuscation

2005-11-09 Thread Grant Edwards
of protection maybe use these offuscator on the remaining Python source. What do you think ? Um... sounds like an excellent way to burn hours while introducing bugs and security problems? -- Grant Edwards grante Yow! I feel... JUGULAR

Re: struct, IEEE-754 and internal representation

2005-11-09 Thread Grant Edwards
objects are of the C type double and use 64-bit IEEE-754 representation on all the common platforms I know about. -- Grant Edwards grante Yow! .. or were you at driving the PONTIAC that visi.com

Re: Floating numbers and str

2005-11-09 Thread Grant Edwards
On 2005-11-10, Dan Bishop [EMAIL PROTECTED] wrote: Grant Edwards wrote: On 2005-11-09, Tuvas [EMAIL PROTECTED] wrote: I would like to limit a floating variable to 4 signifigant digits, when running thorugh a str command. Sorry, that's not possible. Technically, it is. Ah well, I

Re: A Tcl/Tk programmer learns Python--any advice?

2005-11-10 Thread Grant Edwards
On 2005-11-10, Svenn Are Bjerkem [EMAIL PROTECTED] wrote: (and python can not do set result [exec someprog $input] as far as I know) I don't remember Tcl very well, but doesn't this do the same thing? result = os.popen('someprog','r').read() -- Grant Edwards grante

Re: Is there a built-in method for transforming (1, None, Hello!) to 1, None, Hello!?

2005-11-11 Thread Grant Edwards
On 2005-11-11, Daniel Crespo [EMAIL PROTECTED] wrote: Is there a built-in method for transforming (1,None,Hello!) to 1,None,Hello!? What transformation? The two are identical: x = (1,None,Hello!) y = 1,None,Hello! x == y True -- Grant Edwards grante Yow

Re: q: console widgets for *nix and windows?

2005-11-14 Thread Grant Edwards
methods etc. http://tvision.sourceforge.net/ -- Grant Edwards grante Yow! I'm using my X-RAY at VISION to obtain a rare visi.comglimpse of the INNER

Re: Proposal for adding symbols within Python

2005-11-14 Thread Grant Edwards
the use of strings is untenable. -- Grant Edwards grante Yow! And furthermore, at my bowling average is visi.comunimpeachable!!! -- http://mail.python.org/mailman/listinfo

Re: q: console widgets for *nix and windows?

2005-11-15 Thread Grant Edwards
On 2005-11-15, aum [EMAIL PROTECTED] wrote: On Mon, 14 Nov 2005 20:56:36 +, Grant Edwards wrote: Can anyone please recommend a widget library for text console, that works not only on *nix systems but windows /as well/? I'm looking for something a bit higher-level than pure curses

Re: Proposal for adding symbols within Python

2005-11-15 Thread Grant Edwards
On 2005-11-15, Ben Sizer [EMAIL PROTECTED] wrote: Grant Edwards wrote: In the situations described, I always use strings and have never felt the need for something else: ... I don't think I even understand what the objection is. What is needed is a code fragment that shows how the use

  1   2   3   4   5   6   7   8   9   10   >