Bobby Roberts a écrit :
On Sep 23, 1:23 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
Bobby Roberts a écrit :
hi group. I'm new to python and need some help and hope you can
answer this question. I have a situation in my code where i need to
create a file on the server and write to it.
Drake a écrit :
I have a general question of Python style, or perhaps just good
programming practice.
My group is developing a medium-sized library of general-purpose
Python functions, some of which do I/O. Therefore it is possible for
many of the library functions to raise IOError Exceptions. T
Neal Becker a écrit :
(snip)
I find I'm often tripped up by:
x = Y (lots of constructor arguments) if something ...
on first glance, I don't notice the if.
Indeed. The inline conditionnal syntax is obviously innappropriate here.
It's just like list-comprehensions : just fine for simple
Phil Cataldo a écrit :
Hi,
I just found this new? python web framework
(http://pypi.python.org/pypi/nagare/0.1.0).
Does anybody know or use it ?
First time I hear of it, but it looks interesting (note : Stackless
continuation-based framework). Thanks for the link.
--
http://mail.python.org
On Wed, Sep 24, 2008 at 12:56 PM, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> Phil Cataldo a écrit :
>
>> Hi,
>>
>> I just found this new? python web framework
>> (http://pypi.python.org/pypi/nagare/0.1.0).
>>
>> Does anybody know or use it ?
>>
>
> First time I hear of it, but it looks inter
Hi,
In GUI2exe, I'd like to create a project that is different from an existing
project only in a few details (e.g., the location of the 'dist' directory).
Is there a way to copy a current project - so it would serve as a basis for a
new project ?
Bye,
Ron.
--
http://mail.python.org/mailman/lis
On 9月24日, 午後3:39, [EMAIL PROTECTED] wrote:
> my code:
> main.cpp
> #include
>
> int main(int argc, char **argv)
> {
> Py_Initialize();
>
> FILE *file_1 = fopen("a2l_reader.py","r+");
> PyRun_SimpleFile(file_1,"a2l_reader.py");
>
> Py_Finalize();
>
> }
>
> compile under windows using MinGW:
> g++ m
On Tue, 23 Sep 2008 15:23:12 +0200, sturlamolden <[EMAIL PROTECTED]>
wrote:
[...]
Would it be possible to post this text to some "persistent" web page with
(links to) the code you wrote in both languages? This would be a very
interesting resource for people experiencing some resistence when
Hi,
I would like to look at third party modules which are python 3.0 ready.
>
I think that until the release version of python 3.0 is out, no one will
release
something. Python 3k is due in October this year, so only a few weeks from
now. I would also like to know when we can expect the major 3
On Sep 24, 9:52 am, Neal Becker <[EMAIL PROTECTED]> wrote:
> In hindsight, I am disappointed with the choice of conditional syntax. I
> know it's too late to change. The problem is
>
> y = some thing or other if x else something_else
>
> When scanning this my eye tends to see the first phrase an
On Sep 23, 4:25 pm, Drake <[EMAIL PROTECTED]> wrote:
> The
> question is: should the library function be able to just dump to
> sys.exit() with a message about the error (like "couldn't open this
> file"),
I'm kind of curious what your library is for. Is it something where
exiting the app be the
josh logan <[EMAIL PROTECTED]> writes:
> It looks like __cmp__ is still in the documentation, and it seems to
> work somewhat in Python 3.0rc1. Here is the link to the documnetation
> http://docs.python.org/dev/3.0/reference/datamodel.html#object.__cmp__
Thanks, I've now filed a bug report for th
Terry Reedy <[EMAIL PROTECTED]> wrote:
> The new fractions module acts differently, which is to say, as most
> would want.
>
> >>> from fractions import Fraction as F
> >>> F(1) == 1.0
> True
> >>> F(1.0)
> Traceback (most recent call last):
> File "", line 1, in
> F(1.0)
>
Hi all,
I am looking for a python graphical library that would allow me to
draw borderless windows, sort of like a notification frame showing up.
I would also like to be able to make it transparent but I suppose that
is very much desktop manager dependent.
Thank you very much for the help.
ET
--
On Sep 22, 4:02 am, Al Kabaila <[EMAIL PROTECTED]> wrote:
> 1. Is there any interest in matrix algebra "for the masses" (I mean interest
> in a wrapper for a subset of functions of the packages with a unified
> simple syntax)?
I wouldn't since I do pretty advanced stuff and I'm happy to use numpy
On 24 Sep., 09:26, Bruno Desthuilliers wrote:
> Phil Cataldo a écrit :
>
> > Hi,
>
> > I just found this new? python web framework
> > (http://pypi.python.org/pypi/nagare/0.1.0).
>
> > Does anybody know or use it ?
>
> First time I hear of it, but it looks interesting (note : Stackless
> continuat
Almar Klein wrote:
Can
anyone say something about that? Will it take a month, a year?
A year or more is realistic. A couple of years is even more realistic.
Large projects are moving slowly and Python 3.0 introduces some heavy
changes. The separation of text (unicode str) and data (bytes) tak
In message
<[EMAIL PROTECTED]>, Bobby
Roberts wrote:
> evidently the environ dictionary is off limits on our server.
Why?
> It can't
> be that tough in python to get the current complete url being viewed.
> It's a snap in asp(which is my background).
Unless, of course, the relevant information
On Sep 23, 7:31 pm, Terry Reedy <[EMAIL PROTECTED]> wrote:
> Decimal is something of an anomaly in Python because it was written to
> exactly follow an external standard, with no concessions to what would
> be sensible for Python. It is possible that that standard mandates that
> Decimals not comp
In message <[EMAIL PROTECTED]>, Terry
Reedy wrote:
> From this viewpoint, objecters would instead have to argue that it is
> wrong to have such implicit calls and that programmers should have to
> put them in explicitly.
But then again, you want to avoid unexpected restrictions like in Java,
whe
In message <[EMAIL PROTECTED]>, Grant
Edwards wrote:
> On 2008-09-23, Blubaugh, David A. <[EMAIL PROTECTED]> wrote:
>
>> I was wondering if anyone has come across the issue of not being allowed
>> to have the following within a Python script operating under Linux:
>>
>> time.sleep(0.0125)
>
> No
In message
<[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> For example say - I am creating multiple desktops for windows -
> and I want to give every application the capability to be moved across
> different desktops.
But doesn't the desktop environment/window manager that provides the
multi
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> for example:
> #include
>
> void exec_python_code(int arg, char** argv)
> {
> Py_Initialize();
> Py_Main(argc,argv);
> Py_Finalize();
> }
>
> What I would like to know is:
> after Py_Main(argc,argv);
>
> How do I get every v
Hello,
I have problems making python on CentOS 5.
Seems that can not find something. I can not find the problem.
Where is the problem?
> case $MAKEFLAGS in \
> *-s*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared'
> OPT='-DNDEBUG -fwrapv -march=i686 -mmmx -msse -msse2 -msse3 -O3 -
In message
<[EMAIL PROTECTED]>, Sam
wrote:
> So how can I set sys.stdout.encoding so it's UTF-8 when piped through
> cat (or anything else).
>
> I tried assigning to it, but no dice.
You could try wrapping it in a file object that does explicit encoding
translation, using codecs.EncodedFile
On Sep 24, 7:31 pm, [EMAIL PROTECTED] wrote:
> Hi all,
>
> I am looking for a python graphical library that would allow me to
> draw borderless windows, sort of like a notification frame showing up.
> I would also like to be able to make it transparent but I suppose that
> is very much desktop mana
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> my code:
> main.cpp
> #include
>
> int main(int argc, char **argv)
> {
> Py_Initialize();
>
> FILE *file_1 = fopen("a2l_reader.py","r+");
> PyRun_SimpleFile(file_1,"a2l_reader.py");
>
> Py_Finalize();
> }
>
> compile under windows using
Not commercial distribution, but an academic kind of sorts - giving
the exe file to coleagues, so they can use it in their work. Giving
.py file is not an option, since due to centralized computer
maintenance, they don't (and cannot) have installed python (except the
ones that bring their own compu
On Sep 24, 2:54 am, "Barak, Ron" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In GUI2exe, I'd like to create a project that is different from an existing
> project only in a few details (e.g., the location of the 'dist' directory).
> Is there a way to copy a current project - so it would serve as a basis
On Sep 22, 10:02 am, Al Kabaila <[EMAIL PROTECTED]> wrote:
> There are several packages for matrix algebra. I tried Numeric, numpy and
> numarray. All three are very good, but each uses different syntax.
That argument might have been valid 3 years ago, but as already said
by others, Numeric and Num
On 2008-09-24, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Tue, 23 Sep 2008 13:25:26 -0700, Drake wrote:
>
>> I have a general question of Python style, or perhaps just good
>> programming practice.
>>
>> My group is developing a medium-sized library of general-purpose Python
>> functions, som
Thanks for the reply, I found out the problem was occurring later on in the
script. The regexp works well.
-Original Message-
From: Lawrence D'Oliveiro [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2008 6:51 PM
To: python-list@python.org
Subject: Re: Regex Help
In message <[EMA
On Sep 24, 9:17 am, Marin Brkic <[EMAIL PROTECTED]> wrote:
> Not commercial distribution, but an academic kind of sorts - giving
> the exe file to coleagues, so they can use it in their work. Giving
> .py file is not an option, since due to centralized computer
> maintenance, they don't (and cannot
On Sep 24, 8:17 am, Marin Brkic <[EMAIL PROTECTED]> wrote:
> Not commercial distribution, but an academic kind of sorts - giving
> the exe file to coleagues, so they can use it in their work. Giving
> .py file is not an option, since due to centralized computer
> maintenance, they don't (and cannot
Hi,
I've a problem updating my variable in a module.
In my main program, I call a function from mod1 to update a variable of mod1
As soon as I update this varibale, I check it back in the mail program but
it the variable from mod1 does not get updated.
main Program:
import mod1
2008/9/24 Bruno Desthuilliers <[EMAIL PROTECTED]>:
> Drake a écrit :
>> many of the library functions to raise IOError Exceptions. The
>> question is: should the library function be able to just dump to
>> sys.exit() with a message about the error (like "couldn't open this
>> file"),
>
> Arrghll !
I am creating the window manager for multiple desktops :)
Anyways, i got one answer in nabble which I feel is the best option -
even though I am just investigating on how to do it.
Please find below -
James Matthews wrote:
>
> Hi all,
>I am trying to modify the system menu of all the applicati
2008/9/24 <[EMAIL PROTECTED]>:
> Hi,
>
> I've a problem updating my variable in a module.
>
> In my main program, I call a function from mod1 to update a variable of mod1
> As soon as I update this varibale, I check it back in the mail program but
> it the variable from mod1 does not get updated.
Hi Terry
Oops i never realised the mistake i have commited
I apologise
(i thought changing the subject line would make a new thread)
I apologise
(I thought Python programmers were smart and they did know what LINQ was)
I don't apologise
( i dont apologise for the third one not sounding cocky her
Hi
Well wouldn't it be a lot easier to query and join a xml source with a
relational source with LINQ capabilites in Python.
Hmm what am i missing here is there a site that takes all LINQ examples and
does them using list comprehensions and makes them sound easy ?
wasn't python supposed to ma
Thanks Tim,
Yes, I mean 'mod' only.
But this does not work for me
On Wed, Sep 24, 2008 at 4:19 PM, Tim Rowe <[EMAIL PROTECTED]> wrote:
> 2008/9/24 <[EMAIL PROTECTED]>:
> > Hi,
> >
> > I've a problem updating my variable in a module.
> >
> > In my main program, I call a function from mod1 to u
Hi Tom
This is what i like and feel of the Python programmers smarter then every other
langauge i know of.
But i am not comfortable with your second statement XML i never need it
one day everybody would need it.
regards
Hrishy
--- On Tue, 23/9/08, Thomas G. Willis <[EMAIL PROTECTED]> wrote:
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> Presumably somebody has suggested that calling sys.exit() was a good
> option. I'm curious to what possible reason they could give for such a
> poor choice.
Grant Edwards <[EMAIL PROTECTED]> wrote:
>Same here. It's like an automotive engine controls
On Wed, Sep 24, 2008 at 11:25 AM, hrishy <[EMAIL PROTECTED]> wrote:
> Hi Tom
>
> This is what i like and feel of the Python programmers smarter then every
> other langauge i know of.
>
> But i am not comfortable with your second statement XML i never need it
> one day everybody would need it.
>
>
Hi,
I have been using the following code for over a year in one of my
programs:
f = urllib2.urlopen('https://www.companywebsite.com/somestring')
It worked great until the middle of the afternoon yesterday. Now I get
the following traceback:
Traceback (most recent call last):
File "", line 1,
>I take it you do have a *really* good reason to use a global?
Please suggest some way other than using global. I want to get rid of it
--
Regards,
Rajat
--
http://mail.python.org/mailman/listinfo/python-list
On 2008-09-24, Ross Ridge <[EMAIL PROTECTED]> wrote:
> Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>> Presumably somebody has suggested that calling sys.exit() was a good
>> option. I'm curious to what possible reason they could give for such a
>> poor choice.
>
> Grant Edwards <[EMAIL PROTECTED]
On Sep 24, 6:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > my code:
> > main.cpp
> > #include
>
> > int main(int argc, char **argv)
> > {
> > Py_Initialize();
>
> > FILE *file_1 = fopen("a2l_reader.py","r+");
> > PyRun_SimpleFile(file_
SEXY story. The cute doorman gives me an enigmatic look when I say I'm
here to see you. I am not sure if maybe he thinks I am your daughter.
You are not quite old enough for that, I am not quite young enough -
but we are pretty close. Am I wrong for thinking that's hot?
Definitely. I think... http
Hi all,
I have developed a set python libraries that provide several scientific
methods to analyse and visualize certain type of biological data. This
libraries are based on many external python modules, such as python-mysql
python-sip or python-qt4. I use GNU/linux to develop my tools and I foun
I am working on a python webcrawler, that will extract all links from an
html page, and add them to a queue, The problem I am having is building
absolute links from relative links, as there are so many different types of
relative links. If I just append the relative links to the current url, some
w
2008/9/24 Jaime Huerta Cepas <[EMAIL PROTECTED]>:
> Hi all,
>
> I have developed a set python libraries that provide several scientific
> methods to analyse and visualize certain type of biological data. This
> libraries are based on many external python modules, such as python-mysql
> python-sip
At 2008-09-24T16:25:02Z, "Support Desk" <[EMAIL PROTECTED]> writes:
> I am working on a python webcrawler, that will extract all links from an
> html page, and add them to a queue, The problem I am having is building
> absolute links from relative links, as there are so many different types of
> r
For those who are interested:
I've updated the cookbook tutorial on the kd-tree:
http://scipy.org/Cookbook/KDTree
It now also includes parallel search for multicore CPUs
(multiprocessing standard module). Even if you are not genuinely
interested in kd-trees, it shows how to do parallel processi
Mark Dickinson wrote:
On Sep 23, 7:31 pm, Terry Reedy <[EMAIL PROTECTED]> wrote:
Decimal is something of an anomaly in Python because it was written to
exactly follow an external standard, with no concessions to what would
be sensible for Python. It is possible that that standard mandates that
Asun Friere <[EMAIL PROTECTED]> writes:
> A canonical use of the conditional operator is in
> pluralising words, (eg. '%s dollar' % n + 's' if n!=1 else '').
That fails for n == 1. So what is best?
for i in range(4):
print '%d thing' % i + ('s' if i != 1 else '')
for i in range(4):
p
On Tue, 23 Sep 2008 21:22:08 -0500, Michael Mabin <[EMAIL PROTECTED]> wrote:
Is there any consensus on what the best lightweight web-server is? Or
rather would Twisted be a better choice to choose as a framework that allows
me to serve html or xml data for light webservices. Or is CherryPy just
[EMAIL PROTECTED] wrote:
Hi,
I've a problem updating my variable in a module.
In my main program, I call a function from mod1 to update a variable of mod1
As soon as I update this varibale, I check it back in the mail program
but it the variable from mod1 does not get updated.
main Program:
On Wed, 24 Sep 2008 07:32:56 -0700 (PDT), [EMAIL PROTECTED] wrote:
>If you don't create a monolithic EXE, then most of the extra files
>(that make up the bulk of the size) can be shared between other
>converted scripts. That is, if you convert foo.py, and send the bundle
>to your colleague, then c
I have updated the cookbook entry for yesterday to also include
parallel processing for large data sets. Even if you're not interested
in kd-trees, it is a good example of what the new multiprocessing
standard module can do. There are still people being scared by the
GIL, thinking it prevents Pyth
On Wed, Sep 24, 2008 at 10:17 AM, Marin Brkic
<[EMAIL PROTECTED]> wrote:
> As far as I know py2exe is the only option which can do such a thing
> (make exe files from scripts). Is there a way to make those exe files
> a little smaller (for a small script they easily go up to 5-10 mb).
An alternati
On Sep 24, 5:22 pm, hrishy <[EMAIL PROTECTED]> wrote:
> Well wouldn't it be a lot easier to query and join a xml source with a
> relational source with LINQ capabilites in Python.
>
> Hmm what am i missing here is there a site that takes all LINQ examples and
> does them using list comprehension
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> Presumably somebody has suggested that calling sys.exit() was a good
> option. I'm curious to what possible reason they could give for such a
> poor choice.
Grant Edwards <[EMAIL PROTECTED]> wrote:
>Same here. It's like an automotive engine controls
sturlamolden:
>No, because Python already has list comprehensions and we don't need the XML
>buzzword.<
LINQ is more than buzzwords. Python misses several of those features.
So maybe for once the Python crowd may recognize such C# feature as
much better than things present in Python.
Said that, I
[EMAIL PROTECTED] wrote:
sturlamolden:
No, because Python already has list comprehensions and we don't need the XML
buzzword.<
LINQ is more than buzzwords. Python misses several of those features.
So maybe for once the Python crowd may recognize such C# feature as
much better than things pres
Kirk,
That's exactly what I needed. Thx!
-Original Message-
From: Kirk Strauser [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2008 11:42 AM
To: python-list@python.org
Subject: Re: More regex help
At 2008-09-24T16:25:02Z, "Support Desk" <[EMAIL PROTECTED]> writes:
> I am w
Todd, this is great! Thanks for your work on this. I've been using
your extension for awhile, successfully creating little apps. Your
gui_app template has been a huge help in advancing my understanding of
how things fit together...takes some of the guesswork out. :) Thanks
again,
-j
On Sep 16
On Wed, Sep 24, 2008 at 2:11 PM, <[EMAIL PROTECTED]> wrote:
> sturlamolden:
>>No, because Python already has list comprehensions and we don't need the XML
>>buzzword.<
>
> LINQ is more than buzzwords. Python misses several of those features.
> So maybe for once the Python crowd may recognize such
Ross Ridge a écrit :
(snip)
Grant Edwards <[EMAIL PROTECTED]> wrote:
Same here. It's like an automotive engine controls designer
asking if a failed O2 sensor should turn on the check engine
light or blow up the car.
Ross Ridge <[EMAIL PROTECTED]> wrote:
No, it's more like asking if the fail
Greetings,
I've been trying to figure out if it's possible to attach a Python
script to an action via Mac OSX Leopard's File Actions system. I'm
wanting to call a Python script every time a file is added to the
monitored folder. Just adding a .py file doesn't seem to do anything
at all, and I can'
Start saving, best online pharmacy here
http://fjmgilbh.zarubanlo.net/?acdekbhxwvrsyfjmzchcmgil
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 24, 11:05 am, "Aaron \"Castironpi\" Brady"
<[EMAIL PROTECTED]> wrote:
> On Sep 24, 6:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
>
>
>
> > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > my code:
> > > main.cpp
> > > #include
>
> > > int main(int argc, char **argv)
> > > {
> >
Start saving, best online pharmacy here
http://defgjkmahl.nufehrurald.net/?bciahlxwvrsydefgjkzchcmm
--
http://mail.python.org/mailman/listinfo/python-list
hi group.
I'm new to python but a veteran at programming. This one has me
stumped. I have a simple contact form which the user fills out. The
email is sent to the site user as well and it is delivered with the
content in the body of the email as well in nice order. I have
modified my code to a
[EMAIL PROTECTED] wrote:
> sturlamolden:
>> No, because Python already has list comprehensions and we don't need the XML
>> buzzword.<
>
> LINQ is more than buzzwords. Python misses several of those features.
> So maybe for once the Python crowd may recognize such C# feature as
> much better than
hi group.
I'm new to python but a veteran at programming. This one has me
stumped. I have a simple contact form which the user fills out. The
email is sent to the site user as well and it is delivered with the
content in the body of the email as well in nice order. I have
modified my code to a
I just want to be able to write simple scripts to serve xml data and don't
want the headache of administrating an apache server. I want to collect
some data from some of our production servers and share them with a
sharepoint website.
On Wed, Sep 24, 2008 at 12:29 PM, Jean-Paul Calderone <[EMAIL
hrishy a écrit :
(snip)
I apologise
(I thought Python programmers were smart and they did know what LINQ was)
Is there really any relation between "being smart" and knowing anything
about the latest MS fad ?
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 24, 9:11 pm, [EMAIL PROTECTED] wrote:
> In the meantime where I
> live lot of people will keep using C# instead of Python and CLisp,
> natural selection at work indeed.
Please explain to me what Linq can do that Python does not. Put you
emphasis on why this can't be done with a library, an
r0g <[EMAIL PROTECTED]> wrote:
> OK so maybe I'm being naive here but it looks to me like this new
> paradigm's big idea is to use a python + SQL type syntax to access data
> in random objects. Big whoop. It's not that difficult to write a
> generators that wraps XML files and databases is it?
>
Hi,
I have a rather large list structure with tuples contained in them (it's
part of a specification I received) looks like so:
[(x1,y1,r1,d1),(x2,y2,r2,d2)...]
The list can range from about 800-1500 tuples in size and I'm currently
sorting it with this:
a_list.sort(lambda a, b: cmp(b[3], a[3]))
On Wed, Sep 24, 2008 at 2:02 PM, David Di Biase <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a rather large list structure with tuples contained in them (it's
> part of a specification I received) looks like so:
> [(x1,y1,r1,d1),(x2,y2,r2,d2)...]
>
> The list can range from about 800-1500 tuples in
Grant Edwards <[EMAIL PROTECTED]> wrote:
> Same here. It's like an automotive engine controls designer
> asking if a failed O2 sensor should turn on the check engine
> light or blow up the car.
Ross Ridge <[EMAIL PROTECTED]> wrote:
> No, it's more like asking if the failed sensor should turn on
On Sep 24, 10:59 pm, Duncan Booth <[EMAIL PROTECTED]>
wrote:
> Simple LINQ expressions like the one you gave map easily to Python list
> comprehensions. What Microsoft have done though is provide a consistent
> implementation which allows you to write complex SQL like expressions which
> will work
Chris Rebert wrote:
> On Wed, Sep 24, 2008 at 2:02 PM, David Di Biase <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I have a rather large list structure with tuples contained in them (it's
>> part of a specification I received) looks like so:
>> [(x1,y1,r1,d1),(x2,y2,r2,d2)...]
>>
>> The list can range f
On Sep 24, 3:17 pm, Marin Brkic <[EMAIL PROTECTED]> wrote:
> Has anyone had a situation like this ? All your inputs and suggestions
> are more then welcomed.
Send them the .py file and confirm that it does work. The lack of
Python can be blamed on the incompetent BOFH. Chances are the
situation w
> Why, yes, I am wearing my BOFH hat. How could you tell?
>
> --
> Tim Rowe
evil, but I think you may be a BSEFH, not a BOFH.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
after hearing a lot about decorators and never actually using one I have
decided to give it a try. My particular usecase is that I have class that
acts as a proxy to other classes (i.e. passes messages along to those
classes) however hand-coding this type of class is rather tedious, so I
decid
When you say slightly, is it enough to make a difference? Why would
getitems be faster even - not sure I can think why...
Sent from my iPhone
On 24-Sep-08, at 5:46 PM, Matt Nordhoff <[EMAIL PROTECTED]>
wrote:
Chris Rebert wrote:
On Wed, Sep 24, 2008 at 2:02 PM, David Di Biase <[EMAIL PROT
On Sep 24, 4:59 pm, Duncan Booth <[EMAIL PROTECTED]> wrote:
...
> I haven't yet had occasion to use LINQ in anger yet, so I have no idea
> whether its an idea to love or to hate. I do think it is good that C# has
> effectively sprouted list comprehensions (not to mention anonymous types
> and type
[EMAIL PROTECTED] schrieb:
Greetings,
I've been trying to figure out if it's possible to attach a Python
script to an action via Mac OSX Leopard's File Actions system. I'm
wanting to call a Python script every time a file is added to the
monitored folder. Just adding a .py file doesn't seem to d
On Sep 24, 12:31 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Greetings,
>
> I've been trying to figure out if it's possible to attach a Python
> script to an action via Mac OSX Leopard's File Actions system. I'm
> wanting to call a Python script every time a file is added to the
> monitore
On Wed, 24 Sep 2008 14:50:56 -0700 (PDT), sturlamolden
<[EMAIL PROTECTED]> wrote:
>On Sep 24, 3:17 pm, Marin Brkic <[EMAIL PROTECTED]> wrote:
>
>> Has anyone had a situation like this ? All your inputs and suggestions
>> are more then welcomed.
>
>Send them the .py file and confirm that it does wo
On Sep 24, 11:46 am, Mike Driscoll <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have been using the following code for over a year in one of my
> programs:
>
> f = urllib2.urlopen('https://www.companywebsite.com/somestring')
>
> It worked great until the middle of the afternoon yesterday. Now I get
> the
On 9月25日, 午前1:05, "Aaron \"Castironpi\" Brady" <[EMAIL PROTECTED]>
wrote:
> On Sep 24, 6:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
>
>
>
> > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > my code:
> > > main.cpp
> > > #include
>
> > > int main(int argc, char **argv)
> > > {
> > >
A Python walks into a bar and orders a complex data structure.
Bartender says, "One line or two?"
--
http://mail.python.org/mailman/listinfo/python-list
On 2008-09-24, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
> hrishy a écrit :
> (snip)
>
>
>> I apologise
>> (I thought Python programmers were smart and they did know what LINQ was)
>
> Is there really any relation between "being smart" and knowing anything
> about the latest MS fad ?
God, I
I have a bunch of processes to run and each one needs its own working
directory. I'd also like to know when all of the processes are
finished.
(1) First thought was threads, until I saw that os.chdir was process-
global.
(2) Next thought was fork, but I don't know how to signal when each
child is
On Sep 25, 3:16 am, Pete Forman <[EMAIL PROTECTED]> wrote:
> Asun Friere <[EMAIL PROTECTED]> writes:
>
> > A canonical use of the conditional operator is in
> > pluralising words, (eg. '%s dollar' % n + 's' if n!=1 else '').
>
> That fails for n == 1. So what is best?
>
Sorry missing parenthese
On Sep 25, 3:16 am, Pete Forman <[EMAIL PROTECTED]> wrote:
> Asun Friere <[EMAIL PROTECTED]> writes:
>
> > A canonical use of the conditional operator is in
> > pluralising words, (eg. '%s dollar' % n + 's' if n!=1 else '').
>
> That fails for n == 1. So what is best?
>
Sorry missing paranthese
1 - 100 of 138 matches
Mail list logo