Re: Help Required for Choosing Programming Language

2007-02-24 Thread Thomas Bartkus
is quite correct to ask for a system like VB6 that banishes the problem of user interface coding to the trivial role it deserves. Why should a programmer waste even so much as 10% of his effort to throw together a standard interface with ordinary textboxes, labels, and option buttons? Over and

Re: Python, PostgreSQL, What next?

2006-12-02 Thread Thomas Bartkus
hing licked. Get SQL in your head and all you will need would be the db-api interface with Postgres that Frederick Lundh pointed you to. All you want to do is throw SQL commands at Postgres and recover result sets into Python. It's a cinch. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Survival of the fittest

2006-09-26 Thread Thomas Bartkus
your stated "policy" leave you still wasting 20-30% of your programming efforts on other languages? We would be curious to know about those things you can do in C++ but can't do in Python. (Doubting) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Open file handles?

2006-08-09 Thread Thomas Bartkus
"Jon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Perhaps using os you could work with lsof > [http://www.linuxcommand.org/man_pages/lsof8.html] > > Jon > Of course! That's perfect. Thank you! How silly of me not to have noticed that &qu

Open file handles?

2006-08-08 Thread Thomas Bartkus
e an open write handle to that file. IOW - I need to decline the operation if something else hasn't finished writing to the file. How can I know? Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question: what's with "self"?

2006-08-08 Thread Thomas Bartkus
. If you have a method upper() that convert everything to uppercase, your class definition would need the "self" parameter in order to know which particular string to convert. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: using python at the bash shell?

2006-08-08 Thread Thomas Bartkus
bother with BASH at all ;-) And with Python available everywhere, I've just reconsiled to pick up my BASH by osmosis and concentrate on (much!) cleaner scripting with Python. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: No need to close file?

2006-07-18 Thread Thomas Bartkus
king if it is a good idea to not close it? Good programming practice says that if you open it - you close it. And stay out of trouble ;-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: ideas for programs?

2006-05-31 Thread Thomas Bartkus
code? You can't sell a program because it's written in Python. But you can sell a Python program that solves a problem. Find a problem and beat it with software. The particular language you choose to use has nothing to do with it! But we do like Python ;-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: MySQLdb trouble

2006-05-10 Thread Thomas Bartkus
"John Salerno" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thomas Bartkus wrote: > > > 1) His code body will be less likely to cause migrane headaches when he > > tries to read and interpret what he did a year from now. If you are trying >

Re: MySQLdb trouble

2006-05-10 Thread Thomas Bartkus
x27;s really a matter of style and preference. Some programmers (myself included!) prefer many, very short and simple functions over fewer function with longer blocks of more complex code. It's hard to make a mistake by having too many short and simple functions. And much too easy to make them when you have too few ;-) Thomas Bartkus . -- http://mail.python.org/mailman/listinfo/python-list

Re: python rounding problem.

2006-05-09 Thread Thomas Bartkus
"Grant Edwards" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 2006-05-08, Thomas Bartkus <[EMAIL PROTECTED]> wrote: > > >> Or you can write 0.1 > >> 3 > >> > >> :) > > > > Ahhh!

Re: python rounding problem.

2006-05-08 Thread Thomas Bartkus
"Grant Edwards" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 2006-05-08, Thomas Bartkus <[EMAIL PROTECTED]> wrote: > > >> does python support true rations, which means that 1/3 is a > >> true one-third and not 0.3 rounded of

Re: python rounding problem.

2006-05-08 Thread Thomas Bartkus
y more than you can do it with pencil and paper. You can be precise and write "1/3" or you can surrender to arithmetic convenience and settle for the imprecise by writing "0.3", chopping it off at some arbitrary precision. Which is exactly what you did in your post ;-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: python application ideas.

2006-04-25 Thread Thomas Bartkus
e nothing to do. What *other* interests do you have? Hobbies? Job Skills? What *does* "blow your hair back" ;-) That's where your programming ideas need to come from. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Class __init__ behaviour

2006-04-20 Thread Thomas Bartkus
appen. The ancester object won't be initialized. But If I *don't* insert my own __init__ in my new class, then any declared ancester __init__ will automatically run because I haven't overridden the ancesters __init__ method with my own. Did I get that straight? Thoma

Re: nested functions

2006-04-14 Thread Thomas Bartkus
in control - building worlds according to your own design. Had it not been your intention to hide 'b' and 'c', you would not have isolated them in this manner inside of 'a' . I, for one, am so glad to have nested functions again ;-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Python editing with emacs/wordstar key bindings.

2006-04-13 Thread Thomas Bartkus
"Carl Banks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thomas Bartkus wrote: > > Does anyone use emacs together with both WordStar key bindings and python > > mode? I'm afraid that Wordstar editing key commands are burned R/O into my

Python editing with emacs/wordstar key bindings.

2006-04-11 Thread Thomas Bartkus
r than the default that came with emacs? Any tips/hints appreciated. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Override on terminal

2006-04-11 Thread Thomas Bartkus
ada yada for various terminal types inside nice python functions And I'll be surprised if it doesn't default to VT-100 ;-) > And also: is it possible to override, from python code, something on a > unix(linux) terminal? I don't know what that means. If you meant overwrite (rather than

Re: Indentation/whitespace

2005-12-23 Thread Thomas Bartkus
note and not argue about "why indentation is good" But - why should Python "support s syntax the does not use it's infamous whitespace rules" It's unique to Python. That's what Python *is*. If one doesn't like it, one needn't waste one's ti

Re: Python and MySQL

2005-11-03 Thread Thomas Bartkus
"Magnus Lycka" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thomas Bartkus wrote: > > But heck! Now I'm looking at the /usr/lib/python2.3/site-packages on a > > Mandrake Linux box. No [_mysql.] pyd here! Fewer files overall and while

Re: Python and MySQL

2005-11-03 Thread Thomas Bartkus
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thomas Bartkus wrote: > > "Steve Holden" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > >>I have a _mysql.c as a part of my distrbution

Re: Python and MySQL

2005-11-02 Thread Thomas Bartkus
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thomas Bartkus wrote: > > Well, I'm looking at the source for the ever popular MySQLdb library. It > > appears to be nothing but straight up Python source code. I see no reason > >

Re: Python and MySQL

2005-11-02 Thread Thomas Bartkus
ate directory. There is nothing secret here. But As others have already pointed out, after you go to this trouble, your hosting provider will still suck! I'm sure you can you can get lot's of suggestions for a suitable replacement. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Dealing with Excel

2005-10-18 Thread Thomas Bartkus
n ADODB.Recordset object with query results. Once you have your recordset stuffed with query results you can pass it to the Excel "CopyFromRecordset" function: Worksheets("Whatever").Cells(1,1).CopyFromRecordset {recordset object} and wham! - You have it

Re: Python reliability

2005-10-10 Thread Thomas Bartkus
;Embedded Linux". And I wouldn't be surprised if some dedicated microcontrollers aren't showing up with Python capability. In any case, it would seem you need more control than a Python interpreter would receive when running under Linux. Good Luck. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Python, Mysql, insert NULL

2005-10-06 Thread Thomas Bartkus
sert a Null. But - I really do appreciate your concern :-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Python, Mysql, insert NULL

2005-10-05 Thread Thomas Bartkus
to "Null" when passed to MySQL. I don't quite understand this and don't really care. If I have a Python variable that has a value None, and I want to transmit this to MySQL as Null - I would: if somevar == None: StrToConcatenateIntoSqlStatement = "Null" e

Re: aproximate a number

2005-08-29 Thread Thomas Bartkus
On Sun, 28 Aug 2005 23:11:09 +0200, billiejoex wrote: > Hi all. I'd need to aproximate a given float number into the next (int) > bigger one. Because of my bad english I try to explain it with some example: > > 5.7 --> 6 > 52.987 --> 53 > 3.34 --> 4 > 2.1 --> 3 > The standard way to do this is

Embedding Python in other programs

2005-08-25 Thread Thomas Bartkus
direct me to greater enlightenment? Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Obfuscator for Python Code

2005-08-17 Thread Thomas Bartkus
ing, the obfuscators might be tempted to flock to it :-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Python as VBA replacement under Windows?

2005-08-17 Thread Thomas Bartkus
e promise for you although I have not been following developments here very closely. As for me - I'm sick of the directions MS is taking. I'm looking to Gnumeric/Python as an open source replacement to Excel/VBA :-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI tookit for science and education

2005-08-17 Thread Thomas Bartkus
"Paul Rubin" wrote in message news:[EMAIL PROTECTED] > Mateusz £oskot <[EMAIL PROTECTED]> writes: > > Thank you for any piece of advice in advance. > > Ask yourself why you want a GUI toolkit. Maybe you can write a web > application instead, and use a browser as the GUI.

Re: Python as VBA replacement under Windows?

2005-08-17 Thread Thomas Bartkus
"Wolfgang Keller" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > this is a potentially veeery dumb question, but: > > - If an application supports VBA as a macro language, > - and if you can execute Python code from within a VBA script (how?) > - and if the application exp

Re: Why Tcl/Tk?

2005-07-28 Thread Thomas Bartkus
d. Soon, these folks will die off, and we'll be left > with GTK+ or wxWidgets. > Ahhh! That devilish little "or" If we only knew which one :-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-21 Thread Thomas Bartkus
up the rear on Linux. Python is fun, but how do we get it to desktop primetime ? Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread Thomas Bartkus
On Mon, 18 Jul 2005 19:56:24 -0400, Mike Meyer wrote: > "Thomas Bartkus" <[EMAIL PROTECTED]> writes: >>> > Re-train on a new platform, >>> > and re-write from scratch? >> >> What do you do when an open source project you were using gets

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread Thomas Bartkus
t came out of Borland. I'm guessing that Microsoft has successfully targeted this perceived competitor with destruction. If Kylix were of the quality of Delphi, it would be a killer Linux app. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread Thomas Bartkus
train on a new platform, > > and re-write from scratch? What do you do when an open source project you were using gets abandoned? Hard to see much difference here. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Native ODBC access for python on linux?

2005-07-15 Thread Thomas Bartkus
at. Just point MySQLdb.connect() at the servers IP address. Go to SourceForge and download the MySQLdb installation for win32 [MySQL-python.exe-1.2.0.win32-py2.4.exe]. Sometimes you can't believe it because it's too easy :-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Native ODBC access for python on linux?

2005-07-14 Thread Thomas Bartkus
query away at the server. As long as the MySQL server accepts your IP/usr/pwd, it will respond to the SQL you pass it from Python. IOW - who/what needs an ODBC driver here? Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: all possible combinations

2005-07-13 Thread Thomas Bartkus
er) FROM Letters As t1, Letters As t2, Letters As t3, Letters As t4 Will return those 81 combinations in an eyblink. In order to stay on topic, you are required to call your favorite SQL engine from Python :-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Yet Another Python Web Programming Question

2005-07-12 Thread Thomas Bartkus
"Daniel Bickett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It was his opinion that > web programming should feel no different from desktop programming. Should that ever become even remotely possible - I'll be interested in web program

Re: Lisp development with macros faster than Python development?..

2005-07-11 Thread Thomas Bartkus
down to is which language(s) have the best balance of approachability (easy to learn!) and capability. Bear in mind though, that if the language sacrifices capability in favor of being easy, then the fun runs out of it too soon :-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Legacy data parsing

2005-07-08 Thread Thomas Bartkus
t; is immediately followed by several lines of an address - up until the empty line. And you can look at each of those address lines and use trim() to remove leading and trailing blanks. Similarly, the line that begins " LANG:" would seem to immediately precede another address. None o

pygtk does ... ?

2005-07-08 Thread Thomas Bartkus
What the heck is the pygtk library for? help(pygtk) tells me not much more than - "Python bindings for the GTK+ widget set" Why would I want to "import pygtk" with it's single function "require(version)"? What is it supposed to do? Where does i

Re: I am a Java Programmer

2005-07-01 Thread Thomas Bartkus
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am a java programmer and I want to learn Python Please help me. > Well! Your condition is certainly tragic! But what can anyone do? Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Boss wants me to program

2005-06-29 Thread Thomas Bartkus
of trigonometry. It would be helpful of if your class was near the seashore. You would want a clear shot at the horizon. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Boss wants me to program

2005-06-28 Thread Thomas Bartkus
orrect to point out how much better it is to know what is going on behind the scenes. But heck, once you know how to extract square roots - you need to let the computer do it! GUI interfaces should be the same deal! Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Boss wants me to program

2005-06-27 Thread Thomas Bartkus
shines in the MS Windows/Office realm. 2) Python shines everywhere else. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Office COM automatisation - calling python from VBA

2005-06-24 Thread Thomas Bartkus
ions you needed to work with. Do you think that might please a few of us here in this particular newsgroup? This is exactly what Microsoft has with Office/VBA. I don't particularly like VBA as a language either. And I don't like B. Gates And I may well be crazy. Just not *that* crazy! Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Database recommendations for Windows app

2005-06-23 Thread Thomas Bartkus
"Magnus Lycka" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thomas Bartkus wrote: > > "Magnus Lycka" <[EMAIL PROTECTED]> wrote in message > > > The O.P. wanted a database for his > > > Python app, and Thomas Bartku

Re: Database recommendations for Windows app

2005-06-23 Thread Thomas Bartkus
ying that Python worsens that frustration, are you? > > I think Dan was commenting on flaws in Microsoft's products, > not in Python. As I understand it, he was suggesting to use > something else than Access with Python, not something else > than Python with Access. The O.P. want

Re: Database recommendations for Windows app

2005-06-23 Thread Thomas Bartkus
ying that Python worsens that frustration, are you? > > I think Dan was commenting on flaws in Microsoft's products, > not in Python. As I understand it, he was suggesting to use > something else than Access with Python, not something else > than Python with Access. > The O.

Re: Database recommendations for Windows app

2005-06-22 Thread Thomas Bartkus
"Dan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 6/22/2005 11:38 AM, Thomas Bartkus wrote: > > Will McGugan" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > And then XP Autoupdate executes, some of

Re: Database recommendations for Windows app

2005-06-22 Thread Thomas Bartkus
nux (all flavors!) to Unix to BSD without need to alter a single line of code. You were writing a Python app, weren't you :-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Database recommendations for Windows app

2005-06-22 Thread Thomas Bartkus
indows to Linux (all flavors!) to Unix to BSD without need to alter a single line of code. You were writing a Python app, weren't you :-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Dealing with marketing types...

2005-06-13 Thread Thomas Bartkus
"fuzzylollipop" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > man this is the worst advice I have ever heard, you can't "walk away > with code" someone else paid you to write. Regardless of what your > perceived slight is. > > NEVER take code you were paid to write unless you have i

Re: Dealing with marketing types...

2005-06-13 Thread Thomas Bartkus
time. AND there is a very > >high possibility that they will *need* you at a later date for which you > >can charge them dearly. > > > >That last item #3 has actually worked for me with (2) prior employers. > >I did have to eat my indignation and keep it friendly but it

Re: Dealing with marketing types...

2005-06-10 Thread Thomas Bartkus
"fuzzylollipop" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > get your resume in order and start looking . . . I *hate* the fact that I agree with this post. I, for one, am hoping for serious discussion to address the problem. Thomas Bartkus -- http://mail

Re: Dealing with marketing types...

2005-06-10 Thread Thomas Bartkus
ould like to reduce the cost and increase the reliability of the labor force available to develop and maintain the system. If *thats* what's bothering you bunky - I'm sorry to tell you that I am short on solutions. BUT understanding the problem is the first step on the path to a solution :-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: anygui,anydb, any opinions?

2005-06-10 Thread Thomas Bartkus
"Renato Ramonda" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thomas Bartkus ha scritto: > > >>Then download gtk2.6 and glade for windows and then install pygtk and > >>code away to your satisfaction! :-D > >> > > &g

Re: anygui,anydb, any opinions?

2005-06-09 Thread Thomas Bartkus
"Renato Ramonda" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thomas Bartkus ha scritto: > > The attractiveness of wxPython here is that it extends the platform > > neutrality of Python to GUI interfaces. On a Windows platform, the work > >

Re: anygui,anydb, any opinions?

2005-06-07 Thread Thomas Bartkus
"James Tanis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Previously, on Jun 6, Thomas Bartkus said: > > # "James Tanis" <[EMAIL PROTECTED]> wrote in message > # news:[EMAIL PROTECTED] > # > > # > > # > My 2 cents, I&#

Re: anygui,anydb, any opinions?

2005-06-06 Thread Thomas Bartkus
"James Tanis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Previously, on Jun 6, Thomas Bartkus said: > > # "bruno modulix" <[EMAIL PROTECTED]> wrote in message > # news:[EMAIL PROTECTED] > # > You mean the "wimp gui build

Re: anygui,anydb, any opinions?

2005-06-06 Thread Thomas Bartkus
ess has nothing to do with the language and everything to do with the integrated GUI / IDE available to that particular (VB) language. Anything that reduces the overhead involved in producing a consistent/attractive/idiot proof user interface makes a far more productive environment. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: anygui,anydb, any opinions?

2005-06-06 Thread Thomas Bartkus
"bruno modulix" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thomas Bartkus wrote: > > "rzed" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > > >>So what do you think? What's wrong

Re: anygui,anydb, any opinions?

2005-06-02 Thread Thomas Bartkus
gests that it might amount to no more than a bit of fluff hardly worth bothering with because when it comes to programming - An excellent IDE/GUI just trumps everything. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: anygui,anydb, any opinions?

2005-06-01 Thread Thomas Bartkus
"Paul Rubin" <http://[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Thomas Bartkus" <[EMAIL PROTECTED]> writes: > > > Given that for the most part nobody in the Python community has a > > > handle on any other Python pers

Re: anygui,anydb, any opinions?

2005-06-01 Thread Thomas Bartkus
Cobol. Are we now so productive that there is no longer an unmet need for new/better software? Do we stop here? Is Python a comfortable place for the Luddites hang out. I think not. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: anygui,anydb, any opinions?

2005-06-01 Thread Thomas Bartkus
oint, one has to break out of theory and produce! Or challenge the theory with some hard questions. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: anygui,anydb, any opinions?

2005-06-01 Thread Thomas Bartkus
oint, one has to break out of theory and produce! Or challenge the theory with some hard questions. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expressions - Python vs Perl

2005-04-21 Thread Thomas Bartkus
If gonzo RegEx query performance was of utmost importance, would anyone put either of Perl or Python at the top of his list? Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expressions - Python vs Perl

2005-04-21 Thread Thomas Bartkus
s great for other things other than > just readability.) Your quite welcome. BUT I didn't say a word about readability. I claimed it was easier to *write*. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expressions - Python vs Perl

2005-04-21 Thread Thomas Bartkus
ftware - think how much more the world gains in software quality and quantity. How about man hours saved? Why does anyone still waste so much angst over execution speed? I doubt the total execution time for all the RegEx queries you ever ran took as much time as you just wasted on your little exper

Re: Things you shouldn't do

2005-03-30 Thread Thomas Bartkus
"Steve" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What are some of other people's favourite tips for > avoiding bugs in the first place, as opposed to finding > them once you know they are there? > Fonts with slashed zeros and serifs. -Tom -- http://mail.python.org/mailman

Re: rounding problem

2005-02-24 Thread Thomas Bartkus
always exhibit "arithmetic slop" at the last significant digit. This is a property inherent to floating point numbers and has nothing to do with how it is stored on any machine. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Performance Issues of MySQL with Python

2005-02-09 Thread Thomas Bartkus
language you select. The 2 functions, database server and programming language, do not interact in ways that raise unique performance issues. You can choose each one without worrying about the other. They two quite separate design choices. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: variable declaration

2005-02-08 Thread Thomas Bartkus
ct, let alone trace! Before one even tries, it behooves one to spell check his variables. An additional step that counters Python's procedural simplicity. "i" comes before "e" except after "c" OR whenever I make a typo! Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: variable declaration

2005-02-01 Thread Thomas Bartkus
ot completely convinced of that. > As has been pointed out, it's not a big deal for a programmer who's been there, done that. But the original posters example is a beginners trap for certain. *If* Python were a "beginners language", then it would be missing one of it's t

Re: The next Xah-lee post contest

2005-02-01 Thread Thomas Bartkus
pe he manages to find a babe! As human conditions go, normalcy is *highly* overrated.. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: variable declaration

2005-02-01 Thread Thomas Bartkus
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thomas Bartkus wrote: > > > "Carl Banks" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > > >>How common is it for a

Re: variable declaration

2005-02-01 Thread Thomas Bartkus
e. I had to take a good long stare before I saw it even though the code is short, sweet, and otherwise correct. *Is* there a reason why the interpreter couldn't/shouldn't require formal variable declaration? It seems to me that lack of same may also be creating hellish barriers to wri

Re: variable declaration

2005-01-31 Thread Thomas Bartkus
y legal! This seemingly demolishes all the good reasons one has for wanting strict type checking. That second example is just bad programming practice and easy to avoid. The problem you point out in your code, however, hurts! Was that an I, an l or a 1 in the variable name? Hey! - I like Python a lot. But nothings perfect Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: python without OO

2005-01-26 Thread Thomas Bartkus
ery foundation upon which it is built. > ... anyhow, I guess > I'll have to constrain what can be included in the code through > different policies rather than language limitations... It would be reasonable to decide that Python is not what you are looking for. I'm not sure that castrating it in this manner would be quite so reasonable. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: python without OO

2005-01-25 Thread Thomas Bartkus
with Python at all. It seems you could be happy doing BASH scripts for Linux or DOS batch files for Windows. Both are "nice&simple" scripting languages free of object oriented contamination. Why would you use an object oriented language if you don't want to? Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Help! Host is reluctant to install Python

2005-01-25 Thread Thomas Bartkus
re: I'll second what you are already hearing. Find a new hosting service because the one you have now is not qualified. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Graph and Table implementation

2005-01-21 Thread Thomas Bartkus
o manipulate the Excel object model . On the Linux/Unix side. Gnumeric seems to serve very well although I don't yet have sufficient personal experience with it to know about the "gotcha's" you might encounter. I am also guessing that the Open Office spreadsheet would work too

Re: [OT] Good C++ book for a Python programmer

2005-01-19 Thread Thomas Bartkus
you seek - couldn't you just C a few slow functions and use them in your Python? Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: simultaneous multiple requests to very simple database

2005-01-18 Thread Thomas Bartkus
exity to what you are attempting. The problems you mention are precisely those that databases are meant to solve. The only tough (impossible?) requirement you have is that you don't want to use one. When you write that "super dictionary", be sure to post code! I could use one of

Re: simultaneous multiple requests to very simple database

2005-01-18 Thread Thomas Bartkus
without malice. Do you seriously expect to write your own (database) solution and that this will save you time and effort over learning an existing (SQL) solution? Because - If you are seeking to "save time" on "puzzles", you are certainly going about it the wrong way. Best of lu

Re: Windows GUIs from Python

2005-01-11 Thread Thomas Bartkus
ows portablility of the code. 2) The fact that wxPython follows the look and feel of whatever window themes might be installed in Linux/Gnome or MS Windows. 3) Apps so written have that native "look and feel" and fit right in. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: Reaching the real world

2005-01-04 Thread Thomas Bartkus
and the microprocessor based controller will turn on the appropriate relay. Your challenge from Python will be to control the computers I/O ports or to communicate with one of the serial ports. I'm sure someone else will point to libraries that will help you with this. Much *much* more but you ha

Re: Reaching the real world

2005-01-04 Thread Thomas Bartkus
and the microprocessor based controller will turn on the appropriate relay. Your challenge from Python will be to control the computers I/O ports or to communicate with one of the serial ports. I'm sure someone else will point to libraries that will help you with this. Much *much* more but you ha

Re: The Industry choice

2004-12-30 Thread Thomas Bartkus
ny viable, technical reasons for that? Are there "viable, technical reasons"? That would be doubtful. But There is a reason very important to major companies. When you leave that company, there will be a *long* line of Java programmers waiting to take your place. There need b

Re: Tkinter vs wxPython

2004-12-29 Thread Thomas Bartkus
ndows, it follows that desktop theme. Both Gnome and Windows XP alter the the controls design according to user preferences. wxPython GUIs reflect this automatically and the controls always look and work like the underlying system. I may be wrong but I don't think you get that with TKinter! Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: BASIC vs Python

2004-12-17 Thread Thomas Bartkus
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Thomas Bartkus" <[EMAIL PROTECTED]> writes: > > > The "interpreted" nature of the existing Python language has little to do > > with how it compares to other la

Re: BASIC vs Python

2004-12-16 Thread Thomas Bartkus
rience. So Similar to BASIC - no! Great language for beginning programmers - yes! Thomas Bartkus "abisofile" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > hi > > I'm new to programming.I've try a little BASIC so I want ask since >

Re: why not arrays?

2004-12-16 Thread Thomas Bartkus
the joys associated with memory allocation/deallocation :-) Thomas Bartkus "Rahul" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi. > I just wanted to know why arrays have not been included as a builtin > datatype like lists or dictionaries? The numpy exten

  1   2   >