Hello, IDLE won't start if ver. 3.10 is installed from Microsoft Store.
3.9 works just fine.
Thanks in advance!
Johan Gunnarsson
Lunds universitet
Medicinska fakulteten
Bibliotek & IKT
Box 118, 221 00 Lund<https://webmail.lu.se/owa/>
Besöksadress: Sölvegatan 19, 22
to process
simultaneously.
I've attached a script that captures what I am doing now. unfortunately, the
external queue object is not publicly accessible and I'm not quite sure how to
set up a local object that would support testing. any suggestions would be
most welcome.
thanks,
Johan
#
Python 32 bit on Win 7 32 bit.
Thx!
On 16 August 2012 12:32, Tommi Helander wrote:
> Hi Johan,
>
> -Are you trying to install 32 or 64-bit Python?
> -Is your Win7 32 or 64-bits?
> -Have you tried running the Python installer from the command line to see if
> it generates
Hi
I installed Python 3.2.3 successfully on my work laptop (XP) but
cannot seem to do it on my home PC (Win7)
I click the button to install and the window just disappears o the screen.
So how do I in fact install Python 3.2.3 on Win 7?
--
Johan van Zyl
PMB - Box 21673, Mayors Walk, 3208
Thanks Chris!
I tried using "!" instead of "run". It works but with a significant
performance penalty.
Best regards,
Johan
On Fri, Aug 19, 2011 at 5:11 PM, Chris Rebert wrote:
> On Fri, Aug 19, 2011 at 6:00 AM, Johan Ekh wrote:
> > Hi all,
> > I have a sc
this?
Best regards,
Johan
--
http://mail.python.org/mailman/listinfo/python-list
tb([]) will work, but is there any way to
still use tst(), tstb()?
Thanks in advance,
Best regards,
Johan
--
http://mail.python.org/mailman/listinfo/python-list
t
you are trying to generate.
Regards
Johan
--
http://mail.python.org/mailman/listinfo/python-list
ir names (presumably, this is how it works on
fedora) and install them using the above mentioned package manager
software.
To install all packages whose names start with "python-" in ubuntu:
"apt-get install python-*" (as root, or prepended with sudo)
/ johan
--
http://mail.python.org/mailman/listinfo/python-list
2010-07-11 02:12, Ritchy lelis skrev:
On 7 jul, 08:38, Johan Grönqvist wrote:
About the plot draw it's a curve that it's a set of points wich it's
the result of the comput of the Vref and Vi together. I don't know if
i had to make a break instruction (like in other's
Vref values to the V0 values, but I do not
think I will understand those until after the above points are explained
clearer.
I definitely think your english is not a problem here.
Johan
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I'm totally new on python and I'm doing an assignement where I'm doing
a class that manipulates a text. The program is also supposed to have
a GUI, for which I have used tkinter.
So far I have entry widgets for file names and buttons, its all
working like I want it to.
What is missing is a way t
numbered pseudofiles? I suppose
its mainly an excellent way to confuse people when you open(0).read(),
but it would be interesting to know.
Johan Förberg
--
http://mail.python.org/mailman/listinfo/python-list
I'm having problem with the return values of NumPy's vectorize
function. When I pass an array of strings in the following simple
example, vectorize truncates the strings in the returned list. Any
clues of what to do?
Yours, Carl
import numpy as np
def __f(x):
return x
f = vectorize(__f)
s
;Code2")
print ("Area of Circle 2:\t", A2)
Sum_Of_Areas= A1 + A2
print ("Sum of areas:\t", Sum_Of_Areas)
-
/ johan
--
http://mail.python.org/mailman/listinfo/python-list
1
b = 2
c = 3
result = a + b
## Ignore
print_selected_source()
print("result =\t", result)
print("result + c =\t", result + c)
--
Is this getting closer?
/ johan
--
http://mail.python.org/mailman/listinfo/python-list
s
def print_source():
print sys.argv
with open(sys.argv[0]) as file:
for line in file:
print line,
a = 1
b = 2
c = 3
result = a + b
print_source()
print("result =\t", result)
print("result + c =\t", result + c)
----
On 19 Dec, 23:09, sturlamolden wrote:
> On 19 Des, 22:58, sturlamolden wrote:
>
> > If you pick two random states (using any PRNG), you need error-
> > checking that states are always unique, i.e. that each PRNG never
> > reaches the starting state of the other(s).
>
> Another note on this:
>
> I
On Dec 19, 4:47 pm, sturlamolden wrote:
> On 19 Des, 16:20, Carl Johan Rehn wrote:
>
> > How about mulit-core or (perhaps more exciting) GPU and CUDA? I must
> > admit that I am extremely interested in trying the CUDA-alternative.
>
> > Obviously, cuBLAS is not an
On Dec 19, 3:16 pm, sturlamolden wrote:
> On 19 Des, 14:06, Carl Johan Rehn wrote:
>
> > Matlab and numpy have (by chance?) the exact names for the same
> > functionality,
>
> Common ancenstry, NumPy and Matlab borrowed the name from IDL.
>
> LabView, Octave and
On Dec 19, 2:49 pm, sturlamolden wrote:
> On 19 Des, 11:05, Carl Johan Rehn wrote:
>
> > I plan to port a Monte Carlo engine from Matlab to Python. However,
> > when I timed randn(N1, N2) in Python and compared it with Matlab's
> > randn, Matlab came out as a clear
On Dec 19, 12:29 pm, Steven D'Aprano wrote:
> On Sat, 19 Dec 2009 02:05:17 -0800, Carl Johan Rehn wrote:
> > Dear friends,
>
> > I plan to port a Monte Carlo engine from Matlab to Python. However, when
> > I timed randn(N1, N2) in Python and compared it with Matlab
Dear friends,
I plan to port a Monte Carlo engine from Matlab to Python. However,
when I timed randn(N1, N2) in Python and compared it with Matlab's
randn, Matlab came out as a clear winner with a speedup of 3-4 times.
This was truly disappointing. I ran tthis test on a Win32 machine and
without t
opensuse laptop. How can I do this
without interference
with my python 2.6 installation that I use for all my non-ABAQUS python
work?
Best regards,
Johan
--
http://mail.python.org/mailman/listinfo/python-list
.
Pylint homepage: <http://www.logilab.org/857/>
/ johan
--
http://mail.python.org/mailman/listinfo/python-list
, and then call gc.collect() after each call
to close().
docs at: http://docs.python.org/library/gc.html
Hope it helps
/ johan
--
http://mail.python.org/mailman/listinfo/python-list
s also minimizes the extra code if I would want
to explicitly delete the bindings, as I would only need one line to
delete the Namespace object.
Thanks!
Johan
--
http://mail.python.org/mailman/listinfo/python-list
Gabriel Genellina skrev:
En Fri, 18 Sep 2009 10:55:47 -0300, Johan Grönqvist
escribió:
Summarizing the answers, it seems that I will try to follow three
suggestions:
3) If I define a few values intended to be used very locally, delete
those after use.
Why bother? Unless they'r
hides those bindings.
3) If I define a few values intended to be used very locally, delete
those after use.
Thanks again,
Johan
--
http://mail.python.org/mailman/listinfo/python-list
6f6c 202c 6f77 6c72 2e64 6e5c 2922
040 000a
041
You can perhaps use "hexdump -c shebang-test"
to get characters instead of hexadecimals.
/ johan
--
http://mail.python.org/mailman/listinfo/python-list
n either use braces (C and
descendants) or use let-bindings (SML, Haskell etc.) to form local scopes.
Are there suggestions or conventions to maximize readability for these
cases in python? (Execution time is not important in the cases I
currently consider.)
Regards
Johan
--
http://mail.python.org/mailman/listinfo/python-list
braries that cannot
avoid these cases should ship with 4 versions of their libraries that
match the 4 versions of the runtime libraries.
P.S. If pyconfig.h really wanted to use the correct CRT, then it would
need to reference different lib files for both VS2005 and 2008.
Johan.
--
http://mail.python.org/mailman/listinfo/python-list
pass the array "m_i" to my program.
This is just an example. I would like to pass several arrays. My program
will be wrapped inside a loop and the arrays are updated
in each loop.
I have never heard of the "argparse" library. Do you think that it would be
better to use that
x27;-m', '--mass_vector', action='store', type='float',
dest='m_i', default=[1.0, 1.0], help='vector with lumped masses')
op, args = parser.parse_args(sys.argv[1:])
I want this to work for m_i = array([1.0, 2.0, 3.0]) but the optparse
complains that
route just to pass an array?
Lot's of people must have done this before!
Best regards,
Johan
On Tue, Jan 27, 2009 at 1:00 AM, Robert Kern wrote:
> On 2009-01-26 17:44, Johan Ekh wrote:
>
>> Hi all,
>> I'm trying to use optparse to process command line parameters given t
ution. By the way, I
am a Python newbie
so please be gentle...
Best regards,
Johan
--
http://mail.python.org/mailman/listinfo/python-list
to be handled by mptest, you need to use
> SetHandler, not AddHandler.
Yes, this is what I missed. Using SetHandler instead solved my
problem. Many thanks to the people on the list that pointed that out
for me. (and will use mod_python mailing list in the future as
suggested)
/johan
--
h
is different from yours.
>
If I did understand the docs about the difference between python-
program and mod_python is that the later is the new way, while using
python-program still works.
It does not matter which I use, same result.
/johan
--
http://mail.python.org/mailman/listinfo/python-list
AddHandler mod_python .py
PythonHandler mptest
PythonDebug On
this is my mptest.py:
from mod_python import apache
def handler(req):
req.content_type = 'text/plain'
req.write("Hello World!")
return apache.OK
/johan
--
http://mail.python.org/mailman/listinfo/python-list
Want to show off your programming skills? Your favorite programming
language?
Your best programming tools?
Join the ICFP Programming Contest 2007! The 10th ICFP Programming
Contest
celebrates a decade of contests. This is one of the world's most
advanced and prestiguous programming contest you can
this problem only yesterday.
I found this most illuminating discussion on the topic with
contributions from Mr Lövis and others:
http://www.thescripts.com/forum/thread41954.html
/johan
--
http://mail.python.org/mailman/listinfo/python-list
t write
s = u"äÄöÖüÜß"
Is there ever a reason _not_ to exclusively use the unicode stringtype
throughout your Python program? (of course you may need to encode/decode
when interfacing with the world outside your program)
/johan
--
http://mail.python.org/mailman/listinfo/python-list
found = True
break
if not found:
print "No odd number found."
OK, so using "else" only saves me 2 lines and a variable - not much to write home about, but I still like it.
Johan.
--
http://mail.python.org/mailman/listinfo/python-list
standard library than
imaging?
Regards,
Johan
--
http://mail.python.org/mailman/listinfo/python-list
What is the difference between CPython, Python for .NET, and IronPython?
For example, if I'm running IronPython, can I access modules such as Numeric
and numarray?
As I understand it, interoperability with C# and .NET works in both
directions with IronPython, but CPython modules cannot be import
Iain King skrev:
> How do you gain access to the system tray?
Use wx.TaskBarIcon.
See http://wiki.wxpython.org/index.cgi/FlashingTaskbarIcon for
snippets.
/Johan
--
http://mail.python.org/mailman/listinfo/python-list
do that would
be to use the wnck bindings which can be found in the python-gnome2-extras,
which unfortunately is broken on ubuntu/breezy.
There is a separate list for the gtk python bindings:
http://www.daa.com.au/mailman/listinfo/pygtk
Johan
--
http://mail.python.org/mailman/listinfo/python-list
ESS_MASK)
eventbox.connect('button-press-event', callback)
label = gtk.Label()
eventbox.add(label)
notebook.append_page(..., eventbox)
Perhaps you should subscribe to the PyGTK mailing list[1] though, where this
kind of question is more appropriately asked
[1]: http://www.daa.com.au/mailma
pilation error:
Anyone any clues?
Thanks for any reply!
Grz. Johan Barelds
-
/usr/bin/ld: /usr/local/lib/python2.3/config/libpython2.3.a(abstract.o):
relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used
when making a shared object; recompile with -fPIC
/
o all
other possible subsequences and that's what's going to take most of the
time.
If you haven't already, check out psyco
(http://psyco.sourceforge.net/). It will most definitely make your code
run faster.
BR
Johan Lindberg
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
text.find(part, end)!= -1:
if part not in result:
result.append(part)
return result
>>>foo("testeststest", 4)
['test', 'stes', 'stest']
>>>foo("testeststest", 3)
['tes', 'est', 'ste', 'test', 'stes', 'stest']
HTH
Johan Lindberg
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
re not, download his
presentation and example code from:
http://www.python-in-business.org/ep2005/talk.chtml?talk=2626&track=690
HTH
Johan Lindberg
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
On 2005-06-09 14:20 +0200 or thereabouts, Diez B. Roggisch wrote:
> a way to pass a server the necessary callback information. It basically
> consists of the url to talk to. That by the way is no limitation of
But of course, a little slip in my thoughts.
> Sooo - concluding remarks could be:
>
On 2005-06-09 13:21 +0200 or thereabouts, Johan Segernäs wrote:
> I'm put on building a system in Python and I haven't used either webservices,
> SOAP or Python so I'm a bit lost.
Addon:
I will speak to .NET-stuff in the other end, does this create problems?
signature.asc
I'm put on building a system in Python and I haven't used either webservices,
SOAP or Python so I'm a bit lost.
This system will require callback functions, should I use Python thru Apache
for this or build my own listening daemon? Use module for Apache or do I make
some kind of CGI script in Pyth
This is what you are looking for.
http://kodos.sourceforge.net/
--
http://mail.python.org/mailman/listinfo/python-list
Dan wrote:
> On Wed, 04 May 2005 10:24:23 +0200, bruno modulix <[EMAIL PROTECTED]>
> wrote:
>
> >As in any other language I know : just open it in write mode !-)
>
> Easy when you know how.
>
> Thanks
e = file('c:/file.txt', 'w')
By the way, check out the Python tutor service...
http://mail.pyth
Simon Brunning wrote:
> On 3 May 2005 05:03:00 -0700, Terje Johan Abrahamsen
<[EMAIL PROTECTED]> wrote:
> > We have created some programs in Python that are to be distributed
> > around. The programs will be made into .exe files by py2exe.
However,
> > in the source th
Hello.
We have created some programs in Python that are to be distributed
around. The programs will be made into .exe files by py2exe. However,
in the source there are certain webadresses, logins and passwords that
the programs use, that we would like to keep away from the end users.
They will use
Hello.
I have been trying desperately for a while to make Python push the
left mousebutton. I have been able to let Python push a button in a
box:
def click(hwnd):
win32gui.SendMessage(hwnd, win32con.WM_LBUTTONDOWN, 0, 0)
win32gui.SendMessage(hwnd, win32con.WM_LBUTTONUP, 0, 0)
optDialog
oject/showfiles.php?group_id=72786&package_id=138707
BR
/Johan Lindberg
--
http://mail.python.org/mailman/listinfo/python-list
Wouldn't it be nice if list.count, called without any arguments,
returned a dict with the list's unique items as keys and their
frequency of occurance as values?
>>> [1,2,1,'a'].count()
{'a': 1, 1: 2, 2: 1}
>>> 'hello world'.count()
{' ': 1, 'e': 1, 'd': 1, 'h': 1, 'l': 3, 'o': 2, 'r': 1, 'w': 1}
Skip Montanaro wrote:
Johan> Subject says it all, really.
Yes, searching using a compiled regular expression is thread-safe.
Skip
Great.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
(it is
obscured completely when we place a button in the Fixed widget), and
fails to allow the pixmap to be scrolled.
Can anyone show a minimal example of how I might achieve having the pixmap
as the background of the Fixed widget?
Thanks
Johan
def __init__(self):
# create the main win
The
code I'm running as CGI is not hectic at all.
Thanks in advance,
Johan
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Please find our disclaimer at http://www.ukzn.ac.za/disclaimer
--
Hi,
I'm using CGIHTTPServer (via its test() method) to test some CGI on my
Windoze 98 box. I find that the execution is very slow. Is there
anything I can do to make sure I'm getting the best performance out of
CGIHTTPServer?
Thanks in adva
Thanks... works like a charm :-)
On Wed, 26 Jan 2005 12:55:38 +0100, Peter Maas <[EMAIL PROTECTED]> wrote:
Johan Kohler schrieb:
class person:
name =""
age = 0
friends=[]
comment=""""""
me = person()
Otherwise, what is the
I was wondering whether pickle might make this easier - an example would
be much appreciated.
Otherwise, what is the best "Python" way to write and read this data
structure?
Thanks in advance...
Johan
__
Yes, I do feel stupid asking this, but time's-a-runnin
MS Word with:
>>> os.startfile("MyDocument.doc")
/Johan Lindberg
--
http://mail.python.org/mailman/listinfo/python-list
close.
/Johan Lindberg
--
http://mail.python.org/mailman/listinfo/python-list
ve you included string-escape encoding in your setup.py?
>>My guess is that you can fix the problem with something similar to:
>>
>> from distutils.core import setup
>> import py2exe
>> opts = { "py2exe": { "packages": ["encodings"], } }
>>
pile
> this is there an issue.
>
> Thanks for any help,
>
> Justin
Have you included string-escape encoding in your setup.py?
My guess is that you can fix the problem with something similar to:
from distutils.core import setup
import py2exe
opts = { "py2exe&quo
72 matches
Mail list logo