I was looking through some lab material from a computer course offered at UC
Berkeley and came across some examples in the form of questions on a test about
python.
1 and 2 and 3
answer 3
I've goggled it till i was red in the fingers, but to no avail.. Could someone
be kind enuff to direct me t
I wonder if they might be a way for some on this forum to dispense advice and
help others without the totally snide and obnoxious attitude? if it is
so painfully annoying for you to deal with, why subject yourself to it?
I suspect it is the sheer joy of showing others how bright you are and
jus
Alan, no need to respond to that last missive of mine. I no sooner had hit the
send key and reopened the apps in question then the answer hit me like a small
mallet in the back of my head. Obviously, what makes the additional code at
the bottom of the secon
On 22/03/12 09:57, ken brockman wrote:
>> PS Another odd bit, was on the python docs page. It had said that using
>> import File_name, without the .py would import it, but not run it. Seems
>> a glaring oversight not to have mentioned, wh
M
On 22/03/12 03:47, ken brockman wrote:
>> None of which had gotten the Qt window to open.
>> Yet when I run it directly, on it's own, it open's
>> and the Qt window is displayed.
>My guess is that there is an if __name__... clause
>at the bottom with some co
Evening all;
I am trying to import a Python QT file, that had been generated from a ui file
into another python app.
I have imported it, without generating an error, but the Qt window isn't
opening. I have spent the afternoon googling the issue, have found numerous
articles, but none that have
Pyscripter..
I played with it when I had Windows but it seemed to e tied to a specific
version of Python. Has that changed?
*I have no clue which version you had ran it with, I am using it with Python
3.2.2 and it works great.
> i love the simply way you
From: "Prasad, Ramit"
To: "tutor@python.org"
Sent: Tuesday, February 21, 2012 10:08 AM
Subject: Re: [Tutor] Pyhton editor
>>However I stumbled upon PyScripter and I find it really amazing.
>Pity it is only for Windows.
WINE?
Ramit
I concur. Pyscripter ,
Without sight of code it's only a guess but are you creating
the file with the 'wb' mode - ie. write binary? :-
myPickleFile = open("somefilename.dat", "wb")
oops. Not as in object orientated programming, just as in oops, i messed
up. pasted wrong bit of code. Here is the relative bit.
def Gen
Really close to it Robert. No delete but an error msg. Something akin to file
dosen't exist, not found , or words to that effect .
Something "akin to"?
I'm back on the list again, and if not too late, here is the asked for trace.
i've managed to replicate the original error msg, by removing t
Really close to it Robert. No delete but an error msg. Something akin to file
dosen't exist, not found , or words to that effect .
Something "akin to"?
How about if you copy and paste the actual error message, instead of asking us
to guess?
Have been all afternoon'
That means the full tracebac
Got it. I manage to get it to save to disk, but only by using the shell to
create an empty dictionary then pickling it and saving it to a file. Priming
the pump as it were. I had thought i had read that when you pickle and save a
list or dictionary to file, if it didn't already exist, it would b
On Wed, Feb 8, 2012 at 12:33 PM, ken brockman wrote:
>> Using pickling I have somehow managed to save two separate lists, but the
>> dictionary is giving me much more of a struggle.
Got it. I manage to get it to save to disk, but only by using the shell to
create an empty dic
> Using pickling I have somehow managed to save two separate lists, but the
> dictionary is giving me much more of a struggle.
Well do post back if you don't manage to solve your issues (with full
error messages & stack traces as relevant please.) Re dictionaries --
I actually forgot to mention,
On 8 February 2012 13:40, ken brockman wrote:
> Hello all:
> I have a general and very basic question if I may. I am in the process
> of attempting to write my first python app. I wanted to collect information
> and save it to lists and dictionaries. My question is, is it possible to
Hello all:
I have a general and very basic question if I may. I am in the process
of attempting to write my first python app. I wanted to collect information and
save it to lists and dictionaries. My question is, is it possible to save said
lists and dictionaries in the program proper, or do i n
st? I entered the reply at the window in the bottom of the email, like I had
before.?Is that not the way? jeez.. I gotta get some 's, I'm almost afraid
to hit the reply button , I don't want to screw up once again..
Ken
From: Joel Goldstick
T
r
no?
Thanks one and all, for the help.
Ken
From: Joel Goldstick
To: ken brockman
Cc: tutor@python.org
Sent: Wednesday, January 25, 2012 11:04 AM
Subject: Re: [Tutor] how to read and write to a file
On Wed, Jan 25, 2012 at 10:50 AM, ken brockman wrote:
&g
I would like to write to and read from a file from python. I wanted to use the
file to save input to the program in a list. I have been looking around and
there seems to be several ways to go about it. I tried pickling, but am having
an issue with it. What would be the correct way to accomplish
19 matches
Mail list logo