org.keyphrene is a Python binding for LibSSH2 and OpenSSL libraries. This
toolkit for python featuring
the following:
SSH2 protocol (SFTP, SCP, SSH terminal ...)
HMACs, message digests, ciphers (AES, DES, BlowFish),
RSA, DSA, DH,SSL functionality
yEnc encoder and decoder ...
Naja is a download manager and a website grabber written in Python/wxPython.You
can add some
plugins (newsreader, newsgroups grabber, FTP - FTPS - SFTP client,WebDAV
client) and take control of
your downloads from your office. Naja supports proxy (HTTP, HTTPS, FTP,SOCKS
v4a, SOCKSv5),
and
I'm pleased to announce the release of ZODB 3.4 final. This corresponds to
the ZODB that will ship in Zope 2.8. You can download a source tarball or
Windows installer from:
http://zope.org/Products/ZODB3.4
Note that there are two Windows installers, for Python 2.3 (2.3.5 is
recommended)
We are happy to announce the release of SimPy 1.6.
Background:
---
SimPy is a process-based discrete-event simulation language based on
standard Python and released under the GNU LGPL.
It provides the modeller with components of a simulation model. These
include processes, for active
Renato Ramonda [EMAIL PROTECTED] wrote:
Tim Roberts ha scritto:
wx uses sizers to do the same thing. Same purpose, different philosophy.
I find sizers more natural, but people should certainly stick to whatever
makes them comfortable.
I like sizers too, but in my experience wx apps do not
May be related to this bug:
http://issues.apache.org/jira/browse/MODPYTHON-12
Where you have:
import mod_python.psp
change it to:
psp = apache.import_module(mod_python.psp)
Access the PSP object then as:
psp.PSP
and not:
mod_python.psp.PSP
It will happen where somewhere else
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
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 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 delete a file
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,
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
- 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]'
send(me, me,
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 general
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)
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 30
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..
--
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
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
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 cn rd
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
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.
html
headtitleCustomer Data/title/head
Bingo, found it! Notice that you accidentally close the document before
displaying any information...
[EMAIL PROTECTED] wrote:
html
headtitleCustomer Data/title/head
body
h1Watkins Crop Consulting/h1
/body
/html
snip Notice the /body/html tag above. There's the problem!
Brian
--
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 environment has
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:
Don't
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/product
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 general
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 this
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.
Ok, i made a change in the source. now here is the source from Opera,
still cant get firefox to work with me.
html
headtitleCustomer Data/title/head
body
h1Watkins Crop Consulting/h1
/body
1915 Cherokee br
Dalhart, Tx 79022 br 333-5943br
H3gandalf/H3
span style='font-weight:
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
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 situation, is
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 in
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 I take
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
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 twist
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 code
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
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
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 get
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
[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 right
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 supposed to be
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 long
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
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 example? I
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
--
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 the
J
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 throw a
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
This is the never ending story of the cyclic (I'm being redundant) life
cycle of many companies: RD driven versus Marketing driver.
My belief is that none work as the trades do not attempt to reach the same
goal:
1) RD should not try to define products
2) Marketing should not try to impose the
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 lines?. If
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-list
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... I'm
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 am
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 am
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 something being
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
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
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
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).
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, and browsers on
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 RD White Paper and is available here:
* http://www.bbc.co.uk/rd/pubs/whp/whp113.shtml
Essentially it
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 assembly,
Great Advice, can see that saving me a few headaches
thanks
--
http://mail.python.org/mailman/listinfo/python-list
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
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 comes.
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
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-bit x86
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
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, isn't
I'm building an application involving both twisted and Tkinter. Since
twisted co-opts widget.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 'Destroy' in the main
window (root = Tk()):
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, rather
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 one
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 an
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
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 and do
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
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
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
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. (Well,
the
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?
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
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 should know
Bindings created on a Toplevel or Tk widget apply to *all* widgets in the same
toplevel.
So you're seeing a Destroy event for each widget you create...
Jeff
pgpTtTjOZWFaW.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
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
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 future
software
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
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 please
[EMAIL PROTECTED] wrote:
Bindings created on a Toplevel or Tk widget apply to *all* widgets in
the same toplevel. So you're seeing a Destroy 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
Bugs item #1218930, was opened at 2005-06-11 23:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1218930group_id=5470
Please note that this message will contain a full copy of
Bugs item #800432, was opened at 2003-09-04 08:03
Message generated for change (Comment added) made by kbk
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=800432group_id=5470
Please note that this message will contain a full copy of the comment thread,
Bugs item #775012, was opened at 2003-07-21 08:35
Message generated for change (Comment added) made by kbk
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=775012group_id=5470
Please note that this message will contain a full copy of the comment thread,
92 matches
Mail list logo