Pascal J. Bourguignon wrote:
So the interesting thing is that some pseudo-units don't have
dimensions. They only have the scale.
I don't think the term "pseudo-unit" is particularly necessary.
They're just units in which the powers of all the possible
dimensions are zero. Calling them pseudo-
Tim Bradshaw wrote:
In general any function
which raises its argument to more than one power ... doesn't make
much sense if its argument has units.
That's not true. Consider the distance travelled by a
falling object: y(t) = y0 + v0*t + 0.5*a*t**2. Here t has
dimensions of time, and it's bein
Lawrence D'Oliveiro wrote:
If you can’t do it statically, do it dynamically.
But how can that be done without seeing into the future?
--
Greg
--
http://mail.python.org/mailman/listinfo/python-list
> Dear All,
>
> I want to get the absolute path of the Directory I pass explicitly. Like
>
> functionName("\abcd").
> I should pass the name of the directory and the function should search for
> it in the Hard drives and return me the full path of location on the drive.
> I tried using os.path, b
On Oct 12, 6:33 pm, Antoine Pitrou wrote:
> On Tue, 12 Oct 2010 05:40:43 -0700 (PDT)
>
> Ashish Vyas wrote:
> > Another observation that I have made is with 10 parallel HTTPS connection
> > each
> > trying 1 transaction per second from 2 different machines (effectively same
> > load
> > on serv
On Oct 10, 12:07 pm, John Nagle wrote:
> (If you want default values for an instance, you define them
> in __init__, not as class-level attributes.)
>
I beg to differ. I've seen plenty of code where defaults are set at
the class level. It makes for some rather nice code.
I'm thinking of lxm
In article
,
Peter Nilsson wrote:
> Keith Thompson wrote:
> > The radian is defined as a ratio of lengths. That ratio
> > is the same regardless of the size of the circle. The
> > choice of 1/(2*pi) of the circumference isn't arbitrary
> > at all; there are sound mathematical reasons for it.
In article <87mxqin49o@kuiper.lan.informatimago.com>,
p...@informatimago.com (Pascal J. Bourguignon) wrote:
> There's a notion of
> angle that is different from the notion of interest rate.
Only because of how they are conventionally used. There's no difference
between sin(0.1) and sin(10%
Dear All,
I want to get the absolute path of the Directory I pass explicitly. Like
functionName("\abcd").
I should pass the name of the directory and the function should search for
it in the Hard drives and return me the full path of location on the drive.
I tried using os.path, but didn't succee
Keith Thompson wrote:
> The radian is defined as a ratio of lengths. That ratio
> is the same regardless of the size of the circle. The
> choice of 1/(2*pi) of the circumference isn't arbitrary
> at all; there are sound mathematical reasons for it.
Yes, but what is pi then?
> Mathematicians cou
Tim Bradshaw writes:
> On 2010-10-12 20:46:26 +0100, BartC said:
>
>> You can't do all that if angles are just numbers.
>
> I think that the discussion of percentages is relevant here: angles
> //are// just numbers, but you're choosing a particular way of
> displaying them (or reading them). 100%
On Oct 12, 9:43 am, o...@dtrx.de (Olaf Dietrich) wrote:
> I have the following (now extremely minimalistic) Tkinter
> application:
>
> --- START
>
> #! /usr/bin/python2.6
>
> import sys
> import Tkinter
> import numpy
> from PIL import Image,
On Oct 11, 1:40 am, Antoon Pardon
wrote:
> On Sat, Oct 09, 2010 at 01:37:03AM +, Steven D'Aprano wrote:
> > On Fri, 08 Oct 2010 15:53:17 -0400, Jed Smith wrote:
>
> > > On Fri, Oct 8, 2010 at 1:26 PM, Steven D'Aprano
> > > wrote:
> > >> On Fri, 08 Oct 2010 10:21:16 +0200, Antoon Pardon wrote:
On Oct 12, 2010, at 8:29 PM, Gregory Ewing wrote:
> I'm getting my Python environment set up on a new
> Snow Leopard machine, and I'd like to compile everything
> in 32 bit mode for the time being, because some of the
> extensions I need use APIs that aren't available in
> 64 bit.
>
> Is there s
In article , b...@freeuk.com
says...
>
> "RG" wrote in message
> news:rnospamon-20651e.17410012102...@news.albasani.net...
> > In article ,
> > "BartC" wrote:
> >
> >> "Thomas A. Russ" wrote in message
>
> >> > But radians are dimensionless.
> >>
> >> But they are still units
> >
> > No, the
In article <8hkct2f31...@mid.individual.net>,
Gregory Ewing wrote:
> I'm getting my Python environment set up on a new
> Snow Leopard machine, and I'd like to compile everything
> in 32 bit mode for the time being, because some of the
> extensions I need use APIs that aren't available in
> 64 bit
On 13/10/2010 02:36, Keith Thompson wrote:
"BartC" writes:
"RG" wrote in message
news:rnospamon-20651e.17410012102...@news.albasani.net...
[...]
Likewise, all of the following are the same number written in different
notations:
pi/2
pi/2 radians
90 degrees
100 gradians
1/4 circle
0.25 circl
On 13/10/2010 02:40, Steve Howell wrote:
On Oct 12, 5:54 pm, Lawrence D'Oliveiro wrote:
In message, D'Arcy
J.M. Cain wrote:
On Tue, 12 Oct 2010 23:34 +1300
Lawrence D'Oliveiro wrote:
Symmetry is always a tricky balance in programming languages.
Is that what we used to call “orthogonali
On Oct 12, 6:01 pm, Lawrence D'Oliveiro wrote:
> In message <4cb4ba4e$0$1641$742ec...@news.sonic.net>, John Nagle wrote:
>
> > In general, if you find yourself making millions of
> > SQL database requests in a loop, you're doing it wrong.
>
> I’ve done this. Not millions, but certainly on the orde
In article ,
Keith Thompson wrote:
> "BartC" writes:
> > "RG" wrote in message
> > news:rnospamon-20651e.17410012102...@news.albasani.net...
> [...]
> >> Likewise, all of the following are the same number written in different
> >> notations:
> >>
> >> pi/2
> >> pi/2 radians
> >> 90 degrees
>
Lot of chance in Management work. Computer jobs, internet jobs, earn
at home unlimited.
http://rojgars1.webs.com/gov.htmhttp://rojgars.webs.com/bankingjobs.htm
Careers recruitments in Management work. All types of Management
careers. http://managementjobs.webs.com/pm.htm &
http://jobscore.webs
On Oct 12, 5:54 pm, Lawrence D'Oliveiro wrote:
> In message , D'Arcy
>
> J.M. Cain wrote:
> > On Tue, 12 Oct 2010 23:34 +1300
> > Lawrence D'Oliveiro wrote:
>
> >>> Symmetry is always a tricky balance in programming languages.
>
> >> Is that what we used to call “orthogonality”?
>
> > No, orthogo
"BartC" writes:
> "RG" wrote in message
> news:rnospamon-20651e.17410012102...@news.albasani.net...
[...]
>> Likewise, all of the following are the same number written in different
>> notations:
>>
>> pi/2
>> pi/2 radians
>> 90 degrees
>> 100 gradians
>> 1/4 circle
>> 0.25 circle
>> 25% of a cir
In article ,
"BartC" wrote:
> "RG" wrote in message
> news:rnospamon-20651e.17410012102...@news.albasani.net...
> > In article ,
> > "BartC" wrote:
> >
> >> "Thomas A. Russ" wrote in message
>
> >> > But radians are dimensionless.
> >>
> >> But they are still units
> >
> > No, they aren't.
In message <8hhm9afbl...@mid.individual.net>, Gregory Ewing wrote:
> Lawrence D'Oliveiro wrote:
>
>> In message <8hfq23fet...@mid.individual.net>, Gregory Ewing wrote:
>>
>>>How would you intend to enforce such a restriction?
>>
>> The same way it’s already enforced.
>
> I don't see how that's
"RG" wrote in message
news:rnospamon-20651e.17410012102...@news.albasani.net...
In article ,
"BartC" wrote:
"Thomas A. Russ" wrote in message
> But radians are dimensionless.
But they are still units
No, they aren't.
so that you can choose to use radians, degrees or gradians
Those
In message <4cb4ba4e$0$1641$742ec...@news.sonic.net>, John Nagle wrote:
> In general, if you find yourself making millions of
> SQL database requests in a loop, you're doing it wrong.
I’ve done this. Not millions, but certainly on the order of tens of
thousands.
> Big database loads are us
In message , D'Arcy
J.M. Cain wrote:
> On Tue, 12 Oct 2010 23:34 +1300
> Lawrence D'Oliveiro wrote:
>
>>> Symmetry is always a tricky balance in programming languages.
>>
>> Is that what we used to call “orthogonality”?
>
> No, orthogonality is something else. "Orthogonal" means "perpendicula
Diez B. Roggisch wrote:
I don't know without further research why there is a
difference between commandline and GUI-programs in OSX (I guess it has
to do with the event loop or something)
The MacOSX display server is rather picky about which processes
it will allow to connect to it. One of the
On 13/10/2010 01:29, Gregory Ewing wrote:
I'm getting my Python environment set up on a new
Snow Leopard machine, and I'd like to compile everything
in 32 bit mode for the time being, because some of the
extensions I need use APIs that aren't available in
64 bit.
Is there some environment variab
Try setting the compiler itself as "gcc -m32"
--
Jason Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
On Oct 12, 2010, at 8:29 PM, Gregory Ewing wrote:
> I'm getting my Python environment set up on a new
> Snow Leopard machine, and I'd like to compile e
In article ,
"BartC" wrote:
> "Thomas A. Russ" wrote in message
> news:ymi1v7vgyp8@blackcat.isi.edu...
> > torb...@diku.dk (Torben ZÆgidius Mogensen) writes:
> >
> >> Trigonometric functions do take arguments of particular units: radians
> >> or (less often) degrees, with conversion needed
I'm getting my Python environment set up on a new
Snow Leopard machine, and I'd like to compile everything
in 32 bit mode for the time being, because some of the
extensions I need use APIs that aren't available in
64 bit.
Is there some environment variable or config setting
that will make gcc com
Thomas A. Russ wrote:
"BartC" writes:
"Thomas A. Russ" wrote in message
news:ymi1v7vgyp8@blackcat.isi.edu...
torb...@diku.dk (Torben Z??gidius Mogensen) writes:
Trigonometric functions do take arguments of particular units: radians
or (less often) degrees, with conversion needed if you
"BartC" writes:
> "Thomas A. Russ" wrote in message
> news:ymi1v7vgyp8@blackcat.isi.edu...
> > torb...@diku.dk (Torben ZÆgidius Mogensen) writes:
> >
> >> Trigonometric functions do take arguments of particular units: radians
> >> or (less often) degrees, with conversion needed if you use t
On 10/12/2010 06:22 PM, Ian Kelly wrote:
> That's the inverse of what the OP wanted. The full solution:
>
A[~isnan(B)]
> array([2, 3])
Indeed, you are right Ian. Thanks for pointing that out. :)
Sorry for the mistake.
Regards
Andre
--
http://mail.python.org/mailman/listinfo/python-list
Hello all,
We are pleased to tell you that Komodo 6.0 has been released. With this
release Komodo adds full support for Python 3 (Python 2 already
supported) - with syntax coloring, error reporting, automatic code
completions, debugging, code browsing and interactive Python shell.
The new fe
On 2010-10-12 20:46:26 +0100, BartC said:
You can't do all that if angles are just numbers.
I think that the discussion of percentages is relevant here: angles
//are// just numbers, but you're choosing a particular way of
displaying them (or reading them). 100% //is// 1, and 360° //is// 2π.
>So if you can, you could make sure to send the file as just bytes,
>>or if it must be a string, base64 encoded. If this is not possible
>>you can try the code below to obtain the bytes, not a very fast
>>solution, but it should work (Python 3):
>>
>>
>>MAP = {}
>>for i in r
On Tue, Oct 12, 2010 at 1:48 PM, Pratik Khemka wrote:
> Say : line = abcdabcd#12 adssda
>
> index = line.find('#')
> num = line[index:index+2]
>
> num will now be 12.
No, num will be "#1". You wanted:
num = line[index+1:index+3]
> Likewise I want to read the number after the '#' and store it in
On 10/12/2010 10:48 PM, Pratik Khemka wrote:
Likewise I want to read the number after the '#' and store it in num. The
problem is that the number can be a 1/2/3/4 digit number. So is there a way in
which I can define num so that it contains the number after '#' irrespective of
how many digits
Say : line = abcdabcd#12 adssda
index = line.find('#')
num = line[index:index+2]
num will now be 12.
Likewise I want to read the number after the '#' and store it in num. The
problem is that the number can be a 1/2/3/4 digit number. So is there a way in
which I can define num so t
I wrote:
> except IOError:
> if e.errno != errno.ENOENT: raise# if you are picky
Argh, I meant "except IOError, e:". That's for Python 2 but not
Python 3. "except IOError as e:" works on Python 2.6 and above.
--
Hallvard
--
http://mail.python.org/mailman/listinfo/python-list
Seebs writes:
> http://github.com/wrpseudo/pseudo/blob/master/makewrappers
>self.f = file(path, 'r')
>if not self.f:
>return None
No. Failures tend to raise exceptions, not return error codes.
Except in os.path.exists() & co.
$ python
>>> open("nonesuch")
Tracebac
On 12/10/2010 20:40, Jonas H. wrote:
On 10/12/2010 09:14 PM, Seebs wrote:
http://github.com/wrpseudo/pseudo/blob/master/makewrappers
Just a few pointers, looks quite good to me for a newbie :)
* Less action in __init__.
* Use `open` instead of `file` to open a file
* Have a look at context ma
On 12/10/2010 20:14, Seebs wrote:
So, I'm new to Python, though I've got a bit of experience in a few other
languages. My overall impressions are pretty mixed, but overall positive;
it's a reasonably expressive language which has a good mix between staying
out of my way and taking care of stuff
jmfauth gmail.com> writes:
> When an endianess is not specified, (BE, LE, unmarked forms),
> the Unicode Consortium specifies, the default byte serialization
> should be big-endian.
>
> See http://www.unicode.org/faq//utf_bom.html
> Q: Which of the UTFs do I need to support?
> and
> Q: Why do so
"Thomas A. Russ" wrote in message
news:ymi1v7vgyp8@blackcat.isi.edu...
torb...@diku.dk (Torben ZÆgidius Mogensen) writes:
Trigonometric functions do take arguments of particular units: radians
or (less often) degrees, with conversion needed if you use the "wrong"
unit.
But radians are
On Tue, Oct 12, 2010 at 12:14 PM, Seebs wrote:
> So, I'm new to Python, though I've got a bit of experience in a few other
> languages. My overall impressions are pretty mixed, but overall positive;
> it's a reasonably expressive language which has a good mix between staying
> out of my way and t
On 10/12/2010 11:35 AM, Jon Clements wrote:
On 12 Oct, 18:53, Jon Clements wrote:
On 12 Oct, 18:32, Roy Smith wrote:
On Oct 12, 1:20 pm, Jon Clements wrote:
On 12 Oct, 16:10, Roy Smith wrote:
PEP 249 says about executemany():
Prepare a database operation (query or comma
On 10/12/2010 09:14 PM, Seebs wrote:
http://github.com/wrpseudo/pseudo/blob/master/makewrappers
Just a few pointers, looks quite good to me for a newbie :)
* Less action in __init__.
* Use `open` instead of `file` to open a file
* Have a look at context managers for file handling (avoids doing
By Restrictions of Google i have Hidden the Photos.To view...CLICK
on the IMAGE below the SEARCH BOX http://viewvideostoall.co.cc
--
http://mail.python.org/mailman/listinfo/python-list
Am 12.10.2010 17:10, schrieb Roy Smith:
> [A]re there any plans to update the api to allow an iterable instead of
> a sequence?
sqlite3 (standard library, python 2.6.6., Windows 32Bit) does that already::
import sqlite3 as sql
connection = sql.connect(":memory:")
cursor = connection.execute(""
So, I'm new to Python, though I've got a bit of experience in a few other
languages. My overall impressions are pretty mixed, but overall positive;
it's a reasonably expressive language which has a good mix between staying
out of my way and taking care of stuff I don't want to waste attention on.
On Oct 12, 2010, at 8:35 PM, Jon Clements wrote:
> 4) Execute an update with a from statement joining your main table and
> temp table (pretty sure that's ANSI standard, and DB's should support
> it -- embedded one's may not though, but if you're dealing with 1mil
> records, I'm taking a guess yo
On Tue, 12 Oct 2010 13:58:37 -0400
Terry Reedy wrote:
> On 10/12/2010 11:10 AM, Roy Smith wrote:
> > PEP 249 says about executemany():
> >
> > Prepare a database operation (query or command) and then
> > execute it against all parameter sequences or mappings
> > found in
I've found the bug http://bugs.python.org/issue1731717.
It seems wating subprocess can be multithreaded but creating
subprocess cannot.
On Oct 12, 9:57 am, INADA Naoki wrote:
> On Oct 12, 5:33 am, Jed Smith wrote:
>
> > On Mon, Oct 11, 2010 at 4:19 PM, INADA Naoki wrote:
> > > def worker():
> >
On 12 Oct, 18:53, Jon Clements wrote:
> On 12 Oct, 18:32, Roy Smith wrote:
>
>
>
> > On Oct 12, 1:20 pm, Jon Clements wrote:
>
> > > On 12 Oct, 16:10, Roy Smith wrote:
>
> > > > PEP 249 says about executemany():
>
> > > > Prepare a database operation (query or command) and then
> > > >
In article
<2eeb1c54-83f5-4375-93fb-478bdbd7e...@j25g2000yqa.googlegroups.com>,
Jon Clements wrote:
> On 12 Oct, 18:32, Roy Smith wrote:
> > On Oct 12, 1:20 pm, Jon Clements wrote:
> >
> > > On 12 Oct, 16:10, Roy Smith wrote:
> >
> > > > PEP 249 says about executemany():
> >
> > > >
torb...@diku.dk (Torben Ægidius Mogensen) writes:
> Trigonometric functions do take arguments of particular units: radians
> or (less often) degrees, with conversion needed if you use the "wrong"
> unit.
But radians are dimensionless.
The definition of a radian is length/length (or m/m) which s
On 10/12/2010 11:10 AM, Roy Smith wrote:
PEP 249 says about executemany():
Prepare a database operation (query or command) and then
execute it against all parameter sequences or mappings
found in the sequence seq_of_parameters.
are there any plans to update the api to
On 12 Oct, 18:32, Roy Smith wrote:
> On Oct 12, 1:20 pm, Jon Clements wrote:
>
> > On 12 Oct, 16:10, Roy Smith wrote:
>
> > > PEP 249 says about executemany():
>
> > > Prepare a database operation (query or command) and then
> > > execute it against all parameter sequences or map
On 10/12/2010 9:52 AM, Antoon Pardon wrote:
On Fri, Oct 08, 2010 at 05:05:26PM -0400, Terry Reedy wrote:
But you really seem to be saying is "What if I sometimes want the
end points included and sometimes do not?" Slice syntax by itself
cannot handle all four cases, only one, one was chosen and
On Oct 12, 1:20 pm, Jon Clements wrote:
> On 12 Oct, 16:10, Roy Smith wrote:
>
> > PEP 249 says about executemany():
>
> > Prepare a database operation (query or command) and then
> > execute it against all parameter sequences or mappings
> > found in the sequence seq_of_p
On Mon, Oct 11, 2010 at 7:02 PM, Steven D'Aprano
wrote:
> On Mon, 11 Oct 2010 10:32:44 -0400, Jed Smith wrote:
>
>> simplejson got merged into the standard library in Python 2.6. In
>> libcloud, I wrote this:
>>
>> try: import json
>> except ImportError, excp: import simplejson as json
>
> I'm
On 12/10/2010 4:59 PM, John Henry wrote:
According to:
http://support.microsoft.com/kb/813745
I need to reset my Outlook registry keys. Unfortunately, I don't have
my Office Install CD with me. This would have to wait.
Thanks for the information; I'm keen to see if you're able
to use the so
On 12 Oct, 16:10, Roy Smith wrote:
> PEP 249 says about executemany():
>
> Prepare a database operation (query or command) and then
> execute it against all parameter sequences or mappings
> found in the sequence seq_of_parameters.
>
> are there any plans to update the api
On Tue, 12 Oct 2010 05:40:43 -0700 (PDT)
Ashish Vyas wrote:
>
> I have made a tool for load testing of my company's web-server product. The
> tool
> is written using Python 3.1.
>
[...]
>
> So I feel HTTPS is blocking my test if I want to achieve higher TPS
> (transactions per second.) than
On Mon, Oct 11, 2010 at 1:44 PM, Tom Pacheco wrote:
> your creating a 1d list
>
> this creates a 2d list
> a=[[[]]*5
>
>
> >>> [0]*5
> [0, 0, 0, 0, 0]
> >>> [[]]*5
> [[], [], [], [], []]
>
Don't do this. This actually just creates a list containing the same empty
list 5 times:
>>> a = [[]] * 5
Stefan Behnel, 12.10.2010 09:18:
If you implemented an RPython to CPython extension compiler, [...]
BTW, if anyone wanted to do that, it might be a good idea to start with
Cython, adapt its type inference layer and add the few missing Python
language features (or pay the core developers to d
Nobody writes:
> Oh, look what's "new in version 2.6":
>
> > ast.literal_eval("7")
> 7
> > ast.literal_eval("7") == 7
> True
Note that it doesn't work for some reasonable inputs involving unary and
binary plus, such as "[-2, +1]" or "2+3j". This has been fixed in the
dev
On Mon, Oct 11, 2010 at 11:47 PM, Andre Alexander Bell
wrote:
> Hi Kenny,
>
> On 10/12/2010 05:58 AM, Kenny wrote:
> > I have an array A, and another one B with same dimention and size. Now I
> > want to change the delete the elements in A where the same position in B
> > is nan. How can I do.
> >
On 10/12/2010 05:18 PM, Nils Ruettershoff wrote:
Hi,
On 10/12/2010 07:41 AM, John Nagle wrote:
[...]
With Unladen Swallow looking like a failed IT project, a year
behind schedule and not delivering anything like the promised
performance, Google management may pull the plug on funding.
Since
Stefan Behnel writes:
> Hallvard B Furuseth, 11.10.2010 23:45:
>> If there were a __plain_str__() method which was supposed to fail rather
>> than start to babble Python syntax, and if there were not plenty of
>> Python code around which invoked __str__, I'd agree.
>
> Yes, calling str() "just in
On 12/10/2010 15:45, Hidura wrote:
Don't work this is the error what give me TypeError: sequence item 0:
expected bytes, str found, i continue trying to figure out how resolve
it if you have another idea please tellme, but thanks anyway!!!
On Mon, Oct 11, 2010 at 4:27 AM, Almar Klein mailto:alma
On Oct 11, 8:54 am, Tim Golden wrote:
> On 11/10/2010 4:39 PM, John Henry wrote:
>
> > I am trying your code but when it get to the line:
>
> >> mapi.MAPIInitialize ((mapi.MAPI_INIT_VERSION, 0))
>
> > I got the error message:
>
> > Either there is no default mail client or the current mail cli
On Oct 11, 8:54 am, Tim Golden wrote:
> On 11/10/2010 4:39 PM, John Henry wrote:
>
> > I am trying your code but when it get to the line:
>
> >> mapi.MAPIInitialize ((mapi.MAPI_INIT_VERSION, 0))
>
> > I got the error message:
>
> > Either there is no default mail client or the current mail cli
Hi,
On 10/12/2010 07:41 AM, John Nagle wrote:
[...]
With Unladen Swallow looking like a failed IT project, a year
behind schedule and not delivering anything like the promised
performance, Google management may pull the plug on funding.
Since there hasn't been a "quarterly release" in a year
I am comparing 2 files (.txt files) using filecmp.cmp(File1, File2,
shallow=False)
I want to allow exceptions like these:
File 1 File 2
6522,6523d6521 6591,6592d6590
6536d6533 6605d6602
So basically I want to ignore these differ
PEP 249 says about executemany():
Prepare a database operation (query or command) and then
execute it against all parameter sequences or mappings
found in the sequence seq_of_parameters.
are there any plans to update the api to allow an iterable instead of
a sequence?
--
Hi folks,
I’m writing a program with a component that has to connect to IRC and
call a callback function in case of a message. I tried using
python-irclib for doing this, and executing the code in the main thread
worked fine. When I moved the code part into the run method of a
threading.Thread c
On 12 oct, 15:47, Antoine Pitrou wrote:
> On Tue, 12 Oct 2010 06:28:23 -0700 (PDT)
>
>
>
> Python uses the host's endianness by default. So, on a little-endian
> machine, utf-16 and utf-32 will use little-endian encoding.
Thanks. I never have been aware of this.
--
http://mail.python.org/mailm
Don't work this is the error what give me TypeError: sequence item 0:
expected bytes, str found, i continue trying to figure out how resolve it if
you have another idea please tellme, but thanks anyway!!!
On Mon, Oct 11, 2010 at 4:27 AM, Almar Klein wrote:
>
> On 10 October 2010 23:01, Hidura w
I have the following (now extremely minimalistic) Tkinter
application:
--- START
#! /usr/bin/python2.6
import sys
import Tkinter
import numpy
from PIL import Image, ImageTk
class Viewer(object):
def __init__(self, tk_root):
'
Ok,
I asking that to understand the correct way of python and I don't want
make mistakes.
I suppose has many tricks used by "bad guys".
--
http://mail.python.org/mailman/listinfo/python-list
just a note that the "Windows 2007 Server" is actually a "Windows 2008
Server" (despite the fact that Control Panel->System tells me it's
2007...but that's a different discussion)
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Oct 08, 2010 at 05:05:26PM -0400, Terry Reedy wrote:
> But you really seem to be saying is "What if I sometimes want the
> end points included and sometimes do not?" Slice syntax by itself
> cannot handle all four cases, only one, one was chosen and that was
> closed-open.
>
> If you want
On Tue, 12 Oct 2010 06:28:23 -0700 (PDT)
jmfauth wrote:
> I hope my understanding is correct and I'm not dreaming.
>
> When an endianess is not specified, (BE, LE, unmarked forms),
> the Unicode Consortium specifies, the default byte serialization
> should be big-endian.
>
[...]
>
> It appears
I've got a python program running on windows that executes a command-
line script. The command being executed is:
>>> print cmd
"C:\Program Files\ImageMagick-6.6.1-Q16\convert.exe" -density 72x72 "c:
\temp\choicepoint 2010-01 Stmt_p1.pdf" -quiet -region (612.0x70.0+0+0 -
blur 0x3) -region (612.0x
On Tue, 12 Oct 2010 05:40:43 -0700 (PDT)
Ashish Vyas wrote:
> Another observation that I have made is with 10 parallel HTTPS connection
> each
> trying 1 transaction per second from 2 different machines (effectively same
> load
> on server), the response time is again reducing to .17 secs.
> H
I hope my understanding is correct and I'm not dreaming.
When an endianess is not specified, (BE, LE, unmarked forms),
the Unicode Consortium specifies, the default byte serialization
should be big-endian.
See http://www.unicode.org/faq//utf_bom.html
Q: Which of the UTFs do I need to support?
and
Steven D'Aprano writes:
> On Fri, 08 Oct 2010 22:10:35 +0200, Hallvard B Furuseth wrote:
>> Jed Smith writes:
>> a = [1, 2, 3, 4, 5, 6]
>> a[::-1]
>>> [6, 5, 4, 3, 2, 1]
>>
>> Nice. Is there a trick to get a "-0" index too? Other than doing 'i or
>> len(L)' instead of 'i', that is.
>
> W
On Tue, 12 Oct 2010 23:34 +1300
Lawrence D'Oliveiro wrote:
> > Symmetry is always a tricky balance in programming languages.
>
> Is that what we used to call “orthogonality”?
No, orthogonality is something else. "Orthogonal" means "perpendicular
to." See the Wikipedia article for a discussion
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On behalf of the Python development team, I'm happy to announce the
third and final alpha preview release of Python 3.2.
Python 3.2 is a continuation of the efforts to improve and stabilize the
Python 3.x line. Since the final release of Python 2.7,
Hi All
I have made a tool for load testing of my company's web-server product. The
tool
is written using Python 3.1.
The tool basically does a HTTP or HTTPS post, gets response and parses the
response, does the response validation against expected response and maintains
the stats of average
On 2010-10-12 11:16:09 +0100, Ben said:
Angles aren't "true" units, as they are ratios of two lengths. They
are more of a "pseudo" unit.
That's right, in fact angles are pure numbers. In general any function
which raises its argument to more than one power (for instance anything
with a non-
In message
, Steve
Howell wrote:
> Symmetry is always a tricky balance in programming languages.
Is that what we used to call “orthogonality”?
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 12, 8:45 am, torb...@diku.dk (Torben Ægidius Mogensen) wrote:
> Vic Kelson writes:
> > That said, I'm having a hard time thinking of a transcendental
> > function that doesn't take a dimensionless argument, e.g. what on
> > earth would be the units of ln(4.0 ft)?
>
> Trigonometric functions
On Mon, Oct 11, 2010 at 05:35:21AM -0700, Ethan Furman wrote:
> Antoon Pardon wrote:
> >On Sat, Oct 09, 2010 at 01:37:03AM +, Steven D'Aprano wrote:
> >
> >>On Fri, 08 Oct 2010 15:53:17 -0400, Jed Smith wrote:
> >>
> >
> >I stand by that claim. I think it was fairly obvious that what I meant
>
John Nagle, 11.10.2010 22:01:
It may be time to standardize "RPython".
There are at least three implementations of "RPython" variants - PyPy,
Shed Skin, and RPython for LLVM. The first two are up and running.
The thing is, while RPython can be seen as a general purpose programming
language,
1 - 100 of 101 matches
Mail list logo