Hi,
Why people want print() instead of print str? That's not a big deal
and the old choice is more natural. Anyone has some clue?
--
http://mail.python.org/mailman/listinfo/python-list
Hi, all
Just come back to use Python, but find something has changed in Python
3.
Like package name is no longer with capitalized char for each word in
the name;
convenient print is removed.
And I don't know why can someone inside explain
to me about this. I think old package name is better for r
I come this code:
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> class He(object):
... def __str__(self):
... return "He"
...
>>> hes = [He(),He(),He()]
>>> print hes
[<__mai
Hi everyone:
I have read the booth python types and objects. I think its book for
clearificating types and objects in python. It says there will be a
book named python attributes and methods. Do you know any information
about this book. I am interested in it.
Thanks
--
http://mail.python.or
Hello everyone:
Is there a way to check the type when do assignment?
if I write:
ab = bc
and want to make sure the return value of isinstance(bc, klass) is True
or I will raise
a exception.
Any suggestion?
--
http://mail.python.org/mailman/listinfo/python-list
> hi all,
> how to get out of the python shell which is executing a command?
> how to use images in the background of a page in Tkinter?
on Unix, ctrl-c or ctrl-d may do the job.
on Windows, ctrl-z will do
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
> pipehappy wrote:
>
> > Is it possible for an instance know its name used by other part of
> > program. I mean like this:
> >
> > class test:
> > def __init__(self):
> > pass
> >
> > when some one writes
Hello:
Is it possible for an instance know its name used by other part of
program. I mean like this:
class test:
def __init__(self):
pass
when some one writes
x = test()
then one of attribute of x contain the name "x"
Is it possible?
I expect someone can tell me how to do it.
-
Hello everyone:
I came across the module ConfigParser and can use it correctly.
import ConfigParser
fp = open('test.cfg','w+')
config = ConfigParser.ConfigParser()
config.readfp(fp)
config.add_section('test')
config.set('test', 'haha', 'hehe')
print config.sections()
config.write(fp)
['test']
Tr
I am a newbie to the Python and wonder how I can know version of tk
bound with Python
Can some one tell me?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
10 matches
Mail list logo