Patrick Fitzsimmons wrote:
Hi,
I'm sure I should know this, but I can't find it in the manual.
Is there a function in Python like the function in PHP isset()? It
should take a variable name and return True or False depending on
whether the variable is initialized.
Thanks for any help,
Is there a (relatively) simple way to profile an extension module,
preferably without static linking ? It compiles with 'gcc -pg' but
there are a bunch of undefined references at linking (_mcount,
_monstartup, __mcleanup); googling for them didn't bring back anything
particularly useful. Any ideas
On 2005-06-23, Peter Hansen [EMAIL PROTECTED] wrote:
Your list didn't mention a few things that might be critical.
Referential integrity?
You can implement it in sqlite with triggers. I only bother with cascading
delete triggers, myself.
Type checking? SQLite currently supports
[Gregory Piñero]
|
| I'm trying to run this statement:
|
| os.system(r'C:\Program Files\Mozilla Firefox\firefox.exe' + '
| www.blendedtechnologies.com')
|
| The goal is to have firefox open to that website.
|
| When I type r'C:\Program Files\Mozilla Firefox\firefox.exe' + '
|
It is relatively easy to write voice applications for the Asterisk
software PBX using the CGI-like AGI (Asterisk Gateway Interface).
The following document describes the AGI and has some examples in
Python:
http://home.cogeco.ca/~camstuff/agi.html
--
Gregory Piñero [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi guys,
I'm trying to run this statement:
os.system(r'C:\Program Files\Mozilla Firefox\firefox.exe' + '
www.blendedtechnologies.com')
The goal is to have firefox open to that website.
When I type r'C:\Program
Thanks for all of the replies, I'm glad I posted here, you guys have
been very helpful.
Obviously, I only know what you've told us about your data, but 20-100
queries? That doesn't sound right ... RDBMSes are well-
studied and well-understood; they are also extremely powerful when used
to their
Hi,
I have a script which I double-click to run. If i double-click it
again, it will launch another instance of the script.
Is there a way to allow only one instance of a script, so that if
another instance of the script is launched, it will just return with an
error.
Thanks
Regards,
Ali
--
[Ali]
|
| I have a script which I double-click to run. If i double-click it
| again, it will launch another instance of the script.
|
| Is there a way to allow only one instance of a script, so that if
| another instance of the script is launched, it will just
| return with an
| error.
If
Konstantin Veretennicov [EMAIL PROTECTED] writes:
On 6/22/05, Peter Maas [EMAIL PROTECTED] wrote:
Isaac Rodriguez schrieb:
Does anyone know of a Python API to manipulate CAB files?
I guess you'll have to interface with setupapi.dll
(SetupIterateCabinet) via ctypes, or with Microsoft
Stelios Xanthakis wrote:
Magnus Lycka wrote:
Right. Silly me. Maybe in some future Python version, True and False
will be constants, like None is since Python 2.4.
Actually, there is support in marshal to write True and False objects so
I don't understand why this isn't in 2.4
Because it
Dave Cook [EMAIL PROTECTED] writes:
On 2005-06-22, Will McGugan [EMAIL PROTECTED] wrote:
[...]
Can anyone recommend a database that runs on Windows, is fast /
efficient and can be shipped without restrictions or extra
downloads?
http://pysqlite.org
Or APSW
George Sakkis wrote:
There are no unitialized variables in python; if you try to access an
undefined name, a NameError exception is raised:
try:
print foo is, foo
except NameError:
print foo is undefined
note the order of evaluation:
try:
... print foo is, foo
Hi all,
This goes back to my previous post called Where is Word. In short, I
wanted to make a temporary file (directory listing), open it in Word to let
the user edit, layout and print it, and then delete the temp file
afterwards.
I almost got it to work without using COM, but there was a
Cameron Laird wrote:
OK, I'm with you part of the way. Typical Access developers
are *always* involved with DLL hell, right? You're surely not
saying that Python worsens that frustration, are you?
I think Dan was commenting on flaws in Microsoft's products,
not in Python. As I understand
Alberto Vera wrote:
Hello:
I found a script that convert a file to PDF format , but it was made in PHP
Do you know any script using Python?
What do you mean by convert a file to PDF format? The solution
obviously depends on what the file you start with looks like. If
you want to create PDF
Le Thu, 23 Jun 2005 01:19:11 -0500, Paul Watson a écrit :
Gregory Piñero [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi guys,
I'm trying to run this statement:
os.system(r'C:\Program Files\Mozilla Firefox\firefox.exe' + '
www.blendedtechnologies.com')
The goal is to have
- Original Message -
From: Florian Lindner [EMAIL PROTECTED]
Hello,
I am building a object cache in python, The cache has a maximum size and
the
items have expiration dates.
At the moment I'm doing like that:
What possible you see to optimize this lookup? Or anything else you see
On Wed, 22 Jun 2005 11:27:06 -0500, Jeff Epler wrote:
Why not just define the function yourself? Not every 3-line function
needs to be built in.
Of course I can code such a function, and I agree with the second
sentence, but I think that obtaining absolutes path is a task so commonly
needed
What's wrong with
(os.path.join(d, x) for x in os.listdir(d))
It's short, and easier to understand then some obscure option ;)
Andreas
On Thu, Jun 23, 2005 at 11:05:57AM +0200, Riccardo Galli wrote:
On Wed, 22 Jun 2005 11:27:06 -0500, Jeff Epler wrote:
Why not just define the function
Is it possible to persuade pydoc not to include documentation for
methods inherited from built-in classes? I have several classes that
inherit from dict, and don't really need documentation thousands of
lines long that consists mostly of dict's methods repeated multiple
times.
I'm sure I could
On 22 Jun 2005 17:50:49 -0700, Paul Rubin
http://phr.cx@nospam.invalid wrote:
Even on a multiprocessor
system, CPython (because of the GIL) doesn't allow true parallel
threads, ... .
Please excuse my ignorance, do you mean that python threads are always
scheduled to run on the same single
On 6/22/05, Riccardo Galli [EMAIL PROTECTED] wrote:
I propose to add an 'abs' keyword which would make os.listdir return the
absolute path of files instead of a relative path.
What about os.listdir(dir='relative/path', abs=True)? Should listdir
call abspath on results? Should we add another
Op 2005-06-22, Michael Hoffman schreef [EMAIL PROTECTED]:
Remi Villatel wrote:
Fredrik Lundh wrote:
checking if a logical expression is true by comparing it to True is bad
style, and comparing values using is is also bad style.
I wrote it this way because, first, it's perfectly valid Python
Hi all,
I'm trying to generate a (exhaustive) list of all the applications that are
installed on a user's machine. I've written some code that reads the
registry ('App Paths'):
code
appKey = win32api.RegOpenKeyEx(win32con.HKEY_LOCAL_MACHINE,
'SOFTWARE\Microsoft\Windows\CurrentVersion\App
On Wed, 22 Jun 2005 23:09:57 -0400, Patrick Fitzsimmons wrote:
Hi,
I'm sure I should know this, but I can't find it in the manual.
Is there a function in Python like the function in PHP isset()? It
should take a variable name and return True or False depending on
whether the variable is
On Thu, 23 Jun 2005 00:11:20 -0400, Tim Peters wrote:
Well, I try, Ivan. But lest the point be missed wink, 754 doesn't
_want_ +0 and -0 to act differently in almost any way. The only
good rationale I've seen for why it makes the distinction at all is in
Kahan's paper Branch Cuts for
[Guy Lateur]
| I'm trying to generate a (exhaustive) list of all the
| applications that are
| installed on a user's machine. I've written some code that reads the
| registry ('App Paths'):
[.. snip code ..]
| Can I be sure it lists *all* the applications?
What -- from your point of view --
On Thu, 23 Jun 2005 11:34:02 +0200, Andreas Kostyrka wrote:
What's wrong with
(os.path.join(d, x) for x in os.listdir(d))
It's short, and easier to understand then some obscure option ;)
Andreas
how does it help in using list comprehension, as the ones in the first
post?
--
Riccardo
On Thu, 23 Jun 2005 12:56:08 +0300, Konstantin Veretennicov wrote:
On 6/22/05, Riccardo Galli [EMAIL PROTECTED] wrote:
I propose to add an 'abs' keyword which would make os.listdir return the
absolute path of files instead of a relative path.
What about os.listdir(dir='relative/path',
Andrew Durdin wrote:
In this case the dictionary is obviously a better and clearer choice.
I've generally found for other circumstances where I've used switch
statements that the code ends up more readable if it's reorganised so
that the switch statements are all of the form above, or are
On 2005-06-23, Joel Rosdahl [EMAIL PROTECTED] wrote:
Or APSW http://www.rogerbinns.com/apsw.html.
Interesting. I was hoping it would not have one pysqlite2 limitation: if
you have an empty database, cursor.description always returns None, even if
you have pragma empty_result_callbacks=1
Riccardo Galli wrote:
On Thu, 23 Jun 2005 12:56:08 +0300, Konstantin Veretennicov wrote:
What about os.listdir(dir='relative/path', abs=True)? Should listdir call
abspath on results? Should we add another keyword rel? Would it complicate
listdir unnecessarily?
keyword dir not exists (don't
Whit this mutex is it possible when an instance is running in
background and you try to open a new instance. you cancel it and show
the first?
Greetz
--
http://mail.python.org/mailman/listinfo/python-list
| What -- from your point of view -- is an application?
Good question. Let me try to elaborate: I would like to know if people in
our company (building techniques) are using non-licensed software (eg
Photoshop, Office, AutoCad). So I guess by 'application' I mean commercial
software packages
Konstantin Veretennicov wrote:
On 6/22/05, Riccardo Galli [EMAIL PROTECTED] wrote:
I propose to add an 'abs' keyword which would make os.listdir return the
absolute path of files instead of a relative path.
What about os.listdir(dir='relative/path', abs=True)? Should listdir
call abspath
[Guy Lateur]
|
| | [TJG]
| | What -- from your point of view -- is an application?
|
| Good question. Let me try to elaborate: I would like to know
| if people in
| our company (building techniques) are using non-licensed software (eg
| Photoshop, Office, AutoCad). So I guess by 'application'
On 23/06/05 Tim Golden said:
This is only half an answer, but I personally find faffing
about with the double-quote / double-backslash stuff between
Python and Windows a pain in the neck, so where I can I avoid it.
Indeed. I believe this is why Python has os.sep.
Mike
--
Michael P.
[Michael P. Soulier]
| On 23/06/05 Tim Golden said:
|
| This is only half an answer, but I personally find faffing
| about with the double-quote / double-backslash stuff between
| Python and Windows a pain in the neck, so where I can I avoid it.
|
| Indeed. I believe this is why Python has
Riccardo Galli wrote:
On Thu, 23 Jun 2005 11:34:02 +0200, Andreas Kostyrka wrote:
What's wrong with
(os.path.join(d, x) for x in os.listdir(d))
It's short, and easier to understand then some obscure option ;)
Andreas
how does it help in using list comprehension, as the ones in the
In article [EMAIL PROTECTED],
Patrick Fitzsimmons [EMAIL PROTECTED] wrote:
Hi,
I'm sure I should know this, but I can't find it in the manual.
Is there a function in Python like the function in PHP isset()? It
should take a variable name and return True or False depending on
whether
I've got as far as this. I don't get any errors but still no
printer
import win32com.client
WBEM =
win32com.client.GetObject(rwinmgmts:{impersonationLevel=impersonate}!\\ +
. + r\root\cimv2)
printer = WBEM.Get(Win32_Printer).SpawnInstance_()
printer.Properties_('DeviceID').Value =
NickC [EMAIL PROTECTED] wrote:
The thing I love most about Python is the fact that callables can be
slung around at run-time, just like any other object.
Yup. A while ago, I was doing a lot of file parsing with state machines.
Each state was a function. The main loop of the state machine
I'm using Eric3 and realy like it.
http://www.die-offenbachs.de/detlev/eric3.html
Adriaan Renting| Email: [EMAIL PROTECTED]
ASTRON | Phone: +31 521 595 217
P.O. Box 2 | GSM: +31 6 24 25 17 28
NL-7990 AA Dwingeloo | FAX: +31 521 597 332
The Netherlands
Hi all.
I need to provide to my users a graphical interface to be used from
os' command line.
Initially I thought something equivalent to Unix dialog, and googling
around I have found Python Dialog
(http://pythondialog.sourceforge.net/). This would be the perfect
solution for me if it could be
[EMAIL PROTECTED]
| I've got as far as this. I don't get any errors but still no
| printer
|
| import win32com.client
| WBEM =
| win32com.client.GetObject(rwinmgmts:{impersonationLevel=imper
| sonate}!\\ + . + r\root\cimv2)
| printer = WBEM.Get(Win32_Printer).SpawnInstance_()
|
Hi, I asked this on the SWIG mailing list, but it's pretty dead over there...
I'm trying to get Python to pass a subclass of a C++ object to another
C++ object...
I have three C++ classes,
TiledImageSource
ZoomifyReaderWx which ISA TiledImageSource
TiffWriter which has a method which takes a
On Thu, 23 Jun 2005 13:25:06 +0200, Daniel Dittmar wrote:
He probably meant that a 'join' option would be more natural than an 'abs'
option. After all, your examples use os.path.join to create a valid path
that can be used as the argument to other module os functions. Whether the
results are
Hi all,
I just found a problem in the xreadlines method/module when used with
codecs.open: the codec specified in the open does not seem to be taken into
account by xreadlines which also returns byte-strings instead of unicode
strings.
For example, if a file foo.txt contains some text encoded
Guy Lateur [EMAIL PROTECTED] writes:
| What -- from your point of view -- is an application?
Good question. Let me try to elaborate: I would like to know if people in
our company (building techniques) are using non-licensed software (eg
Photoshop, Office, AutoCad). So I guess by
For spherical earth, this is easy, just treat the 2 locations as
vectors whose origin is at the center of the earth and whose length is
the radius of the earth. Convert the lat-long to 3-D rectangular
coordinates and now the angle between the vectors is
arccos(x dotproduct y). The
Dennis Lee Bieber wrote:
Firebird might be a contender...
I recently completed a 5 user Java based Windows reporting
system that used Firebird as the SQL server based database.
I found Firebird performed very well and I would not hesitate
to use it again.
Jussi Jumppanen
Author of: Zeus for
... lock file?
--
http://mail.python.org/mailman/listinfo/python-list
On 2005-06-23, Tim Golden [EMAIL PROTECTED] wrote:
[Ali]
|
| I have a script which I double-click to run. If i double-click it
| again, it will launch another instance of the script.
|
| Is there a way to allow only one instance of a script, so that if
| another instance of the script is
Hi,
On 22.06.2005, at 23:18, Michael Barkholt wrote:
Is there any detailed documentation on the structure of Pythons
internals,
besides the source code itself?
More specifically I am looking for information regarding the C parser,
since
I am looking into the viability of using it in
[DeRRudi]
|
| Whit this mutex is it possible when an instance is running in
| background and you try to open a new instance. you cancel it and show
| the first?
|
| Greetz
All the Mutex is doing is providing a single token
which only one instance of the app can hold at a
time. Of itself, it
Steven D'Aprano wrote:
On Wed, 22 Jun 2005 12:34:21 -0500, Rocco Moretti wrote:
You could also turn __init__ into a dispatch fuction:
#--
class myPointClass:
def __init__(self, *args):
if len(args) = 2:
self.__init_two(*args)
if len(args) == 3:
Alan Is it possible to persuade pydoc not to include documentation for
Alan methods inherited from built-in classes?
Alan I'm sure I could qite easily write something to post-process the
Alan HTML files; just wondering if there might be an easier way.
If you're going to go
Magnus Lycka [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Cameron Laird wrote:
OK, I'm with you part of the way. Typical Access developers
are *always* involved with DLL hell, right? You're surely not
saying that Python worsens that frustration, are you?
I think Dan was
Hi,
I've made a small utility to re-raise an exception with the same stack
as before with additional information in it. Since I want to keep the
same exception type and that some types have very specific constructors
(which take, for example, more than one parameter), the only safe way I
have
In article [EMAIL PROTECTED],
Dave Cook [EMAIL PROTECTED] wrote:
On 2005-06-23, Peter Hansen [EMAIL PROTECTED] wrote:
.
.
.
Type checking? SQLite currently supports
neither.
sqlite3 has a strict affinity mode, but I'm
I'm just trying to use Grinder 3 to beat
up my http-app.
Grinder 3 comes with its own jython.jar.
Some of the sample scripts:
http://grinder.sourceforge.net/g3/script-gallery.html
use import statements that don't work for me.
Reading around, these are reference to modules.
Do I need a proper
Magnus Lycka [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Cameron Laird wrote:
OK, I'm with you part of the way. Typical Access developers
are *always* involved with DLL hell, right? You're surely not
saying that Python worsens that frustration, are you?
I think Dan was
Get Tim Golden's wmi module
(http://tgolden.sc.sabren.com/python/wmi.html). I recently had to help
my brother remove some spyware, and so I used some of the example that
came with WMI to read through the registry to extract startup keys,
services, etc.
Even if your users aren't sophisticated
Am Wed, 22 Jun 2005 23:49:21 -0700 schrieb Ali:
Hi,
I have a script which I double-click to run. If i double-click it
again, it will launch another instance of the script.
Is there a way to allow only one instance of a script, so that if
another instance of the script is launched, it
Right I got it working. I had to put a printer port in aswell. I'll
now look at a script to create printer ports. My goal is being able to
query the printers on print server x and then recreate the printers
(shares and ports) on print server y.
Thanks, for all your help Tim, much appreciated.
On Thu, 23 Jun 2005 00:02:55 -0400, Gregory Piñero
[EMAIL PROTECTED] wrote:
Hi guys,
I'm trying to run this statement:
os.system(r'C:\Program Files\Mozilla Firefox\firefox.exe' + '
www.blendedtechnologies.com')
The goal is to have firefox open to that website.
When I type r'C:\Program
Michael Hoffman wrote:
Stelios Xanthakis wrote:
Magnus Lycka wrote:
Right. Silly me. Maybe in some future Python version, True and False
will be constants, like None is since Python 2.4.
Actually, there is support in marshal to write True and False objects so
I don't understand
Am Wed, 22 Jun 2005 18:01:51 -0500 schrieb Skip Montanaro:
I wrote PEP 304, Controlling Generation of Bytecode Files:
http://www.python.org/peps/pep-0304.html
...
Hi,
I am interested in a small subset: I want to import a file without
a '.pyc' being generated.
Background: I
Am Wed, 22 Jun 2005 17:57:14 +0200 schrieb Riccardo Galli:
Hi,
I noticed that when I use os.listdir I need to work with absolute paths
90% of times.
While I can use a for cycle, I'd prefere to use a list comprehension,
but it becomes too long.
Hi,
I like it. But as you noticed, too, join
bugbear wrote:
I'm just trying to use Grinder 3 to beat
up my http-app.
Grinder 3 comes with its own jython.jar.
Some of the sample scripts:
http://grinder.sourceforge.net/g3/script-gallery.html
use import statements that don't work for me.
Reading around, these are reference to
On 2005-06-23, Thomas Guettler [EMAIL PROTECTED] wrote:
Create a file which contains the PID (process ID) of
the current process in a directory. If the file
already exists, the file is running.
That's how it's usually done.
If your script dies without removing the pid-file, you need to
Thomas Bartkus wrote:
Magnus Lycka [EMAIL PROTECTED] wrote in message
The O.P. wanted a database for his
Python app, and Thomas Bartkus suggested Access.
Not exactly!
Sorty, I meant Jet or whatever the backend is called these days.
I suggested the built in Microsoft DAO or ADO
On 2005-06-23, Grant Edwards [EMAIL PROTECTED] wrote:
On 2005-06-23, Tim Golden [EMAIL PROTECTED] wrote:
[Ali]
|
| I have a script which I double-click to run. If i double-click it
| again, it will launch another instance of the script.
|
| Is there a way to allow only one instance of a
Heres a script for creating printer ports
import win32com.client
WBEM =
win32com.client.GetObject(rwinmgmts:{impersonationLevel=impersonate}!\\
+ . + r\root\cimv2)
printer = WBEM.Get(Win32_Printer).SpawnInstance_()
printer.Properties_('DeviceID').Value = 'myprinter'
Hi All--
Thomas Guettler wrote:
I like it. But as you noticed, too, join would be better than abs.
Example:
# mylistdir.py
import os
import sys
def mylistdir(dir, join=False):
for file in os.listdir(dir):
yield os.path.join(dir, file)
print
Thomas Guettler [EMAIL PROTECTED] writes:
Am Wed, 22 Jun 2005 18:01:51 -0500 schrieb Skip Montanaro:
I wrote PEP 304, Controlling Generation of Bytecode Files:
http://www.python.org/peps/pep-0304.html
...
Hi,
I am interested in a small subset: I want to import a file without
Rocco Moretti wrote:
Steven D'Aprano wrote:
snip
That's the joys of a mostly self-taught programming knowledge: you miss
out on all the buzzwords.
Being mostly self taught myself, I have a tendancy to use infrequently
encountered terms in related but technically inappropriate contexts,
Stelios Xanthakis [EMAIL PROTECTED] writes:
Michael Hoffman wrote:
Stelios Xanthakis wrote:
Magnus Lycka wrote:
Right. Silly me. Maybe in some future Python version, True and False
will be constants, like None is since Python 2.4.
Actually, there is support in marshal to write True
Magnus Lycka [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Thomas Bartkus wrote:
Magnus Lycka [EMAIL PROTECTED] wrote in message
The O.P. wanted a database for his
Python app, and Thomas Bartkus suggested Access.
Not exactly!
Sorty, I meant Jet or whatever the
On 6/22/2005 3:08 PM, Cameron Laird wrote:
In article [EMAIL PROTECTED], Dan [EMAIL PROTECTED] wrote:
On 6/22/2005 1:14 PM, Dave Cook wrote:
On 2005-06-22, Cameron Laird [EMAIL PROTECTED] wrote:
Are you saying that Python-based applications are particularly
vulnerable in this
On 6/22/2005 9:51 PM, Peter Hansen wrote:
Will McGugan wrote:
Thanks for the replies. I think I'm going to go with sqllite for now.
Your list didn't mention a few things that might be critical.
Referential integrity? Type checking? SQLite currently supports
neither. Just make sure
Mike Meyer wrote:
Making None a constant broke existing code (and I just saw old code
that assigned to None). Are True and False that much more common as
variable names than None?
I would think so. I know that my pre-booleans-in-Python code routinely
did something like from booleans import
Do you only need to work on windows? if so you could use
http://newcenturycomputers.net/projects/wconio.html to build your own
gui.
We used this for our inhouse ldap admin script.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have a subclassed PyQt class:
class Node(object):
def move(self, x,y): pass
class CRhomb(QCanvasPolygon, Node): pass
$ python
v2.4.1
CRhomb.mro()
[class '__main__.CRhomb', class 'qtcanvas.QCanvasPolygon', class
'qtcanvas.QCanvasPolygonalItem', class 'qtcanvas.QCanvasItem',
[Tim Peters']
Well, I try, Ivan. But lest the point be missed wink, 754 doesn't
_want_ +0 and -0 to act differently in almost any way. The only
good rationale I've seen for why it makes the distinction at all is in
Kahan's paper Branch Cuts for Complex
Elementary Functions, or Much Ado
Hi All--
Tim Peters wrote:
Fortran is so
eager to allow optimizations that failure due to numeric differences
in conformance tests rarely withstood challenge.
+1 QOTW
Metta,
Ivan
--
Ivan Van Laningham
God N Locomotive Works
Singletoned wrote:
Rocco Moretti wrote:
Steven D'Aprano wrote:
snip
That's the joys of a mostly self-taught programming knowledge: you miss
out on all the buzzwords.
Being mostly self taught myself, I have a tendancy to use infrequently
encountered terms in related but
If you go into the PAMIE users group
and go to the files Section you will see
modalPopupTest.py this will handles Uploads, pop-ups, alerts using
PAMIE
PAMIE will include this feature in the next release
http://groups.yahoo.com/group/Pamie_UsersGroup/files/
RLM
scrimp wrote:
Well, thanx to
Hi,
I am embedding Python into a multi-threaded C++ application runnig on
Solaris and need urgent clarification on the embedding architecture and
its correct usage (as I am experience weird behaviors).
Can anyone clarify:
- if Python correctly supports multiple sub-interpreters
On Thu, 23 Jun 2005 05:45:07 -0700, Negroup wrote:
Hi all.
I need to provide to my users a graphical interface to be used from os'
command line.
Initially I thought something equivalent to Unix dialog, and googling
around I have found Python Dialog
(http://pythondialog.sourceforge.net/).
Mike Meyer wrote:
Making None a constant broke existing code (and I just saw old code
that assigned to None). Are True and False that much more common as
variable names than None?
Yes. In fact, I count at least 4 different modules in the Python 2.4
standard library that assign to True or
Antoon Pardon wrote:
Op 2005-06-22, Michael Hoffman schreef [EMAIL PROTECTED]:
Remi Villatel wrote:
Fredrik Lundh wrote:
checking if a logical expression is true by comparing it to True is bad
style, and comparing values using is is also bad style.
I wrote it this way because, first, it's
Nicolas Fleury wrote:
Hi,
I've made a small utility to re-raise an exception with the same stack
as before with additional information in it. Since I want to keep the
same exception type and that some types have very specific constructors
(which take, for example, more than one
I have a Tkinter (frame) widget that contains several other frame
widgets, each containing entry widgets. In the parent frame I have a
'save' button that is initially disabled. As it is now, each widget has
a hasChanged property that I can poll to see if updates to the source
data need to be
Diez B. Roggisch wrote:
bugbear wrote:
I'm just trying to use Grinder 3 to beat
up my http-app.
Grinder 3 comes with its own jython.jar.
Some of the sample scripts:
http://grinder.sourceforge.net/g3/script-gallery.html
use import statements that don't work for me.
Reading around,
Aditi wrote:
hi all...i m a software engg. student completed my 2nd yr...i have been
asked to make a project during these summer vacations...and hereby i
would like to invite some ideas bout the design and implementation of
an APPLICATION MONITORING SYSTEMi have to start from scrach so
On Thu, 23 Jun 2005 09:21:55 -0600, Ivan Van Laningham wrote:
Mmmm, how about:
# mylistdir.py
import os, os.path
import sys
def mylistdir(dir, join=False):
for file in os.listdir(dir):
if join:
yield join(dir, file)
else:
yield file
print
In article [EMAIL PROTECTED],
Konstantin Veretennicov [EMAIL PROTECTED] wrote:
On 22 Jun 2005 17:50:49 -0700, Paul Rubin
http://phr.cx@nospam.invalid wrote:
Even on a multiprocessor
system, CPython (because of the GIL) doesn't allow true parallel
threads, ... .
Please excuse my
If firefox is not your default browser,
os.system(r'cd c:\Program Files\Mozilla Firefox firefox ' +
'www.blendertechnologies.com')
works for me.
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 187 matches
Mail list logo