Re: Python-list Digest, Vol 112, Issue 114

2013-01-16 Thread Levi Nie
if the file size over the > quota...some errors here... > Am 15.01.2013 10:46, schrieb Levi Nie: > >> i want to interrupt the file sending. but i can't change the client. so i >> need change the server. >> All things go well, but the message i wanna response seem not wor

interrupt the file sending if the file size over the quota...some errors here...

2013-01-15 Thread Levi Nie
i want to interrupt the file sending. but i can't change the client. so i need change the server. All things go well, but the message i wanna response seem not work. is the self.transport.loseConnection() (the last line) blocking the messages? in fact, i work on Cumulus(nimbus project) which based

who can give me some practical tutorials on django 1.4 or 1.5?

2012-11-03 Thread Levi Nie
Who can give me some practical tutorials on django 1.4 or 1.5? Thank you. -- http://mail.python.org/mailman/listinfo/python-list

why do this program not fullscreen?

2012-09-24 Thread Levi Nie
the code: import wx app=wx.App() win=wx.Frame(None) win.ShowFullScreen() app.MainLoop() -- http://mail.python.org/mailman/listinfo/python-list

how can i register the non-default browser with the webbrowser module?

2012-09-05 Thread Levi Nie
how can i register the non-default browser with the webbrowser module? the case: i want open a site such as "google.com" in ie8 with the python.But my default is chrome. so i want to register a ie8 controller with the webbrowser.register(*name*, *constructor*[, *instance*]). so what does the param

why did the WindowsError occur?

2012-09-04 Thread Levi Nie
my code: import os os.startfile(r'C:\Program Files\Internet Explorer.exe') the error: os.startfile(r'C:\Program Files\Internet Explorer.exe') WindowsError: [Error 2] : 'C:\\Program Files\\Internet Explorer.exe' -- http://mail.python.org/mailman/listinfo/python-list

Does a wxPython program not run on 64bit Windows?

2012-08-23 Thread Levi Nie
Does a wxPython program not run on 64bit Windows? I saw this “ wxPython is a cross-platform toolkit. This means that the same program will run on multiple platforms without modification. Currently supported platforms are 32-bit Microsoft Windows, most Unix or unix-like systems, and Macintosh OS

Does Polymorphism mean python can create object?

2012-08-20 Thread Levi Nie
Does Polymorphism mean python can create object? -- http://mail.python.org/mailman/listinfo/python-list

it's really strange.how does it work?

2012-08-14 Thread levi nie
ok,what does "start, stop = 0, start" in the code mean? it's really strange.how does it work? code: def interval(start, stop=None, step=1): 'Imitates range() for step > 0' if stop is None: start, stop = 0, start result = [] i = start while i < stop: result.appen

why the different output in Eclipse and Python Shell?

2012-07-31 Thread levi nie
my code in Eclipse: dict.fromkeys(['China','America']) print "dict is",dict output: dict is my code in Python Shell: dict.fromkeys(['China','America']) output:{'America': None, 'China': None} Output in Python Shell is what i wanna,but why not in Eclipse? -- http://mail.python.org/mailman/li

what's the effect of cmp here?

2012-07-10 Thread levi nie
what's the effect of cmp here? The bList and cList is the same at last. code: aList=[3,2,5,4] bList=aList[:] bList.sort() print "bList is",bList cList=aList[:] cList.sort(cmp) print "cList is",cList -- http://mail.python.org/mailman/listinfo/python-list

Re: something go wrongly

2012-07-07 Thread levi nie
Thanks, Such methods return None to emphasize that they do not create new lists. i got it. 2012/7/8 Chris Rebert > On Sat, Jul 7, 2012 at 10:23 AM, levi nie wrote: > > my code: > > > > aList=[1,2,3,4,5,6,7,8,9,10] > > xList=[1,2,3] > > print "now aList

something go wrongly

2012-07-07 Thread levi nie
my code: aList=[1,2,3,4,5,6,7,8,9,10] xList=[1,2,3] print "now aList is",aList.extend(xList) output: now aList is None what i want is [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3] -- http://mail.python.org/mailman/listinfo/python-list

Re: code review

2012-07-04 Thread levi nie
2012/7/4 Paul Rudin > Mark Lawrence writes: > > > On 03/07/2012 03:25, John O'Hagan wrote: > >> On Tue, 3 Jul 2012 11:22:55 +1000 > >> > >> I agree to some extent, but as a counter-example, when I was a child > there > >> a subject called "Weights and Measures" which is now redundant because > o

Re: a problem about "print"

2012-07-04 Thread levi nie
nt aList[2] #<-- here you are printing the third caracter of the string > '[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]' not the list '[1, 2, 3, 4, 5, 6, 7, 8, > 9, 10]' > > regards > Matteo > > > > Il 04/07/2012 09:28, levi nie ha scritto: > > Hi,Harrison. &

Re: a problem about "print"

2012-07-04 Thread levi nie
Yes,you are right. 2012/7/4 Chris Angelico > On Wed, Jul 4, 2012 at 5:28 PM, levi nie wrote: > > aList=str(aList) > > print aList > > print aList[2] > > The str() function takes pretty much anything and returns a string. > When you subscript a string, you get

Re: a problem about "print"

2012-07-04 Thread levi nie
=[1,2,3,4,5,6,7,8,9,10] aList=str(aList) print aList print aList[2] i'm puzzled now. 2012/7/4 Harrison Morgan > > > On Wed, Jul 4, 2012 at 12:38 AM, levi nie wrote: > >> that's good,thanks. >> new problem. >> when i write >> bList=aList >> d

[no subject]

2012-07-04 Thread levi nie
-- http://mail.python.org/mailman/listinfo/python-list

Re: a problem about "print"

2012-07-03 Thread levi nie
print "aList is "+string(aList) ? 2012/7/4 levi nie > aList is a list.i want to get the output seem this "aList is > [x,x,x,x,x,x,x,x,x]" > how can i get this? > it's wrong when i write this, print "aList is "+[x,x,x,x,x,x,x,x,x] > -- http://mail.python.org/mailman/listinfo/python-list

a problem about "print"

2012-07-03 Thread levi nie
aList is a list.i want to get the output seem this "aList is [x,x,x,x,x,x,x,x,x]" how can i get this? it's wrong when i write this, print "aList is "+[x,x,x,x,x,x,x,x,x] -- http://mail.python.org/mailman/listinfo/python-list

Is Django v1.3 documentation the newest version?

2012-07-02 Thread levi nie
Is Django v1.3 documentation the newest version? i use the Django book 2.0. -- http://mail.python.org/mailman/listinfo/python-list

hello everyone! i'm a new member from China

2012-07-02 Thread levi nie
i love python very much.it's powerful,easy and useful. i got it from Openstack.And i'm a new guy on python. Can i ask some stupid questions in days? haha... -- http://mail.python.org/mailman/listinfo/python-list