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 the
> old division behaviour.
My main point was/is:
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 and what functions are
available).
--
http:/
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 ?
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
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, G
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 a
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 structur
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 envi
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 '#' char
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
--
http://mail.python.org/mailma
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
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 r
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 send
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)))
sel
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
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[], where var_index is a number representing
internal index.
bar[] = 4.2. #Setting baz2 to 4.2
Thanks and re
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
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 retu
-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[], where var_index is a numb
[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 scrip
>
> 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.
http
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[], where var_index is a number representing
> internal index.
>
> bar[] =
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[], where var_index is a number representing
Ronny> internal
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 Nu
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 classe
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 th
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 to
__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 bo
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-quote
in case you are trying it in the python shell
>>> def foo():return "test"
...
>>> import __main__
>>> __main__.__dict__["foo"]
>>> __main__.__dict__["foo"]()
'test'
>>>
otherwise build your own dict with string->function mapping
op = {
"plus" : lambda x,y:x+y,
"minus" : lam
[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 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 sh
[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.inte
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 Qui
<[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 di
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
>
>
--
http://mail.python.org
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, can
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
in
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.
ht
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.
--
http://mail.python.org/mailman/listinfo/pyt
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 thi
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
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 Twiste
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
GWtJo43
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
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
201 - 256 of 256 matches
Mail list logo