the size of these parameters are in
content-lenght, when reading the rfile with the content-length as the number
of bytes to read it has worked fine.
best regards
On Wed, Jan 28, 2009 at 9:20 AM, Justin Ezequiel <
justin.mailingli...@gmail.com> wrote:
> > From: Tiago Katcipis
> >
reading
the rfile.
Does anyone know why i just cant read the rfile without killing the client
side? it feels like the client side is waiting for something while the
server is unable to read the rfile while the client side is waiting.
On Wed, Jan 28, 2009 at 9:09 AM, Tiago Katcipis wrote:
> thanks
thanks for the help, im really not used on doing web stuff, ill try reading
the how to.
On Wed, Jan 28, 2009 at 9:03 AM, Alan Gauld wrote:
> "Tiago Katcipis" wrote
>
> I am trying to make a small HTTP server on python just to handle some POST
>> and GET requests.
I am trying to make a small HTTP server on python just to handle some POST
and GET requests. I never worked with http before and dont know if i am
doing something completely stupid (probably yes). I read anything possible
already and i just cant find how i access the information sent on the POST
re
Thanks for the help.
On Sun, Dec 21, 2008 at 4:44 PM, Luke Paireepinart
wrote:
> I believe readlines returns a list of strings, not a list of lists.
> You can iterate over the characters in a string if you want, though.
>
> On 12/21/08, Tiago Katcipis wrote:
> > i forgot, this
i forgot, this might help you
http://docs.python.org/tutorial/inputoutput.html#reading-and-writing-files
On Sun, Dec 21, 2008 at 11:57 AM, Tiago Katcipis wrote:
> i believe that the following should work
>
> file1 = open(fileO, 'r')
> re.findall ('some_text', fil
i believe that the following should work
file1 = open(fileO, 'r')
re.findall ('some_text', file1.read())
readlines returns a list with lists inside, where every list is a line of
the text. The read function returns the entire file as one string, so it
should work to what you are wanting to do.
b
ops im sorry..i didnt noticed that reply just replyed to you..i thought it
would go to the list.
Thanks for the help
best regards
On Sat, May 17, 2008 at 8:36 PM, Kent Johnson <[EMAIL PROTECTED]> wrote:
> On Sat, May 17, 2008 at 7:04 PM, Tiago Katcipis <[EMAIL PROTECTED]>
> w
Im writing a class on python and i want to implement the == and != operators
on it. I have read about __cmp__ and about __eq__ for == and __ne__ for ! =.
My question is... who is the better to use? and if there is no better what
are the advantages and disvantages of them. Some articles talk about u
i will change the subject but this one is interessenting.
i have this test code
import funcoes
import bissecao
import falsa_posicao
import falsa_posicaom
import newton_simples
import math
INTERVALO = [0,1]
ERRO_DET = math.pow(10, -16)
ITER = funcoes.calcular_num_iteracoes(INTERVALO[0], INTERVALO
properly
Tiago Katcipis escreveu:
> im not understanding why is this a problem...i have this simple function
>
> def newton_divergente(x):
> return math.pow(x, 1.0/3.0)
>
> but when x = -20 it returns this error
>
> return math.pow(x, 1.0/3.0)
> ValueError: math domain error
ops, now i realize the mistake i was making. Thanks for the help people
Tiago Katcipis escreveu:
> im not understanding why is this a problem...i have this simple function
>
> def newton_divergente(x):
> return math.pow(x, 1.0/3.0)
>
> but when x = -20 it returns this error
&
im not understanding why is this a problem...i have this simple function
def newton_divergente(x):
return math.pow(x, 1.0/3.0)
but when x = -20 it returns this error
return math.pow(x, 1.0/3.0)
ValueError: math domain error
but why is that? is it impossible to calculate -20 ^ (1/3) ?
here o
I know its not such a pretty thing to have global variables but its only
for an exercise my teacher told to do. Its a function to calculate the
results of a matrix using jacob. I want to inside the module (inside a
function on the module )assign a value to a global variable, but the
only way i foun
I know its not such a pretty thing to have global variables but its only
for an exercise my teacher told to do. Its a function to calculate the
results of a matrix using jacob. I want to inside the module (inside a
function on the module )assign a value to a global variable, but the
only way i foun
tutorial i liked this one when i was starting
http://docs.python.org/tut/
free IDE that i use is Eclipse with PyDev plugin.
http://pydev.sourceforge.net/
www.eclipse.org
On Tue, Mar 11, 2008 at 4:41 PM, Meftah Tayeb <[EMAIL PROTECTED]>
wrote:
> hi my friends,
> please i want to begin developin
so far im starting to feel all what you have said. Im using python to
implement some works on university and im felling that everything is high
level, easy to use, and far easier than c++ and even java. java is less
complicated than c++ but cant be compared with the simplicity of python
code. And t
t not set or deleted.
>
> But in practice, I personally never have seen a need for something like
> this. You can always overcome the above constant. Btw, you can do that
> in C++ privates too, worst case by casting around and ending up with a
> pointer that points to the private elemen
escreveu:
> On 06/03/2008, Tiago Katcipis <[EMAIL PROTECTED]> wrote:
>
>> learning. Im used to develop on c++ and java and i wanted to know if
>> there is any way to create a final or const member, a member that after
>> assigned cant be reassigned. Thanks to a
Its a simple question but i have found some trouble to find a good
answer to it, maybe i just dont searched enough but it wont cost
anything to ask here, and it will not cost to much to answer :-). I have
started do develop on python and i really liked it, but im still
learning. Im used to deve
20 matches
Mail list logo