On Tue, Mar 2, 2010 at 6:46 PM, Tracubik wrote:
> and, generally
> speaking, the try..except block slow down the execution of the program or
> not?
Try...except tends to be slow when the exception does occur, fast when
it does not. Apart from that, if these
fraction-of-a-fraction-of-a-second ga
On 2010-03-02 19:59:01 -0800, Lie Ryan said:
On 03/03/2010 09:47 AM, TomF wrote:
On 2010-03-02 13:14:50 -0800, R Fritz said:
On 2010-02-28 06:31:56 -0800, sstein...@gmail.com said:
On Feb 28, 2010, at 9:28 AM, Someone Something wrote:
Is there something like cpan for python? I like pyth
Somebody suggest me a python library for processing mp3 file. Here I
don't want to play the file.
Thank you
--
http://mail.python.org/mailman/listinfo/python-list
Tracubik wrote:
> hi, i've to convert from Pascal this code:
program loop;
function generic_condition: boolean;
begin
generic_condition := random > 0.7
end;
procedure loop;
var
iterations, count, m: integer;
begin
iterations := 0;
count := 0;
m := 0;
repeat
iterations :=
On Tue, 02 Mar 2010 23:06:13 -0800, Ben Racine wrote:
> All,
>
> Say I have a string "l" ...
>
> l = 'PBUSH 201005 K 1. 1. 1. 1. 1.
> 1.'
>
> And I want to replace the first " 1." with a "500.2" and the second "
> 1." with " 5.2" ...
>
> What pythonic
Hi Tim,
Tim Roberts wrote:
> News123 wrote:
>> I created a grayscale image with PIL.
>>
>> Now I would like to write a C function, which reads a;most all pixels
>> and will modify a few of them.
>>
>> My current approach is:
>> - transform the image to a string()
>> - create a byte array huge eno
Ben Racine wrote:
> Say I have a string "l" ...
>
> l = 'PBUSH 201005 K 1. 1. 1. 1. 1.
> 1.'
>
> And I want to replace the first " 1." with a "500.2" and the second "
> 1." with " 5.2" ...
>
> What pythonic means would you all recommend?
With regular
News123 wrote:
> I am using the PIL function from_buffer in python 2.6.4
>
> I am having the line
> im2 = Image.frombuffer('L',(wx,wy),buf)
>
>
> I receive the warning:
>> ./pytest.py:63: RuntimeWarning: the frombuffer defaults may change in
> a future release; for portability, change the call
News123, 03.03.2010 01:38:
I created a grayscale image with PIL.
Now I would like to write a C function, which reads a;most all pixels
and will modify a few of them.
My current approach is:
- transform the image to a string()
- create a byte array huge enough to contain the resulting image
- ca
Am 02.03.10 21:41, schrieb mk:
Jerry Hill wrote:
Just import subprocess at the top of your module. If subprocess
hasn't been imported yet, it will be imported when your module is
loaded. If it's already been imported, your module will use the
cached version that's already been imported.
In othe
Howdy all, longtime appreciative user, first time mailer-inner.
I'm wondering if there is any support (tepid better than none) for the
following syntactic sugar:
silence:
block
->
try:
block
except:
pass
The logic here is that there are a ton of
Hi Stefan,
Stefan Behnel wrote:
> News123, 03.03.2010 01:38:
>> I created a grayscale image with PIL.
>>
>> Now I would like to write a C function, which reads a;most all pixels
>> and will modify a few of them.
>>
>> My current approach is:
>> - transform the image to a string()
>> - create a byt
On Feb 24, 9:23 pm, Andreas Waldenburger
wrote:
> Hi all,
>
> a company that works with my company writes a lot of of their code in
> Python (lucky jerks). I've seen their code and it basically looks like
> this:
>
> """Function that does stuff"""
> def doStuff():
> while not wise(up):
>
Hi Peter,
Peter Otten wrote:
> News123 wrote:
> I cannot reproduce the problem:
>
> $ cat frombuffer.py
> import sys
> import Image
> wx = 3
> wy = 2
> buf = "a"*wx*wy
> if "--fixed" in sys.argv:
> Image.frombuffer("L", (wx, wy), buf, "raw", "L", 0, 1)
> else:
> Image.frombuffer("L", (wx,
how to enable expect log in pexpect ? (similar as exp_internal in
expect)
--
http://mail.python.org/mailman/listinfo/python-list
News123, 03.03.2010 10:37:
Stefan Behnel wrote:
Take a look at Cython instead, it will allow you to access PIL's image
buffer directly, instead of copying the data. It will also simplify and
speed up your C wrapper code.
I don't know Cython. Having looked at the web site I'm not entirely
sure,
Hi all,
I have a very simple problem that seems to have no simple solution.
I have a module which is installed centrally and lives in a Python
egg. I have experimented with some minor changes to it and would like
to set my PYTHONPATH to pick up my local copy of it, but don't want to
have to figur
On Wed, Mar 3, 2010 at 1:27 AM, Oren Elrad wrote:
> Howdy all, longtime appreciative user, first time mailer-inner.
>
> I'm wondering if there is any support (tepid better than none) for the
> following syntactic sugar:
>
> silence:
> block
>
> ->
>
> try:
> ..
On Wed, Mar 3, 2010 at 12:33 AM, asit wrote:
> Somebody suggest me a python library for processing mp3 file. Here I
> don't want to play the file.
Define "processing".
Cheers,
Chris
--
http://blog.rebertia.com
--
http://mail.python.org/mailman/listinfo/python-list
Oren Elrad wrote:
Howdy all, longtime appreciative user, first time mailer-inner.
I'm wondering if there is any support (tepid better than none) for the
following syntactic sugar:
silence:
block
->
try:
block
except:
pass
The logic here is tha
> Define "processing".
getting the title, song name, etc of the file and updating in a
database
--
http://mail.python.org/mailman/listinfo/python-list
Eike Welk a écrit :
John Posner wrote:
I've updated the text at this location:
> http://cl1p.net/bruno_0301.rst/
I think this is a very useful writeup!
It would be perfect with a little bit of introduction that says:
1. - What it is: "The rough details of method look-up";
2. - which con
On Wed, Mar 3, 2010 at 10:27 AM, Oren Elrad wrote:
> Howdy all, longtime appreciative user, first time mailer-inner.
>
> I'm wondering if there is any support (tepid better than none) for the
> following syntactic sugar:
>
> silence:
> block
>
> ->
>
> try:
> .
On Wed, Mar 3, 2010 at 2:43 AM, asit wrote:
>> Define "processing".
>
> getting the title, song name, etc of the file and updating in a
> database
You'd want an ID3 tag library then. Here's one:
http://eyed3.nicfit.net/
Cheers,
Chris
--
http://blog.rebertia.com
--
http://mail.python.org/mailma
Hi!
Windows, Py2.6.
I read about Pyda and Spider. I used Pyscripter, Geany, ULIPAD, and
COntext, and Netbeans with Python; but I want to try these products.
But easy_install failed on get them:
C:\Python26\Scripts>easy_install.exe pida
Searching for pida
Reading http://pypi.python.o
To all that responded, thanks for the prompt response folks, your
criticisms are well taken. Coming from Cland, one is inculcated with
the notion that if the programmer wants to shoot himself in the foot
the language ought not to prevent that (or even should return him a
loaded magnum with the safe
Hi, is there some well-known problems with class method monkey
patching?
I've got this error message:
unbound method get_pocet_neocislovanych() must be called with Pozemok
instance as first argument (got Subjekt instance instead)
The method is declared as:
@classmethod
@monkeypatch(Dokument)
def
gentlestone a écrit :
Hi, is there some well-known problems with class method monkey
patching?
I've got this error message:
unbound method get_pocet_neocislovanych() must be called with Pozemok
instance as first argument (got Subjekt instance instead)
The method is declared as:
@classmethod
On 3. Mar., 12:57 h., gentlestone wrote:
> Hi, is there some well-known problems with class method monkey
> patching?
>
> I've got this error message:
>
> unbound method get_pocet_neocislovanych() must be called with Pozemok
> instance as first argument (got Subjekt instance instead)
>
> The metho
In article ,
Lacrima wrote:
>On Feb 16, 10:30=A0pm, Ben Finney wrote:
>> Lacrima writes:
>> > And I have already refused to write totally isolated tests, because it
>> > looks like a great waste of time.
>>
>> It only looks like that until you chase your tail in a long, fruitless
>> debugging s
Hi everybody!
The "Where is CPAN for Python?" question keeps popping up, with
answers ranging from "There is no CPAN for Python" and "We already
have CPAN for Python" (confusing).
I'm wondering - is there any work being done identifying ..
(1) what is so good with CPAN?
(2) how can it be brought
Olof Bjarnason, 03.03.2010 13:45:
The "Where is CPAN for Python?" question keeps popping up, with
answers ranging from "There is no CPAN for Python" and "We already
have CPAN for Python" (confusing).
It confuses me that you call this "confusing".
I'm wondering - is there any work being done
Oren Elrad wrote:
I'm wondering if there is any support (tepid better than none) for the
following syntactic sugar:
silence:
block
->
try:
block
except:
pass
The general response to "except: pass" from the Old Ones on the
python list (and tho
2010/3/3 Stefan Behnel :
> Olof Bjarnason, 03.03.2010 13:45:
>>
>> The "Where is CPAN for Python?" question keeps popping up, with
>> answers ranging from "There is no CPAN for Python" and "We already
>> have CPAN for Python" (confusing).
>
> It confuses me that you call this "confusing".
How come
Stefan Behnel, 03.03.2010 13:52:
Olof Bjarnason, 03.03.2010 13:45:
The "Where is CPAN for Python?" question keeps popping up, with
answers ranging from "There is no CPAN for Python" and "We already
have CPAN for Python" (confusing).
It confuses me that you call this "confusing".
I'm wonderi
Albert van der Horst writes:
> Unit testing is a concept that goes well with functions without side
> effects. If you have classes, that doesn't work so well.
How so? Unit tests are ideal for testing classes, in my experience; they
can be inspected and tested as a distinct unit of code.
> For c
On 03/03/2010 04:48 PM, Steven D'Aprano wrote:
> Or one can simply use *reason*: what justification is there for putting
> comments in strings at the top of the function? The only one I can see is
> if you are writing for an embedded device, you may want to remove doc
> strings to save memory --
Olof Bjarnason writes:
> Hi everybody!
>
> The "Where is CPAN for Python?" question keeps popping up, with
> answers ranging from "There is no CPAN for Python" and "We already
> have CPAN for Python" (confusing).
Caused in no small measure by the fact that Perl people mean at least
two distinct
On 03/03/2010 08:27 PM, Oren Elrad wrote:
> Howdy all, longtime appreciative user, first time mailer-inner.
>
> I'm wondering if there is any support (tepid better than none) for the
> following syntactic sugar:
>
> silence:
> . block
>
> ->
>
> try:
> .b
On Wed, Mar 3, 2010 at 6:47 AM, Oren Elrad wrote:
> To all that responded, thanks for the prompt response folks, your
> criticisms are well taken. Coming from Cland, one is inculcated with
> the notion that if the programmer wants to shoot himself in the foot
> the language ought not to prevent t
LinkedIn
I'd like to add you to my professional network on LinkedIn.
- RICHARD MOORE
Confirm that you know RICHARD MOORE
https://www.linkedin.com/e/isd/1117171902/jlHq1JKw/EML-invg_56/
--
(c) 2010, LinkedIn Corporation--
http://mail.python.org/mailman/listinfo/python-lis
On 3. Mar., 13:09 h., Bruno Desthuilliers wrote:
> gentlestone a écrit :
>
>
>
> > Hi, is there some well-known problems with class method monkey
> > patching?
>
> > I've got this error message:
>
> > unbound method get_pocet_neocislovanych() must be called with Pozemok
> > instance as first argum
LinkedIn
I'd like to add you to my professional network on LinkedIn.
- RICHARD MOORE
Confirm that you know RICHARD MOORE
https://www.linkedin.com/e/isd/1117171902/jlHq1JKw/EML-invg_56/
--
(c) 2010, LinkedIn Corporation--
http://mail.python.org/mailman/listinfo/python-lis
> By way of motivation, I wrote that email after copying/pasting the
> following a few times around a project until I wrote it into def
> SilentlyDelete() and its cousin SilentlyRmdir()
>
> """ code involving somefile """
> try:
> os.remove(somefile)
> except:
> ...pass # The bloody
Dear Group,
I was practising some early example of class if you can kindly let me
know where I was going wrong.
I am pasting directly from IDLE. There may be slight indentation
problem. I am using Python 2.6.4 on Windows XP Service Pack 3.
The Code and the output:
>>> class Student:
def
Gregory Ewing wrote:
MRAB wrote:
BTW, the first programming I did was in hexadecimal (C4xx was "LDI xx").
Hey, a SC/MP! That was my first programming language,
too. What sort of machine was it in?
Mk14 from Science of Cambridge, a kit with hex keypad and 7-segment
display, which I had to so
I do not see an option to save M2Crypto.X509.CRL object to a file. Am
I overlooking something?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hi Subhabrata,
s/_init_/__init__/
--
http://mail.python.org/mailman/listinfo/python-list
Gregory Ewing wrote:
Alf P. Steinbach wrote:
* Tracubik:
>
iterations=0;
count=0;
REPEAT;
iterations = iterations+1;
...
IF (genericCondition) THEN count=count+1;
...
CASE count OF:
1: m = 1
2: m = 10
3: m = 100
Uhm, is this syntactically valid Pascal? As I rec
Oren Elrad wrote:
""" code involving somefile """
try:
os.remove(somefile)
except:
...pass # The bloody search indexer has got the file and I
can't delete it. Nothing to be done.
I admit there are times I've done something similar, usually with
what I call my "int0" and "float
with my soy.py
tofu = soy.Bean()
x = tofu.pattern(44100 * 3)
creates x which is an array('h') and len(x) = 44100 * 6
this x is a stereo groove pattern that lasts 3 sec if samplerate is set to 44100
and since wave.py could save it to a_file.wav
i was wondering if
dev = ao.AudioDevice('alsa')
dev.
On 3/3/2010 5:56 AM, Bruno Desthuilliers wrote:
Eike Welk a écrit :
John Posner wrote:
I've updated the text at this location:
> http://cl1p.net/bruno_0301.rst/
I think this is a very useful writeup!
It would be perfect with a little bit of introduction that says:
1. - What it is: "The rough
On Mar 3, 1:14 am, Gregory Ewing wrote:
> MRAB wrote:
> > I suppose it depends on the complexity of the data structure. A dict's
> > methods are threadsafe, for example, but if you have a data structure
> > where access leads to multiple method calls then collectively they need
> > a lock.
>
> It
Am 03.03.2010 12:47, schrieb Oren Elrad:
""" code involving somefile """
try:
os.remove(somefile)
except:
...pass # The bloody search indexer has got the file and I
can't delete it. Nothing to be done.
You don't know that what you stated in your comment is true.
All you know is
On Mar 3, 7:45 am, Olof Bjarnason wrote:
> Hi everybody!
>
> The "Where is CPAN for Python?" question keeps popping up, with
> answers ranging from "There is no CPAN for Python" and "We already
> have CPAN for Python" (confusing).
>
> I'm wondering - is there any work being done identifying ..
>
>
On 2010-03-03, Gregory Ewing wrote:
> Grant Edwards wrote:
>
>> Just a mediocre copy of the CP/M filesystem, which was in turn
>> copied from DEC's RSTS or RSX.
>
> It was actually an improvement over CP/M's file
> system. CP/M didn't have hierarchical directories
Neither did the original MS-DOS
On Mar 2, 11:58 pm, John Bokma wrote:
> Lie Ryan writes:
> > On 03/03/2010 09:47 AM, TomF wrote:
>
> [..]
>
> >> There
> >> is also a program called cpan, distributed with Perl. It is used for
> >> searching, downloading, installing and testing modules from the CPAN
> >> repository. It's far mo
For C++ Petru Marginean once invented the "scope guard" technique (elaborated on
by Andrei Alexandrescu, they published an article about it in DDJ) where all you
need to do to ensure some desired cleanup at the end of a scope, even when the
scope is exited via an exception, is to declare a Scope
Title: ITALIA WEEKEND
Pregiatissima
Azienda,
Sottoponiamo alla Vost
Oren Elrad wrote:
Howdy all, longtime appreciative user, first time mailer-inner.
I'm wondering if there is any support (tepid better than none) for the
following syntactic sugar:
silence:
block
->
try:
block
except:
pass
The logic here is tha
Am 03.03.2010 04:51, schrieb Lie Ryan:
import itertools
def gen():
valid_chars = 'abcdefghijklmnopqrstuvwxyz'
for char in itertools.repeat(valid_chars):
yield char
gen = gen()
def gen_rand_string(length):
chars = (next(gen) for i in range(length))
return ''.join(char
On 2010-03-03, Grant Edwards wrote:
> On 2010-03-03, Gregory Ewing wrote:
>> Grant Edwards wrote:
>>
>>> Just a mediocre copy of the CP/M filesystem, which was in turn
>>> copied from DEC's RSTS or RSX.
>>
>> It was actually an improvement over CP/M's file system. CP/M
>> didn't have hierarchical
What's the compelling use case for this vs. a simple try/finally?
original_dir = os.getcwd()
try:
os.chdir(somewhere)
# Do other stuff
finally:
os.chdir(original_dir)
# Do other cleanup
--
http://mail.python.org/mailman/listinfo/python-list
Veloz wrote:
> On Mar 3, 1:14 am, Gregory Ewing wrote:
>> MRAB wrote:
>>> I suppose it depends on the complexity of the data structure. A dict's
>>> methods are threadsafe, for example, but if you have a data structure
>>> where access leads to multiple method calls then collectively they need
>>>
Hello,
Is there an IDE that supports methods categories/classification,
either through some comment convention, annotation, or any other
mean ?
Thanks in advance,
Eric Fruttero
--
http://mail.python.org/mailman/listinfo/python-list
Tim Chase wrote:
> I admit there are times I've done something similar, usually with
> what I call my "int0" and "float0" utility functions which
> roughly translate to "give me a stinkin' int/float and if
> something goes wrong, give me 0, but the return result better
> darn well be an int/float!"
Paul Rubin wrote:
Patrick Maupin writes:
One of my complaints. If you had read the document you would have
seen others. I actually have several complaints about YAML, but I
tried to write a cogent summary.
Yaml sucks, but seems to have gotten some traction regardless.
Therefore the Python
John Posner a écrit :
On 3/3/2010 5:56 AM, Bruno Desthuilliers wrote:
Eike Welk a écrit :
John Posner wrote:
I've updated the text at this location:
> http://cl1p.net/bruno_0301.rst/
I think this is a very useful writeup!
It would be perfect with a little bit of introduction that says:
1. -
* Mike Kent:
What's the compelling use case for this vs. a simple try/finally?
if you thought about it you would mean a simple "try/else". "finally" is always
executed. which is incorrect for cleanup
by the way, that's one advantage:
a "with Cleanup" is difficult to get wrong, while a "try"
Veloz wrote:
Unless I missed where you guys were going, I think we got off the main
point. The main question at hand was this: what's the best way (heck,
any way) to implement a sort of "peek" whereby a number of processes
can write results to some common "object" and some other process can
"pee
On Wed, 03 Mar 2010 14:42:00 +
MRAB wrote:
> Gregory Ewing wrote:
> Mk14 from Science of Cambridge, a kit with hex keypad and 7-segment
> display, which I had to solder together, and also make my own power
> supply. I had the extra RAM and the I/O chip, so that's 256B (including
> the memory u
On Wed, 03 Mar 2010 15:30:36 +, Grant Edwards wrote:
> I definitely remember that old MS-DOS programs would treat Ctrl-Z as an
> EOF marker when it was read from a text file and would terminate a text
> file with a Ctrl-Z when writing one.
I believe that Windows (at least up to Windows XP) st
* Steven D'Aprano:
On Wed, 03 Mar 2010 15:30:36 +, Grant Edwards wrote:
I definitely remember that old MS-DOS programs would treat Ctrl-Z as an
EOF marker when it was read from a text file and would terminate a text
file with a Ctrl-Z when writing one.
I believe that Windows (at least up
I am new to Python but have used many other (mostly dead) languages in the
past. I want to be able to process *.txt and *.csv files. I can now read that
and then change them as needed – mostly just take a column and do some if-then
to create a new variable. My problem is sorting these files:
On Wed, 03 Mar 2010 06:47:28 -0500, Oren Elrad wrote:
> With that said, let me at least offer a token defense of my position. By
> way of motivation, I wrote that email after copying/pasting the
> following a few times around a project until I wrote it into def
> SilentlyDelete() and its cousin Si
On Mar 2, 6:18 pm, Raymond Hettinger wrote:
> On Mar 2, 8:29 am, Veloz wrote:
>
> > Hi all
> > I'm looking for a queue that I can use with multiprocessing, which has
> > a peek method.
>
> > I've seen some discussion about queue.peek but don't see anything in
> > the docs about it.
>
> > Does pyt
On Wed, Mar 3, 2010 at 10:30 AM, Grant Edwards wrote:
> On 2010-03-03, Grant Edwards wrote:
> I definitely remember that old MS-DOS programs would treat
> Ctrl-Z as an EOF marker when it was read from a text file and
> would terminate a text file with a Ctrl-Z when writing one.
Actually cmd.exe
D'Arcy J.M. Cain wrote:
I keep seeing this statement but nothing to back it up. I have created
many apps that run on Python with a PostgreSQL database with a fully
normalized schema and I can assure you that database joins were never
my problem unless I made a badly constructed query or left off
On 3/3/2010 9:58 AM, John Posner wrote:
Film at 11,
John
Done -- see http://wiki.python.org/moin/FromFunctionToMethod
-John
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am looking for a SOAP 1.2 python client. To my surprise, it seems
that this does not exist. Does anybody know about this ?
The following clients seem to be both unmaintained and still
supporting only SOAP 1.1 :
- SUDS
- zsi
- SOAPy
cheers,
Philippe
--
http://mail.python.org/mailman/li
On Mar 3, 7:46 am, mk wrote:
> Paul Rubin wrote:
> > Patrick Maupin writes:
> >> One of my complaints. If you had read the document you would have
> >> seen others. I actually have several complaints about YAML, but I
> >> tried to write a cogent summary.
> > Yaml sucks, but seems to have gotte
So I'm using a multiprocessing.Manager instance in my main app and
asking it to create a dictionary, which I am providing to instances of
the application that I'm forking off with Process.
The Processes and main app will be reading/writing to the dictionary.
It's not clear to me what I have to "l
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Someone using Eric4 to program with Python3/3.1?
What can i do, because he insist to use only Python2.6.4.
Att
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECA
On Tue, Mar 2, 2010 at 10:52 PM, Gregory Ewing
wrote:
>> In article ,
>> Giorgos Tzampanakis wrote:
>>
>>> I'm implementing a CPU that will run on an FPGA. I want to have a
>>> (dead) simple assembler that will generate the machine code for
>>> me. I want to use Python for that. Are there any li
On Wed, 3 Mar 2010 15:05:54 + (UTC)
Grant Edwards wrote:
> > It was actually an improvement over CP/M's file
> > system. CP/M didn't have hierarchical directories
>
> Neither did the original MS-DOS filesystem.
I think that it always had a hierarchical file system although I am not
sure abou
Ben Finney wrote:
Olof Bjarnason writes:
Hi everybody!
The "Where is CPAN for Python?" question keeps popping up, with
answers ranging from "There is no CPAN for Python" and "We already
have CPAN for Python" (confusing).
Caused in no small measure by the fact that Perl people mean at least
On 2010-03-03 09:39 AM, Mike Kent wrote:
What's the compelling use case for this vs. a simple try/finally?
original_dir = os.getcwd()
try:
os.chdir(somewhere)
# Do other stuff
finally:
os.chdir(original_dir)
# Do other cleanup
A custom-written contex
On 3/3/2010 10:48 AM, Bruno Desthuilliers wrote:
I spotted this:
http://www.python.org/doc/faq/programming/#what-is-a-method
http://www.python.org/doc/faq/general/#why-must-self-be-used-explicitly-in-method-definitions-and-calls
Our text is probably a bit too long for a direct inclusion in t
John Posner a écrit :
On 3/3/2010 9:58 AM, John Posner wrote:
Film at 11,
John
Done -- see http://wiki.python.org/moin/FromFunctionToMethod
Done and well done !-)
Thanks again for the good job John.
PS : Do you think it could be possible to add link to this page from the
relevant FAQ ite
On 2010-03-03 09:56 AM, Alf P. Steinbach wrote:
* Mike Kent:
What's the compelling use case for this vs. a simple try/finally?
if you thought about it you would mean a simple "try/else". "finally" is
always executed. which is incorrect for cleanup
Eh? Failed execution doesn't require cleanup
Hi,
I want to use the env parameter to subprocess.Popen to pass in a path
to a location the process needs to run,
I do have a env variable already called MS_VC_PATH and I want to add
to it, not set up more in the PATH variable.
/
ms_vc_path=os.environ['MS_VC_PATH']
cl_path = ms_vc_path + '\VC
Has anyone successfully installed Scrapy ( http://scrapy.org ) on a
Mac OS X machine running 10.6.x? The Documentaion says
Mac OS X ships an libxml2 version too old to be used by Scrapy...But
doesn't say which version of OS X.. I am wondering if the version of
libxml2 is also not compatible..
--
* Robert Kern:
On 2010-03-03 09:39 AM, Mike Kent wrote:
What's the compelling use case for this vs. a simple try/finally?
original_dir = os.getcwd()
try:
os.chdir(somewhere)
# Do other stuff
finally:
os.chdir(original_dir)
# Do other cleanup
A custo
On 2010-03-03, D'Arcy J.M. Cain wrote:
> On Wed, 3 Mar 2010 15:05:54 + (UTC)
> Grant Edwards wrote:
>> > It was actually an improvement over CP/M's file
>> > system. CP/M didn't have hierarchical directories
>>
>> Neither did the original MS-DOS filesystem.
>
> I think that it always had a h
* Robert Kern:
On 2010-03-03 09:56 AM, Alf P. Steinbach wrote:
* Mike Kent:
What's the compelling use case for this vs. a simple try/finally?
if you thought about it you would mean a simple "try/else". "finally" is
always executed. which is incorrect for cleanup
Eh? Failed execution doesn't
recently i wrote a blog article on The NoSQL Movement
at http://xahlee.org/comp/nosql.html
i'd like to post it somewhere public to solicit opinions, but in the
20 min or so, i couldn't find a proper newsgroup, nor private list
that my somewhat anti-NoSQL Movement article is fitting.
So, i thought
Hello Matt
I think the problem is here:
for n in xrange(10):
outqueue.put(str(n))<-- fill the queue with 10
elements
try:
r = inqueue.get_nowait() <-- queue is still empty because
processes need some time to start
r
kredit haus , eigenheimzulage einkommensgrenzen , finanzamt
eigenheimzulage , kredit für haus kauf , kredit auf haus ,
immobilienkredit ohne , finanzierung eines hauses ,
+
+
+++ GUENSTIGE KREDITE ONLINE +++ KREDITE IM INTERNET OHNE SCHUFA
IMMOBILIEN +++
+
http://WWW.IMMOBILIEN-KREDIT-ONLINE.NL
ht
Il Wed, 03 Mar 2010 09:39:54 +0100, Peter Otten ha scritto:
> Tracubik wrote:
>
>> hi, i've to convert from Pascal this code:
>
> program loop;
>
> function generic_condition: boolean;
> begin
>generic_condition := random > 0.7
> end;
>
> procedure loop;
> var
>iterations, count, m: in
Pylint W0221 gives the warning
Argument number differs from overridden method.
Why is this a problem? I'm overriding the method to add additional
functionality.
This
def GetRays(self, angle, pt, lmbda = 0.6):
"""
"""
angle, x, y, Rays, Power = self.ARefract(angle, pt[
1 - 100 of 202 matches
Mail list logo