[EMAIL PROTECTED] wrote:
> sorry guys...
>
> forget about the auto incrementer for a second.
>
> the entry is not being recorded. that is my problem. the script does
> not work. thanks.
after Dijkstra: "the use of mySql cripples the mind; its teaching
should, therefore, be regarded as a criminal
Jeff Groves wrote:
> How would I do that? As I've said, I haven't found a Python command
> that lets you send multiple commands to the same shell yet. If I could,
> my problem would be solved.
any reason why you cannot create a temp .bat, consisting of:
setvar.bat
prog1.exe
prog2.exe
and then
Edward Elliott wrote:
> At the risk of flogging a dead horse, I'm wondering why Python doesn't have
> any multiline comments. One can abuse triple-quotes for that purpose, but
> that's obviously not what it's for and doesn't nest properly.
...
> Saying coders shouldn't use multiline comments to d
it is your loss as well (so, 2 losses and 1 win).
you comparing perl-ex with python-cgi is unfair, to say the least.
let's count:
1. you ditched python ASP, because you dont know how it may port on
linux (even if it's supported on apache and you probably never, ever,
will have to do the said port
congratulations for (ostensibly) discovering the Barber's paradox (if
the village barber shaves all and only those who don't shave
tehmselves, who shaves the barber?
http://en.wikipedia.org/wiki/Barber_paradox) in python ! :-D
as far as i see it, you complaint is not just that any string X
contai
James Thiele wrote:
> I noticed in PEP 3000 that print will become a function. The PEP
> references a thread where Guido explains this decision. The thread does
> not specify what the function will return. Has this been decided?
reading the discussion, the arguments are about "print" as of now bei
[EMAIL PROTECTED] wrote:
> Steve Holden wrote:
> > [EMAIL PROTECTED] wrote:
>
> > > Pure cgi is too slow. "Active Scripting" means ASP, yes?
> > > I need something that will do cgi scripts (a lot of which I already
> > > have
> > > and can modify but don't want to rewrite extensively, partly beca
Jeffrey Schwab wrote:
> _PyPclose returns the exit status of the popened process (the popenee?),
> or -1 on error. Of course, if the status is supposed to be -1, there's
> some confusion.
yes, that's what i thought the root of the problem is.
> In the snippet of code below (from Modules/posixmod
my gripe is about exit with MINUS ONE, not +1. see my post again.
yes, i know one cannot return -1 in unix (since returned value is
exitcode % 256 * 256), and no, i am not interested in unix behavior.
Rene Pijlman wrote:
> Atanas Banov:
> >i ran onto this weirdness today: seems like c
i ran onto this weirdness today: seems like close() on popen-ed
(pseudo)file fails miserably with exception instead of returning exit
code, when said exit code is -1.
here is the simplest example (under Windows):
>>> print popen('exit 1').close()
1
>>> print popen('exit -1').close()
Traceback (mo
Paul McGuire wrote:
> Does Python's run-time do any optimization of multiplication
> operations, like it does for boolean short-cutting? That is, for a
> product a*b, is there any shortcutting of (potentially expensive)
> multiplication operations
no. and the reason is very simple: to the extent
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
Bryan Olson wrote:
> To get it with the \, you might use:
>
> os.path.abspath(os.environ['SYSTEMDRIVE'])
wrong!
the result is incorrect if the current directory is different from the
root.
>>> os.chdir("c:\\winxp")
>>> os.path.abspath(os.environ['SYSTEMDRIVE'])
'c:\\winxp'
if you really wan
paron wrote:
> I forgot -- I like the idea of Kerrigell, too. It runs on top of
> CherryPy, and lets you use python either in the server (which is just a
> little program on your local machine) or embedded in the html pages, or
> in a Kerrigell service, which is an application server based on Pytho
Sybren Stuvel wrote:
> If you're working on a UNIX platform, you could use FIFO pipes, see
> 'mkfifo'.
named pipes exist on windows, see win32pipe.CreateNamedPipe
--
http://mail.python.org/mailman/listinfo/python-list
using
os.chdir('/')
os.getcwd()
is plain wrong in Windows.
what it does is change the current directory to root of the CURRENT
DRIVE (i.e. the drive of the directory where script was started from),
not the system drive. for example, if current directory was
c:\myscripts and system drive is d
[EMAIL PROTECTED] wrote:
> But running it in IDLE just locks up the
> computer. Bad Windows.
yeah, right - blame it all on Microsoft!
try ctrl-F6 (or Shell / Restart Shell from the menu) in IDLE, which
stops programs from infinite looping
- nas
--
http://mail.python.org/mailman/listinfo/pytho
you dont measure single run, you measure multiple runs using the
"timeit" module (for me 1000 repeats was about right).
here are some results which i recorded when i was implementing Sudoku
solver (on AMD Athlon 1.25GHz, using the sample shown on www.sudoku.com
front page):
brute: 10
Did you save it with ".asp" extension?
Is the directory enabled to run scripts?
Can you run any other server-side script snippet (say VBscript)?
--
http://mail.python.org/mailman/listinfo/python-list
ever considered doing the mapping this way?
window = [
["item", {'k1': 'v1', 'k2': 'v2'],
["otheritem", {'k1n': 'v1n', 'k2n': 'v2n'}]
]
it is as simple as it gets: for 1:1 mapping from XML, list of
Attributes becomes py List.
the list of Properties of an attribute becomes a py Dictionary
ps.
try this: create file named "test.hta" and put inside
-
import sys
document.writeln("Hello from Python", sys.version)
-
double click to open it, it will work if you have activestate
extensions installed.
--
http://mail.python.org/mailman/listinfo/p
21 matches
Mail list logo