70569
server.py 0.0409059524536
server.py 0.0409259796143
what's wrong here?
thanks,
skink
client.py
import socket, sys, struct, time
HOST = 'localhost'
PORT = 8080
t1 = time.time()
s
sockopt(socket.SOL_TCP, socket.TCP_NODELAY, 1)
>
> to disable Nagle.
thank yuo so much, both solutions work perfect!
%python client.py client.py client.py client.py
init 0.00101184844971
client.py 0.000586986541748
client.py 0.000448942184448
client.py 0.000470161437988
I think that I'l
Bryan,
>
> Sion Arrowsmith is right about what causes the delay.
> Just in case your real code looks like this, I'll note:
>
>> len, = struct.unpack("!i", s.recv(4))
>> data = s.recv(len)
yes, my mistake ;)
>
>
> First, you almost certainly don't want to use the name 'len'.
> Ought not
ver.py reading 631 40
server.py reading 631 41
why?
thanks,
skink.
--
http://mail.python.org/mailman/listinfo/python-list
Steve Holden wrote:
> Skink wrote:
>
>> Sion Arrowsmith wrote:
>>
>>> conn.sendall(struct.pack("!i", len(data)) + data)
>>>
>>> or after creating conn
>>>
>>> conn.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 1)
&
);
//fprintf(stderr, "\n");
tb_frame = PyObject_GetAttrString(tb_frame, "f_back");
//PyObject_Print(tb_frame, stderr, Py_PRINT_RAW);
//fprintf(stderr, "\n");
Py_XDECREF(tmp);
}
Py_XDECREF(exc_type);
Py_XDECREF(exc_
s and for subsequent calls would be served as self ?
I know, I know that HttpRequest has session member and I can use it.
But maybe it would be good idea to have such url ==> class.method
mapping.
thanks,
skink
--
http://mail.python.org/mailman/listinfo/python-list
Rob Wolfe wrote:
>
> I didn't try it with django but maybe closure is the solution.
> Try this:
>
>
> index, detail and download functions can be mapped
> in urls.py now.
>
Rob,
thanks a lot. is gonna be good starting point
skink
--
http://mail.python.org/mailman/listinfo/python-list
.
What i do is: in createEditor(self, parent, option, index) i call
QtGui.QColorDialog.getColor() and return None
What do you think? Is it Ok?
thanks,
skink
#
import sys
from PyQt4 import QtGui, QtCore
class PropertyDelegate(QtGui.QItemDelegate):
our?
oh, this is default Qt behavoiur: first click selects row, second select
editor (for ColorProperty, IntProperty & StringProperty you can now
change the value) but third click is required only for properties w/
QCombobox editor (EnumProperty & BooleanProperty) ...
skink
>
> David
>
--
http://mail.python.org/mailman/listinfo/python-list
hi,
there is a soap service:
http://waluty.k2.pl/ws/NBPRates.asmx
the question is why when i call GetRateValue method i always get '0' result?
>>> import SOAPpy
>>> srv = SOAPpy.WSDL.Proxy("http://waluty.k2.pl/ws/NBPRates.asmx?WSDL";)
>>> srv.GetAllCodes()
'AUD CAD CHF CYP CZK DKK EEK EUR GBP H
question: my qt4 is built with QT_NO_ACCESSIBILITY
and when I try to build pyqt I got errors no such method
QWidget.setAccessibleName
What should I do? Rebuild qt4 without QT_NO_ACCESSIBILITY #define?
My qt is 4.1.2
skink
--
http://mail.python.org/mailman/listinfo/python-list
()
When I run pyqt 3.14 (but with installed sip 4.4.3) I get:
import qt
Segmentation fault
Both 3.14 and 4.0 work, but not when installed together.
skink
--
http://mail.python.org/mailman/listinfo/python-list
Phil Thompson wrote:
>
>
> Install the latest versions of PyQt3 and SIP.
Thanks Phil!
v4.0 & v3.16 work with sip 4.4.3 ;)
skink
--
http://mail.python.org/mailman/listinfo/python-list
14 matches
Mail list logo