problem using pickle

2016-03-13 Thread Nicky Mac
nly 21b is created containing " €c__main__world q . altho there are several k of object instance data. -- Nick "Mac" McElwaine -- https://mail.python.org/mailman/listinfo/python-list

Re: unable to open IDLE for Python3.50rc1 on windows10 64bit AMD

2015-12-25 Thread Nicky Mac
problem solved :_ I upgraded to 3.5.1 just released, and it works fine! (except pillow and pygame installs still dont work, but that's not your problem) Enjoy the holidays On 25 December 2015 at 14:12, Nicky Mac wrote: > thanks again for continuing to address my problem. > all thos

Re: unable to open IDLE for Python3.50rc1 on windows10 64bit AMD

2015-12-25 Thread Nicky Mac
, eryk sun wrote: > On Thu, Dec 24, 2015 at 3:29 PM, Nicky Mac wrote: > > > > C:\Users\Nick>python -m idlelib > > ** IDLE can't import Tkinter. > > Your Python may not be configured for Tk. ** > > In the 3.5 installation directory, ensure that tkinter is

Re: unable to open IDLE for Python3.50rc1 on windows10 64bit AMD

2015-12-24 Thread Nicky Mac
wow - a very comprehensive answer. However it seems I have now got it correctly reinstalled with the correct environment and path (as below) So I'm back to my original problem: C:\Users\Nick>python -m idlelib ** IDLE can't import Tkinter. Your Python may not be configured for Tk. ** On doing a r

Re: unable to open IDLE for Python3.50rc1 on windows10 64bit AMD

2015-12-24 Thread Nicky Mac
elib': b'\x03\xf3\r\n'); 'idlelib' is a package and cannot be directly executed On 24 December 2015 at 14:52, Nicky Mac wrote: > what a horrible environment windows is to support anything! > (I was a UNIX professional). > seems the user profile PATH is a registry en

Re: unable to open IDLE for Python3.50rc1 on windows10 64bit AMD

2015-12-24 Thread Nicky Mac
4 December 2015 at 13:59, Nicky Mac wrote: > Dear python Team > I think I've been wasting your time: > > C:\Users\Nick>path > PATH=C:\Python27\;C:\Python27\Scripts;C:\ProgramData\Oracle\Java\javapath;C:\Program > Files\Broadcom\Broadcom 802.11 Network > Adapter;;C:

Re: unable to open IDLE for Python3.50rc1 on windows10 64bit AMD

2015-12-24 Thread Nicky Mac
mas to you all Nick On 24 December 2015 at 11:06, Nicky Mac wrote: > Hello again.] > not sure what you mean by "my profile". > following your suggestion, looks normal: > > C:\Users\Nick> python -c "import importlib; > print(importlib.find_loader('idlelib

Re: unable to open IDLE for Python3.50rc1 on windows10 64bit AMD

2015-12-24 Thread Nicky Mac
e plus one deep inside OpenOffice and a Game. On 23 December 2015 at 21:20, eryk sun wrote: > On Wed, Dec 23, 2015 at 1:51 PM, Nicky Mac wrote: > > > > no sign of old Py2.7 anywhere :- > > > > C:\Users\Nick>python -c "import sys; print(*sys.path, sep='

Re: unable to open IDLE for Python3.50rc1 on windows10 64bit AMD

2015-12-23 Thread Nicky Mac
b\site-packages On 23 December 2015 at 19:30, eryk sun wrote: > On Wed, Dec 23, 2015 at 8:38 AM, Nicky Mac wrote: > > > > I removed the old python2.7 entries in system Path, the PYTHON variables > you > > mentioned are not present. > > All I have is Python35 in t

Re: unable to open IDLE for Python3.50rc1 on windows10 64bit AMD

2015-12-23 Thread Nicky Mac
for 'idlelib.__main__' (: bad magic number in 'idlelib': b'\x03\xf3\r\n'); 'idlelib' is a package and cannot be directly executed any help hugely appreciated! season's greetings Nick On 22 December 2015 at 20:27, Nicky Mac wrote: > I have run th

unable to open IDLE for Python3.50rc1 on windows10 64bit AMD

2015-12-22 Thread Nicky Mac
I have run the install (and repair) which explicitly includes Tcl/Tk and l have this problem: Microsoft Windows [Version 10.0.10586] (c) 2015 Microsoft Corporation. All rights reserved. >C:\Python\Python35\python.exe -m idlelib ** IDLE can't import Tkinter. Your Python may not be configured f

python 3.5.0rc1 problem opening IDLE in windows

2015-12-04 Thread Nicky Mac
windows console) edit with IDLE (-> edit with IDLE (64bit)) - which I always use, *nothing happens* Any ideas gratefully received!!! sincerely Nick "Mac" McElwaine -- https://mail.python.org/mailman/listinfo/python-list

subprocess.Popen strange bhaviour

2012-01-18 Thread Mac Smith
time this happens exactly after 270 seconds. Is there some predefined timeout?? -- Mac -- http://mail.python.org/mailman/listinfo/python-list

Re: reading multiline output

2011-12-22 Thread Mac Smith
On 23-Dec-2011, at 6:48 AM, MRAB wrote: > On 23/12/2011 01:07, Mac Smith wrote: >> >> On 23-Dec-2011, at 6:17 AM, MRAB wrote: >> >>> On 23/12/2011 00:33, Mac Smith wrote: >>>> Hi, >>>> >>>> >>>> I have starte

Re: reading multiline output

2011-12-22 Thread Mac Smith
On 23-Dec-2011, at 6:17 AM, MRAB wrote: > On 23/12/2011 00:33, Mac Smith wrote: >> Hi, >> >> >> I have started HandBrakeCLI using subprocess.popen but the output is >> multiline and not terminated with \n so i am not able to read it >> using readline() wh

reading multiline output

2011-12-22 Thread Mac Smith
data -- Thanks Mac-- http://mail.python.org/mailman/listinfo/python-list

Re: setuptools catch 22

2009-04-16 Thread Mac
On Apr 16, 11:52 am, Kay Schluehr wrote: > Yes, but there is a known workaround: Thanks, Kay. Of course, the workaround would be better known if the setuptools web page had those instructions instead of "install using the [non-existent] .exe file." :-) -- http://mail.python.org/mailman/lis

setuptools catch 22

2009-04-16 Thread Mac
We've got ActiveState Python 2.6 installed on a Windows XP box, and I pulled down the latest archgenxml package (2.2) in order to get it running under this installation of Python. I unpacked the tarball for the package and tried running `python setup.py build' but got an ImportError exception: "no

Change in cgi handling of POST requests

2009-02-10 Thread Mac
We just upgraded Python to 2.6 on some of our servers and a number of our CGI scripts broke because the cgi module has changed the way it handles POST requests. When the 'action' attribute was not present in the form element on an HTML page the module behaved as if the value of the attribute was t

broken setuptools dependencies

2008-11-19 Thread Mac
I just tried to set up a Windows box as a client talking to a MySQL database on Linux using Python. So I installed the most recent version of Python (2.6) and then I tried to add the MySQLdb module. There wasn't any binary pre-built for Python 2.6 on Windows (or any other OS), so I pulled down the

MixIn method to call the method it overrides: how?

2005-06-18 Thread Mac
I have a MixIn class which defines a method foo(), and is then mixed in with another class by being prepended to that class's __bases__ member, thus overriding that class's definition of foo(). In my application though it is necessary for the MixIn's foo() to call the overridden foo(). How can I

some profiler questions

2005-06-07 Thread Mac
I'm writing a bunch of algorithms in Python for solving a certain class of problems, and I was interested in doing some comparisons between them and would like to collect various high-level runtime stats, such as the number of invocations of certain key subroutines. I have my own code to do this.

Re: any macro-like construct/technique/trick?

2005-06-01 Thread Mac
After I wrote my post I realized I didn't provide enough context of what I'm doing, hence it is not quite clear to any readers why the heck I would want this. The gist is this. I have a number of algorithms that perform the same task. I'm trying to assess which ones work better under which circum

Re: bug with isinstance() ?

2005-06-01 Thread Mac
OK, it's al coming together now, thx. Grrr... all this misconception, again, due to the evil, evil, EVIL influence of having worked a lot before with an inferior language (C/C++)... :) -- http://mail.python.org/mailman/listinfo/python-list

any macro-like construct/technique/trick?

2005-06-01 Thread Mac
Is there a way to mimic the behaviour of C/C++'s preprocessor for macros? The problem: a lot of code like this: def foo(): # do some stuff if debug: emit_dbg_obj(DbgObjFoo(a,b,c)) # do more stuff if debug: emit_dbg_obj(DbgObjBar(d,e)) # ... and so o

Re: idiom for constructor?

2005-06-01 Thread Mac
This was the direction I was aiming for initially, and I have used this form before, but was hoping there was a way I could go one step further, and somehow get rid of the repetition of "self."... Heh, ideally: self.{a,b,c,d} = a,b,c,d Alas, not Python syntax... :) I do like Steven's form of

Re: bug with isinstance() ?

2005-06-01 Thread Mac
I see, interesting. OK, I understand that recursive importing can be problematic (having to "hide" the test2 import should have been a tip off; it's just that in my original app this relationship is not as clear), but what is the lesson I should take away from this? I mean, I was under the impres

bug with isinstance() ?

2005-06-01 Thread Mac
Under certain circumstances isinstance() seems to return incorrect value for me. I'm using Python 2.3 (latest from Debian's unstable). Here's a sample program... the multi-module nature of the code is key. === test.py === class Foo: pass def test(): from test2 import make_me_a_foo

Re: idiom for constructor?

2005-06-01 Thread Mac
> You might look to see if you can customize your editor to use > templates/interaction and then inserts the right text for you. Well, I'm not really concerned with "amount of typing" as much as with the inherent ugliness, tediousness, and lack of elegance of the original form. Alas, templates/mac

idiom for constructor?

2005-06-01 Thread Mac
Is there a nice Python idiom for constructors which would expedite the following? class Foo: def __init__(self, a,b,c,d,...): self.a = a self.b = b self.c = c self.d = d ... I would like to keep the __init__ parameter list explicit, as is, rather than passing in a dictionary

Re: Seekable output from ClientForm?

2005-02-09 Thread mac
In article <[EMAIL PROTECTED]>, Matej Cepl wrote: > Hi, > > using python 2.3, ClientForm, and ClientCookie and I have this code: > > opener = ClientCookie.build_opener(ClientCookie.HTTPRefererProcessor, >ClientCookie.HTTPRefreshProcessor, >

Report

2005-01-31 Thread decoder-x-mac-gujarati
The original message was received at Mon, 31 Jan 2005 19:08:12 +0500 from [140.253.248.170] - The following addresses had permanent fatal errors - python-list@python.org -- http://mail.python.org/mailman/listinfo/python-list