In article [EMAIL PROTECTED],
John Salerno [EMAIL PROTECTED] wrote:
bruno at modulix wrote:
You've got to understand that Python is *not* a 'ServerPage' language
(- php, asp, jsp etc) in itself. Your server can now run python, fine,
but *how* ? CGI ? FastCGI ? mod_python ? other ? (hint: it's
In article [EMAIL PROTECTED],
Fuzzyman [EMAIL PROTECTED] wrote:
alf wrote:
Hi
I would like to convert the wctpXml-1.3.py program to Tcl (line by
line).
See http://sourceforge.net/project/showfiles.php?group_id=29217
This program sends pages using WCTP. I know nothing about Python or
XML
Ok, 30 minutes later, here's my best solution.
http://www.answermysearches.com/index.php/how-to-add-months-to-a-date-in-python/53/
(Posted on my website to make sure tabs are kept.)
Would someone mind double-checking my logic before I put this into
production next Tuesday?
-Greg
On 2/17/06,
I am using os.spawnv in Python 2.1 to do some geoprocessing in a
subroutine/process. Everything works great, except when the processing
is done the subroutine just waits for a couple minutes before closing
itself and returning to the main script. I have tried using sys.exit()
and exit() but these
How exactly do I map the main program's STDOUT (what the user sees) to
the subprocess' STDOUT? In effect I want it to appear as though they
just executed the program itself.
--
http://mail.python.org/mailman/listinfo/python-list
ok solved that by using the call() method
I now have a bigger problem: the executable always wants to open in its
own window. how do I stop this?
--
http://mail.python.org/mailman/listinfo/python-list
Carl J. Van Arsdall wrote:
Alright, I attempted to post this question yesterday but I don't see it
as showing up, so I apologize in advance if this is a double post.
Python Gurus:
Let me elaborate a bit more on this question. Basically, I want to know
if there is some data structure in
Thanks... Im not sure if you would know how to solve this one, but when
I ran my setup python scripts I got the error: library -lclntsh not
found. In the instantclient folder the library exists... is this a
matter of just copying the libraries to a different spot or just
setting up the correct
Hi.In my application i create a PNG image and i view it in a frame.How can delete it from my python code?Bye...-- Sbaush
--
http://mail.python.org/mailman/listinfo/python-list
Can someone please explain or point me to articles regarding these two
methods?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
in java, i can prevent a block of code from executing by bracketing the block with comment indicators, as shown below: /* statement1 will not execute; statement2 will not execute; */ statement3 will executeis there a similar mechanism in python, other than prefixing the '#'
In [EMAIL PROTECTED], Donn Cave wrote:
You can replace mv with os.rename() if you don't
care that it will fail when the destination is on a different
filesystem. Etc.
If you care than use `shutil.move()` instead.
Ciao,
Marc 'BlackJack' Rintsch
--
Abhisek Datta wrote:
I am looking for good RSA implementations in python that can import a
public key in PEM format and encrypt a buffer using the imported
public key. I tried m2crypto, but somehow it is giving me exceptions
which I couldnt solve as of now.
What you are trying to do should be
Hello,
I'm not sure I understand precisely your question but maybe you can try
a readline and a flushinput like that:
import serial
port= 0 # or the port where you're device is connected
baudrate=9600 # or the baudrate of your device
s = serial.Serial(port, baudrate) # Open the port
for i in
Cameron Laird wrote:
In article [EMAIL PROTECTED],
Fuzzyman [EMAIL PROTECTED] wrote:
alf wrote:
Hi
I would like to convert the wctpXml-1.3.py program to Tcl (line by
line).
See http://sourceforge.net/project/showfiles.php?group_id=29217
This program sends pages using WCTP. I know
For anyone who might be able to use this technique:
I kept playing around and got it to work:
for i in nameList:
btnText = name[i]
self.sv = []
cb = []
cb.append(Checkbutton(self.datalist, text=btnText,
variable=self.sv[i], background='white', font=(Courier, 10)))
john peter wrote:
in java, i can prevent a block of code from executing
by bracketing the block with comment indicators, as shown
below:
/*
statement1 will not execute;
statement2 will not execute;
*/
statement3 will execute
is there a similar mechanism in python, other than
Assume we have a class Foo, and instance called bar.
a variable called baz1 has the value 3.0, baz2 is uninitialized
Is there a way of reflecting the variable with such syntax:
print bar[var_index], where var_index is a number representing
internal index.
bar[var_index] = 4.2. #Setting baz2 to
john peter wrote:
is there a similar mechanism in python, other than prefixing
the '#' character to the start of each statement i do not
want to execute (which gets old very quickly if one needs to
comment and uncomment several statements a couple of
times while playing around with code say
In article [EMAIL PROTECTED],
IamIan [EMAIL PROTECTED] wrote:
I am using os.spawnv in Python 2.1 to do some geoprocessing in a
subroutine/process. Everything works great, except when the processing
is done the subroutine just waits for a couple minutes before closing
itself and returning to
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ronny Mandal wrote:
Assume we have a class Foo, and instance called bar.
a variable called baz1 has the value 3.0, baz2 is uninitialized
Is there a way of reflecting the variable with such syntax:
print bar[var_index], where var_index is a
[EMAIL PROTECTED] enlightened us with:
I figure I must just be missing something, but I can't seem to find
good documentation for xml.dom.ext. What I'm hoping for is just a
simple list of what actually is available in that package (what
other packages get included if you import xml.dom.ext
Martin v. Löwis enlightened us with:
No. You also need to provide static versions of all system
libraries.
You can also ship the required .so files along with the program, and
set LD_LIBRARY_PATH to include the directory in which you stored those
files. This can be easily done by a shell script
Where can I find how to send a .ps directly to the printer?
Have you seen this?
http://tgolden.sc.sabren.com/python/win32_how_do_i/print.html
In particular, the section on using win32print directly.
Brian.
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 17 Feb 2006 11:51:08 -0800, Byte wrote:
Great, thanks all. Now, how come
if x == mx: print x
break
Dosnt work?
Do yourself a HUGE favour and read this before posting any more questions
to comp.lang.python. Trust me, you really will thank us.
Ronny Mandal wrote:
Assume we have a class Foo, and instance called bar.
a variable called baz1 has the value 3.0, baz2 is uninitialized
Is there a way of reflecting the variable with such syntax:
print bar[var_index], where var_index is a number representing
internal index.
Ronny Assume we have a class Foo, and instance called bar. a variable
Ronny called baz1 has the value 3.0, baz2 is uninitialized
Ronny Is there a way of reflecting the variable with such syntax:
Ronny print bar[var_index], where var_index is a number representing
Ronny
Numeric, Numarray, Numpy... some one stick a screwdriver in my
forehead and end the madness that Numeric has become.
Brilliant programming an almost essential part of scientific math
hacking in python made maddeningly confusing by truly dumb naming
scheme.
For crying all night! Numpy was
On Fri, 17 Feb 2006 14:01:05 -0800, seb.haase wrote:
Thank you very much, Magnus !
This is the answer I had been waiting for:
A problem as I see it today, is that this behaviour is
not actively encouraged. The tutorial, which is maintained
and updated, still describes old style classes, and
On Sat, 18 Feb 2006 01:09:22 +0100, Ronny Mandal wrote:
Assume we have a class Foo, and instance called bar.
a variable called baz1 has the value 3.0, baz2 is uninitialized
Python doesn't have variables. It has names which are bound to objects. Do
you mean that the name baz1 is bound to the
On Fri, 17 Feb 2006 19:12:01 -0500, Peter Hansen wrote:
john peter wrote:
is there a similar mechanism in python, other than prefixing
the '#' character to the start of each statement i do not
want to execute (which gets old very quickly if one needs to
comment and uncomment several
Hi Everybody,
If I were to use Komodo to write in Python, would it add a lot of goo to my
code such that I would not be able to switch to another IDE without having to
claw my way out of a tarpit first?
Any other thoughts on Komodo? I am considering it because I am hoping to find
a solution
__add__ is called for the + operator
__iadd__ is called for the += operator
if __iadd__ doesnt exist, fallbacks to __add__
you know what they say for such things: rtfm.
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 18 Feb 2006 12:36:06 +1100, Steven D'Aprano [EMAIL PROTECTED] wrote:
[snip]
Commenting and uncommenting should be two different commands: the whole
point of nested comments is that it allows you to comment a block of text
which may already contain comments. Having one command do both
In article [EMAIL PROTECTED],
Paul McNett [EMAIL PROTECTED] wrote:
.
.
.
IMO this is a missing feature in Python. However, if the block of code
you are wanting to comment out doesn't happen to contain any
triple-quotes, you
in case you are trying it in the python shell
def foo():return test
...
import __main__
__main__.__dict__[foo]
function foo at 0x40420c6c
__main__.__dict__[foo]()
'test'
otherwise build your own dict with string-function mapping
op = {
plus : lambda x,y:x+y,
minus :
[EMAIL PROTECTED] wrote]
Hi Everybody,
If I were to use Komodo to write in Python, would it add a lot of goo to my
code such that I would not be able to switch to another IDE without having to
claw my way out of a tarpit first?
Nope. Komodo adds no goo to your code (TM).
TM's my name, not
Not sure about the install-packages-until-you-go-blind thing. Komodo
doesn't help you install packages into your Python implementation. Nor
I think he is confusing with Visual Package Manager.
Matt, in most cases, installing packages in Python is about as easy as
it gets. As a newbie, you
[EMAIL PROTECTED] wrote:
I have the following error
Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
Type help, copyright, credits or license for more information.
from zope.app import container
container.interfaces
Traceback
Hi Steven,
I see the developers of Scite are either newbies to GUI programming, or
they operate in a world of their own. Ctrl-Q is reserved for Quit (or
Exit) in every GUI API I know of.
I am the developer responsible for SciTE and the Ctrl+Q decision.
Ctrl+Q is not reserved for Quit
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
not actively encouraged. The tutorial, which is maintained
and updated, still describes old style classes, and the
old division behaviour.
Perhaps the tutorials needs updating.
My main point was/is: why is there not more discussion
system.remove(filename)
On 2/18/06, Sbaush [EMAIL PROTECTED] wrote:
Hi.
In my application i create a PNG image and i view it in a frame.
How can delete it from my python code?
Bye...
--
Sbaush
--
http://mail.python.org/mailman/listinfo/python-list
--
I'm not sure if this is the right venue for Plone questions, if not,
could someone ref me to a better one? The discussion groups on the plone
site are mailing lists and I'd rather not subscribe quite yet.
Does plone support distinct sets of users? That is, on a public website
running plone,
Dear Ophidians,
I'm attempting to create an SSL secured, AJAX chat server. I'm moving
on the hypothesis that I'll need to hang an XMLHttpRequest response
blocking on the server until a new message is ready to be dispatched.
This means that my server must be able to handle many open SSL sockets
No! It's ..
os.remove(filename) or os.unlink(filename)
--
http://mail.python.org/mailman/listinfo/python-list
I would like to point out that it isn't entirely obvious where to find
documentation for this particular thing. I know from experience where
to go, but I remember spending a long time trying to hunt this down.
For reference, you may want to check out the index of the language
reference manual.
hi,
is it possible to address the 'screen pixels' using python , like
analogous to older dos( functions that graphics.h provides') or win api
calls for gdi.
what i want is to display clusters (in differetn colours) on screen
using python.
thanks.
--
hi
this is a question regarding installing Activestate python
whenever i try to install the latest Activestate Python on WinXP SP2,
it gives me error saying
The wizard was interrupted before Activestate 2.4.2 could be
completely installed. Your system has not been modified .
any ideas why this
Hello everybody ,
I am a student major in software engeering .
I need to do something for my course .
There are very good web framework for java and ruby ,
Is there one for python ?
I want to write a web framework for python based on
mod_python as my course homework , could you give some
advise ?
kpp9c [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Numeric, Numarray, Numpy... some one stick a screwdriver in my
forehead and end the madness that Numeric has become.
For crying all night! Numpy was Numeric's nickname
Given that NumPy *is* an updated version of Numeric, with
Kris Kowal [EMAIL PROTECTED] wrote:
...
I started with Twisted, but, having looked as far as I can see, SSL is
either not implemented, or not documented for that library. There are
hints that it's in the works, but that's all. So, I've moved on.
??? SSL is fully implemented in Twisted,
Hello,
Here is some debugging output:
---
pyKB-DEBUG: Connecting to http://192.168.0.2:8080/RPC2
pyKB-DEBUG: Initializing session: (sessionKey: ABCDEFGHIJKLMNO)
pyKB-DEBUG: Received public key:
-BEGIN RSA PUBLIC KEY-
MIGJAoGBALxi3tGXlSwRgn7/Km6mTSge+5ijQgIn3GvnZOeYyOo1DkubVtTaFj26
Neil Hodgson wrote:
Hi Steven,
It is *easy* to detect when a line is already commented. It starts with a
#. The ~ is superfluous.
It is not usual to change a line from being code to being a comment
as most lines of code make no sense as English text. If you do sometimes
want to do
Thanks Alex. I hadn't noticed that example. I gave it a shot and
still have the synchronization problems. While this may be because of
a lack of understanding of twisted threads (again, perhaps I'm just not
looking in the right places, but even the the API reference is sparse
of explanation), I
Bugs item #1431253, was opened at 2006-02-13 22:07
Message generated for change (Comment added) made by yangzhang
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1431253group_id=5470
Please note that this message will contain a full copy of the comment
Feature Requests item #1433435, was opened at 2006-02-17 10:16
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=355470aid=1433435group_id=5470
Please note that this message will contain a
Bugs item #1432260, was opened at 2006-02-15 17:03
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1432260group_id=5470
Please note that this message will contain a full copy of the comment
Feature Requests item #1432694, was opened at 2006-02-16 10:11
Message generated for change (Comment added) made by darkprokoba
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=355470aid=1432694group_id=5470
Please note that this message will contain a full copy of
Bugs item #1431253, was opened at 2006-02-13 22:07
Message generated for change (Comment added) made by yangzhang
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1431253group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1284928, was opened at 2005-09-08 13:51
Message generated for change (Comment added) made by vsajip
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1284928group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #882297, was opened at 2004-01-22 19:36
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=882297group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #882297, was opened at 2004-01-22 19:36
Message generated for change (Settings changed) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=882297group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1421513, was opened at 2006-02-01 15:48
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1421513group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1417699, was opened at 2006-01-29 02:04
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1417699group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1417554, was opened at 2006-01-28 20:24
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1417554group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1433667, was opened at 2006-02-17 11:03
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1433667group_id=5470
Please note that this message will contain a full copy of
Bugs item #1433694, was opened at 2006-02-17 11:52
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1433694group_id=5470
Please note that this message will contain a full copy of
Bugs item #1433667, was opened at 2006-02-17 17:03
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1433667group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1419652, was opened at 2006-01-31 04:19
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1419652group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1433667, was opened at 2006-02-17 12:03
Message generated for change (Comment added) made by neurogeek
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1433667group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1421696, was opened at 2006-02-01 18:56
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1421696group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1019808, was opened at 2004-08-31 18:18
Message generated for change (Comment added) made by vercruesse
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1019808group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1433667, was opened at 2006-02-17 17:03
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1433667group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1433877, was opened at 2006-02-17 16:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1433877group_id=5470
Please note that this message will contain a full copy of
Bugs item #1433886, was opened at 2006-02-17 16:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1433886group_id=5470
Please note that this message will contain a full copy of
Bugs item #1333982, was opened at 2005-10-21 03:08
Message generated for change (Settings changed) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1333982group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1333982, was opened at 2005-10-21 03:08
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1333982group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1433877, was opened at 2006-02-17 14:29
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1433877group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1432525, was opened at 2006-02-15 14:45
Message generated for change (Settings changed) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1432525group_id=5470
Please note that this message will contain a full copy of the comment
201 - 279 of 279 matches
Mail list logo