On Oct 10, 12:07 pm, John Nagle na...@animats.com 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
On Oct 12, 6:33 pm, Antoine Pitrou solip...@pitrou.net wrote:
On Tue, 12 Oct 2010 05:40:43 -0700 (PDT)
Ashish Vyas amvya...@yahoo.com wrote:
Another observation that I have made is with 10 parallel HTTPS connection
each
trying 1 transaction per second from 2 different machines
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
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
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
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
RG wrote:
Even an interest
rate of 0.1 radians makes sense if for some unfathomable reason you want
to visualize your interest payment as the relative length of a line
segment and an arc.
It could even be quite reasonable if you're presenting it
as a segment of a pie graph.
For what it's
On 12 oct, 22:00, John Machin sjmac...@lexicon.net wrote:
jmfauth wxjmfauth at 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.
Dann Corbit wrote:
But in a very real sense it is a measure of rotation. We could call it
a special measure, sort of like the way that e is a special base
compared to all others.
That's not the only thing that radians are useful for, though.
Consider a weight bobbing up and down on a
Jeff Hobbs jeff.ho...@gmail.com:
On Oct 12, 9:43 am, o...@dtrx.de (Olaf Dietrich) wrote:
After some somewhat heavy mouse action inside the
canvas (with the left button pressed), the application throws:
| Exception RuntimeError: 'maximum recursion depth exceeded' in bound
method
In article 8hl3grfh2...@mid.individual.net,
Gregory Ewing greg.ew...@canterbury.ac.nz wrote:
RG wrote:
Even an interest
rate of 0.1 radians makes sense if for some unfathomable reason you want
to visualize your interest payment as the relative length of a line
segment and an arc.
In article 8hl2ucfdv...@mid.individual.net,
Gregory Ewing greg.ew...@canterbury.ac.nz wrote:
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
On 2010-10-13 02:00:46 +0100, BartC said:
But what exactly *is* this number? Is it 0.25, 1.57 or 90?
Its pi/2, the same way 90% is 9/10.
I can also write 12 inches, 1 foot, 1/3 yards, 1/5280 miles, 304.8 mm
and so on. They are all the same number, roughly 1/13100 of the
polar
On Wed, Oct 13, 2010 at 12:31 AM, RG rnospa...@flownet.com wrote:
snip
This reminds me of back when I was a kid and my dad was trying to teach
me basic physics. He kept saying that the acceleration of gravity was
9.8 meters per second squared and I just couldn't wrap my brain around
what it
Philip Semanchuk wrote:
Hi Greg,
Are you talking about compiling Python itself or extensions?
I've managed to get Python itself compiled as 32 bit,
and that also seems to take care of extensions built
using 'python setup.py ...'.
I'm mainly concerned about non-Python libraries that
get
Jason Swails wrote:
Try setting the compiler itself as gcc -m32
You mean by setting CC? That's a cunning plan -- I'll
give it a try.
On a related note, according to the man page for Apple's
gcc, you're supposed to be able to use both '-arch i386'
and '-arch x86_64' at the same time and get
Gregory Ewing greg.ew...@canterbury.ac.nz writes:
Philip Semanchuk wrote:
Hi Greg,
Are you talking about compiling Python itself or extensions?
I've managed to get Python itself compiled as 32 bit,
and that also seems to take care of extensions built
using 'python setup.py ...'.
I'm
RG rnospa...@flownet.com wrote:
+---
| This reminds me of back when I was a kid and my dad was trying to teach
| me basic physics. He kept saying that the acceleration of gravity was
| 9.8 meters per second squared and I just couldn't wrap my brain around
| what it meant to square
In article z9ednf_oe76e9cjrnz2dnuvz_vedn...@speakeasy.net,
r...@rpw3.org (Rob Warnock) wrote:
RG rnospa...@flownet.com wrote:
+---
| This reminds me of back when I was a kid and my dad was trying to teach
| me basic physics. He kept saying that the acceleration of gravity was
On 12/10/2010 14:31, Chris Curvey wrote:
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
Dear Emmanuel,
Thank you for your reply.
Actually what I want to do is, at the run time I want to know the location
of a specific directory.
Then I will add some file name to the path and load the file.
The directory can reside in any drive, depending on the user.
With Warm Regards,
On Wed,
Nobody nob...@nowhere.com writes:
On Mon, 11 Oct 2010 05:42:39 -0700, Ethan Furman wrote:
If I'm catching exceptions in order to perform clean-up, I'll use a bare
except and re-raise the exception afterwards. In that situation, a bare
except is usually the right thing to do.
Wrong way to do
In article 8hl75sf6j...@mid.individual.net,
Gregory Ewing greg.ew...@canterbury.ac.nz wrote:
On a related note, according to the man page for Apple's
gcc, you're supposed to be able to use both '-arch i386'
and '-arch x86_64' at the same time and get fat binaries.
That would actually be my
On Oct 13, 11:11 am, Ashish amvya...@gmail.com wrote:
On Oct 12, 6:33 pm, Antoine Pitrou solip...@pitrou.net wrote: On Tue, 12
Oct 2010 05:40:43 -0700 (PDT)
Ashish Vyas amvya...@yahoo.com wrote:
Another observation that I have made is with 10 parallel HTTPS connection
each
trying 1
Proin molestie porttitor magna, sed ullamcorper nibh eleifend non. Ut
posuere condimentum aliquet. Sed luctus aliquam est, vitae sollicitudin
diam adipiscing non. Fusce quis nulla vitae odio pulvinar condimentum.
Curabitur hendrerit, nisl ut interdum tincidunt, ligula lorem
consectetur elit, non
Hi John,
John Nagle nagle at animats.com writes:
All attempts to make the dialect defined by CPython significantly
faster have failed. PyPy did not achieve much of a speed
improvement over CPython, and is sometimes slower.
This is not true. While PyPy is indeed sometimes slower than
Ashish Vyas, 12.10.2010 14:40:
When I send request using HTTP, I am able to reach 1 transaction (request sent,
response rcvd and validated.) per second from 20 parallel connections easily.
Average response time shown is about 0.15 seconds.
However, when I send request using HTTPS, I am seeing
On Tue, Oct 12, 2010 at 01:50:47PM -0400, Terry Reedy wrote:
That seems to be an undocumented feature. I didn't know it was possible
to use extra parameters after key in __getitem__.
They never get passed, and as I said above, should not have been
there in the version I posted. Sorry for
On Wed, 13 Oct 2010 02:12:21 -0700 (PDT)
Ashish amvya...@gmail.com wrote:
Is the client machine at 100% CPU when you do that?
With HTTP, I see client CPU at appx. 97%. However with HTTPS, it stays
at 53-55%.
And is the server at 100% CPU then?
If the client is not at 100% CPU, it
On Oct 13, 2:36 pm, Stefan Behnel stefan...@behnel.de wrote:
Ashish Vyas, 12.10.2010 14:40:
When I send request using HTTP, I am able to reach 1 transaction (request
sent,
response rcvd and validated.) per second from 20 parallel connections
easily.
Average response time shown is
In message i93mgn$i3...@news.lrz-muenchen.de, Olaf Dietrich wrote:
If I replace update() by update_idletasks(), the problem
disappears, but unfortunately, considerably fewer events
are recorded on the canvas (when connecting the pixels with
lines, the lines become much longer with
RG rnospa...@flownet.com wrote:
+---
| r...@rpw3.org (Rob Warnock) wrote:
| Write it our longhand and it's easier to grok:
| 9.8 m/s^2 == 9.8 m/(s*s) == 9.8 m/(s*s) ==
| (9.8 meters per second) per second.
| \ /
|\__ speed added __/ per
Hello everyone!
Hopefully this will interest some, I have a csv file (can be
downloaded from http://www.paulstathamphotography.co.uk/45.txt) which
has five fields separated by ~ delimiters. To read this I've been
using a csv.DictReader which works in 99% of the cases. Occasionally
however the
Hi,
I want to display help message of python script and then display help
message from the binary file (which also supports -h option):
Assumptions:
1) 'mybinary' - is linux executable file which supports '-h' and on '-
h' option it displays the help message
2) myscript.py - when passing '-h'
Here is a solution using plac (http://pypi.python.org/pypi/plac) and
not OptionParse, in the case
the Linux underlying command is grep:
import subprocess
import plac
@plac.annotations(help=('show help', 'flag', 'h'))
def main(help):
if help:
script_usage =
RG rnospa...@flownet.com wrote in message
news:rnospamon-ee76e8.18291912102...@news.albasani.net...
In article i930ek$uv...@news.eternal-september.org,
BartC b...@freeuk.com wrote:
RG rnospa...@flownet.com wrote in message
Likewise, all of the following are the same number written in
On 12 Oct, 20:21, J. Gerlach gerlach_jo...@web.de wrote:
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
On Oct 13, 3:19 pm, Antoine Pitrou solip...@pitrou.net wrote:
On Wed, 13 Oct 2010 02:12:21 -0700 (PDT)
Ashish amvya...@gmail.com wrote:
Is the client machine at 100% CPU when you do that?
With HTTP, I see client CPU at appx. 97%. However with HTTPS, it stays
at 53-55%.
And is the
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand:
In message i93mgn$i3...@news.lrz-muenchen.de, Olaf Dietrich wrote:
If I replace update() by update_idletasks(), the problem
disappears, but unfortunately, considerably fewer events
are recorded on the canvas (when connecting the pixels
On 2010-10-13 13:21:29 +0100, BartC said:
My money would have been on 0.25, based on using 1.0 for a 360°
circular angle. It seems far more attractive than using the
arbitrary-looking 6.28...
It may look arbitrary, but it isn't: it's about as non-arbitrary as it
is possible to be.
--
Hi All,
I represent Packt Publishing, the publishers of computer related books.
We are planning to publish a new book on improving the performance of Python
applications and are currently looking out for potential authors to write it.
You do not need to have any past writing experience. All
hiral wrote:
Hi,
I want to display help message of python script and then display help
message from the binary file (which also supports -h option):
Assumptions:
1) 'mybinary' - is linux executable file which supports '-h' and on '-
h' option it displays the help message
2) myscript.py - when
On Wed, 13 Oct 2010 05:27:29 -0700 (PDT)
Ashish amvya...@gmail.com wrote:
Well, CBSocket is socket implementation that calls my callback on
data.
Both my classes AsyncHTTPSConnection and AsyncHTTPConnection use it
and use it the same way ( self.sock = CBSocket(sock2) ).
The implemetation of
Am 13.10.2010 14:26, schrieb Jon Clements:
On 12 Oct, 20:21, J. Gerlach gerlach_jo...@web.de wrote:
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 example snipped]
What happens if you do
On Wed, 13 Oct 2010 14:01:39 +1300, 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
Hmmm, my ISP's news software really doesn't like it when I cross-post to
more than three newsgroups. So, trying again without comp.lang.c.
On Wed, 13 Oct 2010 02:00:46 +0100, BartC wrote:
RG rnospa...@flownet.com wrote in message
news:rnospamon-20651e.17410012102...@news.albasani.net...
In
On Tue, 12 Oct 2010 22:13:26 -0700, RG wrote:
The formula: circumference = 2 x pi x radius is taught in primary
schools, yet it's actually a very difficult formula to prove!
What's to prove? That's the definition of pi.
Incorrect -- it's not necessarily so that the ratio of the
Tim Bradshaw t...@tfeb.org writes:
On 2010-10-13 13:21:29 +0100, BartC said:
My money would have been on 0.25, based on using 1.0 for a 360°
circular angle. It seems far more attractive than using the
arbitrary-looking 6.28...
It may look arbitrary, but it isn't: it's about as
Hi,
is there a way how to send command from python script to the shell
(known id) from which the python script has been called? More
precisely, the goal is to exit running bash (on Linux) or cmd (on
Windows) directly from wxPython application, currently user needs to
quit wxPython application and
Hi
In the signature of of imaplib.status() method
MAP4.status(mailbox, names)
why is the 'names ' argument plural?Can I pass more than one name to
the method?
I can get correct result when I call,
imapclient.status('Inbox', (UNSEEN))
or
imapclient.status('Inbox', (RECENT))
Is it possible to
I'm trying to create multi-threaded WSGI server. But somehow I'm
getting single threaded. What am I doing wrong?
#start myapp.py
from cherrypy.wsgiserver import CherryPyWSGIServer
def my_app(environ, start_response):
print my_app
import time
for i in range(10):
print i
I'm trying to create multi-threaded WSGI server. But somehow I'm
getting single threaded. What am I doing wrong?
#start myapp.py
from cherrypy.wsgiserver import CherryPyWSGIServer
def my_app(environ, start_response):
print my_app
import time
for i in range(10):
print i
Hello,
Apologies for spamming the list.
I didn't realize the publisher sent the email to the list. I thought it
was a private email and replied to it instantly.
--
With warm regards,
Sudheer. S
Personal home page - http://sudheer.net | Tech Chorus -
http://techchorus.net
Web and IT
We are planning to publish a new book on improving the performance of
Python applications and are currently looking out for potential
authors to write it. You do not need to have any past writing
experience. All that we need from our authors is a good knowledge of
their subject, a passion to
On 2010-10-13 14:20:30 +0100, Steven D'Aprano said:
ncorrect -- it's not necessarily so that the ratio of the circumference
to the radius of a circle is always the same number. It could have turned
out that different circles had different ratios.
But pi is much more basic than that, I think.
On Wed, Oct 13, 2010 at 01:20:30PM +, Steven D'Aprano wrote:
On Tue, 12 Oct 2010 22:13:26 -0700, RG wrote:
The formula: circumference = 2 x pi x radius is taught in primary
schools, yet it's actually a very difficult formula to prove!
What's to prove? That's the definition of pi.
On Wed, 13 Oct 2010 06:30:15 -0700, Martin Landa wrote:
is there a way how to send command from python script to the shell
(known id) from which the python script has been called?
For Unix, this should work, but in general it's the wrong thing to do:
import os
import signal
On Wed, 13 Oct 2010 06:05:27 -0500, r...@rpw3.org (Rob Warnock) wrote:
Why should it?!? If you look way under the covers, I suspect that even
the c^2 in E = mc^2 is a collected term in the above sense [that is,
if I recall my classes in introductory special relativity correctly].
In special
On Oct 13, 2:18 am, o...@dtrx.de (Olaf Dietrich) wrote:
Jeff Hobbs jeff.ho...@gmail.com:
On Oct 12, 9:43 am, o...@dtrx.de (Olaf Dietrich) wrote:
After some somewhat heavy mouse action inside the
canvas (with the left button pressed), the application throws:
| Exception
On 2010-10-13, pstatham pstat...@sefas.com wrote:
Hopefully this will interest some, I have a csv file (can be
downloaded from http://www.paulstathamphotography.co.uk/45.txt) which
has five fields separated by ~ delimiters. To read this I've been
using a csv.DictReader which works in 99% of
On Oct 13, 2010, at 3:54 AM, Gregory Ewing wrote:
Philip Semanchuk wrote:
Hi Greg,
Are you talking about compiling Python itself or extensions?
I've managed to get Python itself compiled as 32 bit,
and that also seems to take care of extensions built
using 'python setup.py ...'.
I'm
RG rnospa...@flownet.com writes:
In article 8hl2ucfdv...@mid.individual.net,
Gregory Ewing greg.ew...@canterbury.ac.nz wrote:
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
Steven D'Aprano st...@remove-this-cybersource.com.au writes:
Hmmm, my ISP's news software really doesn't like it when I cross-post to
more than three newsgroups. So, trying again without comp.lang.c.
On Wed, 13 Oct 2010 02:00:46 +0100, BartC wrote:
RG rnospa...@flownet.com wrote in message
What are the various ways to search the python mailing list archives?
--
http://mail.python.org/mailman/listinfo/python-list
On 2010-10-12, Jonas H. jo...@lophus.org wrote:
Just a few pointers, looks quite good to me for a newbie :)
Thanks!
* Less action in __init__.
I'm a bit curious about this. The __init__ functions in this are, at
least for now, pretty much doing only what's needed to create the objects
from
On 2010-10-12, Chris Rebert c...@rebertia.com wrote:
2.
self.f = file(path, 'r')
if not self.f:
return None
The if here is pointless; I'm reasonably sure files are always
considered boolean true.
I actually seem to have done this wrong anyway -- I was thinking in
terms of the C-like
On 2010-10-12, MRAB pyt...@mrabarnett.plus.com wrote:
The code does require Python 2 and the use of except ... as ... requires
at least version 2.6.
Whoops.
Line 51
The __init__ method should always return None. There's no need to be
explicit about it, just use a plain return.
The real
On 2010-10-12, Hallvard B Furuseth h.b.furus...@usit.uio.no wrote:
list = map(lambda x: x.call(), self.args)
return ', '.join(list)
return ', '.join([x.call() for x in self.args])
I think I wrote that before I found out about list comprehensions. How
new are list comprehensions?
I do like
On 10/12/2010 6:01 PM, Lawrence D'Oliveiro wrote:
In message4cb4ba4e$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
On 10/11/2010 1:45 AM, sankalp srivastava wrote:
I am having difficulty in easy_installing
I use a proxy server and strange errors , like it can't fetch the
package is showing up .
the package is pyspeech ...please help me :(
I don't know if the proxy server is causing the problems , in
On Wed, Oct 13, 2010 at 9:56 AM, Seebs usenet-nos...@seebs.net wrote:
On 2010-10-12, MRAB pyt...@mrabarnett.plus.com wrote:
snip
Line 51
The __init__ method should always return None. There's no need to be
explicit about it, just use a plain return.
The real issue here is that I was
What are the various ways to search the python mailing list archives?
If you are searching for 'foo' and 'bar' you can try this in google:
foo bar site:mail.python.org inurl:python-list
Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
--
Seebs wrote:
On 2010-10-12, Hallvard B Furuseth h.b.furus...@usit.uio.no wrote:
self.type, self.name = None, None
Actually you can write self.type = self.name = None,
though assignment statements are more limited than in C.
(And I think they're assigned left-to-right.)
Python 2.5.4
On 10/10/2010 6:46 PM, Lawrence D'Oliveiro wrote:
Languages that insisted on being able to do proper compiler-level cross
checks between separately-compiled modules (e.g. Modula-2, Ada) never really
became that popular. This saddened me.
It's an sad consequence of a UNIX mindset that you
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 I don't want to
On 13/10/2010 18:17, Chris Rebert wrote:
On Wed, Oct 13, 2010 at 9:56 AM, Seebsusenet-nos...@seebs.net wrote:
On 2010-10-12, MRABpyt...@mrabarnett.plus.com wrote:
snip
Line 51
The __init__ method should always return None. There's no need to be
explicit about it, just use a plain return.
On 10/13/2010 06:48 PM, Seebs wrote:
Is it safe for me to assume that all my files will have been flushed and
closed? I'd normally assume this, but I seem to recall that not every
language makes those guarantees.
Not really. Files will be closed when the garbage collector collects the
file
In article
aanlktiknwzwmo9snnqhvmy+y6v151gxxnurxepqtk...@mail.gmail.com,
Daniel Fetchinson fetchin...@googlemail.com wrote:
What are the various ways to search the python mailing list archives?
If you are searching for 'foo' and 'bar' you can try this in google:
foo bar
On Wed, Oct 13, 2010 at 11:28 AM, Ethan Furman et...@stoneleaf.us wrote:
Seebs wrote:
On 2010-10-12, Hallvard B Furuseth h.b.furus...@usit.uio.no wrote:
self.type, self.name = None, None
Actually you can write self.type = self.name = None,
though assignment statements are more
In article slrnibboof.29uv.usenet-nos...@guild.seebs.net
Seebs usenet-nos...@seebs.net wrote:
* raising `Exception` rather than a subclass of it is uncommon.
Okay. I did that as a quick fix when, finally having hit one of them,
I found out that 'raise Error message' didn't work. :) I'm a bit
In article mailman.1673.1286992432.29448.python-l...@python.org
Jonas H. jo...@lophus.org wrote:
On 10/13/2010 06:48 PM, Seebs wrote:
Is it safe for me to assume that all my files will have been flushed and
closed? I'd normally assume this, but I seem to recall that not every
language makes
On 2010-10-13, Chris Rebert c...@rebertia.com wrote:
For future reference, the significant majority of things in Python
raise exceptions upon encountering errors rather than returning error
values of some sort.
Yes. I'm getting used to that -- it's a bit of a shift, because I'm
used to
On Wed, 13 Oct 2010 15:07:07 +0100, Tim Bradshaw wrote:
On 2010-10-13 14:20:30 +0100, Steven D'Aprano said:
ncorrect -- it's not necessarily so that the ratio of the circumference
to the radius of a circle is always the same number. It could have
turned out that different circles had
On 2010-10-13, Jean-Michel Pichavant jeanmic...@sequans.com wrote:
If you wonder about some defects reported by such linters, you can then
ask in this list why something is not that good, because it may not be
always obvious.
'pylint' is one them, pretty effective.
Okay, several questions
On 2010-10-13, Jonas H. jo...@lophus.org wrote:
Not really. Files will be closed when the garbage collector collects the
file object, but you can't be sure the GC will run within the next N
seconds/instructions or something like that. So you should *always* make
sure to close files after
On 2010-10-13, Chris Torek nos...@torek.net wrote:
Unfortunately with is newish and this code currently has to
support python 2.3 (if not even older versions).
I think it might be 2.4 and later. I'm not sure. Of course, this being
the real world, the chances that I'll be able to stick with
On Wed, Oct 13, 2010 at 12:10 PM, Seebs usenet-nos...@seebs.net wrote:
On 2010-10-13, Jean-Michel Pichavant jeanmic...@sequans.com wrote:
If you wonder about some defects reported by such linters, you can then
ask in this list why something is not that good, because it may not be
always
On Wed, Oct 13, 2010 at 12:13 PM, Seebs usenet-nos...@seebs.net wrote:
On 2010-10-13, Chris Torek nos...@torek.net wrote:
Unfortunately with is newish and this code currently has to
support python 2.3 (if not even older versions).
I think it might be 2.4 and later. I'm not sure. Of
On Wed, Oct 13, 2010 at 12:12 PM, Seebs usenet-nos...@seebs.net wrote:
On 2010-10-13, Jonas H. jo...@lophus.org wrote:
Not really. Files will be closed when the garbage collector collects the
file object, but you can't be sure the GC will run within the next N
seconds/instructions or
On 13/10/2010 20:03, Seebs wrote:
On 2010-10-13, Chris Rebertc...@rebertia.com wrote:
For future reference, the significant majority of things in Python
raise exceptions upon encountering errors rather than returning error
values of some sort.
Yes. I'm getting used to that -- it's a bit of
On Wed, 13 Oct 2010 16:17:19 +0200, Antoon Pardon wrote:
On Wed, Oct 13, 2010 at 01:20:30PM +, Steven D'Aprano wrote:
On Tue, 12 Oct 2010 22:13:26 -0700, RG wrote:
The formula: circumference = 2 x pi x radius is taught in primary
schools, yet it's actually a very difficult formula to
hi
I have some demo python code hosted on a public host that uses
subversion..and I want to modify one of the files using a patch file
handed to me by another person..How do I do this?Generally I checkout
the code and make the change and then commit again..I have never done
through patch..Can
On Wed, 13 Oct 2010 17:28:42 +0200, Pascal J. Bourguignon wrote:
But what exactly *is* this number? Is it 0.25, 1.57 or 90?
That's the wrong question. It's like asking, what exactly is the
number twenty-one -- is it one and twenty, or 21, or 0x15, or 0o25,
or 21.0, or 20.999... recurring, or
BartC b...@freeuk.com writes:
Thomas A. Russ t...@sevak.isi.edu 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
On Wed, Oct 13, 2010 at 3:36 PM, jimgardener jimgarde...@gmail.com wrote:
hi
I have some demo python code hosted on a public host that uses
subversion..and I want to modify one of the files using a patch file
handed to me by another person..How do I do this?Generally I checkout
the code and
Seebs usenet-nos...@seebs.net writes:
On 2010-10-13, Chris Rebert c...@rebertia.com wrote:
For future reference, the significant majority of things in Python
raise exceptions upon encountering errors rather than returning
error values of some sort.
Yes. I'm getting used to that -- it's
Seebs usenet-nos...@seebs.net writes:
1. If I have a message that I wish to print, it is quite possible that
message + indentation exceeds 80 lines. What's the idiomatic way to
solve this? Do I just break the string up into parts, or do I just
accept that some lines are over 80 characters, or
Steven D'Aprano st...@remove-this-cybersource.com.au writes:
On Wed, 13 Oct 2010 16:17:19 +0200, Antoon Pardon wrote:
On Wed, Oct 13, 2010 at 01:20:30PM +, Steven D'Aprano wrote:
On Tue, 12 Oct 2010 22:13:26 -0700, RG wrote:
The formula: circumference = 2 x pi x radius is taught in
I want to create a hyperlink in my excel sheet using python such that when you
click on that link (which is a file name (html file)), the file automatically
opens. This file is present in the same folder in which the python code file is
present.
I am using xlwt module
link=
Seebs usenet-nos...@seebs.net writes:
On 2010-10-13, Chris Rebert c...@rebertia.com wrote:
For future reference, the significant majority of things in Python
raise exceptions upon encountering errors rather than returning
error values of some sort.
Yes. I'm getting used to that
1 - 100 of 279 matches
Mail list logo