On Sunday, 18 October 2009 11:31:19 Paul Rubin wrote:
> Hendrik van Rooyen writes:
> > Standard Python idiom:
> >
> > if key in d:
> > d[key] += value
> > else:
> > d[key] = value
>
> The issue is that uses two lookups. If that's ok, the more usual idiom is:
>
> d[key] = value + d.get(key,
You wrote:
>
>For the love of baby kittens, please, please, please tell me that
>you do not believe this securely encrypts your data.
The original poster asked to have two C++ functions converted to Python.
That's what I did, using the same names as the original. I neither know nor
care how th
alex23 wrote:
> The only mention I could find was
> http://docs.python.org/dev/3.0/library/functions.html#slice
No idea why that link was the one that came up, this is more
appropriate:
http://docs.python.org/3.1/library/functions.html#slice
--
http://mail.python.org/mailman/listinfo/python-l
On Oct 19, 3:53 pm, Jabba Laci wrote:
> Would someone explain how str[::-1] work? I'm new to Python and I only
> saw so far the str[begin:end] notation. What is the second colon?
Slice notation is of the form [start:stop:step]. start defaults to the
start of the sequence, stop to the end, and ste
On Sun, Oct 18, 2009 at 10:53 PM, Jabba Laci wrote:
> Hi,
>
> Would someone explain how str[::-1] work? I'm new to Python and I only
> saw so far the str[begin:end] notation. What is the second colon?
Specifies the step value, as in: foo[start:stop:step]
When not specified it, defaults to 1.
S
ru...@yahoo.com wrote:
> One, it was suggested without any evidence the the OP was
> "probably" asking about homework. My observation over
> several years is that this group has a very poor record
> of identifying homework problems. And if someone can
> conclude that the OPs problem was homework
Hi,
Would someone explain how str[::-1] work? I'm new to Python and I only
saw so far the str[begin:end] notation. What is the second colon?
Thanks,
Laszlo
> Here is a simplistic version that doesn't use fancy math:
>
str(24)
> '24'
str(24)[::-1]
> '42'
int(str(24)[::-1])
> 42
--
On Oct 18, 9:45 pm, alex23 wrote:
> On Oct 19, 12:32 pm, ru...@yahoo.com wrote:
> > On Oct 18, 4:20 pm, MRAB wrote:
> > > Benjamin Middaugh wrote:
> > > > Thanks to everyone who helped with my query on reversing integers. I
> > > > have one more simple problem I'm having trouble solving. I want t
On Oct 19, 10:01 am, flebber wrote:
> Hi
>
> I have been searching through the vast array of python
> frameworkshttp://wiki.python.org/moin/WebFrameworksand its quite astounding
> the
> choice available.
>
> I am looking at using a web framework for my personal project which
> isn't actually aim
On Oct 19, 12:32 pm, ru...@yahoo.com wrote:
> On Oct 18, 4:20 pm, MRAB wrote:
>
> > Benjamin Middaugh wrote:
> > > Thanks to everyone who helped with my query on reversing integers. I
> > > have one more simple problem I'm having trouble solving. I want to check
> > > a number for palindromic beha
On Tue, Oct 13, 2009 at 11:18 PM, TerryP wrote:
> On Oct 14, 2:13 am, Peng Yu wrote:
>> Bash is easy to use on manipulating files and directories (like change
>> name or create links, etc) and on calling external programs. For
>> simple functions, bash along is enough. However, bash does not supp
On Sun, 18 Oct 2009 19:52:41 -0700, Ethan Furman wrote:
> This is obviously slow on strings, but mention of that is already in the
> docs, and profiling will also turn up such bottlenecks. Get the code
> working first, then optimize, yes?
Well, maybe. Premature optimization and all, but someti
> Here's what I see:
> * If I use logging to write the output, I don't see any output in the
> server log, but the client gets correct results.
> * If I use sys.stderrto write the output, I don't see any output in
> the server log AND the client gets INcorrect results.
> * If I use sys.stdout to w
> > I was having a mysterious problem with SimpleXMLRPCServer. (I am using
> > Python 2.5.2)
>
> I'd start updating Python to the latest 2.5 release: 2.5.4
Ubuntu doesn't have 2.5.4. :(
> > The request handlers were sometimes failing without any error message
> > to the log output.
>
> > What I d
En Sun, 18 Oct 2009 23:07:40 -0200, Raymond Hettinger
escribió:
[Raymond]
> If it really is a sequence (with len and getitem), you can write your
> own indexing iterator:
> def myslice(seq, start, stop, step):
> 'Allow forward or backwards iteration over a subslice'
> for i in
Carl Banks wrote:
On Oct 18, 4:07 pm, Ethan Furman wrote:
Dave Angel wrote:
Earlier, I would have agreed with you. I assumed that this could be
done invisibly, with the only difference being performance. But you
can't know whether join will do the trick without error till you know
that all
On Oct 18, 4:20 pm, MRAB wrote:
> Benjamin Middaugh wrote:
> > Thanks to everyone who helped with my query on reversing integers. I
> > have one more simple problem I'm having trouble solving. I want to check
> > a number for palindromic behavior (reading the same backwards and
> > forwards). So i
Paul Rubin wrote:
> Yet another way is to use recursion. I'll leave that as an exercise too.
This time with big numbers:
def trampoline(bouncing, *args, **kwargs):
while bouncing:
result, bouncing, args, kwargs = bouncing(*args, **kwargs)
if result:
return result
Hello everyone.
The source tarballs and Windows installers for Python 2.6.4rc2 are now
available:
http://www.python.org/download/releases/2.6.4/
Please download them, install them, and try to use them with your
projects and environments. Let's make 2.6.4 a rock solid release! If
there
[Raymond]
> > If it really is a sequence (with len and getitem), you can write your
> > own indexing iterator:
>
> > def myslice(seq, start, stop, step):
> > 'Allow forward or backwards iteration over a subslice'
> > for i in range(start, stop, step):
> > yield seq[i]
[S
On Oct 18, 4:07 pm, Ethan Furman wrote:
> Dave Angel wrote:
> > Earlier, I would have agreed with you. I assumed that this could be
> > done invisibly, with the only difference being performance. But you
> > can't know whether join will do the trick without error till you know
> > that all the i
On Oct 18, 2:53 pm, Eloff wrote:
> On Oct 16, 7:38 pm, Carl Banks wrote:
>
> > You would burden everyone who writes a custom iterator to provide a
> > __getitem__ method just because you're too lazy to type out the word
> > islice?
>
> No, of course not. That would be stupid. Custom iterators are
En Sun, 18 Oct 2009 19:53:20 -0200, Eloff escribió:
On Oct 16, 7:38 pm, Carl Banks wrote:
You would burden everyone who writes a custom iterator to provide a
__getitem__ method just because you're too lazy to type out the word
islice?
No, of course not. That would be stupid. Custom iterato
"Fred Pacquier" wrote in message
news:xns9ca8b91a1519apacmanr...@212.27.60.38...
After installing the MS redistributable DLL package -- actually I had to
install *three* before hitting the right one (2005SP1) -- libpyexiv2
finally loads all its dependencies.
Of course I've still no idea why/
Dave Angel wrote:
Dieter Maurer wrote:
Christian Heimes writes on Fri, 16 Oct 2009
17:58:29 +0200:
Alan G Isaac schrieb:
I expected this to be fixed in Python 3:
sum(['ab','cd'],'')
Traceback (most recent call last):
File "", line 1, in
TypeError: sum() ca
Benjamin Middaugh wrote:
Thanks to everyone who helped with my query on reversing integers. I
have one more simple problem I'm having trouble solving. I want to
check a number for palindromic behavior (reading the same backwards
and forwards). So if I have an integer 1457 it can tell me this is
Hi
I have been searching through the vast array of python frameworks
http://wiki.python.org/moin/WebFrameworks and its quite astounding the
choice available.
I am looking at using a web framework for my personal project which
isn't actually aimed at developing a website as such. However I deduce
En Fri, 16 Oct 2009 16:23:31 -0300, Victor Subervi
escribió:
This will print all sorts of crap to the screen. I know it's an image,
because for some reason "occasionally" it once upon a time today printed
the
actual image to the screen when I had these lines last:[...]
Notice the commented
Benjamin Middaugh wrote:
Thanks to everyone who helped with my query on reversing integers. I
have one more simple problem I'm having trouble solving. I want to check
a number for palindromic behavior (reading the same backwards and
forwards). So if I have an integer 1457 it can tell me this is
Il Sun, 18 Oct 2009 20:04:11 -0200, Gabriel Genellina ha scritto:
> En Sun, 18 Oct 2009 10:35:34 -0200, mattia escribió:
>
>> Il Sat, 17 Oct 2009 10:02:27 -0400, Dave Angel ha scritto:
>>> mattia wrote:
Il Fri, 16 Oct 2009 21:04:08 +, mattia ha scritto:
Another question (alway
Benjamin Middaugh wrote:
I'm trying to make an integer that is the reverse of an existing integer
such that 169 becomes 961. I guess I don't know enough yet to figure out
how to do this without a ton of awkward-looking code. I've tried for
loops without much success. I guess I need a good way o
Thanks to everyone who helped with my query on reversing integers. I
have one more simple problem I'm having trouble solving. I want to check
a number for palindromic behavior (reading the same backwards and
forwards). So if I have an integer 1457 it can tell me this is not the
same from both e
En Sun, 18 Oct 2009 10:35:34 -0200, mattia escribió:
Il Sat, 17 Oct 2009 10:02:27 -0400, Dave Angel ha scritto:
mattia wrote:
Il Fri, 16 Oct 2009 21:04:08 +, mattia ha scritto:
Another question (always py3). How can I print only the first number
after the comma of a division?
e.g. print(
Benjamin Middaugh writes:
> I'm trying to make an integer that is the reverse of an existing
> integer such that 169 becomes 961. I guess I don't know enough yet to
> figure out how to do this without a ton of awkward-looking code. I've
> tried for loops without much success. I guess I need a good
On Oct 16, 7:38 pm, Carl Banks wrote:
> You would burden everyone who writes a custom iterator to provide a
> __getitem__ method just because you're too lazy to type out the word
> islice?
No, of course not. That would be stupid. Custom iterators are
iterators, so they would also get the default
Benjamin Middaugh schrieb:
> I'm trying to make an integer that is the reverse of an existing integer
> such that 169 becomes 961. I guess I don't know enough yet to figure out
> how to do this without a ton of awkward-looking code. I've tried for
> loops without much success. I guess I need a g
On Sun, 18 Oct 2009 19:34:09 +0100, Benjamin Middaugh
wrote:
I'm trying to make an integer that is the reverse of an existing integer
such that 169 becomes 961. I guess I don't know enough yet to figure out
how to do this without a ton of awkward-looking code. I've tried for
loops withou
Benjamin Middaugh wrote:
I'm trying to make an integer that is the reverse of an existing integer
such that 169 becomes 961. I guess I don't know enough yet to figure out
how to do this without a ton of awkward-looking code. I've tried for
loops without much success. I guess I need a good way o
I'm trying to make an integer that is the reverse of an existing integer
such that 169 becomes 961. I guess I don't know enough yet to figure out
how to do this without a ton of awkward-looking code. I've tried for
loops without much success. I guess I need a good way of figuring out
the length
En Sun, 18 Oct 2009 03:02:27 -0200, StarWing
escribió:
On 10月18日, 上午9时09分, Raymond Hettinger wrote:
[StarWing]
> > > sometimes I want to iterate a part of a sequence. but don't want
to
> > > copy it. i.e.
. . .
> I had checked it for serval times. maybe it's my inattention :-(. but
> w
Yuvgoog Greenle wrote:
I'd like to clarify the use case.
Lets say you're writing a client and a server, one is in python and
the other is C. If these 2 programs need to pass binary information
between them (lets say over a socket) there are 2 options, it could be
nice if you could only write the
On 08:13 pm, de...@nospam.web.de wrote:
Yuvgoog Greenle schrieb:
Is there a way that Python and C can have a shared definition for a
binary data structure?
It could be nice if:
1. struct or ctypes had a function that could parse a .h/.c/.cpp file
to auto-generate constructors
or
2. a ctypes def
En Sun, 18 Oct 2009 14:22:07 -0200, D escribió:
On Oct 16, 5:26 pm, TerryP wrote:
On Oct 16, 8:15 pm, D wrote:
> I would like to be able to spawn a new CMD window (specifing size,
> color and placement of the window), and write to it separately.
> Specifically, I have a backup program that
geremy condra schrieb:
On Sun, Oct 18, 2009 at 4:13 PM, Diez B. Roggisch wrote:
Yuvgoog Greenle schrieb:
Is there a way that Python and C can have a shared definition for a
binary data structure?
It could be nice if:
1. struct or ctypes had a function that could parse a .h/.c/.cpp file
to aut
I announced that Python for Bioinformatics was ready, now I want to
announce that is available and in stock in most book sellers.
Worldwide, use Amazon.
In Argentina, it is more convenient buying it from me at MercadoLibre:
http://articulo.mercadolibre.com.ar/MLA-64715574-libro-python-for-bioinform
On Sun, Oct 18, 2009 at 4:13 PM, Diez B. Roggisch wrote:
> Yuvgoog Greenle schrieb:
>>
>> Is there a way that Python and C can have a shared definition for a
>> binary data structure?
>>
>> It could be nice if:
>> 1. struct or ctypes had a function that could parse a .h/.c/.cpp file
>> to auto-gen
I'd like to clarify the use case.
Lets say you're writing a client and a server, one is in python and
the other is C. If these 2 programs need to pass binary information
between them (lets say over a socket) there are 2 options, it could be
nice if you could only write the struct once (either in p
Yuvgoog Greenle schrieb:
Is there a way that Python and C can have a shared definition for a
binary data structure?
It could be nice if:
1. struct or ctypes had a function that could parse a .h/.c/.cpp file
to auto-generate constructors
or
2. a ctypes definition could be exported to a .h file.
Hi;
I have the following code:
#!/usr/bin/python
def getResolution():
print 'Content-Type: text/html\n'
print '''
http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd'>
var winX = screen.width;
var winY = screen.height;
'''
x = eval('document.write(winX)')
#document.write('Your screen re
On 18 říj, 21:20, MRAB wrote:
> Necronymouse wrote:
> > Hello i ´ve got a little problem: I ´ve this text:
> >http://openpaste.org/en/secret/17343/pass-pythonand I need to parse
> > it. So i wrote this:
>
> > patternNode = re.compile("""
> > # Node (\w*).*
> > (.*)""", re.MULTILINE)
>
> > with ope
Russ P. wrote:
> On Oct 10, 1:15pm, kj wrote:
> > I'm coaching a group of biologists on basic Python scripting. One
> > of my charges mentioned that he had come across the advice never
> > to use loops beginning with "while True". Of course, that's one
> > way to start an infinite loop, but thi
On Sun, Oct 18, 2009 at 2:44 PM, Yuvgoog Greenle wrote:
> Is there a way that Python and C can have a shared definition for a
> binary data structure?
>
> It could be nice if:
> 1. struct or ctypes had a function that could parse a .h/.c/.cpp file
> to auto-generate constructors
> or
> 2. a ctypes
Carsten Haese wrote:
Victor Subervi wrote:
Thank you all. I have __no__idea__ why the link I sent you, that you
tested, __didn't__ work for me. Was it a problem with the browser?
My Magic 8-Ball says "Unclear. Ask again later."
Regarding Carsten's misunderstanding of my mentioning of comment
Necronymouse wrote:
Hello i ´ve got a little problem: I ´ve this text:
http://openpaste.org/en/secret/17343/pass-python and I need to parse
it. So i wrote this:
patternNode = re.compile("""
# Node (\w*).*
(.*)""", re.MULTILINE)
with open("test.msg", "r") as file:
testData = file.read()
fo
Is there a way that Python and C can have a shared definition for a
binary data structure?
It could be nice if:
1. struct or ctypes had a function that could parse a .h/.c/.cpp file
to auto-generate constructors
or
2. a ctypes definition could be exported to a .h file.
So my question is - is ther
Hello i ´ve got a little problem: I ´ve this text:
http://openpaste.org/en/secret/17343/pass-python and I need to parse
it. So i wrote this:
>>>
patternNode = re.compile("""
# Node (\w*).*
(.*)""", re.MULTILINE)
with open("test.msg", "r") as file:
testData = file.read()
for Node in re.finda
Thomas wrote:
If you change your last line from:
print s
to:
print u
you'll get different results :)
if you change:
s1 = base64.b64decode( s )
into
s = base64.b64decode( s )
you'll get the same result again.
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I'm pleased to announce here that Spyder version 1.0.0 has been released:
http://packages.python.org/spyder
Previously known as Pydee, Spyder (Scientific PYthon Development
EnviRonment) is a free open-source Python development environment
providing MATLAB-like features in a simple and li
Hi all,
I'm quite pleased (and relieved) to announce that Python(x,y) version
2.6.3.0 has been released. It is the first release based on Python 2.6
-- note that Python(x,y) version number will now follow the included
Python version (Python(x,y) vX.Y.Z.N will be based on Python vX.Y.Z).
Pyth
Lie Ryan writes:
> If key and value had been anything but simple variable/name, then
> definitely you're writing the try-block the wrong way. try-block must
> be kept as simple as possible.
Avoiding the try-block completely is the simplest possibility of them all.
--
http://mail.python.org/mailm
Ben Finney wrote:
Lie Ryan writes:
Paul Rubin wrote:
Steven D'Aprano writes:
For the record, the four lines Paul implies are "confusing" are:
try:
d[key] += value
except KeyError:
d[key] = value
Consider what happens if the computation of "key" or "value" itself
raises KeyError.
Victor Subervi wrote:
> Thank you all. I have __no__idea__ why the link I sent you, that you
> tested, __didn't__ work for me. Was it a problem with the browser?
My Magic 8-Ball says "Unclear. Ask again later."
> Regarding Carsten's misunderstanding of my mentioning of commenting out
> statements
If you change your last line from:
print s
to:
print u
you'll get different results :)
TC
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 16, 5:26 pm, TerryP wrote:
> On Oct 16, 8:15 pm, D wrote:
>
> > Hello,
>
> > I would like to be able to spawn a new CMD window (specifing size,
> > color and placement of the window), and write to it separately.
> > Specifically, I have a backup program that displays each file backed
> >
Thank you all. I have __no__idea__ why the link I sent you, that you tested,
__didn't__ work for me. Was it a problem with the browser? Why did it render
other images fine? Strange! Well, glad it works *today*. Hopefully it'll
work tomorrow, when I try and pick up a check from my client!
Regarding
Fred P said :
> Hi, a bit of platform-specific advice sought here... I'm trying to
> diagnose one of those mysteries Windows is so fond of...
> Say that I have code that imports some binary Python module from site-
> packages (in this case, libpyexiv2.pyd through pyexiv2.py, could be
> anythng els
I want to write a script to add events to a groupware calendar. I am
using sogo and i have a test server tom play with.
I want to be able to script a process of accessing a file of ~10^5
events into a calendaring system so that I can prepopulate a load of
calendars with the users' timetables at th
On Oct 18, 12:35 pm, mattia wrote:
> Yes, reading the doc I've come up with
> s = "%(0)03.02f%(1)s done" % {"0": 100.0-100.0*(size/tot), "1": "%"}
> but to it is not a good idea to use a dict here..
Also look at the new str.format()
--
http://mail.python.org/mailman/listinfo/python-list
Il Sat, 17 Oct 2009 10:02:27 -0400, Dave Angel ha scritto:
> mattia wrote:
>> Il Fri, 16 Oct 2009 21:04:08 +, mattia ha scritto:
>>
>>
>>> Is there a way to print to an unbuffered output (like stdout)? I've
>>> seen that something like sys.stdout.write("hello") works but it also
>>> prints the
Il Sat, 17 Oct 2009 10:38:55 -0400, Dave Angel ha scritto:
> mattia wrote:
>> Il Fri, 16 Oct 2009 22:40:34 -0700, Dennis Lee Bieber ha scritto:
>>
>>
>>> On Fri, 16 Oct 2009 23:39:38 -0400, Dave Angel
>>> declaimed the following in gmane.comp.python.general:
>>>
>>>
>>>
You're presumably tes
On Sat, 17 Oct 2009 13:12:52 +0100, Tim Rowe wrote:
> 2009/10/17 Steven D'Aprano :
>
>> No, you have a fundamental misunderstanding. They're called exceptions,
>> not errors, because they represent exceptional cases. Often errors are
>> exceptional cases, but they're not the only sort of exceptio
Jive Dadson wrote:
Wow.
It's a danged tutorial. Thanks again. Take a break.
Ben Finney's method is a very good approach, and an experienced Python
programmer would consider it straightforward.
But I have to ask whether the range of dates you might be considering
could be large. For ex
Dieter Maurer wrote:
Christian Heimes writes on Fri, 16 Oct 2009 17:58:29 +0200:
Alan G Isaac schrieb:
I expected this to be fixed in Python 3:
sum(['ab','cd'],'')
Traceback (most recent call last):
File "", line 1, in
TypeError: sum() can't sum strings [use
Lie Ryan writes:
> Paul Rubin wrote:
> > Steven D'Aprano writes:
> >> For the record, the four lines Paul implies are "confusing" are:
> >>
> >> try:
> >> d[key] += value
> >> except KeyError:
> >> d[key] = value
> >
> > Consider what happens if the computation of "key" or "value" itself
Hendrik van Rooyen writes:
> Standard Python idiom:
>
> if key in d:
> d[key] += value
> else:
> d[key] = value
The issue is that uses two lookups. If that's ok, the more usual idiom is:
d[key] = value + d.get(key, 0)
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin wrote:
Steven D'Aprano writes:
For the record, the four lines Paul implies are "confusing" are:
try:
d[key] += value
except KeyError:
d[key] = value
Consider what happens if the computation of "key" or "value" itself
raises KeyError.
Isn't key and value just a simple var
On Sat, 17 Oct 2009 23:37:51 -0700, Paul Rubin wrote:
> Steven D'Aprano writes:
>> For the record, the four lines Paul implies are "confusing" are:
>>
>> try:
>> d[key] += value
>> except KeyError:
>> d[key] = value
>
> Consider what happens if the computation of "key" or "value" itself
On Sat, 17 Oct 2009 23:54:37 -0700, Chris Rebert wrote:
> Perhaps if you could explain why there's the possibility these variables
> might not be defined...
If I have to support older versions of Python:
try:
bin
except NameError:
# Define my own.
def bin(arg):
...
But for m
Join the global Free SW HW & Culture meeting online via VOIP & IRC.
Sunday Oct 18, 12N-3P Pacific Daylight Savings Time (UTC-8),
3P-6P Eastern, (7P-10P UTC?)
http://sites.google.com/site/berkeleytip/remote-attendance
Or, come to the UCBerkeley Free Speech Cafe.
Discuss the videos, work on your o
Wow. It's a danged tutorial. Thanks again. Take a break.
--
http://mail.python.org/mailman/listinfo/python-list
Jive Dadson writes:
> Ben Finney wrote:
> > >>> friday_weekday = 4
> > >>> len([
> > ... date for date in (
> > ... begin_date + datetime.timedelta(days)
> > ... for days in range((end_date - begin_date).days))
> > ... if calendar.weekday(date.year,
On Sat, 17 Oct 2009 23:30:02 -0700, StarWing wrote:
> Sometimes I want to make a simple flags. and i need to check there is a
> name in current scope or not (that is, we can visit this name, no matter
> where is it). and how to do that in python?
(1) Use a sentinel:
myname = None # always exist
Chris Rebert wrote:
On Sat, Oct 17, 2009 at 10:22 PM, StarWing wrote:
okay, I think somethings dowhile is useful, but why python didn't
have it?
For simplicity of syntax and less duplication among the basic
syntactic constructs.
Less language features means less decisions to make.
--
ht
On Saturday, 17 October 2009 16:30:55 Aahz wrote:
> In article ,
>
> Tim Rowe wrote:
> >The point is that an exception causes a change in program flow, so of
> >course they're used for flow control. It's what they do. The question
> >is in what cases it's appropriate to use them.
>
> Standard Pyt
Ben Finney wrote:
Jive Dadson writes:
Can someone think of an easy way to calculate the number of weekdays
between two calendar dates (in Python)?
That depends on what you mean by “weekdays”.
>>> import datetime
>>> begin_date = datetime.date(2009, 10, 9)
>>> end_date = datetime
David <71da...@libero.it> writes:
> Il Sat, 17 Oct 2009 23:43:36 -0700 (PDT), StarWing ha scritto:
>
> > I got a idea, use a try...except statement. there are another way to
> > do it ?
> >
> > (I just curious now, because I solve my problem in another way :-)
>
> locals().has_key(myname)
> glob
On Sat, Oct 17, 2009 at 11:43 PM, StarWing wrote:
> On 10月18日, 下午2时37分, Chris Rebert wrote:
>> On Sat, Oct 17, 2009 at 11:30 PM, StarWing wrote:
>> > Sometimes I want to make a simple flags. and i need to check there is
>> > a name in current scope or not (that is, we can visit this name, no
>>
87 matches
Mail list logo