Andrew Dalke <[EMAIL PROTECTED]> writes:
> I know little about it, though I read at
> http://goathack.livejournal.org/docs.html
> ] LiveJournal source is lots of Perl mixed up with lots of MySQL
>
> I found more details at
> http://jeremy.zawodny.com/blog/archives/001866.html
>
> It's a bunch of
On Saturday 11 June 2005 11:37 pm, ross wrote:
> I want to do some tricky text file manipulation on many files, but have
> only a little programming knowledge.
[...]
> Would Python be best, or would a macro-scripting thing like AutoHotKey
> work?
> I thought about Perl, but think I would learn bad
Paul Rubin replied to me:
> If you're running a web site with 100k users (about 1/3 of the size of
> Slashdot) that begins to be the range where I'd say LAMP starts
> running out of gas.
Let me elaborate a bit. That claim of 100K from me is the
entire population of people who would use bioinforma
[EMAIL PROTECTED] wrote:
> Bindings created on a Toplevel or Tk widget apply to *all* widgets in
> the same toplevel. So you're seeing a event for each widget
> you create...
Oh. :) Is there a way of binding the event just to the window itself,
or should I just check that the widget referenced
On Saturday 11 June 2005 07:35 pm, Steven D'Aprano wrote:
> On Sat, 11 Jun 2005 16:15:42 +, Joe Stevenson wrote:
> > I skimmed through the docs for Python, and I did not find anything like
> > a case or switch statement. I assume there is one and that I just
> > missed it. Can someone pleas
I want to do some tricky text file manipulation on many files, but have
only a little programming knowledge.
What are the ideal languages for the following examples?
1. Starting from a certain folder, look in the subfolders for all
filenames matching *FOOD*.txt Any files matching in each folder s
Roy Smith wrote:
> "Philippe C. Martin" <[EMAIL PROTECTED]> wrote:
>
>>Yet, many issues that a future software engineer should know are
>>mostly hidden by Python (ex: memory management) and that could be
>>detrimental.
>
>
> I know I'm going out on a limb by asking this, but why do you think fut
Resurrecting an old thread..
It seems that this solution does not return events on objects within
frames in webpages eg . if you go to www.andersondirect.com - the page
is composed of three frames called as topFrame main and address. Now
when I click on say 'Select a Vehicle' which is within main -
Bindings created on a Toplevel or Tk widget apply to *all* widgets in the same
toplevel.
So you're seeing a event for each widget you create...
Jeff
pgpTtTjOZWFaW.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
"Philippe C. Martin" <[EMAIL PROTECTED]> wrote:
> Yet, many issues that a future software engineer should know are
> mostly hidden by Python (ex: memory management) and that could be
> detrimental.
I know I'm going out on a limb by asking this, but why do you think future
software engineers shoul
Philippe C. Martin wrote:
> too. I'm actually pushing the few CS professors I know to use Python for CS
> 101. Yet, many issues that a future software engineer should know are
> mostly hidden by Python (ex: memory management) and that could be
> detrimental.
I think new CS students have more than
Tim Williams wrote:
> After a few posts recently, I have put together an SMTP test rig that
> will
> receive emails and either store them to a file, write them to a console,
> or both.
>
> Does anyone have any suggestions on where I can get it hosted as a
> utility for general public use?
http
Andrew Dalke <[EMAIL PROTECTED]> writes:
> My question to you is - what is "something big"? I've not been
> on any project for which "LAMP" can't be used, and nor do I
> expect to be. After all, there's only about 100,000 people in
> the world who might possibly interested using my software. (We
John,
I wrote a script that autmates the conversion from XLS to CSV. It's
easy. But your points are still good. Thanks for making me aware the
xlrd module!
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin wrote:
> That article makes a lot of bogus claims and is full of hype. LAMP is
> a nice way to throw a small site together without much fuss, sort of
> like fancy xerox machines are a nice way to print a small-run
> publication without much fuss. If you want to do something big, you
>
> "alexandr" == alexandr <[EMAIL PROTECTED]> writes:
alexandr> Is it possible to create a library from my python module
alexandr> that can be used from c/c++ application?
http://boost.org/libs/python/doc/index.html
--
http://mail.python.org/mailman/listinfo/python-list
Rune Strand wrote:
> The key is Python for Windows :
> http://starship.python.net/crew/mhammond/win32/
>
> See here for an Excel dispatch example:
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/325735
>
> When doing such operations, I generally save all the Excel files to CSV
> files a
Steven> I've never understood why something like:
Steven> if x = 5:
Steven> do_this
Steven> elif x = 6:
Steven> do_that
Steven> else:
Steven> do_something_else
Steven> is supposed to be "bad", but
Steven> case of:
Steven> x = 5:
Steven
On Sat, 11 Jun 2005 16:15:42 +, Joe Stevenson wrote:
> Hi all,
>
> I skimmed through the docs for Python, and I did not find anything like
> a case or switch statement. I assume there is one and that I just
> missed it. Can someone please point me to the appropriate document, or
> post a
Peter Hansen wrote:
> Fair enough, but who cares what the generator code thinks? It's what the
> programmer has to deal with that matters, and an object is going to have a
> cleaner interface than a generator-plus-mutable-object.
That's right, and among the choices discussed, the object is the o
Mike Meyer wrote:
> Yes, such a switch gets the desired behavior as a side effect. Then again,
> a generator that returns tokens has a desired behavior (advancing to the
> next token) as a side effect(*).
That's certainly true.
> If you think about these things as the
> state of the object, rath
I'm building an application involving both twisted and Tkinter. Since
twisted co-opts .mainloop() in its reactor.run(), and since it
behaves very badly if the application quits without reactor.stop()
running, I attach the following function to '' in the main
window (root = Tk()):
def stop_rea
> PS: http://jove.prohosting.com/~zahlman/cpp.html
So you're saying they only use perl in Taiwan ;-)
Tom Anderson wrote:
> On Sat, 11 Jun 2005, Philippe C. Martin wrote:
>
>> Yet for the first time I get (most) of my questions answered by a
>> language I did not know 1 year ago.
>
> Amazing,
Tim Roberts ha scritto:
> Hardly. Sizers have been the primary method of placing multiple controls
> in wx for as long as I've been using it, which goes back to 2.3. In fact,
> it's hard to create a non-trivial wx app WITHOUT using sizers. All of the
> wx GUIs place controls in nested sets of s
In article <[EMAIL PROTECTED]>,
rbt <[EMAIL PROTECTED]> wrote:
>
>When designing a threaded application, is there a pratical limit on the
>number of threads that one should use or is there a way to set it up so
>that the OS handles the number of threads automatically? I am developing
>on 32-bi
On Sat, 11 Jun 2005, Philippe C. Martin wrote:
> Yet for the first time I get (most) of my questions answered by a
> language I did not know 1 year ago.
Amazing, isn't it? Rest assured that you're not alone in feeling this way.
I don't know quite why, but python is just makes writing programs
On Sat, 11 Jun 2005 11:51:02 -0500, tom wrote:
> The sequence goes like this:
> 1) When there is little or no money to be made, you start out with an
> implied status as a partner. This means you work long + extra hours for
> little pay on the promise that you will be rewarded when/if success come
I agree '...choice for the very beginners ...': a hundred year ago I was a
Pascal TA, and although I like the language, I find/found people stuggled
as much with the language as with the algorithm they were supposed to
implement.
"...mostly variants of Basic..." What I truly liked going from Basic
Great Advice, can see that saving me a few headaches
thanks
--
http://mail.python.org/mailman/listinfo/python-list
> 4) Yes I agree a mix ("... well spiced soup ...")
> seems to be the answer but
> my brain somehow wants to formalize it.
Here one further suggestion trying to point out, that
it probably can't generally be formalized, because
the experience one developes after going through
the story of "assembl
Hi,
I'm posting a link to this since I hope it's of interest to people here :)
I've written up the talk I gave at ACCU Python UK on the Kamaelia Framework,
and it's been published as a BBC R&D White Paper and is available here:
* http://www.bbc.co.uk/rd/pubs/whp/whp113.shtml
Essentially it
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Jon Slaughter" <[EMAIL PROTECTED]> writes:
>
>
> Someone mentioned that you might "require JavaScript on the client
> side". I recommend against that - people and organizations disable
> JavaScript for security reasons, a
Thanks ,
I have gotten many answers already, some not posted.
1) Typing is not the issue - even with RT-Kernels, people use C++
2) Yes I find dynamic binding very nice
3) "... you didn't give many examples of what you did for the
last 18 years (except that that also included RT kernels). " as
There may have been a reason for the win32 stuff at some pointbut I
don't remember and you're right, it does seem like getpass by itself
would do the job.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
Thomas Lotze <[EMAIL PROTECTED]> writes:
> A related problem is skipping whitespace. Sometimes you don't care about
> whitespace tokens, sometimes you do. Using generators, you can either set
> a state variable, say on the object the generator is an attribute of,
> before each call that requires a
Re: What is different with Python ?
from my point of view, to be honest, nothing
except mixing a well spiced soup of what
was available within other programming
languages.
I think, that what currently makes a real
difference is not the language as such,
but the people using it, posting here and
w
Martin v. Löwis wrote:
> Philippe C. Martin wrote:
>>- 5) I have developed for many years (>18) in many different environments,
>>languages, and O/S's (including realtime kernels) .
>
> 2. You may not have dealt with a weakly-typed language before. If
>that is the case, your feeling of "someth
[EMAIL PROTECTED] writes:
> fixed, thanks for all of your help.
> i am pouring over python texts and the problem is
> html... duh
Right. To get HTML that will work in any browser, http://www.anybrowser.org/campaign/ >, you really need to validate
your HTML. w3.org provides a public validator
Philippe C. Martin wrote:
> I apologize in advance for launching this post but I might get enlightment
> somehow (PS: I am _very_ agnostic ;-).
>
> - 1) I do not consider my intelligence/education above average
> - 2) I am very pragmatic
> - 3) I usually move forward when I get the gut feeling I a
Philippe C. Martin wrote:
> I apologize in advance for launching this post but I might get enlightment
> somehow (PS: I am _very_ agnostic ;-).
>
> - 1) I do not consider my intelligence/education above average
> - 2) I am very pragmatic
> - 3) I usually move forward when I get the gut feeling I a
"Jon Slaughter" <[EMAIL PROTECTED]> writes:
> Also, can anyone recommend any book or web page that gives an introduction
> to the method in which one programs web sites? I am not clear on who one,
> for instance, would use C++ as the language for a web site except by using
> it to create html..
Steven Knight wrote:
> Can some Windows-savvy Pythonista point me to some way to distinguish
> between these two?
I would look at the environment variable PROCESSOR_ARCHITECTURE. On
the Win64 machine I use, its value is "IA64".
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-li
Peter Hansen <[EMAIL PROTECTED]> writes:
> Kirk Job Sluder wrote:
>> I agree with this approach. For me, there has to be a certain level of
>> complexity before I reach for python as a tool.
>
> For me as well. In my case, the key question is "is this bash script
> going to be longer than two li
This is the never ending story of the cyclic (I'm being redundant) life
cycle of many companies: R&D driven versus Marketing driver.
My belief is that none work as the trades do not attempt to reach the same
goal:
1) R&D should not try to define products
2) Marketing should not try to impose the t
I apologize in advance for launching this post but I might get enlightment
somehow (PS: I am _very_ agnostic ;-).
- 1) I do not consider my intelligence/education above average
- 2) I am very pragmatic
- 3) I usually move forward when I get the gut feeling I am correct
- 4) Most likely because of
"Terry Reedy" <[EMAIL PROTECTED]> writes:
> > http://naeblis.cx/rtomayko/2005/05/28/ibm-poop-heads
> > which is probably what you meant.
> Thanks for digging this up. It solidified my understanding of why LAMP.
That article makes a lot of bogus claims and is full of hype. LAMP is
a nice way to t
In message <[EMAIL PROTECTED]>, EP
<[EMAIL PROTECTED]> writes
>> that means) and are going crazy throwing around the Java buzzwords (not to
>> mention XML).
Sounds like someone has read about AJAX and decided that is what is
next. They probably put 2 and 2 together and came up with 5 thinking th
"Terry Hancock" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> http://naeblis.cx/rtomayko/2005/05/28/ibm-poop-heads
>
> which is probably what you meant.
Thanks for digging this up. It solidified my understanding of why LAMP.
TJR
--
http://mail.python.org/mailman/listinfo/py
I _love_ Python!
Leif K-Brooks wrote:
> Joe Stevenson wrote:
>> I skimmed through the docs for Python, and I did not find anything like
>> a case or switch statement. I assume there is one and that I just
>> missed it. Can someone please point me to the appropriate document, or
>> post an exam
fixed, thanks for all of your help.
i am pouring over python texts and the problem is
html... duh
looking for a more efficient way to jerk all of the hair outta my head.
thanks a whole lot. your awesome
--
http://mail.python.org/mailman/listinfo/python-list
Joe Stevenson wrote:
> I skimmed through the docs for Python, and I did not find anything like
> a case or switch statement. I assume there is one and that I just
> missed it. Can someone please point me to the appropriate document, or
> post an example? I don't relish the idea especially lon
On Saturday 11 June 2005 06:14 am, Piet van Oostrum wrote:
> > Terry Hancock <[EMAIL PROTECTED]> (TH) wrote:
> >TH> It looks to me like Python just deleted a read-only file owned by
> >TH> root in order to replace it with a new pyc file. Can somebody
> >TH> explain that to me?! Isn't that sup
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> But when I enter some Bulgarian (actually cyrillic) text as a string,
> it
> seems that Python automatically converts it to '\x00..\x00 ' and once
> converted that way I can't get it back into its original look. The only
> way to get it
Lorn wrote:
> I'm trying to figure out a way to create dynamic lists or possibly
> antother solution for the following problem. I have multiple lines in a
> text file (every line is the same format) that are iterated over and
> which need to be compared to previous lines in the file in order to
> p
On Sat, 11 Jun 2005 10:27:26 -0700, bruce wrote:
> i don't know what the original thread is/was...
>
> but.. if you are part of an initial project.. get in writing what your role
> is if you're as a partner, get it in writing... if you're as a hired
> gun.. get it in writing... if you can't g
Hi all,
i'm working on a very large project using wx 2.5... On one frame i have a
wx.lib.mixins.listctrl widget, wich is a listctrl extended with the
possibility to edit the columns text entrys Anyone know if it's possible
(or if there's a widget...) to have also the possbility to have a comboB
I'm trying to figure out a way to create dynamic lists or possibly
antother solution for the following problem. I have multiple lines in a
text file (every line is the same format) that are iterated over and
which need to be compared to previous lines in the file in order to
perform some simple mat
Thomas Lotze wrote:
> Which is, as far as the generator code is concerned, basically the same as
> passing a mutable object to a (possibly standalone) generator. The object
> will likely be called self, and the value is stored in an attribute of it.
Fair enough, but who cares what the generator co
>>> You can do stuff like this: lambda x: x and 2 or 3
>>lambda x: {True:2,False:3}.get(bool(a))
And by the way, I just noticed that this kind of hack is essentially
"pushing the control (statement) inside expressions"... People should
really admit that statements are expressions and stop twis
i don't know what the original thread is/was...
but.. if you are part of an initial project.. get in writing what your role
is if you're as a partner, get it in writing... if you're as a hired
gun.. get it in writing... if you can't get anything in writing.. then make
sure you have your own co
On Fri, 10 Jun 2005 21:57:40 -0700, fuzzylollipop wrote:
> I was completely serious, he is _NOT_ going to win this one. He has
> already lost. I have been on both sides of this scenario, the "new guys"
> were brought in and will win since they are the new "experts from out of
> town".
Not only do
Joe Stevenson wrote:
> Hi all,
>
> I skimmed through the docs for Python, and I did not find anything like
> a case or switch statement. I assume there is one and that I just
> missed it.
strictly speaking, python does not
have a switch stamenent.
"Why isn't there a switch or case statement
Peter Hansen wrote:
> Thomas Lotze wrote:
>> I can see two possibilities to do this: either the current file position
>> has to be read from somewhere (say, a mutable object passed to the
>> generator) after each yield, [...]
>
> The third approach, which is certain to be cleanest for this situat
Hi all,
I skimmed through the docs for Python, and I did not find anything like
a case or switch statement. I assume there is one and that I just
missed it. Can someone please point me to the appropriate document, or
post an example? I don't relish the idea especially long if-else
statement
Ok, i made a change in the source. now here is the source from Opera,
still cant get firefox to work with me.
Customer Data
Watkins Crop Consulting
1915 Cherokee
Dalhart, Tx 79022333-5943
gandalf
Field field one
Crop crop one
GS growing, yep
Weeds many weeds
Water lots o water
Thomas Lotze wrote:
> I can see two possibilities to do this: either the current file position
> has to be read from somewhere (say, a mutable object passed to the
> generator) after each yield, or a new generator needs to be instantiated
> every time the tokenizer is pointed to a new file position
On Fri, 10 Jun 2005 04:52:12 -0700, wooks wrote:
>
> Your understanding of Usenet is that a post has to "appeal" (for the
> want of a better word) to the majority of the NG readership.
>
> Look over a hundred people took a look (and the hits are steadily
> going up whether despite or because of
Jon Slaughter wrote:
> I'm trying to get into web development for creating a professional web site
> and I'm confused on which language I should use. I've read some comparisons
> between the major languages and I was thinking that python might be the way
> to go for the most powerful and genera
In article <[EMAIL PROTECTED]>,
flyingfred0 <[EMAIL PROTECTED]> wrote:
>
>A small software team (developers, leads and even the manager when he's
>had time) has been using (wx)Python/PostgreSQL for over 2 years and
>developed a successful 1.0 release of a client/server product.
>
>A marketing/pr
"Jon Slaughter" <[EMAIL PROTECTED]> writes:
> Does anyone know of any detailed and objective comparisons
> between the major languages(perl, php, java, javascript, etc...)
> that might help me get a clearer picture?
I don't know of any (really good) comparisions, but anyway here
are my opinion:
On Fri, 10 Jun 2005 13:41:13 -0500, phil wrote:
>
>>
>> What experiences have those in the Python community had in these kinds
>> of situations?
>>
> Ive had lots of experience updating my resume and
>
> developing software at home. In Python.
>
> Java is a clumsy kludge. And the java envi
Bingo, found it! Notice that you accidentally close the document before
displaying any information...
[EMAIL PROTECTED] wrote:
>
> Customer Data
>
>
> Watkins Crop Consulting
>
>
Notice the tag above. There's the problem!
Brian
--
http://mail.python.org/mailman/listinfo/python-li
Well, i don't have an app that will automaticlly check a page for
errors,
unless bluefish will do it, i am not sure.
the page it is supposed to print out is a response to a form entry.
here is the source from Opera if one of you guys want to look at it.
Customer Data
Watkins Crop Consulting
Yes, I agree that it is best to check the HTML source code of the page
that is being generated. The server is obviously generating the code,
but the difference here is how the two browsers are interpreting the
HTML data.
Check the source code for the HTML document. I bet the problem resides
In article <[EMAIL PROTECTED]>,
wooks <[EMAIL PROTECTED]> wrote:
>
>Thank you for the long lecture on netiquette which I didn't really
>need.
You obviously do need it given your improper quoting and attributions.
--
Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/
f u c
Try View Source under Firefox, you should see everything that you're
printing from your CGI on the server. The server side CGI will do the
same thing no matter what browser is requesting the page.
Next, take that source and paste into into some app that will look for
problems like tags that aren
Hi,
I'm trying to figure out what is the most pythonic way to interact with
a generator.
The task I'm trying to accomplish is writing a PDF tokenizer, and I want
to implement it as a Python generator. Suppose all the ugly details of
toknizing PDF can be handled (such as embedded streams of arbitr
Hey there,
i have a python cgi script that prints out html just fine in the Opera
browser
but doesnt print at all under FireFox.
weird, eh?
i am getting nothing in the apache logs about any error.
perhaps its a firefox issue, but i doubt it.
any suggestions. simple script here..
--
http://mail.p
Grig Gheorghiu wrote:
> I use this function as a platform-independent way of finding out the
> current user name:
>
> def get_username():
> if sys.platform == 'win32':
> return win32api.GetUserName()
> else:
> return getpass.getuser()
>
[e:\]python
Python 2.4.1 (#65, Mar
Hi Jon,
Yes, there are a variety of tutorials on the Internet that can help you
learning how to use Python with the web. Two of the best ones you can
get for free by clicking on the link below.
1) http://www.devshed.com/c/a/Python/Writing-CGI-Programs-in-Python/
2) http://www.devshed.com/
Jon Slaughter wrote:
> I'm trying to get into web development for creating a professional web site
> and I'm confused on which language I should use. I've read some comparisons
> between the major languages and I was thinking that python might be the way
> to go for the most powerful and genera
Kirk Job Sluder wrote:
> I agree with this approach. For me, there has to be a certain level of
> complexity before I reach for python as a tool.
For me as well. In my case, the key question is "is this bash script
going to be longer than two lines?". If it would be, the Python
approach wil
- Original Message -
From: "Ivan Shevanski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 11, 2005 3:32 AM
Subject: Re: help with sending mail in Program
>
> >>from smtplib import SMTP
> >
> >>def sendToMe(subject, body):
> >> me = '"Kent Johnson" <[EMAIL PROTECTED]>'
You may want to use a standalone program to do this. "xwit" has the
ability to iconify a window which can be selected in a variety of ways.
http://hpux.connect.org.uk/hppd/hpux/X11/Misc/xwit-1.0/man.html
There's a direct Python interface to the X protocol in python-xlib. You
could re-write t
All,
I'm looking for a way to hide opened windows in X, these windows can be
using any widget-set so it will not target gtk, qt, motif, etc directly
(I know how to do it in gtk for example, but this will only work for gtk
apps ofcourse).
Just an easy way to select a certain window and hide it, is
> Terry Hancock <[EMAIL PROTECTED]> (TH) wrote:
>TH> It looks to me like Python just deleted a read-only file owned by
>TH> root in order to replace it with a new pyc file. Can somebody
>TH> explain that to me?! Isn't that supposed to be impossible?
If the directory is writable, you can de
Patrick Down wrote:
> What about:
>
> if True in [thefile.endswith(x) for x in
> ('mp3','mp4','ogg','aac','wma')]:
That will catch (widely used) file names such as 'tmp3' or
'i_cant_spell_frogg'. ;)
--
http://mail.python.org/mailman/listinfo/python-list
Terry Reedy wrote:
> Beauty is in the eye of the beholder. It seems that relative pythonicity
> sometimes is also ;-).
Ah, the curse of Pythonicity Relativism! What has society come to that
it cannot recognize Absolute Pythonicness and Absolute Perlishness? The
measure of Pythonicness was giv
88 matches
Mail list logo