On 18 Sep 2010, at 09:57, k3xji wrote:
Hi,
Is there any work on porting PEP 3148 back to 2.x series. That is a
wonderful PEP, any many long-running applications are really in need
of some stable library for handling stuff in async way just as
proposed in this PEP.
I'll probably port 3148 to P
In message
<2f830099-4264-47bc-98ee-31950412a...@q21g2000prm.googlegroups.com>, cerr
wrote:
> I get a socket error "[Errno 98] Address already in use" when i try to
> open a socket that got closed before with close(). How come close()
> doesn't close the socket properly?
The usual case this hap
In message
<210f30c4-22da-405f-ad4b-cc46841ca...@p22g2000pre.googlegroups.com>, alex23
wrote:
> Lawrence D'Oliveiro wrote:
>
>> Because machine-generated
>> code has no place in a source file to be maintained by a human.
>
> Endlessly repeating your bigotry doesn't make it any more true.
The p
In article
<431250b2-391e-4a1f-ba72-08afb7159...@l25g2000prn.googlegroups.com>,
Nik Krumm wrote:
> Thanks for your help. I installed python 2.7 on my Mac OS X 10.5.8
> machine:
>
>
> nik$ python
> Python 2.7 (r27:82508, Jul 3 2010, 21:12:11)
> [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
> T
I was writing some tests for a mapping class I have made, and I decided
to run those same tests over dict and UserDict. The built-in dict passed
all the tests, but UserDict failed one:
class SimpleMappingTest(unittest.TestCase):
type2test = UserDict.UserDict
def test_iter(self):
On Fri, 17 Sep 2010 16:01:54 -0400, Andreas Waldenburger wrote:
> On Thu, 16 Sep 2010 16:20:33 -0400 AK wrote:
>
>> I also like this construct that works, I think, since 2.6:
>>
>> code = dir[int(num):] if side == 'l' else dir[:-1*int(num)]
>>
> I wonder when this construct will finally start
k3xji writes:
> Is there any work on porting PEP 3148 back to 2.x series. That is a
> wonderful PEP, any many long-running applications are really in need
> of some stable library for handling stuff in async way just as
> proposed in this PEP.
Better would be to port those applications that woul
Hi,
Is there any work on porting PEP 3148 back to 2.x series. That is a
wonderful PEP, any many long-running applications are really in need
of some stable library for handling stuff in async way just as
proposed in this PEP.
Thanks,
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 17, 10:01 pm, Andreas Waldenburger
wrote:
> On Thu, 16 Sep 2010 16:20:33 -0400 AK wrote:
>
> > I also like this construct that works, I think, since 2.6:
>
> > code = dir[int(num):] if side == 'l' else dir[:-1*int(num)]
>
> I wonder when this construct will finally start to look good.
Us
Hi all,
Thanks for your help. I installed python 2.7 on my Mac OS X 10.5.8
machine:
nik$ python
Python 2.7 (r27:82508, Jul 3 2010, 21:12:11)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
and now, when I hit TAB or paste in
> On Mon, Sep 13, 2010 at 4:02 PM, Michel Claveau - MVP
> wrote:
>> Sorry for time, but I am very busy...
>>
>> With Python + Pywin32, you can force the activation of a window (before
>> send some keys...)
>> See:
>> win32gui.SetForegroundWindow(w_handle)
>>
>> or
>> win32gui.SetActiveWindow(w_h
What kind of web-service you have in mind
2010/9/17, Ariel :
> Hi everybody, I need some help to find documentation about how to implements
> web services in python, could you help me please ???
> Regards
> Thanks in advance
> Ariel
>
--
Enviado desde mi dispositivo móvil
Diego I. Hidalgo D
On Fri, Sep 17, 2010 at 3:00 PM, Jabba Laci wrote:
> Hi,
>
> > 2) I saw this in the documentation for Destroy() -- "Frames and dialogs
> are not destroyed immediately when this function is called -- they are added
> to a list of windows to be deleted on idle time, when all the window's
> events h
On 17Sep2010 10:53, Ethan Furman wrote:
| Lie Ryan wrote:
| [snip]
| >And even dict-syntax is not perfect for accessing XML file, e.g.:
| >
| >
| >foo
| >bar
| >
| >
| >should a['b'] be 'foo' or 'bar'?
|
| Attribute style access would also fail in this instance -- how is
| this worked-aro
Hi,
> 2) I saw this in the documentation for Destroy() -- "Frames and dialogs are
> not destroyed immediately when this function is called -- they are added to a
> list of windows to be deleted on idle time, when all the window's events have
> been processed." That might be consistent with what
Hi everybody, I need some help to find documentation about how to implements
web services in python, could you help me please ???
Regards
Thanks in advance
Ariel
--
http://mail.python.org/mailman/listinfo/python-list
MRAB wrote:
On 17/09/2010 20:16, Ethan Furman wrote:
Greetings!
Does anybody have any pointers, tips, web-pages, already written
routines, etc, on parsing *.cdx files? I have found the pages on MS's
sight for Foxpro, but they neglect to describe the compaction algorithm
used, and my Google-fu h
On Thu, 16 Sep 2010 16:20:33 -0400 AK wrote:
> I also like this construct that works, I think, since 2.6:
>
> code = dir[int(num):] if side == 'l' else dir[:-1*int(num)]
>
I wonder when this construct will finally start to look good.
/W
--
INVALID? DE!
--
http://mail.python.org/mailman/li
Ethan Furman wrote:
Greetings!
Does anybody have any pointers, tips, web-pages, already written
routines, etc, on parsing *.cdx files? I have found the pages on MS's
sight for Foxpro, but they neglect to describe the compaction algorithm
used, and my Google-fu has failed to find any sites wi
On 17/09/2010 20:16, Ethan Furman wrote:
Greetings!
Does anybody have any pointers, tips, web-pages, already written
routines, etc, on parsing *.cdx files? I have found the pages on MS's
sight for Foxpro, but they neglect to describe the compaction algorithm
used, and my Google-fu has failed to
Greetings!
Does anybody have any pointers, tips, web-pages, already written
routines, etc, on parsing *.cdx files? I have found the pages on MS's
sight for Foxpro, but they neglect to describe the compaction algorithm
used, and my Google-fu has failed to find any sites with that information.
On Sep 17, 2010, at 12:05 PM, Jabba Laci wrote:
> Hi,
>
> I'd like to create a simple alarm application that shows an alarm
> window. The application should shut down automatically after 5
> seconds. The problem is the following:
> * If I keep the mouse outside of the window, the application kee
On 17 Sep, 19:59, Peter Otten <__pete...@web.de> wrote:
> Jon Clements wrote:
> > (I reckon this is probably a question for MRAB and is not really
> > Python specific, but anyhow...)
>
> > Absolutely basic example: re.sub(r'(\d+)', r'\1', 'string1')
>
> > I've been searching around and I'm sure it'
Jon Clements wrote:
> (I reckon this is probably a question for MRAB and is not really
> Python specific, but anyhow...)
>
> Absolutely basic example: re.sub(r'(\d+)', r'\1', 'string1')
>
> I've been searching around and I'm sure it'll be obvious when it's
> pointed out, but how do I use the abo
On 17/09/2010 19:21, Jon Clements wrote:
Hi All,
(I reckon this is probably a question for MRAB and is not really
Python specific, but anyhow...)
Absolutely basic example: re.sub(r'(\d+)', r'\1', 'string1')
I've been searching around and I'm sure it'll be obvious when it's
pointed out, but how
FWIW,
There is a blue text on a red background in all 4 browsers Google
Chrome 6.0.472.59, Safari 5.0.1 (7533.17.8), FireFox 3.6.9 and IE
6.0.2900.5512 with Python 2.7 serving that page on my Windows XP
SP 3 machine.
/Jean
On Sep 16, 11:59 pm, Justin Ezequiel
wrote:
> I am running "python -
i would like to track all inputs/output to modules/functions -if a
module retrieved and used files and run some analysis on them and
produced other files in return, i would like to take not of this. i.e
what i
want is to record all input sand outputs to a module. and also to
record all parameters,
Hi All,
(I reckon this is probably a question for MRAB and is not really
Python specific, but anyhow...)
Absolutely basic example: re.sub(r'(\d+)', r'\1', 'string1')
I've been searching around and I'm sure it'll be obvious when it's
pointed out, but how do I use the above to replace 1 with 11?
O
Lie Ryan wrote:
[snip]
And even dict-syntax is not perfect for accessing XML file, e.g.:
foo
bar
should a['b'] be 'foo' or 'bar'?
Attribute style access would also fail in this instance -- how is this
worked-around?
--
~Ethan~
--
http://mail.python.org/mailman/listinfo/python-lis
MRAB wrote:
On 17/09/2010 17:55, Ethan Furman wrote:
MRAB wrote:
On 16/09/2010 00:23, Ethan Furman wrote:
PS
My apologies if this shows up twice, I haven't seen my other post yet
and it's been 27 hours.
That's probably because you sent it directly to me.
That would explain it -- like I sa
On 17/09/2010 17:55, Ethan Furman wrote:
MRAB wrote:
On 16/09/2010 00:23, Ethan Furman wrote:
I need some fresh eyes, or better brains, or both!
'next_item' is a generator, but it's just calling itself and discarding
the result. I think it should be yielding the results to its caller.
That f
On 09/17/10 07:46, John Nagle wrote:
>There's a tendency to use "dynamic attributes" in Python when
> trying to encapsulate objects from other systems. It almost
> works. But it's usually a headache in the end, and should be
> discouraged. Here's why.
I personally love them, they makes XML
On 09/16/10 03:38, Ed Greenberg wrote:
> I'm pretty new to Python, but I am really enjoying it as an alternative
> to Perl and PHP.
>
> When I run the debugger [import pdb; pdb.set_trace()] and then do next
> and step, and evaluate variables, etc, when I hit 'c' for continue, we
> go to the end, j
For those of you writing web applications and having multiple web
applications in the same Python process, if you are interesting in
using Python logging to write to web-application-specific logs, you
may be interested in this link:
http://plumberjack.blogspot.com/2010/09/configuring-logging-for-w
Hi,
I'd like to create a simple alarm application that shows an alarm
window. The application should shut down automatically after 5
seconds. The problem is the following:
* If I keep the mouse outside of the window, the application keeps
running. Somehow self.Destroy() is not taken into account.
On 17/09/2010 15:59, Victor Subervi wrote:
I rebooted MySQL and it now works fine ;)
I recommend that you always list the column names explicitly to be on
the safe side:
cursor.execute('insert into Passengers (flights_id, customer_id,
name, sex , weight, price, round_trip, confirmation, l
In article <4c934f3c$0$5417$ba4ac...@reader.news.orange.fr>,
Michel Claveau - MVP wrote:
>
>SL (SilverLight) is a library/techno who give functions.
>You cannot compile Python on SL (SilverLight).
SL (Snow Leopard) is a popular platform for Python development. I
suppose this is another argument
I rebooted MySQL and it now works fine ;)
On Fri, Sep 17, 2010 at 9:26 AM, Victor Subervi wrote:
> Here's some more data:
>
> print 'insert into Passengers values (Null, %s, %s, %s, %s, %s, %s,
> %s, %s, "no", "n/a")' % (curr_flight, curr_customer, name, curr_sex,
> curr_weight, price, cu
I am attempting to compile a SWIG extension library for QuantLib
(www.quantlib.org) on Windows 7 running Python 2.6.
2.6 needs VC2008 to compile extensions yet distutils cannot find this
version, is there a way I can specify that this version be used? Currently,
when I attempt a build, I get a l
Lawrence D'Oliveiro wrote:
> Because machine-generated
> code has no place in a source file to be maintained by a human.
Endlessly repeating your bigotry doesn't make it any more true.
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 17, 1:38 am, Ned Deily wrote:
> In article <20100917052259.ga28...@cskk.homeip.net>,
> Cameron Simpson wrote:
>
>
>
>
>
> > On 16Sep2010 22:14, Ned Deily wrote:
> > | In article <20100917043826.ga21...@cskk.homeip.net>,
> > | Cameron Simpson wrote:
> > |
> > | > On 16Sep2010 09:55, mar
Here's some more data:
print 'insert into Passengers values (Null, %s, %s, %s, %s, %s, %s,
%s, %s, "no", "n/a")' % (curr_flight, curr_customer, name, curr_sex,
curr_weight, price, curr_rt, curr_confirmation)
cursor.execute('insert into Passengers values (Null, %s, %s, %s, %s,
%s, %
Hi;
I have this code:
cursor.execute('insert into Passengers values (Null, %s, %s, %s, %s,
%s, %s, %s, %s, "no", "n/a")', (curr_flight, curr_customer, name, curr_sex,
curr_weight, price, curr_rt, curr_confirmation))
Now, when I print it out, add quotes where necessary and enter it in at a
On Fri, Sep 17, 2010 at 7:21 AM, Michel Claveau - MVP
wrote:
> Hello!
>
> SL (SilverLight) is a library/techno who give functions.
> You cannot compile Python on SL (SilverLight).
>
I think the original thread meant Snow Leopard (the latest Mac OS X)
>
> @-salutations
> --
> Michel Claveau
> -
Hello!
SL (SilverLight) is a library/techno who give functions.
You cannot compile Python on SL (SilverLight).
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
On 17 September 2010 12:48, Terry Reedy wrote:
> Doubling an escape char, whatever it is, is a common convention:
> >>> print("Print a {{}} format string line this: {{{}}}".format(2))
> Print a {} format string line this: {2}
>
Wow. That's convoluted. Took me a minute to process.
Cheers,
Xav
--
On Thu, 16 Sep 2010 11:25:06 -0400, J wrote:
> OK, this is a very stupid question about a very simple topic, but Google
> is failing me this morning...
[...]
Others have already answered your question, but for future reference,
many people won't bother to read posts with a meaningless subject li
Hans a écrit :
(snip)
Maybe I did not make my question clear. I never tried python web
programing before, so I want to start from CGI.
You can indeed learn quite a few things doing raw CGI - the most
important one being why frameworks are a good idea !-)
I read something about web framewor
Hi All,
Appreciate your response.
Now I am going to use Telit Module GE865-QUAD with support for GPS and GPRS
capabilities.
It also has built-in python interpreter for developing application for the
module.
But still I have no idea which microprocessor/microcontroller to use.
Can anyone help me out
2010/9/17 MRAB :
> On 17/09/2010 00:56, Vlastimil Brom wrote:
>>
>> 2010/9/17 MRAB:
>>>
>>> On 16/09/2010 23:11, Vlastimil Brom wrote:
...
I put together some code, which works as expected, but I suspect
somehow, that there must be better ways of doing it.
Two things I
I am running "python -m SimpleHTTPServer 80" on Windows XP Pro SP 3
(Python 2.5.4)
browsing http://localhost/ using IE8 and FireFox 3.6, I get blue text
on red background
on Google Chrome 6.0 however, I get blue text on white background
placing index.htm and styles.css (see below) under IIS, I get
51 matches
Mail list logo