On Jun 12, 11:20 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> As a further follow-up, see
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=41489
>
Wow, thanks a lot for the link. Just had a look at it. The thread runs
from 2000 to 2007!! 7 years!! What a complete mess :)
Guess I'll just hav
> It seems that both browsers are using the iso-8859-1 charset. Is there
> any way I can get them to encode the data with utf-8 instead?
As a further follow-up, see
https://bugzilla.mozilla.org/show_bug.cgi?id=41489
They explain that *TEXT is defined in RFC 2616, which specifies
that non-ASCII c
> When I enter character \xf1 as the username which is outside ascii but
> within iso-8859-1
>
> Firefox 2.0 sends this as \xf1
> IE 7 also sends this as \xf1
> But the utf-8 encoding is \xc3\xb1
>
> If I enter character 0BA4 (TAMIL LETTER TA) which is outside
> iso-8859-1
>
> Firefox 2 sends th
This is not strictly a python question, but I'm hoping someone here
has come across a similar situation.
I have a django app and I've protected some views with basic
authentication. The user can use any unicode character in the username
and password fields. When this happens, the data is not prope
On Jun 12, 1:46 am, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
>
> >> You haven't told us what the 'compute' method is.
>
> >> Or if you have, I missed it.
>
> > Sorry - I made it more explicit above. It is the method that sets up
> > all the missing attributes. No matter which attribute is referen
At 09:52 PM 6/11/2007, Dan Hipschman wrote:
>On Tue, Jun 12, 2007 at 04:25:31AM -, why? wrote:
> > I've been having problem with the following code. It's supposed to
> > print the prime numbers between 10 and 100. But i'm not getting any
> > output, i.e. i guess the outer 'for' loop is being t
On Tue, Jun 12, 2007 at 04:25:31AM -, why? wrote:
> I've been having problem with the following code. It's supposed to
> print the prime numbers between 10 and 100. But i'm not getting any
> output, i.e. i guess the outer 'for' loop is being traversed only
> once. I would be greatful if you co
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Reuben D.
> Budiardja
> Sent: Monday, June 11, 2007 7:19 PM
> To: python-list@python.org
> Subject: Re: Accessing global namespace from module
>
> On Monday 11 June 2007 17:10:03 Gabriel Genelli
En Tue, 12 Jun 2007 01:25:31 -0300, why? <[EMAIL PROTECTED]> escribió:
> I've been having problem with the following code. It's supposed to
> print the prime numbers between 10 and 100. But i'm not getting any
> output, i.e. i guess the outer 'for' loop is being traversed only
> once. I would be
On 6/12/07, why? <[EMAIL PROTECTED]> wrote:
> I've been having problem with the following code. It's supposed to
> print the prime numbers between 10 and 100. But i'm not getting any
> output, i.e. i guess the outer 'for' loop is being traversed only
> once. I would be greatful if you could help m
Hi all,
How can I turn on autocompletion when I push in python 2.5.1
interactive mode? E.g. to give me a list of all methods and attributes
of a given object.
It works great on my Linux / Ubuntu 7.04 installation but doesn't work
on Solaris 10 (x86). I have libreadline.so and libncurses.so insta
I've been having problem with the following code. It's supposed to
print the prime numbers between 10 and 100. But i'm not getting any
output, i.e. i guess the outer 'for' loop is being traversed only
once. I would be greatful if you could help me out. Thanx!
>>> f=1
>>> for i in range(10,100):
..
En Tue, 12 Jun 2007 00:32:12 -0300, Chico Jayanthan <[EMAIL PROTECTED]>
escribió:
> I call an external windows program (.exe) from a
> python script. Something like os.system('test.exe'). I
> want to set a timeout for the external windows program
> to return. If no results are produced by the ex
On Jun 10, 6:43 pm, John Nagle <[EMAIL PROTECTED]> wrote:
> Josiah Carlson wrote:
> > Steven D'Aprano wrote:
>
> >> On Sat, 09 Jun 2007 22:52:32 +, Josiah Carlson wrote:
>
> >>> the only thing that optimization currently does in Python at present
> >>> is to discard docstrings
>
> >> Python, or
En Tue, 12 Jun 2007 00:09:30 -0300, Allen <[EMAIL PROTECTED]>
escribió:
> I have the PyObject pointers, and want to set different type of values
> to them.
>
> For example,
>
> INT8 nValue1 = 0;
> INT16 nValue2 = 1;
> FLOAT32 fValue = 1.0f;
>
> PyObject* var1 <= nValue1
> PyObject* var2 <= nValu
pelon wrote:
> On Jun 5, 6:27 am, [EMAIL PROTECTED] wrote:
>> On 5 Jun., 13:12, Peter Otten <[EMAIL PROTECTED]> wrote:
>>
>>> or like this:
>> "%s %.s %s" % ("first", "second", "third")
>>> 'first third'
>> Hey, that's great, thanks Peter!
>>
>> Tom
>
> Why not be consistent with other aspect
En Tue, 12 Jun 2007 00:02:37 -0300, Josh Gilbert
<[EMAIL PROTECTED]> escribió:
> I don't expect multiline lambdas to be added to Python. I'm not so sure
> that
> that's a bad thing. Regardless, isn't it possible to write your own
> implementation of multiline lambdas as functions? Wouldn't tha
On Jun 11, 4:56?pm, Steve Howell <[EMAIL PROTECTED]> wrote:
> Hi, I'm offering a challenge to extend the following
> page by one good example:
>
> http://wiki.python.org/moin/SimplePrograms
>
> Right now the page starts off with 15 examples that
> cover lots of ground in Python, but they're still
>
En Mon, 11 Jun 2007 22:19:15 -0300, Reuben D. Budiardja
<[EMAIL PROTECTED]> escribió:
> One last question. Do I have to do this for ever script I write, or can
> I put
> this into separate file and "include" it somehow ?
> I am going to have several mainscripts.py, and all is going to import
Hi,
I call an external windows program (.exe) from a
python script. Something like os.system('test.exe'). I
want to set a timeout for the external windows program
to return. If no results are produced by the external
windows program (test.ext) within this timeout limit,
I want to terminate the ex
I have the PyObject pointers, and want to set different type of values
to them.
For example,
INT8 nValue1 = 0;
INT16 nValue2 = 1;
FLOAT32 fValue = 1.0f;
PyObject* var1 <= nValue1
PyObject* var2 <= nValue2
PyObject* var3 <= nValue3
How to do it?
Regards,
Allen Chen
--
http://mail.python.org/m
I don't expect multiline lambdas to be added to Python. I'm not so sure that
that's a bad thing. Regardless, isn't it possible to write your own
implementation of multiline lambdas as functions? Wouldn't that be a win-win
for everyone?
Anyway, the meat of the idea is this:
def myLambda(args, bod
Is anyone porting TestNG to Python, or using it with Python any other
way (maybe via Jython?)?
Thanks,
--dang
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 11, 8:57 pm, Patricia Shanahan <[EMAIL PROTECTED]> wrote:
> I wrote a Perl script to process logic analyzer traces for some hardware
> engineers. While I was out of the office, they found they needed to
> process a new record type. They didn't want to delay their work until I
> got back, and
On Jun 11, 5:36 pm, Tim Bradshaw <[EMAIL PROTECTED]> wrote:
> I think it's just obvious that this is the case. What would *stop*
> you writing maintainable Perl?
For starters, the fact that there are about six zillion obscure
operators represented by punctuation marks, instead of a dozen or so.
M
Tim Bradshaw wrote:
> I think it's just obvious that this is the case. What would *stop*
> you writing maintainable Perl?
A grudge against humanity, usually
-dan
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Terry Reedy <[EMAIL PROTECTED]> wrote:
>
>"James Stroud" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]
>| Terry Reedy wrote:
>| > In Python, you have a choice of recursion (normal or tail)
>|
>| Please explain this.
>
>I am working on a paper for Pyth
On Jun 11, 6:42 am, Benedict Verheyen <[EMAIL PROTECTED]>
wrote:
> Thorsten Kampe schreef:
>
>
> >> I'm on Vista (boohoo :(), what's your platform?
>
> > XP SP2
>
> Hmmm it thought so.
> So in my case it would be interesting to know how to build it so i can
> make a build that works on Vista too.
On Monday 11 June 2007 17:10:03 Gabriel Genellina wrote:
> En Mon, 11 Jun 2007 17:29:35 -0300, reubendb <[EMAIL PROTECTED]> escribió:
> > On Jun 11, 3:30 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
> >
> > wrote:
> >> En Mon, 11 Jun 2007 15:18:58 -0300, reubendb <[EMAIL PROTECTED]>
> >>
> >> escrib
On Jun 5, 6:27 am, [EMAIL PROTECTED] wrote:
> On 5 Jun., 13:12, Peter Otten <[EMAIL PROTECTED]> wrote:
>
> > or like this:
>
> > >>> "%s %.s %s" % ("first", "second", "third")
>
> > 'first third'
>
> Hey, that's great, thanks Peter!
>
> Tom
Why not be consistent with other aspects of the language
I'm using pyExcelerator to take a folder of CSV files and create Excel
workbooks for all of them, then generate an Excel workbook with the
data from all of them.
Everything up until here works great; next, I make a second worksheet
on the last workbook which has summary details regarding the previ
Twisted wrote:
> On Jun 11, 2:42 am, Joachim Durchholz <[EMAIL PROTECTED]> wrote:
>> It is possible to write maintainable Perl.
>
> Interesting (spoken in the tone of someone hearing about a purported
> sighting of Bigfoot, or maybe a UFO).
>
> Still, extraordinary claims require extraordinary ev
On Mon, 11 Jun 2007 16:54:10 -0700, James Stroud <[EMAIL PROTECTED]> wrote:
>Beorn wrote:
>> Consider this example:
>>
>> >>> def funcs(x):
>> ... for i in range(5):
>> ... def g(): return x + i
>> ... yield g
>>
> [snip]
>
>If this isn't classified as a bug, then someon
En Mon, 11 Jun 2007 15:59:19 -0300, vishnu <[EMAIL PROTECTED]> escribió:
> So now I only see the solution to clear my memory pool and restart Python
> without restarting the system (i.e. no power cycle to hardware). I tried
> to
> do this when my memory pool is 60% used in these steps:
> 1) Py_F
On Jun 11, 2007, at 5:55 PM, Steven Bethard wrote:
> I typically define a module wrapping class like::
>
> class GiveThisModuleProperties(object):
> def __init__(self, module_name):
> self._module = sys.modules[module_name]
> sys.modules[module_name] = self
Thanks to all of you.
I think the next() trick is the one I'm looking for.
--
ahlongxp
Software College,Northeastern University,China
[EMAIL PROTECTED]
http://www.herofit.cn
--
http://mail.python.org/mailman/listinfo/python-list
Elfine Peterson Tjio wrote:
> I'm trying to make a program that reads Fasta file and print it out. I used
> the SeqIO module and the results is:
>
> 'ATGGTCATSingleAlphabet()'
>
> For this purpose, should I use SeqIO or Fasta?
>
> for example:
>
> from Bio import SeqIO
>
> or
>
> from Bi
Hey all,
I'm writing a "homework", and I'm supposed to explain how Python works
from the inside, like how it's virtual machine works, the bytecode
generation works, but I'm not having any luck at find those kind of
documentation.
Is there anyone out there who could help me out? maybe some low lev
--- John Machin <[EMAIL PROTECTED]> wrote:
> On Jun 12, 9:16 am, Steve Howell
> <[EMAIL PROTECTED]> wrote:
>
> >
> > One more suggestion--maybe it could exercise a
> little
> > more of the CVS module, i.e. have something in the
> > data that would trip up the ','.split() approach?
>
> The what
Beorn wrote:
> Consider this example:
>
> >>> def funcs(x):
> ... for i in range(5):
> ... def g(): return x + i
> ... yield g
>
> I would expect the value of x used in g to be that at the function
> declaration time, as if you've pass g a (x=x) argument, especially
>
On Jun 12, 9:16 am, Steve Howell <[EMAIL PROTECTED]> wrote:
>
> One more suggestion--maybe it could exercise a little
> more of the CVS module, i.e. have something in the
> data that would trip up the ','.split() approach?
The what approach?? Do you mean blah.split(',') ??
Perhaps like an exampl
Consider this example:
>>> def funcs(x):
... for i in range(5):
... def g(): return x + i
... yield g
I would expect the value of x used in g to be that at the function
declaration time, as if you've pass g a (x=x) argument, especially
after reading this post: http://l
On Mon, 11 Jun 2007 05:27:35 -0700, Frank Millman wrote:
> I now have the following -
>
class A(object):
> ...def __init__(self,x,y):
> ...self.x = x
> ...self.y = y
> ...def __getattr__(self,name):
> ...print 'getattr',name
> ...self.compute()
> ...
Eric S. Johansson wrote:
> this morning I was looking at Python and XUL. I was impressed by the very
> interesting projects that were happening around 2005 but it seems like they
> have
> all died. Integrating Python at the Mozilla was also very intriguing as it
> held
> the promise of elimi
On Jun 12, 8:51 am, infidel <[EMAIL PROTECTED]> wrote:
> # reading CSV files, tuple-unpacking
> import csv
>
> #pacific.csv contains:
> #1,CA,California
> #2,AK,Alaska
> #3,OR,Oregon
> #4,WA,Washington
> #5,HI,Hawaii
>
> reader = csv.reader(open('pacific.csv'))
For generality and portability, this
--- infidel <[EMAIL PROTECTED]> wrote:
> # reading CSV files, tuple-unpacking
> import csv
>
> #pacific.csv contains:
> #1,CA,California
> #2,AK,Alaska
> #3,OR,Oregon
> #4,WA,Washington
> #5,HI,Hawaii
>
> reader = csv.reader(open('pacific.csv'))
> for id, abbr, name in reader:
> print '%s i
On Jun 11, 6:56 pm, Steve Howell <[EMAIL PROTECTED]> wrote:
> Hi, I'm offering a challenge to extend the following
> page by one good example:
>
> http://wiki.python.org/moin/SimplePrograms
>
> Right now the page starts off with 15 examples that
> cover lots of ground in Python, but they're still
>
On Jun 4, 12:37 pm, walterbyrd <[EMAIL PROTECTED]> wrote:
> I mean other than sysadmins, programmers, and web-site developers?
>
I use Python to teach mathematics and analytical thinking to both
children and adults. The OO way of casting a problem has a lot
of power.
I'm working in the CP4E trad
# reading CSV files, tuple-unpacking
import csv
#pacific.csv contains:
#1,CA,California
#2,AK,Alaska
#3,OR,Oregon
#4,WA,Washington
#5,HI,Hawaii
reader = csv.reader(open('pacific.csv'))
for id, abbr, name in reader:
print '%s is abbreviated: "%s"' % (name, abbr)
--
http://mail.python.org/mai
"Antoon Pardon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| On 2007-06-09, Terry Reedy <[EMAIL PROTECTED]> wrote:
| > For him to imply that Python is anti-flexibility is wrong. Very
wrong..
| > He should look in a mirror. See below.
|
| My impression is that python supporters
|> | > Terry Reedy wrote:
|> | > > In Python, you have a choice of recursion (normal or tail)
Bruno
> | I'm afraid Terry is wrong here, at least if he meant that CPython had
> | tail recursion *optimization*.
| Terry Reedy a écrit :
| > NO!!!
| > I did not mean that or imply that in any way.
Bru
James Stroud wrote:
> # moduleFoo.py
>
> def get_setting(self, name):
> return do_whatever(name)
>
> def set_setting(self, name, arg):
> return do_whatever_else(name, arg)
>
> class Foo(object):
> someSetting = property(set_setting, get_setting)
>
> foo = Foo()
someSetting = property
Ed Leafe wrote:
> I have a simple module that reads in values from disk when
> imported, and stores them in attributes, allowing for code like:
>
> >>> import moduleFoo
> >>> print moduleFoo.someSetting
> 'the value'
>
> What I'd like to do is have a more property-like behavior, so th
--- Ed Leafe <[EMAIL PROTECTED]> wrote:
> I have a simple module that reads in values from
> disk when imported,
> and stores them in attributes, allowing for code
> like:
>
> >>> import moduleFoo
> >>> print moduleFoo.someSetting
> 'the value'
>
> What I'd like to do is have a
Chris AtLee wrote:
> Sorry for the repeat post...I'm not sure if my first post (on May
> 30th) went through or
> not.
>
> I've been trying to write a PAM module using ctypes. In the
> conversation
> function (my_conv in the script below), you're passed in a
> pam_response**
> pointer. You're sup
Hi, I'm offering a challenge to extend the following
page by one good example:
http://wiki.python.org/moin/SimplePrograms
Right now the page starts off with 15 examples that
cover lots of ground in Python, but they're still
scratching the surface. (There are also two Eight
Queens implementations
I'm trying to build this. I've downloaded the boost libraries (version
1.34) and run configure, make and sudo make install without errors.
Then I've downloaded bgl-python (0.9) and, as instructed, found the
bjam executable from the boost hierarchy, copied it somewhere
convenient and run it in the
Ed Leafe wrote:
> I have a simple module that reads in values from disk when imported,
> and stores them in attributes, allowing for code like:
>
> >>> import moduleFoo
> >>> print moduleFoo.someSetting
> 'the value'
>
> What I'd like to do is have a more property-like behavior, so tha
>
> Working from your original dict1:
>
> dout = [[dict2[i], [dict2[k] for k in setvalue]]
> for i,setvalue in dict1.iteritems()]
>
> - Paddy
I dont think this works.
--
http://mail.python.org/mailman/listinfo/python-list
anush shetty wrote:
> On Jun 12, 2:10 am, James Stroud <[EMAIL PROTECTED]> wrote:
>
>>anush shetty wrote:
>>
>>>Hi,
>>>I have two dictionaries
>>
>>> dict1={'B8': set(['I8', 'H8', 'B2', 'B7', 'F8', 'C9', 'G8', 'B4',
>>>'B5', 'B6', 'C8', 'E8', 'D8', 'B3', 'A9', 'A8', 'C7', 'B9', 'A7',
>>>'B1']), 'B
On Jun 11, 8:02 am, Twisted <[EMAIL PROTECTED]> wrote:
> On Jun 11, 2:42 am, Joachim Durchholz <[EMAIL PROTECTED]> wrote:
>
> > It is possible to write maintainable Perl.
>
> Interesting (spoken in the tone of someone hearing about a purported
> sighting of Bigfoot, or maybe a UFO).
>
I think it's
I have a simple module that reads in values from disk when imported,
and stores them in attributes, allowing for code like:
>>> import moduleFoo
>>> print moduleFoo.someSetting
'the value'
What I'd like to do is have a more property-like behavior, so that
if they try to set
>
> dout = [[dict2[i],[dict2[k] for k in j]]
> for i,j in data]
> print dout
>
> - Paddy.
Working from your original dict1:
dout = [[dict2[i], [dict2[k] for k in setvalue]]
for i,setvalue in dict1.iteritems()]
- Paddy
--
http://mail.python.org/mailman/listinfo/python-list
--- John Nagle <[EMAIL PROTECTED]> wrote:
>
> When you have to start buying more servers for
> the server farm,
> it's a real pain. I'm actually facing that because
> Python's HTML
> parsing is so slow.
>
I have been following this thread for a bit, but
apologies in advance if I didn't rea
On Jun 11, 10:19 pm, anush shetty <[EMAIL PROTECTED]> wrote:
> On Jun 12, 2:10 am, James Stroud <[EMAIL PROTECTED]> wrote:
>
>
>
> > anush shetty wrote:
> > > Hi,
> > > I have two dictionaries
>
> > > dict1={'B8': set(['I8', 'H8', 'B2', 'B7', 'F8', 'C9', 'G8', 'B4',
> > > 'B5', 'B6', 'C8', 'E8', '
On Jun 12, 1:50 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Mon, 11 Jun 2007 17:24:26 -0300, anush shetty
> <[EMAIL PROTECTED]> escribió:
>
>
>
> > Hi,
> > I have two dictionaries
>
> > dict1={'B8': set(['I8', 'H8', 'B2', 'B7', 'F8', 'C9', 'G8', 'B4',
> > 'B5', 'B6', 'C8', 'E8', 'D8',
On Jun 12, 2:10 am, James Stroud <[EMAIL PROTECTED]> wrote:
> anush shetty wrote:
> > Hi,
> > I have two dictionaries
>
> > dict1={'B8': set(['I8', 'H8', 'B2', 'B7', 'F8', 'C9', 'G8', 'B4',
> > 'B5', 'B6', 'C8', 'E8', 'D8', 'B3', 'A9', 'A8', 'C7', 'B9', 'A7',
> > 'B1']), 'B9': set(['I9', 'H9', 'A7
The original message was received at Mon, 11 Jun 2007 16:19:34 -0400
from [216.121.182.178]
- The following addresses had permanent fatal errors -
***
** Attachment document.scr was filtered.
Chris wrote:
> hi guys,
>
> i would like to to write a little spider, where, occasionally, the user
> has to interact. For example show a log-in page or something similar
> (since everyone has those verification letter/number pics), or send a
> message by hand.
>
> I had the idea of the script
anush shetty wrote:
> Hi,
> I have two dictionaries
>
> dict1={'B8': set(['I8', 'H8', 'B2', 'B7', 'F8', 'C9', 'G8', 'B4',
> 'B5', 'B6', 'C8', 'E8', 'D8', 'B3', 'A9', 'A8', 'C7', 'B9', 'A7',
> 'B1']), 'B9': set(['I9', 'H9', 'A7', 'F9', 'B3', 'B6', 'G9', 'B4',
> 'B5', 'C9', 'B7', 'E9', 'B1', 'B2',
En Mon, 11 Jun 2007 17:29:35 -0300, reubendb <[EMAIL PROTECTED]> escribió:
> On Jun 11, 3:30 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>> En Mon, 11 Jun 2007 15:18:58 -0300, reubendb <[EMAIL PROTECTED]>
>> escribió:
>>
>> > The problem is I don't define the functions AddPlot() and Dra
On Jun 11, 12:47 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> estimating what "a lot" is isn't trivial, but it's worth noting that a
> search for "lang:python \swith\W" over at google's code search only
> brings up about 200 cases, and most of those are found in comments and
> string literals. a
En Mon, 11 Jun 2007 17:24:26 -0300, anush shetty
<[EMAIL PROTECTED]> escribió:
> Hi,
> I have two dictionaries
>
> dict1={'B8': set(['I8', 'H8', 'B2', 'B7', 'F8', 'C9', 'G8', 'B4',
> 'B5', 'B6', 'C8', 'E8', 'D8', 'B3', 'A9', 'A8', 'C7', 'B9', 'A7',
> 'B1']), 'B9': set(['I9', 'H9', 'A7', 'F9', '
Radamand wrote:
>> while serverlist:
>> still_active = []
>> for server in serverlist:
>> pinger = ping[server]
>> if pinger.returncode is None:
>> pinger.poll()
>> still_active.append(server)
>> else:
>> pingresult[server] = pi
En Mon, 11 Jun 2007 17:11:23 -0300, Radamand <[EMAIL PROTECTED]> escribió:
> On Jun 11, 1:23 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>> here's a simple variation of that, which is a bit more efficient, and
>> perhaps also a bit easier to use in the general case:
>>
>> while serverlist:
>>
On Jun 8, 2:06 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote:
> On 2007-06-08, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
> > Neil Cerutti a écrit :
(snip)
>
> >> Certainly i and j are just as generic, but they have the
> >> advantage over 'item' of being more terse.
>
> > I'm not sure this is rea
On Jun 11, 3:30 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Mon, 11 Jun 2007 15:18:58 -0300, reubendb <[EMAIL PROTECTED]> escribió:
>
> > The problem is I don't define the functions AddPlot() and DrawPlots().
> > It's built into the python interpreter of the CLI version of the
> > progr
On Jun 11, 12:59 pm, infidel <[EMAIL PROTECTED]> wrote:
> On Jun 11, 11:30 am, Radamand <[EMAIL PROTECTED]> wrote:
>
>
>
> > This has been driving me buggy for 2 days, i need to be able to
> > iterate a list of items until none are left, without regard to which
> > items are removed. I'll put t
The final release of version 0.6.1 of xlrd is now available from
http://www.lexicon.net/sjmachin/xlrd.htm and from the Cheeseshop
(http://cheeseshop.python.org/pypi/xlrd).
What is xlrd? It's a small (download approx 0.1 Mb) pure-Python
library for extracting information from Microsoft Excel (tm)
I am pleased to announce the first alpha release of Papyros, a
lightweight platform-independent package for parallel processing.
Papyros provides a master-slave model: clients can submit jobs to a
master object which is monitored by one or more slave objects that do
the real work. Two main implemen
Hi,
I have two dictionaries
dict1={'B8': set(['I8', 'H8', 'B2', 'B7', 'F8', 'C9', 'G8', 'B4',
'B5', 'B6', 'C8', 'E8', 'D8', 'B3', 'A9', 'A8', 'C7', 'B9', 'A7',
'B1']), 'B9': set(['I9', 'H9', 'A7', 'F9', 'B3', 'B6', 'G9', 'B4',
'B5', 'C9', 'B7', 'E9', 'B1', 'B2', 'D9', 'A9', 'A8', 'C8', 'B8',
'C7'
On Jun 11, 1:23 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> infidel wrote:
> > How about something like this?
>
> > while serverlist:
> > server = serverlist.pop(0)
> > pinger = ping[server]
> > if pinger.returncode==None:
> > pinger.poll()
> > serverlist.append(serve
BBands wrote:
> I don't have an opinion, pro or con, on this PEP, but I'll bet that it
> breaks a lot of code.
that's why you get warnings in 2.5, so you have time to update your
code; see:
http://www.python.org/dev/peps/pep-0005/
estimating what "a lot" is isn't trivial, but it's worth n
En Mon, 11 Jun 2007 15:46:51 -0300, Paul Rudin <[EMAIL PROTECTED]>
escribió:
> HMS Surprise <[EMAIL PROTECTED]> writes:
>>>
>>> Why not use grep?
>>
>> With Windows XP?
>
> www.cygwin.com
Why? Try findstr /? at the command prompt.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listi
George Sakkis wrote:
> On Jun 11, 8:27 am, Frank Millman <[EMAIL PROTECTED]> wrote:
>> On Jun 11, 1:56 pm, Steven D'Aprano
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>>> Unless you have thousands and thousands of instances, __slots__ is almost
>>> certainly not the answer. __slots__ is an optimization to
En Mon, 11 Jun 2007 15:18:58 -0300, reubendb <[EMAIL PROTECTED]> escribió:
> The problem is I don't define the functions AddPlot() and DrawPlots().
> It's built into the python interpreter of the CLI version of the
> program I mentioned, and they are defined on the main script. I load
> the main s
infidel wrote:
> How about something like this?
>
> while serverlist:
> server = serverlist.pop(0)
> pinger = ping[server]
> if pinger.returncode==None:
> pinger.poll()
> serverlist.append(server)
> else:
> pingresult[server] = pinger.stdout.read()
>
On Jun 11, 11:34 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> if you have Python 2.5, you can try it out yourself:
>
> >>> dict(with=1)
> :1: Warning: 'with' will become a reserved keyword in Python 2.6
> {'with': 1}
>
> >>> from __future__ import with_statement
> >>> dict(with=1)
>File ""
On Jun 12, 4:46 am, Paul Rudin <[EMAIL PROTECTED]> wrote:
> HMS Surprise <[EMAIL PROTECTED]> writes:
>
> >> Why not use grep?
>
> > With Windows XP?
>
> www.cygwin.com
Using cygwin for this problem is like using a sledgehammer to crack a
nut.
See http://gnuwin32.sourceforge.net/summary.html
*Lots
HMS Surprise <[EMAIL PROTECTED]> writes:
>>
>> Why not use grep?
>
> With Windows XP?
www.cygwin.com
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 11, 11:30 am, Radamand <[EMAIL PROTECTED]> wrote:
> This has been driving me buggy for 2 days, i need to be able to
> iterate a list of items until none are left, without regard to which
> items are removed. I'll put the relevant portions of code below,
> please forgive my attrocious nam
Thank you all.
jh
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
Using the best fit for Python will not be a problem, because Python makes
allocations of lot of small size blocks.So those split blocks of small sizes
are used by Python sometime. And what I observed from my investigation with
the memory manager(MM) for Python is , with any MM we cannot el
Reverse iteration should do the trick, if I understand your problem:
for server in reversed(serverlist):
...
else:
serverlist.remove(server)
On Jun 11, 11:30 am, Radamand <[EMAIL PROTECTED]> wrote:
> This has been driving me buggy for 2 days, i need to be able to
> iterate a l
BBands wrote:
> I gather that 'with' is on its way to becoming a reserved word. Is
> this something that will break?
yes.
> import Gnuplot
> gp = Gnuplot.Gnuplot(debug=1)
> data = Gnuplot.Data([1,2,3,4,3,2,3,4,3,2,1], with='linespoints')
if you have Python 2.5, you can try it out yourself:
>>
This has been driving me buggy for 2 days, i need to be able to
iterate a list of items until none are left, without regard to which
items are removed. I'll put the relevant portions of code below,
please forgive my attrocious naming conventions.
Basically i'm trying to spin up some subproc
On Jun 11, 1:37 pm, [EMAIL PROTECTED] wrote:
> On Jun 11, 11:02 am, reubendb <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
> > I am new to Python. I have the following question / problem.
> > I have a visualization software with command-line interface (CLI),
> > which essentially is a Python (v. 2.5)
On Jun 11, 11:02 am, reubendb <[EMAIL PROTECTED]> wrote:
> Hello,
> I am new to Python. I have the following question / problem.
> I have a visualization software with command-line interface (CLI),
> which essentially is a Python (v. 2.5) interpreter with functions
> added to the global namespace.
On 2007-06-11, Marius Gedminas <[EMAIL PROTECTED]> wrote:
> On Jun 6, 3:18 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote:
>> > Since 'i' and 'j' are canonically loop indices, I find it
>> > totally confusing to use them to name the iteration variable -
>> > which is not an index.
>>
>> Certainly i and
Diez B. Roggisch wrote:
> Regardless of the possibility of speeding it up - why should one want
> this? Coding speed is more important than speed of coding in 90%+ of all
> cases.
When you have to start buying more servers for the server farm,
it's a real pain. I'm actually facing that be
1 - 100 of 176 matches
Mail list logo