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 over again?
Thomas Bartkus
--
http
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
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
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 lsof means ListOpenFiles ;-)
Thomas Bartkus
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
in a typical program. The parameter self
refers to the particular string the class method is being called to operate
upon.
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
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
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
. 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
.
And much too easy to make them when you have too few ;-)
Thomas Bartkus
.
--
http://mail.python.org/mailman/listinfo/python-list
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
to figure out what is going on with the logic
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!
But if I need to store the value 1/10 (decimal!), what kind of
a precision pickle will I
at some arbitrary
precision.
Which is exactly what you did in your post ;-)
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
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 off at some
arbitrary precision?
At risk of being boring
your hair back ;-)
That's where your programming ideas need to come from.
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
.
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?
Thomas Bartkus
--
http
of 'a' .
I, for one, am so glad to have nested functions again ;-)
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
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
knuckles!
Old Borland C user?
Worse than
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 override!), then the answer would be
yes.
Thomas Bartkus
I would have a suggestion that won't use files.
I
the
default that came with emacs?
Any tips/hints appreciated.
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
whitespace rules
It's unique to Python. That's what Python *is*.
If one doesn't like it, one needn't waste one's time with it. No other
other language abides by those rules except Python.
So just choose a different language to work with.
Thomas Bartkus
--
http://mail.python.org/mailman
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 of MySQLdb. Don't you?
You made me give that library a good hard stare
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
there are other file extensions, everything seems
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
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
why you couldn't just take these modules and put
. 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 in a table on a worksheet.
Thomas Bartkus
--
http://mail.python.org/mailman
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
whether StrToConcatenateIntoSqlStatement
contains no apostrophes before you actually construct the SQL?
Can we say SQL injection exploit?
Not every query passes along public internet wires and all the guy asked for
was how to insert a Null.
But - I really do appreciate your concern :-)
Thomas
to
transmit this to MySQL as Null - I would:
if somevar == None:
StrToConcatenateIntoSqlStatement = Null
else:
StrToConcatenateIntoSqlStatement = somevar
All of which assumes, of course, that the field you are targeting will
accept a Null value.
Thomas Bartkus
--
http
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 thus:
def
enlightenment?
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
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 exposes its
Paul Rubin http://[EMAIL PROTECTED] 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. That's a
to enable the integration of 3rd party languages. That might hold some
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
to it :-)
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
or
If we only knew which one :-)
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
on Linux.
Python is fun, but how do we get it to desktop primetime ?
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
were using gets abandoned?
Hard to see much difference here.
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
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
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
abandoned?
cvs import -m sources for orphaned project myprojectname
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
- who/what needs an ODBC driver here?
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
:-)
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
Daniel Bickett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
snip
It was his opinion that
web programming should feel no different from desktop programming.
snip
Should that ever become even remotely possible -
I'll be interested in web programming myself.
Thomas Bartkus
!) 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
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 it fit in?
Or does it fit in at all?
Thomas Bartkus
--
http://mail.python.org
to immediately precede
another address.
None of this is particularly difficult with standard Python.
But then - if we are merely replacing an old printer -
We are already working way too hard!
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
[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
particular program.
You are quite correct 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
.
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
like B. Gates
And
I may well be crazy.
Just not *that* crazy!
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
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. wanted a database for his
Python app, and Thomas Bartkus suggested Access.
Not exactly!
I
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. wanted a database for his
Python app, and Thomas Bartkus suggested Access.
Not exactly!
I suggested
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 Bartkus suggested Access.
Not exactly!
Sorty, I meant Jet or whatever
.
You were writing a Python app, weren't you :-)
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
.
You were writing a Python app, weren't you :-)
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
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 those Access/MSDE libraries are
updated, and you app is broken
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 did pay off
in the end.
Thomas Bartkus
I have to say that, although I have yet to write a line of Python code for
money
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 it in
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
I *will* try that.
On linux you probably have everything installed
is the first step on the path to a solution
:-)
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
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.python.org/mailman
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
looks like any other Windows program. On Gnome
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'm much more productive with Python and QT Builder as I
# am with VB and those
bruno modulix [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Thomas Bartkus wrote:
rzed [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
snip
So what do you think? What's wrong with the picture? Why isn't
there a greater priority to work in this direction
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 builder + db - ui pipeline model ? If yes, C
# doesn't have it, C++ doesn't
it comes to
programming -
An excellent IDE/GUI just trumps everything.
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
and produce!
Or challenge the theory with some hard questions.
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
and produce!
Or challenge the theory with some hard questions.
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
for the Luddites hang out.
I think not.
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
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 person's paycheck, it's unlikely that
enough of the community can be convinced
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 experiment.
Thomas Bartkus
--
http
to *write*.
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
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
Steve [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
snip
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
--
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
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
! 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
,
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
writing truly effective IDEs for Python.
Thomas Bartkus
--
http://mail.python.org/mailman
Steve Holden [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Thomas Bartkus wrote:
Carl Banks [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
snip
How common is it for a local variable to be bound in
more than one place within a function?
How common
conditions go, normalcy is *highly* overrated..
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
, 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 training wheels.
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
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
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
are nicesimple 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
. 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.
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
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 luck
Thomas Bartkus
--
http://mail.python.org/mailman
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 those myself.
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
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
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 have to start somewhere :-)
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
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
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 extension shows that it
can be implemented. then why
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
Python is also interpreted lang if it's similar to BASIC
93 matches
Mail list logo