The TRS-80 I bought came with both Basic and
Assembly Language teaching guides, and that was
it. To make the machine work one had to program.
I didn't mean to imply that Bill Gates developed
it. It's well known that MS borrowed stuff when
they needed to from where ever the could get it.
That's
At Wednesday 22/11/2006 09:08, [EMAIL PROTECTED] wrote:
I'm trying to write a Python script to receive and save a file on a web
server that has been POST'ed from a client application.
In essence, this is similar to handling a file upload from an HTML
form. However, I can't use:
form = cgi.Fiel
I'm interested in using an off-the-shelf interpreted language as a
user-accessible scripting language for a MUCK. I'm just not sure if I
can find one that does everything I need. The MUCK must be able to
call the interpreter and execute scripts with it, but the interpreter
must also be able t
Steve wrote:
> This is an interesting question. It almost looks like a case of
> event-driven programming, where main is the plug-in and abc is the
> framework.
> http://eventdrivenpgm.sourceforge.net/
>
> So how about something like this:
>
> ## abc.py
>
> #-
At Wednesday 22/11/2006 09:40, [EMAIL PROTECTED] wrote:
I have a problem with the module subprocess!
The problem is that the external software that I am running under
subprocess.Popen opens stdin, stdout, stderr, and other file descriptors to
write and read in the hard drive.
As many other pro
I just noticed something that may well have an obvious explanation (apologies
in advance if so).
Little demo illustrates:
>>> def x(y = {1:1}):
... y[1] = y[1] + 1
... print y[1]
...
>>> x()
2
>>> x()
3
and so on; y continues to be updated rather than reset each call to x().
dir() sug
>>
>> I thought I remembered that the data bases created either way
>> were always 100% transparent with each other and that I could
>> use an SQLite3 data base either from the command line or from
>> within Python without any problems at all
>
> My guess is that 2 years ago you
> if you look at
> http://packages.debian.org/stable/python/python2.3-sqlite,
> you will see that the python2.3-sqlite package is built against
> SQLite 2. This is why you have a "file is encrypted or is not a
> database" message, since databases created with SQLite 2.x are not
> file-compatible w
At Wednesday 22/11/2006 10:00, [EMAIL PROTECTED] wrote:
I have an application that is using embedded python to offer some
scripting ability. An API is exposed via SWIG, and I am accessing that
API from my embedded python interpreter.
Scripts are present as separate files, and I'm invoking them
Hi,
I am attempting to detect mouse clicks from within curses, using
"select" on sys.stdin. It is working great within an xterm under X, but
not very well in a "real" linux console. When I click my mouse while on
the "real" console, nothing happens at first, even on repeated clicks.
Once I press a
At Wednesday 22/11/2006 21:27, Podi wrote:
3.
os.spawnl(os.P_NOWAIT, 'mycmd.exe', 'myargs') # mycmd.exe not started
os.spawnv(os.P_NOWAIT, 'mycmd.exe', tuple('myargs')) # mycmd.exe not
started
os.spawnl(os.P_NOWAIT, 'mycmd.exe', 'mycmd.exe', 'first_arg', 'second_arg')
That is, you must provide
At Wednesday 22/11/2006 22:05, Podi wrote:
Some update...
I just found out that the following seems to work,
import subprocess
subprocess.Popen(' myargs', executable='mycmd.exe')
However, it does not work with "my path\\mycmd.exe"
subprocess.Popen(' myargs', executable='"my path\\mycmd.exe"'
At Thursday 23/11/2006 12:21, wo_shi_big_stomach wrote:
>> dir = path(/home/wsbs/Maildir)
>> for f in dir.walkfiles('*'):
>> #
>> # test:
>> # print f
>
> Are you absolutely sure that f list doesn't contain
> any path to directory, not file?
> Add this:
>
> f = filter(os.p
On Friday 24 November 2006 17:45, Dennis Lee Bieber wrote:
> About once a week... It's a FAQ entry!
Wonderful! Missed that. Thanks for humoring me.
Very satisfying explanation, too... but what else is one to expect from
Python? :)
--
http://mail.python.org/mailman/listinfo/python-list
Antoine De Groote wrote:
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/191017
> might be what you are looking for, or at least a starting point...
>
There's an updated version of this script at pages 403-04 of the Python
Cookbook 2nd Edition.
rd
--
http://mail.python.org/mailman/l
Tony Belding wrote:
> I'm interested in using an off-the-shelf interpreted language as a
> user-accessible scripting language for a MUCK. I'm just not sure if I
> can find one that does everything I need. The MUCK must be able to
> call the interpreter and execute scripts with it, but the interp
Gabriel Genellina wrote:
> The filter should be applied to walkfiles. Something like this:
>
> dir = path(/home/wsbs/Maildir)
> for f in filter(os.path.isfile, dir.walkfiles('*')):
> #
> # test:
> # print f
Thanks, this way f will print the full pathname/filename. But f a
At Thursday 23/11/2006 06:52, Rudy Schockaert wrote:
After some Googling I found a post of someone who wanted to do exactly
as what I want to do now.
There is however a problem in his code that makes the service fails
after the first connection. I slightly modified his code and now I can
run the
How do you install this? Just copy on top of the current IP directory?
What is DefRoot.sp1 for?
- Original Message -
From: Sanghyeon Seo
To: Discussion of IronPython ; [email protected]
Sent: Monday, November 20, 2006 5:26 AM
Subject: [IronPython] [ANN] IronPython Communit
On 11/25/06, Jerry Hill <[EMAIL PROTECTED]> wrote:
> On 23 Nov 2006 15:09:11 -0800, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > Yes, it's true that you can't resell copies of The Python Papers for
> > personal profits, but you may derive from it, reproduce and propagate
> > it. You're quite
On Sat, 25 Nov 2006 00:27:24 -0500, Jerry Hill wrote:
> On 11/25/06, Jerry Hill <[EMAIL PROTECTED]> wrote:
>> On 23 Nov 2006 15:09:11 -0800, [EMAIL PROTECTED]
>> <[EMAIL PROTECTED]> wrote:
>> > Yes, it's true that you can't resell copies of The Python Papers for
>> > personal profits, but you may
At Thursday 23/11/2006 12:28, jrpfinch wrote:
I'm just getting started on threading and was wondering why the
following code does not work (i know globals is bad style - I'll
eliminate them eventually). All I get is a blank cursor flashing.
You've got your example already working.
Globals are
At Thursday 23/11/2006 14:47, Bytter wrote:
PyScripter (windows only) here:
http://mmm-experts.com/Products.aspx?ProductId=4
On Nov 23, 4:00 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Victor Ng wrote:
> > Subject line pretty much says it all - are those the only two editors
> > that su
At Saturday 25/11/2006 00:14, wo_shi_big_stomach wrote:
> The filter should be applied to walkfiles. Something like this:
>
> dir = path(/home/wsbs/Maildir)
> for f in filter(os.path.isfile, dir.walkfiles('*')):
> #
> # test:
> # print f
Thanks, this way f will print the
Jerry Hill wrote:
> On 11/25/06, Jerry Hill <[EMAIL PROTECTED]> wrote:
>
>> On 23 Nov 2006 15:09:11 -0800, [EMAIL PROTECTED]
>> <[EMAIL PROTECTED]> wrote:
>> > Yes, it's true that you can't resell copies of The Python Papers for
>> > personal profits, but you may derive from it, reproduce and prop
At Wednesday 22/11/2006 15:37, JG wrote:
I am using Python 2.4 and cx_Oracle. I have a stored proc that takes two
arguments. First is an NUMBER, second is a BOOLEAN. How do you call that
stored procedure?
After properly extablishing a connection, I have something like this:
cursor = con.cur
Maurice LING wrote:
> As Steven mentioned -- anything you can read is copyrighted. The
> difference is whether is the copyright effective or enforceable. What do
> I mean by this? Without copyright, there will not be plagarism. Ask
> yourself this question, can you copy William Shakespeare's Mac
101 - 127 of 127 matches
Mail list logo