Contents Within:
[1] Evening social at Springcreek this Thursday
[2] Programming session at Nerdbooks this Saturday
[3] Club version control repository established
[1] The DFW Pythoneers, an open discussion group based around the Python
programming language, will be having its 6th get-together
Hi!
I'm pleased to announce that pyExcelerator 0.5.0a is now available for
download.
---
What can you do with pyExcelerator:
Generating Excel 97+ files with Python 2.4+ (need decorators),
importing Excel 95+ files,
support for UNICODE in Excel
For the riddles' lovers amongst you, you are most invited to take part
in The Python Challenge, the first programming riddle on the net.
Every riddle can be solved by a bit of Python programming.
It is a great and unique way to explore the included batteries of Python.
You are most invited to
Ivan Van Laningham wrote:
Hi All--
John Bokma wrote:
Ivan Van Laningham wrote:
Python docs are not as good as PHP docs.
Oh my. I hope you are just making that up. PHP documentation is
guesstimated on how PHP works on average. Add the online comments
clutter and you probably are
On 11 May 2005 19:48:42 -0700, Paul Rubin http://[EMAIL PROTECTED] wrote:
Stelios Xanthakis [EMAIL PROTECTED] writes:
I didn't know much about PyPy. It seems that pyvm is *exactly* what
pypy needs to boost its performance. Does pypy has the vm in python
as well? Does pypy have a compiler
On Thursday 12 May 2005 05:24 am, Mike Meyer wrote:
jeff elkins [EMAIL PROTECTED] writes:
On Wednesday 11 May 2005 04:44 pm, Grant Edwards wrote:
On 2005-05-11, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
The following script demonstrates a method that should work for you. I
believe it
phil wrote:
Then i got a tip that you can register a function that needs to be
called when the object is going to be deleted.
For instance to register a function __exit, you do this:
Here is the complete line class with your suggestion:
Below is the output.
Nice idea, maybe I did
On Thursday 12 May 2005 04:56 am, Mike Meyer wrote:
James Carroll [EMAIL PROTECTED] writes:
If you are doing this just for yourself, and you know you have a
printer that will really print just the plain text when you send it
plain text (like a dot matrix printer from the early 90s) then you
Sara Khalatbari [EMAIL PROTECTED] writes:
Hi,
Is there a Modules in Python that returns the time
date of today when ran?
You mean a method in a module? Yes, there's good 'ol time module, which will
probably provide what you need:
import time
time.time() # number of seconds (+ fract)
I'm using wxPython and design the gui via wxglade. One of the gui
components is a simple dialog class that gets displayed when a user
exits the program.
I want to use the same dialog but with a different text for closing
certain dialogs in the program. (it's a pure do you want to exit
insert
I have a gui with a bunch of buttons, labels, the usual stuff. It
uses the grid manager:
gui = Frame()
gui.grid()
gui.Label().grid() # put some widgets into the gui
...# more widgets
Now at the the very bottom of the gui, I want to add two more buttons,
let's say stop and
phil wrote:
WM_TAKE_FOCUS does not work on WinXP ??
I was sure I had used that on win before.
Works on Linux.
I have a function I need to run when the window
gets the focus. How do you do that in Tkinter
on Win32?
Thanks
Take a look at the module docs for Tkinter you will need the
one
Paul Rubin wrote:
I have a gui with a bunch of buttons, labels, the usual stuff. It
uses the grid manager:
gui = Frame()
gui.grid()
gui.Label().grid() # put some widgets into the gui
...# more widgets
Now at the the very bottom of the gui, I want to add two more
praba kar wrote:
--- Tim Williams [EMAIL PROTECTED] wrote:
Why don't you want to use smtplib ?
In Php we can build a Mail Message by
Mail_mime class and send this message by
Mail::Factory's class send Method. Here Php
doesn't use any smtp modules. Like that
In Python I used email.Message
praba kar [EMAIL PROTECTED] writes:
In Php we can build a Mail Message by
Mail_mime class and send this message by
Mail::Factory's class send Method. Here Php
doesn't use any smtp modules. Like that
In Python I used email.Message class to
build Mail Message and Now I am searching
modules to
Many thanks to all who have helped me out on this one - much appreciated.
Pete
On Wed, 11 May 2005 07:22:09 -0500, Jeff Epler wrote:
While I've never used it, there *is* a Tix module in Python which
appears to wrap the widgets provided by Tix. In Fedora Core 2, Python
doesn't seem to be
[EMAIL PROTECTED] (Aahz) writes:
[x for x in data if data.count(x) == 1]
suffice? it is also stable preserving order of items. Lemme demo:
Only for small datasets -- this is an O(N^2) algorithm.
I realized that, but maybe I should've pointed it out too. For the OP if
he/she is unaware -
jeff elkins [EMAIL PROTECTED] writes:
Instead, as was suggested earlier, use the lpr command and send it
the text/data on standard input. Any reasonably managed Unix system
should be able to handle a fair range of graphics formats, though
postscript is preferred.
I've been using:
Terry Reedy wrote:
Because of these two posts (and a few others) extolling the PHP
documentation, I decided to take a look for myself to see what the
fuss was about and whether I could get any ideas on how to improve
Python's docs.
[...]
Finally, 80% of the chapter/page consists of a
[flamesrock]
|
| Thanks for the code Tom.
|
| Unforunately, I get the following error message when trying to import
| win32com in idle:
|
| from win32com.shell import shell, shellcon
|
| Traceback (most recent call last):
| File pyshell#20, line 1, in -toplevel-
| from win32com.shell
Kay Schluehr wrote:
Yes. What we are seeking for and this may be the meaning of Armins
intentiously provocative statement about the speed of running HLLs is a
successor of the C-language and not just another VM interpreter that is
written in C and limits all efforts to extend it in a
[Mike Meyer]
[... snip discussions of where to put config files ...]
| Yes, but Windows these days supports multiple users. Are you sure that
| you want to restrict your users to one configuration file per
| installed version of the program?
|
| I'm not sure Windows has a good solution to this
Paul Rubin wrote:
I think you are missing the columnconfigure()/rowconfigure() methods as
Martin Franklin pointed out. Anyway, here is some code to illustrate the
matter. I've found it helpful to use false colors to see what's going on.
the yellow 'main' frame contains the red 'north' and the
Thanks for the hint so far!
The recipe shown there does not exactly what I want though, it doesn't
do the type() stuff and it hooks up every _ variable which could get
crucial if the wrapped object's methods uses them too.
So I think my question boils down to how I can make type(Proxy) return
There's a working version in the wxPython Demo...
If you run the wxpython demo, and choose Print Framework under
Miscellaneous it has code that looks a whole lot like what's on the
wiki, only you can test it and try it out and see if it's broken for
you there. If anything doesn't work, let the
Dear All,
From this below answer I got clear
idea for mail sending Module. I am expecting
this kind of answer . Thank you
for your immediate response.
--- Mike Meyer [EMAIL PROTECTED] wrote:
praba kar [EMAIL PROTECTED] writes:
In Php we can build a Mail Message by
Mail_mime class
Dear All,
From this below answer I got clear
idea for mail sending Module. I am expecting
this kind of answer . Thank you
for your immediate response.
--- Mike Meyer [EMAIL PROTECTED] wrote:
praba kar [EMAIL PROTECTED] writes:
In Php we can build a Mail Message by
Mail_mime class
Terry Reedy wrote:
Conclusion 1: if PHP is anything as awful as the manual, it is not for me.
the whole idea that turning the manual into a wiki or a forum will solve all
problems is extremely naive.
on the other hand, having written lots of manual enhancing material, I would
love to be able
flupke wrote:
Then i got a tip that you can register a function that needs to be
called when the object is going to be deleted.
For instance to register a function __exit, you do this:
class line:
def __init__(s,glob,argl,color=''):
atexit.register(s.__exit)
I don't know
phil [EMAIL PROTECTED] wrote:
Then i got a tip that you can register a function that needs to be
called when the object is going to be deleted.
For instance to register a function __exit, you do this:
Here is the complete line class with your suggestion:
Below is the output.
Nice idea,
phil wrote:
WM_TAKE_FOCUS does not work on WinXP ??
I was sure I had used that on win before.
Works on Linux.
I have a function I need to run when the window
gets the focus. How do you do that in Tkinter
on Win32?
binding the FocusIn event should work.
(and make sure that the takefocus
toolchain that adds relevant links to the generated HTML. e.g.
oops. here's the pre-paste-and-cut-error text:
toolchain that adds relevant links to the generated HTML. with that
in place, external contributors can then place an annotation file on their
own server, and send the
Hi all.
Steve Holden wrote:
... to conflict with the can't teach an old dog new tricks ...
Excuse my English (also some terms of your replay have no
correspondance in my English dictionary...) and my lack of patience
(beeing an old dog ...).
My original request was mainly centered on flow
do you (or whoever gave you the tip) have the slightest idea what atexit does?
Yeah, I got the tip on this group. researched and found it was
for when program ends!
I was trying to treat it like a destructor. darn.
--
http://mail.python.org/mailman/listinfo/python-list
I don't give a feather or a fig.
MJRB
--
http://mail.python.org/mailman/listinfo/python-list
I have a python script which uses pexpect and I want to timeout (i.e. raise
pexpect.TIMEOUT) if a long running command does not produce the output I am
expecting. To simulate the 'long running command', consider the following
example which simply runs the 'yes' command which prints an endless
Hi all,Ive just compiled Python 2.4.1 on a linux box (RHEL 3AS) after having installed Berkeley DB 4.3.27 from sleepycat Software.During the configure/build process python correctly found the BSBDB library.I then installed the rest of my environment which is correctly working with Python
Conclusion 1: if PHP is anything as awful as the manual, it is not for me.
the whole idea that turning the manual into a wiki or a forum will solve all
problems is extremely naive.
Wha?
I haven't done PHP for a couple of years, but when I really needed
documentation, the PHP docs were
Fredrik Lundh wrote:
flupke wrote:
Then i got a tip that you can register a function that needs to be
called when the object is going to be deleted.
For instance to register a function __exit, you do this:
class line:
def __init__(s,glob,argl,color=''):
This is a news update about the Europython 2005 conference, to be held
in Göteborg, Sweden 27-29 June
- We have received a very nice array of talks this year, and we expect
to be the biggest Python conference ever in terms of subjects
covered. Many thanks to all the speakers who are putting
Paul Some parts of the lib doc are better than others. The only way to
Paul understand SocketServer, for example, is to read the long comment
Paul at the beginning of the source file. I've been wanting to get
Paul around to merging that with the doc writeup and adding some
[EMAIL PROTECTED] wrote:
So forgive me if I'm in trouble... Instead of mocking me, the better
should be to give me an brief idea of the import's roll (namespaces,
visibility and so on...)
if you're interested in learning stuff, why not spend your time reading
up on how things work, rather
try b1=c:/test.txt
It seems to work for me on Windows 2000.
-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
n.org]On Behalf Of George
Sent: Thursday, May 12, 2005 9:41 AM
To: python-list@python.org
Subject: Launch file in Notepad
Newbie question:
I'm trying to
George said unto the world upon 2005-05-12 09:41:
Newbie question:
I'm trying to lauch Notepad from Python to open a textfile:
import os
b1=c:\test.txt
os.system('notepad.exe ' + b1)
However, the t of test is escaped by the \, resulting in Notepad trying
to open c: est.txt.
How do
Ivan I get that. My question, cleverly concealed in a rant, was, Why
Ivan does clicking on the Documentation link at python.org NOT take me
Ivan to docs.python.org?
I almost changed that link, but then reconsidered. Compare
http://docs.python.org/
with
- hacking SWIG. Shouldn't be too hard and will instantly give
us access to wx, qt, etc.
Mike You can't assume that because some package is a C/C++ library
Mike wrapped for Python that it uses SWIG. pyqt, for example, doesn't
Mike use SWIG at all. It uses SIP, which is
[George]
b1=c:\test.txt
With this code, your problem is the embedded tab as you say. Use either
rc:\test.txt or c:\\test.txt. However, if this is true:
By the way, b1 comes from a command line parameter, so the user enters
c:\test.txt as command line parameter.
then there will be no
On 2005-05-11, jeff elkins [EMAIL PROTECTED] wrote:
I'm totally new to Python (obvious,yes?) so how might argv[0] fail?
argv[0] contains whatever is put there by the program that
exec'ed you, and can therefore contain just about anything (or
nothing). It may not contain a full path, and your
[EMAIL PROTECTED] wrote:
Hi. I'm trying to build MySQL-python-1.2.0 on my Linux FC2
(with MySQL 3.23.58).
See:
https://sourceforge.net/tracker/index.php?func=detailaid=1146226group_id=22307atid=374932
And also try the new 1.2.1c3 release candidate.
--
On 2005-05-12, Brian van den Broek [EMAIL PROTECTED] wrote:
b1=c:\test.txt
os.system('notepad.exe ' + b1)
However, the t of test is escaped by the \, resulting in Notepad trying
to open c: est.txt.
There are several ways, but the preferred solution is to switch the
slash direction:
[Paul Rubin]
It's true that CPython doesn't have a compiler and that's
a serious deficiency.
Hi, Paul. I did not closely follow all of the thread, so maybe my
remark below, only repeats what others might have said and I missed?
Deep down, why or how not having a [traditional, to-native-code]
I'm thinking of switching from my Twisted-HTTP-server-project to
CherryPy or Snakelets etc etc. The project involves alot of
database-access using SQLObject and SQLite ( perhaps MySQL and
PostgreSQL in the future ) and some heavy IO-stuff ( scanning of local
filesystem to extract meta information
Timothy i DELETED the file from my webserver, uploaded the new
Timothy one. when my app logs in it checks the file, if it's changed it
Timothy downloads it. the impossible part, is that on my pc is
Timothy downloading the OLD file i've deleted! if i download it via IE,
Timothy
On Thu, 12 May 2005 15:41:14 +0200, George [EMAIL PROTECTED] wrote:
Newbie question:
I'm trying to lauch Notepad from Python to open a textfile:
import os
b1=c:\test.txt
os.system('notepad.exe ' + b1)
However, the t of test is escaped by the \, resulting in Notepad trying
to open c: est.txt.
Richie Hindle wrote:
By the way, b1 comes from a command line parameter, so the user enters
c:\test.txt as command line parameter.
How are you prompting the user? When I run this:
import os
b1=raw_input(Enter a filename: )
os.system('notepad.exe ' + b1)
and enter c:\test.txt, it
Marco I've just compiled Python 2.4.1 on a linux box (RHEL 3AS) after
Marco having installed Berkeley DB 4.3.27 from sleepycat Software.
Marco During the configure/build process python correctly found the
Marco BSBDB library.
...
Marco File
flupke wrote:
I'm using wxPython and design the gui via wxglade. One of the gui
components is a simple dialog class that gets displayed when a user
exits the program.
I want to use the same dialog but with a different text for closing
certain dialogs in the program. (it's a pure do you
Hi Fredrik,
thank you for saying that I am
... posting silly assertions.
I didn't born Python expert, and I am hardly trying to learn
something.
I don't like classes but this assertion (silly... I agree) is due to
the fact that I don't understand them well (I hope to change mind in
a near
Grant Edwards wrote:
On 2005-05-12, Brian van den Broek [EMAIL PROTECTED] wrote:
Does Python really look at the string and mess with the slash?
I don't think it needs to, since the Windows system calls have
always accepted forward slashses, haven't they?
It did, but now not anymore. I
On Thu, 12 May 2005 14:20:29 -, Grant Edwards [EMAIL PROTECTED] wrote:
On 2005-05-12, Brian van den Broek [EMAIL PROTECTED] wrote:
b1=c:\test.txt
os.system('notepad.exe ' + b1)
However, the t of test is escaped by the \, resulting in Notepad trying
to open c: est.txt.
There are
Bengt Richter wrote:
On Thu, 12 May 2005 15:41:14 +0200, George [EMAIL PROTECTED] wrote:
(By the way, b1 comes from a command line parameter, so the user enters
c:\test.txt as command line parameter.)
It should be ok then, unless you have somehow processed the command line
parameter and
Steven Bethard wrote:
Ivan Van Laningham wrote:
The Python docs are not ideal. I can never remember, for instance,
where to find string methods (not methods in the string module, but
methods with '')
Hmmm... Well going to http://docs.python.org/ and typing string
methods into the search
Steven Bethard wrote:
Christopher J. Bottaro wrote:
Contrast that with Python. First off there is no search mechanism
built into the documentation page (yes I know you can google it, but that
just doesn't feel right).
Um, are you looking at the current documentation page?
Hello, I want that the return sentence don't return anything, how can I do
it?. If i do only return it returns None, and pass don't run too.
Can anyone help me?, thanks.
XIMO
--
http://mail.python.org/mailman/listinfo/python-list
Ximo wrote:
Hello, I want that the return sentence don't return anything, how can I do
it?. If i do only return it returns None, and pass don't run too.
Can anyone help me?, thanks.
XIMO
Returning None is the same as returning nothing. What exactly are you
trying to do?
--
I prefer to use my own text format instead of StructuredText or the
like, because I also use emacs outline mode a lot.
What would be the best approach for creating this new content type in
Zope/Plone? Writing a new Plone product with page templates seems
fairly involved, but maybe it's desirable
Bengt Richter wrote:
If you make your console 96 wide and set the font to Lucida Console Bold
24point,
it will probably expand to near full screen on 1024x768. You can set the
scroll buffer
to a couple hundred lines and adjust console widow height to suit. Use the
properties
from the
Ximo [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello, I want that the return sentence don't return anything, how can I do
it?. If i do only return it returns None, and pass don't run too.
Can anyone help me?, thanks.
XIMO
Just don't use a return statement at all, or do
Is there a better way to delete the image from a Tkinter button other
than the following:
- reconstructing the button
- image=blank.gif
--
Regards,
Casey
--
http://mail.python.org/mailman/listinfo/python-list
I am doing a interpret of lines and it show me a prompt, and I want if I
write a declaration as int a my progrtam return de prompt and nothing
more, for exemple:
2+2
4
int a
Then I'm finding that de function which execute int a return me nothing,
and no
int a
None
Joseph Garvin
[Ximo]
I want that the return sentence don't return anything, how can I do
it?
`return' always return something (if we except the case of generators).
Used without arguments, it returns None, as you discovered already.
If a function falls through its end, None is implicitely returned.
A
Paul Rubin wrote:
Yes, there are several Python compilers already
...
It's true that CPython doesn't have a compiler and that's a serious
deficiency. A lot of Python language features don't play that well
with compilation, and that's often unnecessary. So I hope the baseline
On Thu, May 12, 2005 at 04:42:34PM +0100, Tim Williams wrote:
Just don't use a return statement at all, or do something like
[function body]
if not val = None:
return val
[end of function]
i didn't understood that.
if you don't return nothing explicitly the function returns None.
(or
SQL = insert into D.D_NOTIFY values (:CARDREF, :BANKKEY, :OK1, :OK2 \
:DEBTEUR, :DEBTDEN, to_date(:INVOICE_DATE,'DD.MM.YY'),
to_date(:PAYMENT_DEADLINE,'DD.MM.YY'), :POINTS)
Try using a variable name other than id for the CARDREF variable... say
card_id. id is a built in
Christopher J. Bottaro [EMAIL PROTECTED] writes:
because there are no namespaces or classes, but still I think Python could
do something similar. Say for instance search for append and it will
come back with a page for list's append, a page for array's append, etc.
A seperate page for each
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote:
.
.
.
Absolutely! Looking at the wiki there are a bunch of solutions, all of
which work in specialized circumstances. Nothing like, say the freeze
script of Python.
Timothy Smith wrote:
ok what i am seeing is impossible.
i DELETED the file from my webserver, uploaded the new one. when my app
logs in it checks the file, if it's changed it downloads it. the
impossible part, is that on my pc is downloading the OLD file i've
deleted! if i download it via
Mike Given that Python hides the difference between user-defined
Mike objects and built-in objects, it's not clear to me that anything
Mike other than the current system, with all the classes/types in one
Mike place, makes sense.
Maybe the Module Index should be renamed
Dear all,
How could I use Python polymorphism?
Which kind of structures Python give me to use
polymorphism?
Where can I find specific documentation?
Thanks and Best regards.
Cadu Moreira
__
Do you Yahoo!?
Make Yahoo!
Edvard Majakari wrote:
I realized that, but maybe I should've pointed it out too. For the OP if
he/she is unaware - notation O(N^2) (big O n squared) means the computing time
of the algorithm increases exponentially (where exponent is 2) relative to the
size of the input.
Normally this is
Hello all,
I would like to debug my python libraries, written in c++, with GDB
(gnu debugger)
I'm using the mingw compiler in a windows environment. As development
environment I use eclipse with the CDT plugin. This plugin also has a
nice GUI frontend for the GDB.
I've already tried several
I can't seem to get this function to work. If the item does not exist I
get an exception, rather than a return value of false. Here's an
example:
#!/usr/bin/python
from Tix import *
root = Tk()
listBox = HList(root)
item = some item
if not listBox.item_exists(item, 0):
Hi all,
I'm running into a very strange problem at work.
We're using an application called MSC.Mentat (modelling/meshing
application) which provides a programmable interface through Python.
Because we were told that the Python version they ship is missing some
libraries we compiled it ourselves
Grant Edwards [EMAIL PROTECTED] writes:
On 2005-05-11, jeff elkins [EMAIL PROTECTED] wrote:
I'm totally new to Python (obvious,yes?) so how might argv[0] fail?
argv[0] contains whatever is put there by the program that
exec'ed you, and can therefore contain just about anything (or
flyaflya [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I want make a 2-D array from a list,all elements is references of
list's,like this:
a = [1,2,3,4]
b = [ [1,2], [3,4] ]
when change any elements of a, the elements of b will change too, so I
can use some function for list to
Thomas W wrote:
I don't expect this project to have alot of traffic once online, but it
would kinda suck if my software couldn't handle it if it really took
off.
What would be a lot
So my question is; based on the very brief description above, are there
any of the python-based
Skip Montanaro [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Maybe the Module Index should be renamed Module/Type Index and
embellished
with the builtin types, so that you'd find float (builtin), string
(builtin), dict (builtin), etc. in the appropriate alphabetical
positions.
Carlos Moreira wrote:
How could I use Python polymorphism?
Which kind of structures Python give me to use
polymorphism?
Where can I find specific documentation?
www.python.org
(have you read the tutorial?)
/F
--
http://mail.python.org/mailman/listinfo/python-list
--- Fredrik Lundh [EMAIL PROTECTED] wrote:
www.python.org
:-/
(have you read the tutorial?)
Are you talking about:
http://docs.python.org/tut/tut.html
I fear that doesn't exist one word about polymorphism
(in an explicit way).
Anyway, I use Python since 2000 year and already use
OO
On 5/12/05, Terry Reedy [EMAIL PROTECTED] wrote:
Skip Montanaro [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Maybe the Module Index should be renamed Module/Type Index and
embellished
with the builtin types, so that you'd find float (builtin), string
(builtin), dict
Hansan wrote:
The change did remove the error message, and I can see what was wrong.
However there is now a new problem, the only thing that is displayed is one
single character and that is:
Do you or anyone else have a suggestion to what the cause to this new
problem is ?
my fault; I
Brian van den Broek wrote:
I'm trying to lauch Notepad from Python to open a textfile:
import os
b1=c:\test.txt
os.system('notepad.exe ' + b1)
However, the t of test is escaped by the \, resulting in Notepad trying
to open c: est.txt.
How do I solve this?
There are several
I am doing my own interpreter with the Python languaje.
Do you understand me?
Fredrik Lundh [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
Ximo wrote:
I am doing a interpret of lines and it show me a prompt, and I want if I
write a declaration as int a my progrtam return
Skip Montanaro wrote:
Mike Given that Python hides the difference between user-defined
Mike objects and built-in objects, it's not clear to me that anything
Mike other than the current system, with all the classes/types in one
Mike place, makes sense.
Maybe the Module Index
The ie object exposes its window handle as attribute HWND, and you should
be able to use win32process.GetWindowThreadProcessId to get the thread id
and process id that created the window.
hth
Roger
Chris Curvey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
if I'm using
On 5/12/05, Ximo [EMAIL PROTECTED] wrote:
I am doing my own interpreter with the Python languaje.
Do you understand me?
Well, to be frank, no. However, Frederik's point still stands; in the
python langage, int a is syntactically invalid. If you're writing
your own interpreter, it should still
[EMAIL PROTECTED] wrote:
Another item (for me...) difficult, is import modules, and plenty of
information (as you said) does not help me much: the mechanism of
variable visibility and namespaces is not clear to me.
have you read this
http://effbot.org/zone/python-objects.htm
and
Consider the following:
import os, commands
os.environ['QWE']=string with foo
a = '$QWE ${QWE/foo/baz}'
b = commands.getoutput('echo ' + a)
This does what I want, which is to expand
a according to the standard bash expansion rules
(so b now references string with foo string with baz),
but it
Roel Schroeven [EMAIL PROTECTED] writes:
In my experience, the user comments in many cases are almost useless.
Sometimes just confusing, sometimes contradicting each other, sometimes
even incorrect. Sometimes correct and useful too, but IMO that gets
drown between all the others.
One thing
Thomas Pfaff wrote:
Hello all,
I started using the nice Pythonwin IDE together with Python 2.3 (I have
come to prefer its editor to IDLE).
My problem is, that when I want to run a script in the debugger, I can
give the script name and arguments, but I can't tell it in which
directory it
1 - 100 of 159 matches
Mail list logo