You have options:
1) Have the file in your current working directory, in which case
it's just "import odbchelper".
2) Change your PYTHONPATH in your shell, adding a line like this to
your bashrc perhaps:
export PYTHONPATH=$PYTHONPATH:/home/jw/diveintopython-5.4/py
... and do the same
On Dec 1, 2:12 pm, Joshua Kugler <[EMAIL PROTECTED]> wrote:
> Ok, so we have this code:
>
> t = timeit.Timer(stmt='r()', setup='from __main__ import r')
>
> sys.path.insert(0,'/path/to/code')
>
> def r():
> for m in ['three','module','names']:
> try:
> x = __import__(m)
Hav
Hi all,
The IPython team is happy to release version 0.8.2, with lots of new
enhancements (especially for system shell use - it has never been a
better time
for switching to "pysh" or "ipython -p sh" as your system shell of
choice),
as well as many bug fixes.
We hope you all enjoy it, and please
On Dec 1, 5:14 pm, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote:
> "John Machin" wrote:
>
> > Pythons are good snakes; they hypnotise the meaninglessly chattering
> > bandarlog and eat them. Beware!
>
> What is a bandarlog - I know the bandersnatch and the boojum, but
> bandarlog?
http://en.wi
On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote:
> hi everyone.. i've been chugging along learning python for a few months
> now and getting answers to all needed questions on my own, but this one
> i can't figure out nor can i find information on the internet about it,
> possibly becau
sorry for not responding to the thread the regular way...[cough]
just to prove everyone i counted what was found while searching python in
google.
i only looked at the first 6 pages but out of them only one did not mention
the language
plus i can't beleive people would be so synical abou
"John Machin" wrote:
> Pythons are good snakes; they hypnotise the meaninglessly chattering
> bandarlog and eat them. Beware!
What is a bandarlog - I know the bandersnatch and the boojum, but
bandarlog?
If it is something you can knit -
If I get you the wool, will you make me one?
- Hendrik
On Nov 30, 10:05 am, "Martin Blume" <[EMAIL PROTECTED]> wrote:
> "Bruno Desthuilliers" schrieb
>
>
>
> > >> I have a file that might contain literal python
> > >> variable statements at every line. For example
> > >> the file info.dat looks like this:
> > >> users = ["Bob", "Jane"]
> > >> status =
> [1] http://www.python.org/pypi/desktop
Oh, just saw this link and fetched the code -- will have a look around.
\d
--
http://mail.python.org/mailman/listinfo/python-list
Paul Boddie wrote:
> I didn't proceed any
> further than a simple wrapping around KDialog, Zenity and Xdialog,
> since the aim is to cover more than the usual UNIX-like platforms.
> However, I could make that code available separately
Thanks for the feedback and the links. I'd like to use your code
hi everyone.. i've been chugging along learning python for a few months
now and getting answers to all needed questions on my own, but this one
i can't figure out nor can i find information on the internet about it,
possibly because i don't understand the right words to type into google..
i ha
On Dec 1, 12:24 am, Thomas Guettler <[EMAIL PROTECTED]> wrote:
> Sorry, but this does not work. If there is an ImportError
> during importing the existing module, it won't get inserted
> into sys.modules. I just tried it with a small example.
>
> An other solution would be to inspect the traceback.
we search "python" in
google, emule, many results are not programming resource. If we search
PHP, all results are programming resource.
i'm agree!
On Dec 1, 2007 12:08 PM, <[EMAIL PROTECTED]> wrote:
> Pytn
>
> New name "Pytn" may be better, do you think so ?
> --
> http://mail.python.org/mailman
Pytn
New name "Pytn" may be better, do you think so ?
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 30, 6:58 am, [EMAIL PROTECTED] wrote:
> Python is a good programming language, but "Python" is not a good
> name.
I agree that Python is not a good name for a programming language, but
I'm afraid we're stuck with it.
If I had invented Python, I would have called it Newton or Euler,
arguab
Ok, so we have this code:
t = timeit.Timer(stmt='r()', setup='from __main__ import r')
sys.path.insert(0,'/path/to/code')
def r():
for m in ['three','module','names']:
try:
x = __import__(m)
except ImportError, e:
if not e.message.startswith('No module
Matt Nordhoff <[EMAIL PROTECTED]> wrote:
<..snip..>
> Great, now the Google results will just be filled with AMD typoes. :-P
Clever! But "typoes" is a typo :-P
>From m-w.com:
typo
Function:
noun
Inflected Form(s):
plural: typos
Etymology:
short for typographical (error)
Date:
187
> What modules are you __import__ing, and what is platform-dependent in
> each?
The only thing we're importing __import__ are some modules of ours, with no
sytem dependent code in them at all. Some of them are even empty modules,
as was suggested by one response (for benchmarking purposes).
Turn
[EMAIL PROTECTED] wrote:
> If we search "python" in
> google, emule, many results are not programming resource.
Have you actually tried this? When I do a google search
for "python", the very *first* result I get is "Python
Programming Language - Official Website".
Also, out of the first 10 result
On Nov 30, 3:07 pm, "Wang, Harry" <[EMAIL PROTECTED]> wrote:
> $$ TestCase ID : 001
> Step : deleteDvc,206268
> Result Eval type : XmlChk
> Step : deleteDvc,206269
> Result Eval type : XmlChk
> Traceback (most recent call last):
> File "C:\UDR2\UDRxmlGateway.py", line 388, in
> ParseAll()
>
On Dec 1, 1:58 am, [EMAIL PROTECTED] wrote:
> Python is a good programming language, but "Python" is not a good
> name.
>
> First, python also means snake, Monty Python. If we search "python" in
> google, emule, many results are not programming resource. If we search
> PHP, all results are program
On Dec 1, 10:08 am, Joshua Kugler <[EMAIL PROTECTED]> wrote:
> [I tried googling for this, didn't find anything relevant.]
>
> We've recently been doing some profiling on a project of ours. It runs
> quite fast on Linux but *really* bogs down on Windows 2003. We initially
> thought it was the sim
On Nov 30, 6:48 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Benjamin schrieb:
>
> > On Nov 29, 2:34 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> >> Benjamin schrieb:
>
> >>> Hello, I'm writing a Python/PyQt application. For my Mac distribution.
> >>> I would like to include all the n
On Nov 30, 5:08 pm, Joshua Kugler <[EMAIL PROTECTED]> wrote:
> [I tried googling for this, didn't find anything relevant.]
>
> We've recently been doing some profiling on a project of ours. It runs
> quite fast on Linux but *really* bogs down on Windows 2003. We initially
> thought it was the sim
Announcing
--
The 2.8.7.1 release of wxPython is now available for download at
http://wxpython.org/download.php. This release has had some bugs
fixed, some minor patches applied, and also incorporates the Google
Summer of Code 2007 version of XRCed, and adds the Editra source code
editor
[I tried googling for this, didn't find anything relevant.]
We've recently been doing some profiling on a project of ours. It runs
quite fast on Linux but *really* bogs down on Windows 2003. We initially
thought it was the simplejson libraries (we don't use the C extensions) but
profiling proved
Every few months, i receive a hearty letter about how well people
agree with my criticism of Python's docs.
(see
http://xahlee.org/perl-python/python_doc_index.html
)
Here's one received this week:
--
Hello,
I landed on your website's comments about the Python doc
> I would like to know if such function would be correct for verifying
> if a link is broken and/or circular.
>
> def isvalidlink(path):
> assert os.path.islink(path)
> try:
> os.stat(path)
> except os.error:
> return 1
> return 0
You meant to flip the result value
$$ TestCase ID : 001
Step : deleteDvc,206268
Result Eval type : XmlChk
Step : deleteDvc,206269
Result Eval type : XmlChk
Traceback (most recent call last):
File "C:\UDR2\UDRxmlGateway.py", line 388, in
ParseAll()
File "C:\UDR2\UDRxmlGateway.py", line 371, in ParseAll
if (PfFlag == 1):
Hi there,
I would like to know if such function would be correct for verifying
if a link is broken and/or circular.
def isvalidlink(path):
assert os.path.islink(path)
try:
os.stat(path)
except os.error:
return 1
return 0
--
http://mail.python.org/mailman/listinfo/p
[EMAIL PROTECTED] wrote:
> On Nov 29, 5:46 pm, [EMAIL PROTECTED] wrote:
>> Hi all,
>>
>> Fairly new Python guy here. I am having a lot of trouble trying to
>> figure this out. I have some data on some regulations in Excel and I
>> need to basically add up the total regulations for each country--a
On Nov 30, 9:58 am, [EMAIL PROTECTED] wrote:
> Now, python3000 is coming. It's the best time to rename!
Yes, but "Thong" would be a better name,
due to the minimalist syntax and the
attraction/repulsion/catatonic revulsion effect it has with
different people from different cultural backgrounds.
> I hope you don't use Python to access the database, get a tuple back,
> convert it to a string and then try to break up that string into a list!?
Sadly, that is the case. Well, kinda. I'm using psycopg2 to access
postgresql, which is great. Though postgres has more features than
psycopg2 support
Hi,
I read that the getpixel function of the PIL library is relatively slow.
Which alternative is therefore faster and more efficient, accesing the
result of getdata() as a flat list or
using the function load(), and accessing pixels through the resulting
2-dimensional array?
Thanks a lot.
j. ka
Greetings:
My cookiejar contains the cookie that I need however when I do
cj.save(file) it does not actually save out to the cookies.lwj Does
anyone have any clue what would keep this from saving? It CREATED my
cookies.lwj file so I know it's not permissions.
cookies.lwp:
#LWP-Cookies-2.0
tes
Tartifola wrote:
>
> Hi,
> I'm working with numerical array and I'm a little lost on a particular
> sorting of one of them. In particular I have an array like
>
> a = array([[8,4,1],[2,0,9]])
>
> and I need to sort it using only the first column as reference but
> keeping the lines together so t
Chris Hulan wrote:
> the list.sort method seems to do exactly what you want?
>
> Unless your array() method is creating a custom array object with
> different sort functionality than list?
Presumably he is using numpy arrays.
--
Robert Kern
"I have come to believe that the whole world is an en
> > And if editor is bether choice witch one to use!
>
> The two main choices that meet the criteria above are Vim and Emacs.
> In my opinion, either is a good choice.
Both Vim and Emacs are hard to learn. In other words, they will
require that you spend at least some time studying how they work
J. Robertson wrote:
> Francesco Pietra wrote:
>> I was trying to suggest a more specific mail-list in order not to be
>> floaded. I
>> am the opinion that python-list@python.org is very informative and useful,
>> though it is hard to find the time for so many mails.
>> f.
>
> I agree with France
On 30 nov, 06:10, SMALLp <[EMAIL PROTECTED]> wrote:
> Hello!
>
> I'm new in wxPython and before i start doing anything I have one qustion.
>
> Shoul I use some of editors like boa, spe or shoud i use my favorite
> text editor!
>
> i used IDLE on windows and it seamd nice. Now i have linux installed
Thanks for all the comments. I uploaded revised versions of both
files. If you see any more problems with them or if you have any
suggestions for improving them, I am all ears.
@
:D
@
--
http://mail.python.org/mailman/listinfo/python-list
Siah wrote:
> The basic split/strip method wouldn't split '(a, b, "c,...", d)',
> which is why I chose not to use it.
Could you please explain which part of my example doesn't work?
split takes arguments which enables it to split your string as
desired.
> The csv solution seems to work well, th
Hi all,
I made a little application with multithreading in winxp with
python2.5. An event generated from a third part software is the
trigger for the creation of progress bar in a wxPython app. This
python app is launched via wxExecute.
I've noticed a different behaviour if the script is launched w
[EMAIL PROTECTED] wrote:
> First, python also means snake, Monty Python. If we search
> "python" in google, emule, many results are not programming
> resource. If we search PHP, all results are programming resource.
Who cares? No one looking for special Python programming tips will
use only "pytho
SMALLp <[EMAIL PROTECTED]> writes:
> Shoul I use some of editors like boa, spe or shoud i use my favorite
> text editor!
Any text editor will, in a minimal way, do the job, so there's nothing
to enforce "should". But since it seems you're asking for opinions:
A text editor is an indispensible to
Ben Finney wrote:
>
> I'm not interested in learning some centralised web-application
> interface, and far prefer the discussion forum to be available by a
> standard *protocol*, that I can use my choice of *local client*
> application with.
>
I agree: I use Thunderbird, and it works well. But
On Nov 30, 1:59 am, Vidyadhar74 <[EMAIL PROTECTED]> wrote:
> Please check your hard disk partition is NTFS or FAT32 if it is FAT32
> then Convert the partition to NTFS and unzip the 7zipped file on NTFS
> partition.
Ok, I admit I don't understand what you mean by this.
--
http://mail.python.org/
George Sakkis a écrit :
> On Nov 26, 2:04 pm, Bruno Desthuilliers
>
> <[EMAIL PROTECTED]> wrote:
>
>>Donn Ingle a écrit :
>>
>>
I see someone already showed you eval. Eval is evil. Don't use it.
Especially if the functions are coming to you from a public URL!
>>
>>>Yes, I suggested to h
Try the free komodo edit.
it works on both windows, Linux and Mac OS X
http://www.activestate.com/Products/komodo_edit/
It is what is drawing me away from the kde editor "kate"
and I will close my message with a linke to the features list
http://www.activestate.com/Products/komodo_edit/features
> Today, I am very excited to announce the first release of the Apydia
> API reference documentation generator for Python. It's designed as an
> instantly serviceable replacement for Pudge's API documentation
> generator. It won't generate complete websites from reST etc. like
> Pudge does, though
nmp a écrit :
> Bruno Desthuilliers wrote:
>
> [..]
>
>> About DB access, there are two major APIs : the official (low-level -
>> that is,relatively to the other one...) db-api, and the higher-level
>> SQLAlchemy package. Note that while having an ORM part, SQLAlchemy is
>> first an higher-level
>> and what Dabo does dovetails nicely.
>
> Dovetails?
>
> Sorry, English is not my native language ;)
A carpentry term where two pieces of wood are formed to fit
together to create the joint:
http://images.google.com/images?q=dovetail
Used metaphorically to mean "as if they were meant to fit
On Nov 30, 2007 11:17 AM, Matt Nordhoff <[EMAIL PROTECTED]> wrote:
> Tim Chase wrote:
> > (You'd think this was the Lisp ML, not Python... )
>
> Atsp? :-)
> --
Athp? Wait, no, Microsoft already claimed that one...
--
http://mail.python.org/mailman/listinfo/python-list
Tim Couper wrote:
> but it would mean that a version for large duration projects would be
> "MarAthon" ...
Can't decide whether you were deliberately avoiding "long-running"
there, Tim, or just missed the opportunity :)
TJG
--
http://mail.python.org/mailman/listinfo/python-list
Does any one know who would be the webmaster ?
On Nov 29, 4:41 pm, Ben Finney <[EMAIL PROTECTED]>
wrote:
> sjol <[EMAIL PROTECTED]> writes:
> > To the webmaster of python.org,
>
> > I have tried to have a job posted on the job board but! Alas, it
> > doesn't work and I cannot get a response from t
Tim Chase wrote:
> (You'd think this was the Lisp ML, not Python... )
Atsp? :-)
--
--
http://mail.python.org/mailman/listinfo/python-list
>
> > In Athon, the first letter "A" could pronounce as [ e ] .
>
> For English speakers that pronunciation is just plain wrong.
>
Going back to my shell scripting days, I nominate "nothyP" as the new name.
--greg
--
http://mail.python.org/mailman/listinfo/python-list
but it would mean that a version for large duration projects would be
"MarAthon" ...
Dr Tim Couper
CTO, SciVisum Ltd
www.scivisum.com
Gerardo Herzig wrote:
> [EMAIL PROTECTED] wrote:
>
>> Python is a good programming language, but "Python" is not a good
>> name.
>>
>> First, python also mean
"Bruno Desthuilliers" schrieb
> >> I have a file that might contain literal python
> >> variable statements at every line. For example
> >> the file info.dat looks like this:
> >> users = ["Bob", "Jane"]
> >> status = {1:"ok",2:users[0]}
> >> the problem is I want to read this file and load
>
nmp a écrit :
> Bruno Desthuilliers wrote:
>
>> nmp a écrit :
>>> Hello to all. I am only just learning both Python and PyGTK (with
>>> Glade). I also need to learn how to use databases in my programs. My
>>> preliminary research leads me in the direction of SQLAlchemy, which
>>> seems to be what
>> In Athon, the first letter "A" could pronounce as [ e ] .
>
> For English speakers that pronunciation is just plain wrong.
>
> You're trolling, right?
Yeth, obviouthly he ith... ;)
(You'd think this was the Lisp ML, not Python... )
-tkc
--
http://mail.python.org/mailman/listinfo/python
On Nov 30, 2007 9:20 AM, <[EMAIL PROTECTED]> wrote:
>
> On Nov 30, 7:23 am, nmp <[EMAIL PROTECTED]> wrote:
> > Hello to all. I am only just learning both Python and PyGTK (with Glade).
> > I also need to learn how to use databases in my programs. My preliminary
> > research leads me in the directi
Méta-MCI (MVP) wrote:
[Excuse my execrable French below]
> Sorry, I don't understand english. But, with Babelfish-translation, I
> recovered essence...
> (you should learn French ; yes! yes! yes!)
Vraiment!
> I have just try on another CPU, with a very new Vista-premium
> (configuration of
On 2007-11-30, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> In Athon, the first letter "A" could pronounce as [ e ] .
For English speakers that pronunciation is just plain wrong.
You're trolling, right?
--
Grant Edwards grante Yow! As President I have
On 2007-11-30, mcl <[EMAIL PROTECTED]> wrote:
> Brilliant - I had fears of much more complication.
I've been writing Python programs for almost 10 years, and I
still have that reaction not infrequently.
--
Grant Edwards grante Yow! I like the way ONLY
On Nov 30, 10:01 am, Neil Cerutti <[EMAIL PROTECTED]> wrote:
> On 2007-11-30, Eduardo O. Padoan <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Nov 30, 2007 11:18 AM, Peter Decker <[EMAIL PROTECTED]> wrote:
> >> On Nov 30, 2007 1:19 AM, Tim Roberts <[EMAIL PROTECTED]> wrote:
>
> >> > You also have a couple
the list.sort method seems to do exactly what you want?
Unless your array() method is creating a custom array object with
different sort functionality than list?
Cheers
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Python is a good programming language, but "Python" is not a good
> name.
>
> First, python also means snake, Monty Python. If we search "python" in
> google, emule, many results are not programming resource. If we search
> PHP, all results are programming resource.
>
[EMAIL PROTECTED] wrote:
>Python is a good programming language, but "Python" is not a good
>name.
>
>First, python also means snake, Monty Python. If we search "python" in
>google, emule, many results are not programming resource. If we search
>PHP, all results are programming resource.
>
>Secon
On 2007-11-30, Eduardo O. Padoan <[EMAIL PROTECTED]> wrote:
> On Nov 30, 2007 11:18 AM, Peter Decker <[EMAIL PROTECTED]> wrote:
>> On Nov 30, 2007 1:19 AM, Tim Roberts <[EMAIL PROTECTED]> wrote:
>>
>> > You also have a couple of instances of:
>> > print("Error Squeezing %s...")
>> >
>> > The pa
nico schrieb:
> Hi,
> I need to do a lot of string formating, and I have strings and/or
> unicode strings and when I do the following:
> "%s %s" % (u'Salut', 'H\xe4llo'), I get an exception :
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position
> 1: ordinal not in range(128)
>
>
Python is a good programming language, but "Python" is not a good
name.
First, python also means snake, Monty Python. If we search "python" in
google, emule, many results are not programming resource. If we search
PHP, all results are programming resource.
Second, python also means snake, snake
Calvin Spealman schrieb:
> I'm still on 10.4 and I'm trying to build pyOpenSSL, but I'm failing
> with Python.h trying to include and failing to find any of the shared
> libraries. I can't figure this one out because i just don't compile
> anything non trivial often.
>
> ironfroggy:~/Desktop/pyOpe
On Fri, Nov 30, 2007 at 12:25:25PM -0200, Eduardo O. Padoan wrote regarding Re:
Oh no, my code is being published ... help!:
>
> On Nov 30, 2007 11:36 AM, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> > "Eduardo O. Padoan" <[EMAIL PROTECTED]> writes:
> >
> > > No, writing this way will confound the
Hi,
I need to do a lot of string formating, and I have strings and/or
unicode strings and when I do the following:
"%s %s" % (u'Salut', 'H\xe4llo'), I get an exception :
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position
1: ordinal not in range(128)
How can I insure I don't get a
Hi,
I'm working with numerical array and I'm a little lost on a particular
sorting of one of them. In particular I have an array like
a = array([[8,4,1],[2,0,9]])
and I need to sort it using only the first column as reference but
keeping the lines together so to obtain
array([[2, 0, 9],
On 30 Nov, 14:55, Donn Ingle <[EMAIL PROTECTED]> wrote:
> Hi,
> Okay, so I am in the mood to try this: Inform the user about what modules
> the app requires in a graphical dialogue that can vary depending on what
> the system already has installed. (It will fail-to output on cli)
>
> I am running
On Nov 30, 2007 11:36 AM, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> "Eduardo O. Padoan" <[EMAIL PROTECTED]> writes:
>
> > No, writing this way will confound the 2to3 tool.
>
> Why? print("foo") is a perfectly valid Python 2 statement. Maybe
> it's simply a matter of fixing the tool.
>
print("fo
Hi there,
i found a nice article about a custom implementation of events by Duncan
Booth here:
http://www.suttoncourtenay.org.uk/duncan/accu/pythonpatterns.html#observer
The code is here:
STEP 1) Define a Delegate Class
class Delegate:
'''Handles a list of methods and functions
Usage:
On Nov 30, 7:23 am, nmp <[EMAIL PROTECTED]> wrote:
> Hello to all. I am only just learning both Python and PyGTK (with Glade).
> I also need to learn how to use databases in my programs. My preliminary
> research leads me in the direction of SQLAlchemy, which seems to be what
> everybody else is us
I'm still on 10.4 and I'm trying to build pyOpenSSL, but I'm failing
with Python.h trying to include and failing to find any of the shared
libraries. I can't figure this one out because i just don't compile
anything non trivial often.
ironfroggy:~/Desktop/pyOpenSSL-0.6 ironfroggy$ python setup.py
On Fri, 30 Nov 2007 14:36:17 +0100, Hrvoje Niksic wrote:
> "Eduardo O. Padoan" <[EMAIL PROTECTED]> writes:
>
>> No, writing this way will confound the 2to3 tool.
>
> Why? print("foo") is a perfectly valid Python 2 statement. Maybe
> it's simply a matter of fixing the tool.
As this would encou
Hi,
Okay, so I am in the mood to try this: Inform the user about what modules
the app requires in a graphical dialogue that can vary depending on what
the system already has installed. (It will fail-to output on cli)
I am running Kubuntu and I seem to have 'kdialog' installed by default (not
sure
nmp a écrit :
> Hello to all. I am only just learning both Python and PyGTK (with Glade).
> I also need to learn how to use databases in my programs. My preliminary
> research leads me in the direction of SQLAlchemy, which seems to be what
> everybody else is using.
Since it's not quite clear
"Eduardo O. Padoan" <[EMAIL PROTECTED]> writes:
> No, writing this way will confound the 2to3 tool.
Why? print("foo") is a perfectly valid Python 2 statement. Maybe
it's simply a matter of fixing the tool.
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 30, 2007 11:18 AM, Peter Decker <[EMAIL PROTECTED]> wrote:
> On Nov 30, 2007 1:19 AM, Tim Roberts <[EMAIL PROTECTED]> wrote:
>
> > You also have a couple of instances of:
> > print("Error Squeezing %s...")
> >
> > The parentheses serve no purpose here, and are unidiomatic.
>
> I thought
I havent looked much into string.template . I think i will have to now.
I went trying MAKO, Cheetah, Genshi and some others too. But in less time, I
got confused. I didn;t need a total language. Rather I just want to write my
xHTML/CSS/JS in a page with embedded placeholders like ${variableName}
or
Sorry, but this does not work. If there is an ImportError
during importing the existing module, it won't get inserted
into sys.modules. I just tried it with a small example.
An other solution would be to inspect the traceback. If the
app_name+'.management' is in it, it exists.
Graham Dumpleton sc
On Nov 30, 2007 1:19 AM, Tim Roberts <[EMAIL PROTECTED]> wrote:
> You also have a couple of instances of:
> print("Error Squeezing %s...")
>
> The parentheses serve no purpose here, and are unidiomatic.
I thought that with the eventual dropping of 'print' as a statement in
Python 3, that writ
I'm happy to report the release of a PLOS paper: "A Primer on Python
for Life Science Researchers".
It is a six page education paper introducing Python. If you have a
friend that is a researchers in a biological area and you think that
he may need to know Python, please send him this e-mail:
URL:
Kevac Marko a écrit :
> On Nov 10, 8:39 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
>> Don't think so. It's a surprise for many but then class attributes are
>> not that common in code or they even use this "gotcha" for
>> immutable default values. As long a the value isn't changed th
Benjamin schrieb:
> On Nov 29, 2:34 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>> Benjamin schrieb:
>>
>>> Hello, I'm writing a Python/PyQt application. For my Mac distribution.
>>> I would like to include all the needed libraries in the Mac bundle.
>>> How should I go about doing this?
>> T
Donn Ingle a écrit :
(about class attributes, instance attributes and lookup rules)
> Okay, I sort of see that. It's not a property
For clarity, better s/property/attribute/ here. In Python, property is a
builtin class used for computed attributes.
> of 'j' so it looks upwards
> into the class.
C-Sharifi Cluster Engine: The Second Success Story on "Kernel-Level
Paradigm" for Distributed Computing Support
Contrary to two school of thoughts in providing system software
support for distributed computation that advocate either the
development of a whole new distributed operating system (like
On 30 Nov, 06:16, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> > New to mac. I have leopard. What's the difference between python and
> > pythonw? So far (which isn't very far) I can't tell the difference.
>
> IIUC, pythonw is linked with the WindowManager library, so it can do
> GUI operatio
> Kevac Marko <[EMAIL PROTECTED]> writes:
> > When changing default value, is there any way to change class
> > attribute and all referenced attributes too?
>
> > class M:
> > name = u"Marko"
>
> > a, b = M(), M()
> > a.name = u"Kevac"
> > print M.name, a.name, b.name
> > -> Marko Kevac Marko
>
On Nov 30, 2007 5:57 AM, Astan Chee <[EMAIL PROTECTED]> wrote:
> Hi,
> I have a file that might contain literal python variable statements at
> every line. For example the file info.dat looks like this:
> users = ["Bob", "Jane"]
> status = {1:"ok",2:users[0]}
> the problem is I want to read this fi
Use threads or sub processes
On Nov 29, 2007 9:17 PM, Francesco Pietra <[EMAIL PROTECTED]> wrote:
> Dennis:
>
> Why am I using web-based email? As I work on several machines scp linked.
> I
> find often useful to see the same mail on different machines around,
> without
> downloading anything, ju
Eric
On Nov 30, 2007 12:26 PM, Bruno Desthuilliers <
[EMAIL PROTECTED]> wrote:
> Carl Banks a écrit :
> > On Nov 30, 4:40 am, Ant <[EMAIL PROTECTED]> wrote:
> >> On Nov 30, 9:10 am, SMALLp <[EMAIL PROTECTED]> wrote:
>
> (snip)
>
> >>> And if editor is bether choice witch one to use!
> >> One with
Google and wikipedia!
On Nov 30, 2007 9:39 AM, ArShAm Shirvani <[EMAIL PROTECTED]> wrote:
> Hi
> I need a benchmark for speed , comparing with other languages
>
> Regards
> Arsham
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
http://search.goldwatches.com/?Search=Movado+Wa
1 - 100 of 126 matches
Mail list logo