www.shoeshive.net Wholesale R3 Wholesale R4 Wholesale NZ Wholesale R5
Wholesale Monser Wholesale OZ Wholesale Nike Trainers Wholesale Air
Rift Shoes Air Max 87 Air Max 90 Air Max Ltd Air Max 95 Air Max 97 Air
Max 2003 Air Max 360 at www.shoeshive.net Air Max Tn Nike Air Max 180
Nike Dunk SB Nike Me
En Fri, 28 Mar 2008 17:13:00 -0300, Hans Martin <[EMAIL PROTECTED]>
escribió:
> this is probably a trivial problem, but a google search for "python"
> and "unicode" and" format string" gives too many hits: If I specify
> e.g. "%20s" in a format string and the string value contains UTF-8
> stuff
Hello,
Is there such a function included in the standard Python distribution?
This is what I came up with. How to improve it? Thanks.
def lstrip2(s, chars, ingoreCase = True):
if ingoreCase:
s2 = s.upper().lstrip(chars.upper())
return s[len(s)-len(s2):]
else:
retur
On Fri, 28 Mar 2008 15:48:09 -0700, Kelie wrote:
> Is there such a function included in the standard Python distribution?
AFAIK not.
> This is what I came up with. How to improve it? Thanks.
>
> def lstrip2(s, chars, ingoreCase = True):
> if ingoreCase:
> s2 = s.upper().lstrip(chars
En Fri, 28 Mar 2008 18:05:29 -0300, afandi <[EMAIL PROTECTED]>
escribió:
> Generally, it involves SQL statement such as
> follow
>
> INSERT INTO (field1,field2,...fieldn) VALUES
> ('abc','def'...)
>
> If I have data taken from Apache Server Log,let say 100 lines which
> is printe
En Fri, 28 Mar 2008 18:15:04 -0300, harryos <[EMAIL PROTECTED]>
escribió:
> if i were to calculate the euclidean distance in the above example how
> should i go about it..?
> should i replace
> distance = abs(input_wk - weights[image, :])
> with something else?
For a single 2D vector, math.hypo
thanks for the responses.
I put the files in an ftp site and all is
well.
jim-on-linux
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 28, 12:55 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> What about this:
>
> def lstrip2(string, chars, ignore_case=True):
> if ignore_case:
> chars = chars.lower() + chars.upper()
> return string.lstrip(chars)
>
> Ciao,
> Marc 'BlackJack' Rintsch
Thanks
The socket.makefile() docs say, "the socket must be in blocking mode." I
don't see any explanation of why blocking mode is required, and I'm not sure
whether that means timeout mode is forbidden as well. Can someone clarify
this?
I wanted to use file-like objects with socket timeouts, so I ended
Scott David Daniels wrote:
> class Foo(object): # _Never_ use old-style without a reason
> def __getitem__(self, index):
> print index
> if index < 3:
> return index * 5 # just to see
> raise IndexError('Zapped') # The secret -- run
[EMAIL PROTECTED] wrote:
> I'm making a game where you'll be able to make your own mods and I
> want to be able to write these mods in python.
Check out tinypy:
http://www.philhassey.com/blog/category/tinypy/
Richard
--
http://mail.python.org/mailman/listinfo/python-list
Richard Jones <[EMAIL PROTECTED]> writes:
> Check out tinypy:
> http://www.philhassey.com/blog/category/tinypy/
I don't really understand the point of it.
See also: http://hedgehog.oliotalo.fi/
--
http://mail.python.org/mailman/listinfo/python-list
I'm pretty new to Python and libraries. I'm actually trying to modify some
code someone else wrote. There are two ways images are saved. One is for the
user to select a "Save as GIF" menu item, or save as tiff, or others. The
other way is that the user wants a collected image from a camera saved
On Fri, 28 Mar 2008 16:59:59 +0100, Robert Bossy wrote:
> Gabriel Genellina wrote:
>> That's what I said in another paragraph. "sum of coordinates" is using
>> a different distance definition; it's the way you measure distance in a
>> city with square blocks. I don't know if the distance itself ha
On Mar 28, 10:12 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Fri, 28 Mar 2008 12:38:45 -0300, 7stud <[EMAIL PROTECTED]>
> escribió:
>
> > After I start the server script, load the html page in my browser, and
> > click on the link, I get the desired output in my browser, but the
> > s
Hello everyone,
I am just starting to use python in numerical cacluation.
I need you to help me to see what's wrong with the following piece of
codes, which computes the cross product of two vectors and returns
the result. u and v are two 3x1 matrix.
when I import the function, error message s
No problem...
your def needs a colon..
def function(params):
yours lacks it =) thats all
On Fri, Mar 28, 2008 at 8:47 PM, aeneng <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> I am just starting to use python in numerical cacluation.
> I need you to help me to see what's wrong with the follo
On Fri, 28 Mar 2008 17:19:04 -0700, Paul Rubin wrote:
> Richard Jones <[EMAIL PROTECTED]> writes:
>> Check out tinypy:
>> http://www.philhassey.com/blog/category/tinypy/
>
> I don't really understand the point of it.
http://www.philhassey.com/blog/tinypy-ideas/
[quote]
Sandbox tinypy
Objectiv
Dear community members,
I just start to use python in numerical calculation. and I encountered some
difficulties when I define my own function.
Here is a piece of codes to compute the cross product of two 3x1 vector.
can any one help me to find what is wrong with it? please see the codes
below.
On Sat, 29 Mar 2008 01:47:21 +, aeneng wrote:
> Hello everyone,
>
> I am just starting to use python in numerical cacluation. I need you to
> help me to see what's wrong with the following piece of codes, which
> computes the cross product of two vectors and returns the result. u and
> v are
Diez B. Roggisch wrote:
> Ron Eggler schrieb:
>> Hi,
>>
>> I would like to get the time of the most recent human activity like a
>> cursor movement or a key hit.
>> Does anyone know how I can get this back to start some action after there
>> has been no activity for X minutes/seconds?
>
> Try ho
"aeneng" <[EMAIL PROTECTED]> writes:
> I am just starting to use python in numerical cacluation.
Welcome, and congratulations on learning Python.
> I need you to help me to see what's wrong with the following piece
> of codes [...]
Your code is rather difficult to read, since your expressions
Oh, I forgot to mention...
On Sat, 29 Mar 2008 01:47:21 +, aeneng wrote:
> if __name__=="__main__":
...
> print "file name is %s" %__name__
This doesn't do what you expect it to do. You've already established that
__name__ is equal to "__main__", so you might as well change that line
On Mar 28, 1:57 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Fri, 28 Mar 2008 16:14:07 -0300, <[EMAIL PROTECTED]> escribió:
>
> > I am trying to install the twitter python wrapper...I got that
> > installed just fine, but am having serious troubles getting the
> > simplejson package to i
On Mar 16, 5:48 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote:
> Unlike Perl or Tcl, Python is not just a
> scripting language with a set of ad-hoc extensions. There are still
> issues, and Python probably will never be a general-purpose replacement
> for system-native language compilers, but it does
When reading a file into a list that contains windows file paths like this:
c:\documents and settings\brad\desktop\added_software\asus\a.txt
I get a list that contains paths that look like this:
c:\\documents and settings\\brad\\desktop\\added_software\\asus\\a.txt
So, my list contains those fu
On Mar 29, 12:47 pm, "aeneng" <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> I am just starting to use python in numerical cacluation.
> I need you to help me to see what's wrong with the following piece of
> codes, which computes the cross product of two vectors and returns
> the result. u and v
On Fri, 28 Mar 2008 22:31:07 -0400, Brad wrote:
> When reading a file into a list that contains windows file paths like
> this:
>
> c:\documents and settings\brad\desktop\added_software\asus\a.txt
>
> I get a list that contains paths that look like this:
>
> c:\\documents and settings\\brad\\de
On Mar 29, 1:31 pm, Brad <[EMAIL PROTECTED]> wrote:
> When reading a file into a list that contains windows file paths like this:
>
> c:\documents and settings\brad\desktop\added_software\asus\a.txt
Do you mean "reading a file into a list that AS A RESULT
contains ..."? If not, what do you mean?
Steven D'Aprano wrote:
> On Fri, 28 Mar 2008 22:31:07 -0400, Brad wrote:
>
>> When reading a file into a list that contains windows file paths like
>> this:
>>
>> c:\documents and settings\brad\desktop\added_software\asus\a.txt
>>
>> I get a list that contains paths that look like this:
>>
>> c:\\
En Fri, 28 Mar 2008 23:23:01 -0300, <[EMAIL PROTECTED]> escribió:
> On Mar 28, 1:57 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>> En Fri, 28 Mar 2008 16:14:07 -0300, <[EMAIL PROTECTED]> escribió:
>>
>> > I am trying to install the twitter python wrapper...I got that
>> > installed just f
Forest wrote:
> The socket.makefile() docs say, "the socket must be in blocking mode." I
> don't see any explanation of why blocking mode is required, and I'm not sure
> whether that means timeout mode is forbidden as well. Can someone clarify
> this?
Looking at the code for the existing _fileob
101 - 132 of 132 matches
Mail list logo