Bug report - Python 3.10 from Microsoft Store - IDLE won't start

2022-11-29 Thread Johan Gunnarsson via Python-list
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

multiprocessing in a while loop?

2014-05-06 Thread Johan Llewellyn
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 #

Re: Installing Python 3.2.3 on Win 7

2012-08-16 Thread Johan van Zyl
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

Installing Python 3.2.3 on Win 7

2012-08-16 Thread Johan van Zyl
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

Re: Execute script from ipython

2011-08-22 Thread Johan Ekh
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

Execute script from ipython

2011-08-19 Thread Johan Ekh
this? Best regards, Johan -- http://mail.python.org/mailman/listinfo/python-list

Using dicts and lists as default arguments of functions

2010-08-09 Thread Johan
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

Re: Plot problem.. ?? No sign at all

2010-07-15 Thread Johan Grönqvist
t you are trying to generate. Regards Johan -- http://mail.python.org/mailman/listinfo/python-list

Re: how to install all python plugins

2010-07-15 Thread Johan Grönqvist
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

Re: Plot problem.. ?? No sign at all

2010-07-11 Thread Johan Grönqvist
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

Re: Plot problem.. ?? No sign at all

2010-07-07 Thread Johan Grönqvist
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

tkinter function outout to text widget

2010-05-29 Thread Johan Lans
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

Re: open(False) in python3

2010-05-12 Thread Johan Förberg
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

NumPy and vectorize

2010-04-28 Thread Carl Johan Rehn
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

Re: python as pen and paper substitute

2010-04-06 Thread Johan Grönqvist
;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

Re: python as pen and paper substitute

2010-04-06 Thread Johan Grönqvist
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

Re: python as pen and paper substitute

2010-04-06 Thread Johan Grönqvist
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) ----

Re: numpy performance and random numbers

2009-12-19 Thread Carl Johan Rehn
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

Re: numpy performance and random numbers

2009-12-19 Thread Carl Johan Rehn
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

Re: numpy performance and random numbers

2009-12-19 Thread Carl Johan Rehn
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

Re: numpy performance and random numbers

2009-12-19 Thread Carl Johan Rehn
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

Re: numpy performance and random numbers

2009-12-19 Thread Carl Johan Rehn
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

numpy performance and random numbers

2009-12-19 Thread Carl Johan Rehn
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

Multiple python installations on opensuse?

2009-12-17 Thread Johan Ekh
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

Re: How to know locals of script without running it

2009-10-27 Thread Johan Grönqvist
. Pylint homepage: <http://www.logilab.org/857/> / johan -- http://mail.python.org/mailman/listinfo/python-list

Re: pylab/matplotlib large plot memory management - bug? or tuning parameter needed?

2009-10-20 Thread Johan Grönqvist
, 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

Re: Creating a local variable scope.

2009-09-19 Thread Johan Grönqvist
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

Re: Creating a local variable scope.

2009-09-19 Thread Johan Grönqvist
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

Re: Creating a local variable scope.

2009-09-18 Thread Johan Grönqvist
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

Re: Shebang line problems and python

2009-09-16 Thread Johan Grönqvist
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

Creating a local variable scope.

2009-09-11 Thread Johan Grönqvist
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

Re: please include python26_d.lib in the installer

2009-03-30 Thread Johan Compen
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

Re: optparse with numpy.array?

2009-01-27 Thread Johan Ekh
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

Re: optparse with numpy.array?

2009-01-26 Thread Johan Ekh
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

Re: optparse with numpy.array?

2009-01-26 Thread Johan Ekh
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

optparse with numpy.array?

2009-01-26 Thread Johan Ekh
ution. By the way, I am a Python newbie so please be gentle... Best regards, Johan -- http://mail.python.org/mailman/listinfo/python-list

Re: some problems with mod_python

2007-08-27 Thread Johan
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

Re: some problems with mod_python

2007-08-27 Thread Johan
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

some problems with mod_python

2007-08-27 Thread Johan
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

ICFP Programming Contest 2007

2007-04-26 Thread johan . t . jeuring
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

Re: os.lisdir, gets unicode, returns unicode... USUALLY?!?!?

2006-11-17 Thread Johan von Boisman
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

Re: A question on Encoding and Decoding.

2006-11-17 Thread Johan von Boisman
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

Re: for: else: - any practical uses for the else clause?

2006-09-29 Thread Johan Steyn
    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 audio/image support

2006-04-06 Thread Johan Kotlinski
standard library than imaging? Regards, Johan -- http://mail.python.org/mailman/listinfo/python-list

Difference between CPython, Python for .NET and IronPython?

2006-02-18 Thread Carl Johan Rehn
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

Re: wxPython Conventions

2006-02-01 Thread Johan Lindberg
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

Re: sending keystrokes to gtk window

2006-01-25 Thread Johan Dahlin
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

Re: PyGTK Notebook button_press_event connection

2006-01-24 Thread Johan Dahlin
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

Problem compiling Postgresql-7.3.4 + Python

2006-01-09 Thread Johan Barelds
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 /

Re: finding sublist

2005-08-03 Thread Johan Lindberg
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

Re: finding sublist

2005-08-02 Thread Johan Lindberg
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: Office COM automatisation - calling python from VBA

2005-06-25 Thread Johan Lindberg
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

Re: XML + SOAP + Webservices

2005-06-09 Thread Johan =?iso-8859-1?Q?Segern=E4s?=
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: >

Re: XML + SOAP + Webservices

2005-06-09 Thread Johan =?iso-8859-1?Q?Segern=E4s?=
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

XML + SOAP + Webservices

2005-06-09 Thread Johan =?iso-8859-1?Q?Segern=E4s?=
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

Re: Regular Expression tools?

2005-05-04 Thread Terje Johan Abrahamsen
This is what you are looking for. http://kodos.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating Files

2005-05-04 Thread Terje Johan Abrahamsen
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

Re: Py2Exe security

2005-05-03 Thread Terje Johan Abrahamsen
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

Py2Exe security

2005-05-03 Thread Terje Johan Abrahamsen
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

Mouseclick

2005-05-02 Thread Terje Johan Abrahamsen
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

Re: HTML editor component?

2005-04-06 Thread Johan Lindberg
oject/showfiles.php?group_id=72786&package_id=138707 BR /Johan Lindberg -- http://mail.python.org/mailman/listinfo/python-list

list.count() with no arguments

2005-03-27 Thread Johan Hahn
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}

Re: Confirm: compiled re(gexps) are thread safe?

2005-03-22 Thread Johan Ovlinger
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

pygtk help

2005-03-12 Thread Johan
(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

Re: Speeding up CGIHTTPServer (Tim Roberts)

2005-03-08 Thread Johan Kohler
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 --

Speeding up CGIHTTPServer

2005-03-06 Thread Johan Kohler
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

Re: "pickle" vs. f.write()

2005-01-26 Thread Johan Kohler
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

"pickle" vs. f.write()

2005-01-26 Thread Johan Kohler
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&#

Re: newbie question: starting external application(win)?

2004-12-09 Thread Johan Lindberg
MS Word with: >>> os.startfile("MyDocument.doc") /Johan Lindberg -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython bug

2004-12-09 Thread Johan Lindberg
close. /Johan Lindberg -- http://mail.python.org/mailman/listinfo/python-list

Re: pickle and py2exe

2004-12-03 Thread Johan Lindberg
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"], } } >>

Re: pickle and py2exe

2004-12-01 Thread Johan Lindberg
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