is equal to "8833" for some
reason. I tried to hunt down where the problem occurs, but I was led
to the method "application_openFile_(self, ns_app, path)" in the
class _PyGui_NSApplication. I couldn't find out how this method
ever got called though.
Is there some way to
Hi
How would I do this?
The teacher wants to keep track of the scores each member of the class obtains
in the quiz. There are three classes in the school and the data should be kept
separately for each class.
Here is my code:
import random
import operator
MATHS_OPERATIONS = [
(operator.a
ing Python program in the package?
Of course, the normal way to refer to class X in program A.py
is to do the following:
from C import X
aX = X()
Bill Hale
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Furbybrain <[EMAIL PROTECTED]> wrote:
> I'm running 10.3.9 and I've just installed Python 2.4. IDLE won't start-
> it bounces in the dock once or twice then goes away.
> I'm new to Python, and I'm trying to learn. Thanks.
You might want to open the console window
Thank you, again, Michael, for all your help many months ago.
I *FINALLY* got a HowTo done up; please see
http://wiki.python.org/moin/HowTo/FileMagic
I've also emailed Mr. Hupp to see if he'll re-post the SWIG version;
he's working on a newer binding (forget... ctypes??) and once that
one's work
Thank you, again, Michael, for all your help many months ago.
I *FINALLY* got a HowTo done up; please see
http://wiki.python.org/moin/HowTo/FileMagic
I've also emailed Mr. Hupp to see if he'll re-post the SWIG version;
he's working on a newer binding (forget... ctypes??) and once that
one's work
ommunity.com/DevCenter/
EasyInstall]... I'll -see-... :) )
Ah, sometimes one CAN'T see the forest for the trees; a few hours
hacking away at getting things going to THIS point will do it to ya...
err, or at least "to me"! :D
Thanks, again, Michael...
-Larry
On May 11, 11:34 am,
After putting the magic1.dll file to C:\Program Files\Python25\DLLs
(looking at the directory structure, that seemed as good a place as
any), now I can *import* the module, but...
>>> import magic
>>> test = magic.Magic()
Traceback (most recent call last):
File "", line 1, in
other than explicitly DOING what they do,
which would be [1] messier and/or [2] non-transparent/duplicative, I
sadly have no alternative thought[s]... ;) )
Cheers,
-Larry Hale
--
http://mail.python.org/mailman/listinfo/python-list
rpret this as if you're
attempting to "call" the list object (["a", "b", ...]) as if it were a
function/method
Indeed, the "(1)" is what's causing the problem, but it's -because-
the list *object* is, well, "not callable". :)
As an aside, see what "li" contains if you do:
li = ["a", "b", "mpilgrim", "z", "example"][1]
;)
Cheers!
-Larry Hale
--
http://mail.python.org/mailman/listinfo/python-list
or my Google search of
http://www.google.com/search?hl=en&q=python+snack+module&btnG=Google+Search
seemed to show the same thing.)
The short answer is: Huh?/What?/Why? Why not put the picture + sound
==> video file. (Sure the image remains static, but there's the
Soundtrack with it! ;) )
Cheers,
-Larry Hale
--
http://mail.python.org/mailman/listinfo/python-list
On May 10, 11:41 pm, Larry Hale <[EMAIL PROTECTED]> wrote:
> I've heard tell of a Python binding for libmagic (file(1) *nixy
> command; seehttp://darwinsys.com/file/). Generally, has anybody
> built this and worked with it under Windows?
>
> The only thing I've
eplies, Michael, and I'm
off to work _with_ the module now, then work-up my HowTo (and
experiment with making an "egg"?? ;) )...
Caio!
-Larry :P :)
On May 11, 11:09 pm, Michael Torrie <[EMAIL PROTECTED]> wrote:
> Larry Hale wrote:
> > ALSO: I've even tried p
On May 11, 11:42 pm, Larry Hale <[EMAIL PROTECTED]> wrote:
> THANKS, AGAIN, for the reply! :)
>
> Okay, now I -really- feel silly... :>
>
> So, when I was going to try what you'd suggested, I noticed something
> peculiar: I hadn't "changed" an
On May 11, 11:42 pm, Larry Hale <[EMAIL PROTECTED]> wrote:
> THANKS, AGAIN, for the reply! :)
>
> Okay, now I -really- feel silly... :>
>
> So, when I was going to try what you'd suggested, I noticed something
> peculiar: I hadn't "changed" an
On May 12, 1:34 am, Larry Hale <[EMAIL PROTECTED]> wrote:
> The file source (previously linked from http://hupp.org/adam/hg/python-magic/)
> has the man pages...
Err... I meant "http://downloads.sourceforge.net/gnuwin32/file-4.21-
bin.zip?modtime=1180175868&big_m
On May 12, 1:34 am, Larry Hale <[EMAIL PROTECTED]> wrote:
> The file source (previously linked from http://hupp.org/adam/hg/python-magic/)
> has the man pages...
Err... I meant "http://downloads.sourceforge.net/gnuwin32/file-4.21-
bin.zip?modtime=1180175868&big_m
Greetings, Pythonistas!
My employer has a Squid Proxy between my Python programs and The
Internet.
I've searched high-and-low, and can only find examples online of how
to do basic authentication to connect TO an external Web Server, but
not how to go THROUGH a (corporate) Proxy, thus my question
Err, the line above should be:
proxy_handler = urllib2.ProxyHandler( { "http": "http://
myusername:[EMAIL PROTECTED]:3128" } )
(Sorry! :)
--
http://mail.python.org/mailman/listinfo/python-list
is <[EMAIL PROTECTED]> wrote:
> On Jul 17, 6:40 pm, Larry Hale <[EMAIL PROTECTED]> wrote:
>
> > Err, the line above should be:
>
> > proxy_handler = urllib2.ProxyHandler( { "http": "http://
> > myusername:[EMAIL PROTECTED]:3128" } )
>
is <[EMAIL PROTECTED]> wrote:
> On Jul 17, 6:40 pm, Larry Hale <[EMAIL PROTECTED]> wrote:
>
> > Err, the line above should be:
>
> > proxy_handler = urllib2.ProxyHandler( { "http": "http://
> > myusername:[EMAIL PROTECTED]:3128" } )
>
is <[EMAIL PROTECTED]> wrote:
> On Jul 17, 6:40 pm, Larry Hale <[EMAIL PROTECTED]> wrote:
>
> > Err, the line above should be:
>
> > proxy_handler = urllib2.ProxyHandler( { "http": "http://
> > myusername:[EMAIL PROTECTED]:3128" } )
>
Since it seems I have a "unique" problem, I wonder if anyone could
point me in the general/right direction for tracking down the issue
and resolving it myself.
See my prior post @
http://groups.google.com/group/comp.lang.python/browse_thread/thread/44775994a6b55161?hl=en#
for more info. (Python
E Python/
modules expect to find such things.
Also, which version(s)/file(s) should be placed where, or...??
Thanks for any/all help/pointers. I apologize up-front if I left out
any pertinent info; I'm paranoid about putting in too much (and some
that may be worthless) already... :)
Cheers,
Larry Hale
--
http://mail.python.org/mailman/listinfo/python-list
24 matches
Mail list logo