Re!
I have found a (very) poor solution:
in Image.py, inside _showxv function,
replace
command = "start /wait %s && del /f %s" % (file, file)
by
command = 'start "%s" /wait "%s\\System32\\mshta.exe" "%s" && del /f
"%s" ' % (title,os.environ['WINDIR'],file,file)
For zoom in preview, use
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 - Apydia i
"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
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
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 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 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
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 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
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
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)
>
>
[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.
>
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
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
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
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
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
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
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 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
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
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
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
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, 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
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
101 - 126 of 126 matches
Mail list logo