Re: readline installation problem

2005-10-08 Thread Jesper
Hi Jian,

I just struggled with the same problem - seems the python 2.4.2 does
not recognise readline 5

I finally "solved" the problem by installing readline 4.2, and
explicitly pointing out to configure where the readline library is

./configure --with-libs=/usr/local/lib/libreadline.a

That finally made it work ...

Cheers
Jesper

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Is there a open souce IDE writen by C( C++) or partly writen by C( C++)?

2008-02-22 Thread Jesper
Give PyScripter from http://www.mmm-experts.com/ a try

It is for Windows, though it is written in Delphi and not in C/C++

/Jesper

"zaley" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
Of course, python scripts debugger

On 2ÔÂ22ÈÕ, ÏÂÎç3ʱ22·Ö, zaley <[EMAIL PROTECTED]> wrote:
> My project need a simple scripts debugger . I hope I can find
> something instructive
>
> Stefan Behnel дµÀ£º
>
> > zaley wrote:
> > > Is there a open souce IDE writen by C( C++) or partly writen by C( C+
> > > +)?
>
> > Tons of them. What do you want to do with it?
>
> > Stefan


-- 
http://mail.python.org/mailman/listinfo/python-list

Nicing a thread

2009-04-14 Thread jesper
Hi,

I would like to spawn a thread (on Unix) with a lower priority (higher
niceness) than the main thread (which should stay at nice 0). What I
have done is something like:

import threading, os
class MyThread(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)

def run(self):
os.nice(19)
a_useful_method()

It seems to work but I am a bit sure whether I missed anything (I am
not that familiar with threading). What do you experts say?

Best regards,
Jesper
--
http://mail.python.org/mailman/listinfo/python-list


Re: Trouble Installing TTX/FontTools (asks for .NET Framework Packages)

2005-04-23 Thread Jesper Olsen

weston wrote:
> This problem may be addressed here:
>
> http://sourceforge.net/mailarchive/message.php?msg_id=1702374
>
> Apparently setup.py tries to compile a c file, which of course
doesn't
> work if there's no compiler.

In fact it does not work even if there is a compiler - seems distutils
has been broken in python2.4 (it works in python2.3).

Jesper

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: import error using BOOST in linux

2005-06-07 Thread Jesper Olsen
Have you set LD_LIBRARY_PATH ?

-Jesper

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: running distutils installer without admin on windows

2005-06-08 Thread Jesper Olsen


[EMAIL PROTECTED] wrote:
> Hello all.
>
> We don't have admin privs on our Windows boxes, but I'd like to be able
> to install a package built using distutils. I was able to install
> Python without admin, but when I tried to run the installer for this
> package I'm trying to install, I get a message saying that I need admin
> privs.
>
> Is there a way around this? Why can't it just put things in
> C:\Python23\Lib\site-packages like a good little installer?
>
> Do I need to put a service call in to our admins to do this?
>
> Thanks.

You can use the --home switch to specify a local directory to install
in, e.g.:

% python setup.py install --home=.

-Jesper

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Explaining names vs variables in Python

2016-03-02 Thread Jesper K Brogaard

Den 02-03-2016 kl. 09:32 skrev Salvatore DI DIO:

Hello,

I know Python does not have variables, but names.
Multiple names cant then be bound to the same objects.

So this behavior


b = 234
v = 234
b is v

True

according to the above that is ok



But where is the consistency ? if I try :


v = 890
w = 890
v is w

False

It is a little difficult to explain this behavior to a newcommer in Python

Can someone give me the right argument to expose ?

Regards



You may get an answer to your question here: 
http://stackoverflow.com/questions/2419701/python-object-identity-question


As I understand it, when you use 'is', you are comparing addresses to 
objects, not the values contained in the objects. Use '==' instead.


Take a look here as well: 
https://docs.python.org/3.5/reference/datamodel.html


--
Venlig hilsen / Best regards
Jesper K. Brogaard

(remove upper case letters in my e-mail address)
--
https://mail.python.org/mailman/listinfo/python-list


Re: Export

2016-03-13 Thread Jesper K Brogaard

Den 13-03-2016 kl. 00:07 skrev Herbert Müller:

Hello,
how can I export my .py files to .exe files?
Thanks for your support
Your Robert



Look at pyinstaller or py2exe. I have no experience with either of them.

--
Venlig hilsen / Best regards
Jesper K. Brogaard

(remove upper case letters in my e-mail address)
--
https://mail.python.org/mailman/listinfo/python-list


Re: pdf version of python tutorial

2016-03-14 Thread Jesper K Brogaard

Den 13-03-2016 kl. 14:45 skrev kamaraju kusumanchi:

Is there a pdf version of the python tutorial
https://docs.python.org/3/tutorial/index.html that I can download? The
idea is to have everything in one file so I can search easily, be able
to work offline.

thanks
raju



Try here: https://docs.python.org/3.5/download.html.

I found the tutorial in the zip-file "PDF(A4 paper size)", which 
contains a lot of PDFs, amongst these many of howto-documents.



--
Venlig hilsen / Best regards
Jesper K. Brogaard

(remove upper case letters in my e-mail address)
--
https://mail.python.org/mailman/listinfo/python-list