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
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?
Thank you.
--
http://mail.python.org/mailman/listinfo/python-list
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?
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
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?
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?
--
http://mail.python.org/mailman/listinfo/python-list
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
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? 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
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
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
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
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.
&
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
=[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
--
http://mail.python.org/mailman/listinfo/python-list
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
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?
i use the Django book 2.0.
--
http://mail.python.org/mailman/listinfo/python-list
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
22 matches
Mail list logo