On Jul 12, 8:44 pm, Amir [EMAIL PROTECTED] wrote:
How do you filter keyword arguments before passing them to a function?
For example:
def f(x=1): return x
def g(a, **kwargs): print a, f(**kwargs)
In [5]: g(1, x=3)
1 3
In [6]: g(1, x=3, y=4)
TypeError: f() got an unexpected keyword
WDC wrote:
BTW I reported it, yo should too.
Lew wrote:
To whom did you report it, so that we may also report it there?
Reports made to Google Groups are a complete waste of time.
Google will only cancel *that* account (without blocking the IP
address).
It takes the spammer 30 seconds to enable
On Sat, 12 Jul 2008 16:32:25 -0400, Terry Reedy wrote:
Steven D'Aprano wrote:
On Thu, 10 Jul 2008 14:09:16 -0400, Terry Reedy wrote:
g = lambda x:validate(x)
This is doubly diseased.
First, never write a 'name = lambda...' statement since it is
equivalent to a def statement except that
Whats is the way to clone independent iterator? I can't use tee(),
because I don't know how many independent iterators I need. copy and
deepcopy doesn't work...
--pavel
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 12 Jul 2008 19:25:18 -0400, Terry Reedy wrote:
ssecorp wrote:
def fib(n):
def fibt(a, b, n):
if n = 1:
return b
else:
return fibt(b, a + b, n - 1)
if n == 0:
return 0
else:
return fibt(0, 1, n);
and can
Yosifov Pavel wrote:
Whats is the way to clone independent iterator? I can't use tee(),
because I don't know how many independent iterators I need. copy and
deepcopy doesn't work...
There is no general way. For short sequences you can store the items in a
list which is also the worst-case
In article [EMAIL PROTECTED],
Lew [EMAIL PROTECTED] wrote:
WDC wrote:
BTW I reported it, yo should too.
To whom did you report it, so that we may also report it there?
Google does not accept spam complaints. Go ahead, try it. That's why
they've been the #1 Usenet spamming tool for
On 12 Jul, 21:50, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
On 12 juil, 20:55, [EMAIL PROTECTED] wrote:
zip is (mostly) ok. What you're missing is how to use it for any
arbitrary number of sequences. Try this instead:
lists = [range(5), range(5,11), range(11, 16)]
lists
[[0, 1, 2, 3,
On Sat, Jul 12, 2008 at 11:23 PM, bukzor [EMAIL PROTECTED] wrote:
I'm connecting to an apache2 process on the same machine,
for testing. When looking at netstat, the socket is in the SYN_SENT
state, like this:
$netstat -a -tcp
tcp0 0 *:www *:* LISTEN
On Sat, 12 Jul 2008 20:49:56 -0400, Clay Hobbs wrote:
Unfortunately, the error message isn't very helpful.
But it would be helpful to tell it. If you get exceptions, always
copy'n'paste the traceback here. People might know what the exception
means and share their wisdom.
Ciao,
Hi there,
hope somebody here can help me out:
is there a command in matplotlib which resembles DISLIN's CALL
NEWPAG ?
I am trying to make multiple plots on several pages, all stored in one
ps (or pdf) document.
Cheers
-Ralf
--
http://mail.python.org/mailman/listinfo/python-list
Giampaolo Rodola' [EMAIL PROTECTED] wrote:
Having said that I'd like to understand if there are cases where
deleting or moving an element of the heap, causes heappop() to return
an element which is not the smallest one.
Yes, of course there are: any time you delete element 0 of the heap you
On 13 июл, 14:12, Peter Otten [EMAIL PROTECTED] wrote:
Yosifov Pavel wrote:
Whats is the way to clone independent iterator? I can't use tee(),
because I don't know how many independent iterators I need. copy and
deepcopy doesn't work...
There is no general way. For short sequences you can
Yosifov Pavel wrote:
On 13 июл, 14:12, Peter Otten [EMAIL PROTECTED] wrote:
Yosifov Pavel wrote:
Whats is the way to clone independent iterator? I can't use tee(),
because I don't know how many independent iterators I need. copy and
deepcopy doesn't work...
There is no general way. For
Roy Smith [EMAIL PROTECTED] writes:
ssecorp [EMAIL PROTECTED] wrote:
i dont get what you mean, if i dont do anything python will raise an
indexerror so it is an indexerror.
You wrote:
def pop(self):
try:
return self.queue.pop(0)
except:
Hello Bas,
Thanks, man! Your recipe worked on Debian system, though not on RedHat,
and I still have no idea why. :-) Anyway, I have it working. Thanks again.
I took your example files and did the following:
changed the #include edit_distance.h to #include edit_distance.c
in the
Paul McGuire [EMAIL PROTECTED] writes:
On Jul 12, 6:18 am, Bart Kastermans [EMAIL PROTECTED]
macbook.local wrote:
This uses the function:
def NoneOr (tree, mem_function, *arguments):
if tree is not None then tree.mem_function (arguments).
if tree == None:
return None
Bart Kastermans [EMAIL PROTECTED] writes:
Roy Smith [EMAIL PROTECTED] writes:
The defensive thing to do is catch exactly the exception you
expect to happen. In this case, that means IndexError.
And you do that by
except IndexError:
raise TheErrorYouNowWantToRaise
You only do that
There is http://www.codeplex.com/IronPythonStudio
--
http://mail.python.org/mailman/listinfo/python-list
Is there any python CORBA ORB that support Dynamic Invocation
Interface?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
I want to prevent some process from running. The code is in the
following. I encounter some unexpected troubles.
Probelm1: This program cannot terminate scrcons.exe and
FNPLicensingService.exe,which are system processes.
Problem2:After a while, this program will abort by error
File
On Jul 13, 12:32 am, ssecorp [EMAIL PROTECTED] wrote:
I first learned about OO from Java.
I much prefer to program in Python though.
However I am consufed about 2 things.
1. Why do I have to pass self into every method in a class? Since I am
always doing why cant this be automated or
On Sat, 12 Jul 2008 20:49:56 -0400, Clay Hobbs wrote:
Unfortunately, the error message isn't very helpful.
But it would be helpful to tell it. If you get exceptions, always
copy'n'paste the traceback here. People might know what the exception
means and share their wisdom.
Here is
On Jul 12, 9:21 am, Scott in SoCal [EMAIL PROTECTED] wrote:
In message
[EMAIL PROTECTED],
rickman [EMAIL PROTECTED] wrote:
spam
*PLONK!*
I love the way that people who plonk others feel the need to inform
everyone of it. That ranks up there with, I know what you are, but
what am I?
--
I guess I can classify my application(s) as more procedural than
anything else. But I have a question about the best way to handle
something in Python.
When given a mapping of keywords, I want to call a function based on a
certain keyword found when parsing a text file. The mapping looks like
Ben Finney [EMAIL PROTECTED] wrote:
If you are passing a sequence conceptually, then it's more Pythonic to
pass it as a sequence explicitly::
def __init__(self, items):
Call with e.g. Stack([foo, bar])
self.stack = list(items)
I don't get this. You're forcing a copy
On Jul 13, 7:56 am, Steven D'Aprano [EMAIL PROTECTED]
cybersource.com.au wrote:
On Sat, 12 Jul 2008 19:25:18 -0400, Terry Reedy wrote:
ssecorp wrote:
def fib(n):
def fibt(a, b, n):
if n = 1:
return b
else:
return fibt(b, a + b, n - 1)
Roy Smith [EMAIL PROTECTED] writes:
Ben Finney [EMAIL PROTECTED] wrote:
If you are passing a sequence conceptually, then it's more Pythonic to
pass it as a sequence explicitly::
def __init__(self, items):
Call with e.g. Stack([foo, bar])
self.stack =
Kevin McMurtrie wrote:
In article [EMAIL PROTECTED],
Lew [EMAIL PROTECTED] wrote:
WDC wrote:
BTW I reported it, yo should too.
To whom did you report it, so that we may also report it there?
Google does not accept spam complaints. Go ahead, try it. That's why
they've been the #1 Usenet
In article [EMAIL PROTECTED],
Ben Finney [EMAIL PROTECTED] wrote:
Which original class are you referring to? The one posted by the
original poster of this thread had no original list; it gathered the
positional arguments (using '*items') into an 'items' parameter, which
*doesn't exist* until
Arne Vajhøj wrote:
Google does not accept spam complaints. Go ahead, try it. That's why
they've been the #1 Usenet spamming tool for years now. What you're
seeing is the spam slowly expanding into the software development
groups. uk.railway is probably a random group added to confuse
patrol wrote:
I want to prevent some process from running. The code is in the
following. I encounter some unexpected troubles.
Probelm1: This program cannot terminate scrcons.exe and
FNPLicensingService.exe,which are system processes.
Problem2:After a while, this program will abort by error
rickman wrote:
On Jul 12, 9:21 am, Scott in SoCal [EMAIL PROTECTED] wrote:
In message
[EMAIL PROTECTED],
rickman [EMAIL PROTECTED] wrote:
spam
*PLONK!*
I love the way that people who plonk others feel the need to inform
everyone of it. That ranks up there with, I know what you are, but
On 13 Lug, 11:35, Duncan Booth [EMAIL PROTECTED] wrote:
Giampaolo Rodola' [EMAIL PROTECTED] wrote:
Having said that I'd like to understand if there are cases where
deleting or moving an element of the heap, causes heappop() to return
an element which is not the smallest one.
Yes, of
I'm busy trying to learn wxPython, and i'm trying to run the following
piece of code (its from the wxPyWiki tutorial):
import wx
ID_ABOUT = 101
ID_EXIT = 110
class MainWindow(wx.Frame):
def __init__(self,parent,id,title):
wx.Frame.__init__(self,parent,wx.ID_ANY,title,size=(200,100))
Marcus Low wrote:
Opps here is the mail again, incase my formatting is lost, can someone
explain to me why this code behaves differently when lister and
self.lister is swap remarked.
class abc :
# remark this later and unremark self.lister
lister = []
def __init__ (self, val):
teh_sAbEr wrote:
I'm busy trying to learn wxPython, and i'm trying to run the following
piece of code (its from the wxPyWiki tutorial):
import wx
ID_ABOUT = 101
ID_EXIT = 110
class MainWindow(wx.Frame):
def __init__(self,parent,id,title):
SAX XML Parse Python error message
Hi,
My first attempt at SAX, but have an error message I need help with.
I cite the error message, code, and xml below.
Be grateful if anyone can tell me what the fix is.
Thanks.
Traceback (most recent call last):
File
It seems strange, but I can't find a list of operating systems which
support / don't support threading in Python. Can anyone point me in
the right direction?
Thanks,
Sam
--
http://mail.python.org/mailman/listinfo/python-list
goldtech wrote:
My first attempt at SAX, but have an error message I need help with.
Just in case you prefer writing readable code over debugging SAX code into
existence, try lxml.
http://codespeak.net/lxml/
Here is a presentation you might find interesting.
Hi, I have just encountered a Python behaviour I wouldn't expect. Take
the following code:
class Parent:
a = 1
def m (self, param = a):
print param = %d % param
class Child (Parent):
Is there a way to get wxPython to change the visible tab in a notebook
(like I have tab 1 open but the computer will automatically change to
tab 2)?
Thanks,
Sam
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 13, 6:20 pm, Sparky [EMAIL PROTECTED] wrote:
Is there a way to get wxPython to change the visible tab in a notebook
(like I have tab 1 open but the computer will automatically change to
tab 2)?
Thanks,
Sam
look at
Is that why Komodo is so damned slow
Brian Quinlan wrote:
Kevin Walzer wrote:
Komodo is not a Python application. It is a Mozilla application that
supports Python development. Komodo is more akin to Thunderbird and
Firefox than anything else; it uses the XUL framework for rendering
So I was playing around with properties and wrote this:
class lstr(str):
def __init__(self, initval):
self._s = initval
self._len = len(self._s)
def fget_s(self):
return str(self._s)
def fset_s(self, val):
self._s = val
rickman wrote:
I love the way that people who plonk others feel the need to inform
everyone of it. That ranks up there with, I know what you are, but
what am I?
It is a matter of basic politeness and common courtesy. Without the
plonk, the killfiled poster is left hanging in the wind,
However, it appears that somehow this object prints the value of 's'
attribute without me setting any specific methods to do that:
astr = lstr('abcdef')
astr
'abcdef'
astr.swapcase()
'ABCDEF'
Correction: it doesn't really get the value from _s attribute:
astr = lstr('abcdef')
[EMAIL PROTECTED] wrote:
rickman wrote:
I love the way that people who plonk others feel the need to inform
everyone of it. That ranks up there with, I know what you are, but
what am I?
It is a matter of basic politeness and common courtesy. Without the
plonk, the killfiled poster is left
On 13 jul 2008, at 00.39, Alexnb wrote:
Hi All
I am wondering what I can do to turn a python app (.py) into a mac OSX
applicaiton (.app). Just like py2exe does. But I am also wondering
since in
your applications folder on macs it usually doesn't have an actual
folder
for each app. Rather
donald wrote:
Arne Vajhøj wrote:
Google does not accept spam complaints. Go ahead, try it. That's
why they've been the #1 Usenet spamming tool for years now. What
you're seeing is the spam slowly expanding into the software
development groups. uk.railway is probably a random group added
I am trying to write a simple python IRC client, roughly following
this guide: http://www.devshed.com/c/a/Python/Python-and-IRC/
I have written some code, which uses the same commands as the guide,
but I get this error:
Traceback (most recent call last):
File
I understand that heapq is not that efficient to implement timeouts as
I thought at first.
It would have been perfect if there were functions to remove arbitrary
elements withouth needing to re-heapify() the heap every time.
It is efficient for that - you just need to use it correctly.
To
[EMAIL PROTECTED] napisał(a):
Hi, I have just encountered a Python behaviour I wouldn't expect. Take
the following code:
class Parent:
a = 1
def m (self, param = a):
print param = %d % param
class
[EMAIL PROTECTED] wrote:
What is this *lis operation called? I am having trouble finding any
reference to it in the python docs or the book learning python.
One might call this argument unpacking, but
Language Manual / Expressions / Primaries / Calls
simply calls it *expression syntax.
If the
I started off with a module that defined a class Vehicle, and then
subclasses Car and Motorcycle.
In the Car class, for some bizarre reason, I instantiated a Motorcycle.
Please pretend that this can't be avoided for now.
Meanwhile, my Motorcycle class instantiated a Car as well.
Then I moved
Tim Cook wrote:
I guess I can classify my application(s) as more procedural than
anything else. But I have a question about the best way to handle
something in Python.
When given a mapping of keywords, I want to call a function based on a
certain keyword found when parsing a text file. The
Matthew Wilson wrote:
I started off with a module that defined a class Vehicle, and then
subclasses Car and Motorcycle.
In the Car class, for some bizarre reason, I instantiated a Motorcycle.
Please pretend that this can't be avoided for now.
Meanwhile, my Motorcycle class instantiated a Car
On Jul 13, 1:55 pm, Matthew Wilson [EMAIL PROTECTED] wrote:
I started off with a module that defined a class Vehicle, and then
subclasses Car and Motorcycle.
In the Car class, for some bizarre reason, I instantiated a Motorcycle.
Please pretend that this can't be avoided for now.
On Jul 13, 1:14 am, Miles [EMAIL PROTECTED] wrote:
On Sat, Jul 12, 2008 at 11:23 PM, bukzor [EMAIL PROTECTED] wrote:
I'm connecting to an apache2 process on the same machine,
for testing. When looking at netstat, the socket is in the SYN_SENT
state, like this:
$netstat -a -tcp
tcp
SSL objects use write, not send.
You also need to change this:
self.sock.write('NICK %s\r\n') % self.nick
to this:
self.sock.write('NICK %s\r\n' % self.nick)
If you don't, the interpreter will bomb on trying to concatenate the
return value for write (an integer) with the string self.nick.
spam
--
http://mail.python.org/mailman/listinfo/python-list
Thank you guys for your help. My problem is that I project to use this command
to terminate a script when uninstalling the software, so I can't store the PID.
This command will be integrated in the spec file of the RPM package. Here's the
script I'll use, it may help someone else:
#!/bin/sh
#
On 13 Lug, 19:31, Martin v. Löwis [EMAIL PROTECTED] wrote:
I understand that heapq is not that efficient to implement timeouts as
I thought at first.
It would have been perfect if there were functions to remove arbitrary
elements withouth needing to re-heapify() the heap every time.
It
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'm not an expert on Python threading, so don't take my word as low,
however, I believe that there's no need for a list of systems which
support it because the Python virtual machine handles it. Thus, any
system which supports Python (or at least
On Jul 13, 11:55 am, Matthew Wilson [EMAIL PROTECTED] wrote:
I started off with a module that defined a class Vehicle, and then
subclasses Car and Motorcycle.
In the Car class, for some bizarre reason, I instantiated a Motorcycle.
Please pretend that this can't be avoided for now.
Hello,
I'm trying to write something like http://blabberize.com/, generating
a video file with lip-sync.
Currently the general idea is:
* Generate animation images using GIMP
* Sample voice and detect when there is sound and when there is
silence
- Still working on details for this one, will
On Sun, Jul 13, 2008 at 2:32 PM, bukzor [EMAIL PROTECTED] wrote:
On Jul 13, 1:14 am, Miles [EMAIL PROTECTED] wrote:
On Sat, Jul 12, 2008 at 11:23 PM, bukzor [EMAIL PROTECTED] wrote:
I'm connecting to an apache2 process on the same machine,
for testing. When looking at netstat, the socket is
Giampaolo Rodola' [EMAIL PROTECTED] wrote:
Thanks, that's what I wanted to know.
I understand that heapq is not that efficient to implement timeouts as
I thought at first.
It would have been perfect if there were functions to remove arbitrary
elements withouth needing to re-heapify() the
Every time I look at the logging module (up until now) I've given up and
continue to use my home-grown logger that I've been using for years. I'm not
giving up this time ;-)
I find that I REALLY need to be able to monitor LOTS of running
programs/processes and thought it would be nice to
On Sun, Jul 13, 2008 at 3:05 PM, Giampaolo Rodola' [EMAIL PROTECTED] wrote:
On 13 Lug, 19:31, Martin v. Löwis [EMAIL PROTECTED] wrote:
I understand that heapq is not that efficient to implement timeouts as
I thought at first.
It would have been perfect if there were functions to remove
I would be grateful for support with the code I cited. It's not long
and fairly standard. I'm sure my error(s) would be glaring to more
experienced coders. I appreciated the heads-up about other options
but I would be grateful for help getting this code to run. Thanks
On Jul 13, 11:47 am,
Gabriel Genellina wrote:
En Thu, 10 Jul 2008 17:37:42 -0300, Ethan Furman [EMAIL PROTECTED]
escribi�:
Greetings, List!
Still working on my Measure class, and my next question is... (drum
roll please ;)
What are the advantages of using __[eq|ne|lt|gt|le|ge]__ vs __cmp__?
If your
On Sun, Jul 13, 2008 at 12:55 PM, mk [EMAIL PROTECTED] wrote:
So my updated question is where does this lstr() instance keep the original
value ('abcdef')? It obviously has smth to do with inheriting after str
class, but I don't get the details of the mechanism.
Through the str.__new__ method:
On Jul 13, 3:00 pm, goldtech [EMAIL PROTECTED] wrote:
I would be grateful for support with the code I cited. It's not long
and fairly standard. I'm sure my error(s) would be glaring to more
experienced coders. I appreciated the heads-up about other options
but I would be grateful for help
On Jul 13, 5:30 pm, Waldemar Osuch [EMAIL PROTECTED] wrote:
On Jul 13, 3:00 pm, goldtech [EMAIL PROTECTED] wrote:
I would be grateful for support with the code I cited. It's not long
and fairly standard. I'm sure my error(s) would be glaring to more
experienced coders. I appreciated the
On 13 Lug, 19:42, [EMAIL PROTECTED] wrote:
I expect it's because default values for parameters are evaluated and
bound at definition time. So once def m (self, param = a): line
executes, the default value for parameter is forever bound to be 1.
What you can do is for example:
Yes, that's what
On Jul 13, 7:00 pm, Terry Reedy [EMAIL PROTECTED] wrote:
Tim Cook wrote:
I guess I can classify my application(s) as more procedural than
anything else. But I have a question about the best way to handle
something in Python.
When given a mapping of keywords, I want to call a function
I'm trying to delimit sentences in a block of text by defining the
end-of-sentence marker as a period followed by a space followed by an
uppercase letter or end-of-string.
I'd imagine the regex for that would look something like:
[^(?:[A-Z]|$)]\.\s+(?=[A-Z]|$)
However, Python keeps giving me an
On Jul 14, 3:55 am, Matthew Wilson [EMAIL PROTECTED] wrote:
I started off with a module that defined a class Vehicle, and then
subclasses Car and Motorcycle.
In the Car class, for some bizarre reason, I instantiated a Motorcycle.
Please pretend that this can't be avoided for now.
On Jul 14, 5:30 am, John Roth [EMAIL PROTECTED] wrote:
On Jul 13, 11:55 am, Matthew Wilson [EMAIL PROTECTED] wrote:
I started off with a module that defined a class Vehicle, and then
subclasses Car and Motorcycle.
In the Car class, for some bizarre reason, I instantiated a Motorcycle.
I need a dictionary where get the result from a 'key' (on left), but
also from a 'value' (on right), how to get it?
I know that dictionaries aren't bidirectional, but is there any way
without use two dictionaries?
Thanks in advance!
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 13, 10:18 am, teh_sAbEr [EMAIL PROTECTED] wrote:
I'm busy trying to learn wxPython, and i'm trying to run the following
piece of code (its from the wxPyWiki tutorial):
import wx
ID_ABOUT = 101
ID_EXIT = 110
class MainWindow(wx.Frame):
def __init__(self,parent,id,title):
On Jul 13, 4:21 pm, Kless [EMAIL PROTECTED] wrote:
I need a dictionary where get the result from a 'key' (on left), but
also from a 'value' (on right), how to get it?
I know that dictionaries aren't bidirectional, but is there any way
without use two dictionaries?
Thanks in advance!
You
On Jul 14, 12:05 am, Chris [EMAIL PROTECTED] wrote:
I'm trying to delimit sentences in a block of text by defining the
end-of-sentence marker as a period followed by a space followed by an
uppercase letter or end-of-string.
I'd imagine the regex for that would look something like:
I'm working on a package that uses the standard library logging module
along with a .cfg file.
In my code, I use
logging.config.fileConfig('/home/matt/mypackage/matt.cfg') to load in
the logging config file.
However, it seems really obvious to me that this won't work when I share
this package
On Jul 13, 1:08 pm, Miles [EMAIL PROTECTED] wrote:
On Sun, Jul 13, 2008 at 2:32 PM, bukzor [EMAIL PROTECTED] wrote:
On Jul 13, 1:14 am, Miles [EMAIL PROTECTED] wrote:
On Sat, Jul 12, 2008 at 11:23 PM, bukzor [EMAIL PROTECTED] wrote:
I'm connecting to an apache2 process on the same machine,
On Jul 13, 4:21 pm, Kless [EMAIL PROTECTED] wrote:
I need a dictionary where get the result from a 'key' (on left), but
also from a 'value' (on right), how to get it?
I know that dictionaries aren't bidirectional, but is there any way
without use two dictionaries?
Thanks in advance!
You
On Jul 13, 8:14 pm, MRAB [EMAIL PROTECTED] wrote:
On Jul 14, 12:05 am, Chris [EMAIL PROTECTED] wrote: I'm trying to delimit
sentences in a block of text by defining the
end-of-sentence marker as a period followed by a space followed by an
uppercase letter or end-of-string.
I'd imagine
On Jul 14, 9:05 am, Chris [EMAIL PROTECTED] wrote:
Misleading subject.
[] brackets or square brackets
{} braces or curly brackets
() parentheses or round brackets
I'm trying to delimit sentences in a block of text by defining the
end-of-sentence marker as a period followed by a space
bukzor:
You need to use two dictionaries. Here's a class that someone's
written that wraps it up into a single dict-like object for you:
http://www.faqts.com/knowledge_base/view.phtml/aid/4376
It contains code like:
try:
del self.data[item]
except KeyError:
pass
Exceptions are useful
On 7月13日, 下午10时26分, Larry Bates [EMAIL PROTECTED] wrote:
patrol wrote:
I want to prevent some process from running. The code is in the
following. I encounter some unexpected troubles.
Probelm1: This program cannot terminate scrcons.exe and
FNPLicensingService.exe,which are system
On Sun, Jul 13, 2008 at 8:35 PM, bukzor [EMAIL PROTECTED] wrote:
The problem only manifests about 1 in 20 runs. Below there's code for
a client that shows the problem 100% of the time.
The two URL's that I seem to be confused about point to the same IP.
Maybe this will make it clear:
PING
On Sun, Jul 13, 2008 at 9:31 PM, Miles [EMAIL PROTECTED] wrote:
On Sun, Jul 13, 2008 at 8:35 PM, bukzor [EMAIL PROTECTED] wrote:
The problem only manifests about 1 in 20 runs. Below there's code for
a client that shows the problem 100% of the time.
The two URL's that I seem to be confused
Well, I think Python's iterators, especially the generators, are beautiful.
More importantly, I think there is no general way to make iterators
copyable, regardless of the programming language. The problem is that most
of the useful ones depend on external state.
Peter
Hmm, but tee() de
[EMAIL PROTECTED] wrote:
bukzor:
You need to use two dictionaries. Here's a class that someone's
written that wraps it up into a single dict-like object for you:
http://www.faqts.com/knowledge_base/view.phtml/aid/4376
It contains code like:
try:
del self.data[item]
except KeyError:
Matthew Wilson wrote:
I'm working on a package that uses the standard library logging module
along with a .cfg file.
In my code, I use
logging.config.fileConfig('/home/matt/mypackage/matt.cfg') to load in
the logging config file.
However, it seems really obvious to me that this won't work when
On 13 Lug, 22:35, Miles [EMAIL PROTECTED] wrote:
On Sun, Jul 13, 2008 at 3:05 PM, Giampaolo Rodola' [EMAIL PROTECTED] wrote:
On 13 Lug, 19:31, Martin v. Löwis [EMAIL PROTECTED] wrote:
I understand that heapq is not that efficient to implement timeouts as
I thought at first.
It would
-- Forwarded message --
From: Akathorn Greyhat [EMAIL PROTECTED]
Date: 2008/7/14
Subject: Re: Dictionary bidirectional
To: Kless [EMAIL PROTECTED]
2008/7/14 Kless [EMAIL PROTECTED]:
I need a dictionary where get the result from a 'key' (on left), but
also from a 'value' (on
On Sat, Jul 12, 2008 at 11:23 PM, bukzor [EMAIL PROTECTED] wrote:
Anyone know a general reason this might happen? Even better, a way to
fix it?
Another reason that a socket can hang in the SYN_SENT state (besides
trying to connect to an unreachable host without getting an ICMP
On Sun, Jul 13, 2008 at 10:29 PM, Miles [EMAIL PROTECTED] wrote:
On Sat, Jul 12, 2008 at 11:23 PM, bukzor [EMAIL PROTECTED] wrote:
Anyone know a general reason this might happen? Even better, a way to
fix it?
Maybe your client has an unusually low socket timeout for some reason,
though; does
1 - 100 of 155 matches
Mail list logo