On 3/12/06, Andrew Gwozdziewycz <[EMAIL PROTECTED]> wrote:
>
> Look at the 'tadpoles' (i don't really think it's tadpoles really...
> but i'll bite for now),
> notice that it is a + sign, which we also always associate with life,
> and health (red cross comes to mind). Python
> is a healthy languag
I've got used to SPE(editor)+WinPdb(debugger)
not surprisingly of course ;-)
Concerning the free-of-charge IDE's, things might change quite a bit.
You might have read this:
http://groups.google.nl/group/comp.lang.python.announce/browse_thread/thread/240c000583168029/2dec4ae34efe16e2#2dec4ae34efe1
"Harry Fuecks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Wondering if a tool exists to generate "cross reference" documentation
> for Python code bases?
PyXR does cross referencing. epydoc generates good doc from comments
(javadoc style):
http://pyxr.sourceforge.net/
http
How do I draw rotated text in a Tkinter widget using the draw.text method?
Alternatively, if I draw text as normal, how can I then subsequently
rotate it about its start point?
--
http://mail.python.org/mailman/listinfo/python-list
Colin J. Williams wrote:
> Harry Fuecks wrote:
> > Hi All,
> >
> > Wondering if a tool exists to generate "cross reference" documentation
> > for Python code bases?
> >
> > Particularly after something like phpxref -
> > http://phpxref.sourceforge.net/ : written in Perl, scans a bunch of
> > PHP s
"invitro81" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> But I've no idea which one I should use to start with..
One thing you'll need to carefully decide is where you want
to end up. The different toolkits have different limits on
where you can go. A simple example is printing
>
> Tadpoles ( http://python.org/images/python-logo.gif ) are immature
> frogs. If we keep the logo, we can change the name of the language to
> "frog". Then the eggs would be found in lilypad.frog.org . I
> personally
> do not like this choice but it would have the virtue of consistency.
> (Did
jython2.2 is under developing, you can download the alpha version in sourceforge.2006/3/12, rtilley <[EMAIL PROTECTED]>:
Is development still going on with Jython? Version 2.1 came out in 2001and it's still the most current stable release.Thanks!--http://mail.python.org/mailman/listinfo/python-list
robert si è profuso/a a scrivere su comp.lang.python tutte queste
elucubrazioni:
> Yes, a "backup" / autosave while all threads are running. It doesn't
> matter if 'before' of 'after' another item has been added/deleted
> atomically.
But it does matter if the autosave happens *while* an item i
Sullivan wrote:
> IDLE is no longer satisfactory for me. Other IDEs make me very
> confused. Really do not know which one to use.
>
> I use WinXP sp2 for current development.
Personally I have gotten used to coding using ActiveState's Komodo. It
doesn't get in my way and offers the basic features
Thanks so much for the information, both of you. I guess I should have
just looked at it more simply to begin with. Now, I can move on to
more complicated information retrieval :-) My ultimate plan with this
task is to get whatever table attributes I can, like foreign/primary
keys, data types &
robert <[EMAIL PROTECTED]> wrote:
...
> What? When I add/del an item to a dict or list, this is not an atomic
> thread-safe operation?
Exactly: there is no such guarantee in the Python language.
> E.g.:
> One thread does things like d['x']='y'
> Another thread reads d['z'] or sets d['z']='w'
Michal Kwiatkowski <[EMAIL PROTECTED]> wrote:
...
> Can you also check my reasoning for getting attributes?
>
> value = obj.attr
> * if instance class has __getattribute__, call it
> * else: lookup "attr" in all parent classes using class __mro__;
> if it's a descriptor call its __get__
<[EMAIL PROTECTED]> wrote:
> This exactly what I was thinking.
>
> Are we wrong Alex?
Nope, you're not -- since ints aren't "immortal" (but rather limited to
being reused as other ints), then, if at no _other_ place in your
program do you ever need to be storing N ints at the same time, looping
Sullivan WxPyQtKinter wrote:
> IDLE is no longer satisfactory for me. Other IDEs make me very
> confused. Really do not know which one to use.
>
> I use WinXP sp2 for current development.
>
> So far as I know, Eclipse + PyDev + PyDev Extension is perfect for
> source code editing. Since I am real
On 3/11/06, Mike C. Fletcher <[EMAIL PROTECTED]> wrote:
> I realise it's an incredibly boring name, but what about pronouncing it
> as "the package index" or "the Python Package Index". Spelling it
> "PyPI" if one insists on a very short name in some written context is
> fine, but try not to use
> So here's a different approach, which I think does meet the spec:
>
> from itertools import tee
> def allwords2(alphabet="abcd", maxlen = 4):
> def wordgen():
> for char in alphabet:
> yield char
> for partial in allwordstee[1]:
> if len(partial) =
> [EMAIL PROTECTED] wrote:
...
>> I'm working on a project for school (it's not homework; just for fun).
>> For it, I need to make a list of words, starting with 1 character in length,
>> up to 15 or so.
>> It would look like:
>>
>> A B C d E F G ... Z Aa Ab Ac Ad Ae Aaa Aab Aac
...
>> If there is
Hi folks!
Is there any way to use anonymous memory mapping in python, versions
earlier than 2.5?
Greetings,
F. Sidler
--
http://mail.python.org/mailman/listinfo/python-list
I didn't say that right. As long as you are using deepcopy (or any
operation which might iterate over the keys or values in self.data),
your setter methods need that mutex, *and* it should probably be a
threading.Lock, not an RLock, just in case that iteration ends up
mutating the dict somehow. You
mwt wrote:
> def get_data(self, key):
> """Returns a COPY of data element."""
> try:
> self.mutex.acquire()
> return copy.deepcopy(self.data[key])
> finally:
> self.mutex.release()
self.mutex.acquire() should be outside the try bloc
Hi folks,
I seem to remember seeing a module some time in the distant past that
provided an API for implementing Cisco IOS-like command line
interfaces. I can't for the life of me find a reference to it on Google
now.
Does anyone know what I'm talking about?
Thanks,
David.
--
http://mail.pyt
On Sun, 12 Mar 2006 01:03:36 +0100
Rene Pijlman <[EMAIL PROTECTED]> wrote:
> >5. Debugging: Breakpoints, conditional pause. watch for
> >variables.step into, over and out of a function.
>
> Yes.
I'll second the recommendation of Wing's debugging. Best debugger I've
seen, any language, period. Onl
robert wrote:
>
> Guess it would be more wise to not expose deepcopy, cPickle.dump etc. to
> this kind of RuntimeError unnecessarily.
> The speed gain of the iterator-method - if any - is minor, compared to
> the app crash problems, which are not easy to discover and work-around
> (because they
Is development still going on with Jython? Version 2.1 came out in 2001
and it's still the most current stable release.
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 11 Mar 2006 00:07:52 +0100
Alan Franzoni <[EMAIL PROTECTED]> wrote:
> > again to make a choice is difficult; is there also some guy liking
> > pyqt is it worse or should it be avoided because of the licencing
> > policy for qt (which I also like..)?
> >
> > * Which one is the most fun
Sullivan WxPyQtKinter:
>I hope that an IDE should be featured with:
I use WingIDE 2.1.0 (beta1) and I'm pleased with it.
>1. Grammar Colored highlights.
Yes, Wing does that.
>2. Manage project in a tree view or something alike, ie, a project file
>navigator.
Yes.
>3. Code collapse and foldin
Tim Peters wrote:
> [robert]
>
>>...
>>PS: how does ZODB work with this kind of problem? I thought is uses cPickle?
>
>
> It does. Each thread in a ZODB application typically uses its own
> connection to a database. As a result, each thread gets its own
> consistent view of database objects,
On 2006-03-11, Michael Spencer <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>> Hi All,
>> First, I hope this post isn't against list rules; if so, I'll take note in
>> the future.
>>
>> I'm working on a project for school (it's not homework; just for fun).
>> For it, I need to make a list
EleSSaR^ wrote:
> robert si è profuso/a a scrivere su comp.lang.python tutte queste
> elucubrazioni:
>
>
>>own deepcopy: thus, do you already know if the existing deepcopy has the
>>same problem as cPickle.dump ?(as the problem araises rarely, it is
>>difficult for me to test it out)
>
>
IDLE is no longer satisfactory for me. Other IDEs make me very
confused. Really do not know which one to use.
I use WinXP sp2 for current development.
So far as I know, Eclipse + PyDev + PyDev Extension is perfect for
source code editing. Since I am really not sure how to use the debugger
module,
Well, thank the gods for unit testing. Here's the fah_data module with
fewer errors:
import copy, threading, observable
class FAHData(observable.Observable):
"""The data model for the [EMAIL PROTECTED] monitor."""
def __init__(self):
observable.Observable.__init__(self)
s
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi All,
> First, I hope this post isn't against list rules; if so, I'll take note
> in
> the future.
>
> I'm working on a project for school (it's not homework; just for fun).
> For it, I need to make a list of words, starting with 1
Alex Martelli napisał(a):
>> It still bugs me. What's the actual procedure when doing attribute
>> assignment? I understand it like this:
>>
>> obj.attr = value
>> * if instance class has __setattr__, call it
>>* else: if class has an attribute with name "attr" check if it's a
>> descript
Steven D'Aprano wrote:
> On Fri, 10 Mar 2006 02:19:10 +0100, Schüle Daniel wrote:
>
>
>>yeah, i miss some things in complex implementation
>>for example c=complex()
>>c.abs = 2**0.5
>>c.angle = pi/2
>>
>>should result in 1+1j :)
>
>
> Smiley noted, but consider:
>
> c = complex()
> => what is
Sullivan WxPyQtKinter wrote:
> I am sorry but you misunderstood my idea.
> What I want is a generalized method to print out the function name, or
> refer to the name of a function. If I use f.__name__, I think I should
> just use print "f" to save my keyboard. What I expect is using a
> method, or
Steven D'Aprano wrote:
> On Sat, 11 Mar 2006 13:37:05 +0100, Fredrik Lundh wrote:
>
>
>>"ygao" wrote:
>>
>>
>>>my question is as title!
>>
>>my answer as code:
>>
>>
>s = "g"
>t = ""
>s[0:0+len(t)] == t
>>
>>True
>>
>s[1:1+len(t)] == t
>>
>>True
>
>
>
> Or in other words, imagi
Shalabh Chaturvedi napisał(a):
> Here is a step-by-step description of what happens when you set or get
> an attribute on an object:
>
> http://cafepy.com/article/python_attributes_and_methods/ch01s05.html
This description doesn't take __getattr__/__getattribute__/__setattr__
in count.
mk
--
.
Sullivan WxPyQtKinter wrote:
> I am sorry but you misunderstood my idea.
> What I want is a generalized method to print out the function name, or
> refer to the name of a function. If I use f.__name__, I think I should
> just use print "f" to save my keyboard. What I expect is using a
> method, or
Em Sáb, 2006-03-11 às 23:44 +0100, robert escreveu:
> > Farwell and best of luck in finding other languages which support
> > threads in a way that is more to your liking than Python -- maybe Ruby
> > suits you, I don't know for sure though.
>
> I looked several times on Ruby, but stay with Python
Alex Martelli wrote:
> robert <[EMAIL PROTECTED]> wrote:
>...
>
>>99.99% no. I would have to use a lock everywhere, where I add or remove
>>something into a dict or list of the struct. Thats not the purpose of
>>big thread locks. Such simple operations are already atomic by the
>>definition
Sullivan WxPyQtKinter wrote:
If I would like to refer to the function object in order
> to call it recursively, what shall I do then?
I think the question is too simple. You can just refer to the function
by its name. Here is an example:
py> def f(start, end):
... if start >= end:
... pri
I am sorry but you misunderstood my idea.
What I want is a generalized method to print out the function name, or
refer to the name of a function. If I use f.__name__, I think I should
just use print "f" to save my keyboard. What I expect is using a
method, or attribute, or another function to get t
fumanchu: Interesting. I'm trying to understand atomicity. Also, since
I want this class to work using the Observer pattern, I've complicated
things, as shown below. I'll look into Dejavu for persistence (although
most of the basic values are persisted elsewhere, so this app will
mainly need only i
[EMAIL PROTECTED] wrote:
> Hi All,
> First, I hope this post isn't against list rules; if so, I'll take note in
> the future.
>
> I'm working on a project for school (it's not homework; just for fun).
> For it, I need to make a list of words, starting with 1 character in length,
> up to 15 or so.
[robert]
> ...
> PS: how does ZODB work with this kind of problem? I thought is uses cPickle?
It does. Each thread in a ZODB application typically uses its own
connection to a database. As a result, each thread gets its own
consistent view of database objects, which can (and routinely does)
vary
Michal Kwiatkowski wrote:
> Alex Martelli napisał(a):
> obj.__dict__
>> {}
>>
>> ...the presence of '__dict__' as an entry in C is confusing the issue,
>> because that's what you get in this case as obj.__dict__.
>
> It still bugs me. What's the actual procedure when doing attribute
> assignme
This exactly what I was thinking.
Are we wrong Alex?
--
http://mail.python.org/mailman/listinfo/python-list
Michal Kwiatkowski <[EMAIL PROTECTED]> wrote:
...
> Alex Martelli napisa?(a):
> obj.__dict__
> > {}
> >
> > ...the presence of '__dict__' as an entry in C is confusing the issue,
> > because that's what you get in this case as obj.__dict__.
>
> It still bugs me. What's the actual procedur
You might want to try using win32gui.GetOpenFileNameW.
It uses keyword arguments and doesn't require that you
build a struct yourself:
win32gui.GetOpenFileNameW(File='myfile.txt', Filter='Texts and
scripts\0*.txt;*.py\0Py stuff\0*.py\0')
Roger
"sri2097" <[EMAIL PROTECTED]> wrote in message
Sullivan WxPyQtKinter wrote:
> So how
> could I refer to the function object per se, in the body of the
> function itself?
Just use the name.
def f():
print f.__name__
>>> f()
f
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
First, I hope this post isn't against list rules; if so, I'll take note in
the future.
I'm working on a project for school (it's not homework; just for fun).
For it, I need to make a list of words, starting with 1 character in length,
up to 15 or so.
It would look like:
A B C d E F G ...
Alex Martelli napisał(a):
obj.__dict__
> {}
>
> ...the presence of '__dict__' as an entry in C is confusing the issue,
> because that's what you get in this case as obj.__dict__.
It still bugs me. What's the actual procedure when doing attribute
assignment? I understand it like this:
obj.at
Sullivan WxPyQtKinter wrote:
> I have Google the whole thing and find another way for alternative
> implementation of getting the function's name. But all they returns are
> just strings. If I would like to refer to the function object in order
> to call it recursively, what shall I do then?
>
a
I have Google the whole thing and find another way for alternative
implementation of getting the function's name. But all they returns are
just strings. If I would like to refer to the function object in order
to call it recursively, what shall I do then?
--
http://mail.python.org/mailman/listinf
A.M. Kuchling wrote:
> On Sat, 11 Mar 2006 16:50:26 +1100,
> richard <[EMAIL PROTECTED]> wrote:
>
>> So I did what people always do in this situation, I asked Barry Warsaw to
>> name. it. And he did, "Cheese Shop". I liked the name, so it was done. When
>> the new pydotorg machines went l
Sullivan WxPyQtKinter wrote:
> So how
> could I refer to the function object per se, in the body of the
> function itself?
>
>
I don't believe you can easily get at the function object, but you can get
at the code object which also has a name (which will be the same as the
function's name unles
A.M. Kuchling wrote:
> On Sat, 11 Mar 2006 16:50:26 +1100,
> richard <[EMAIL PROTECTED]> wrote:
>> So I did what people always do in this situation, I asked Barry Warsaw to
>> name. it. And he did, "Cheese Shop". I liked the name, so it was done. When
>> the new pydotorg machines went live l
On 11 Mar 2006 11:52:35 -0800, Kay Schluehr <[EMAIL PROTECTED]> wrote:
> Em, why not IYO? Because you will implement it however advanced the
> design might be as part of your Python exercises?
Look at the current code, there is nothing to implement. Most of the
work to be done is related to prese
mwt enlightened us with:
> I'm reworking a little app I wrote, in order to separate the data
> from the UI.
Good idea.
> As a start, I wanted to create a iron-clad data recepticle that will
> hold all the important values, and stand up to being queried by
> various sources, perhaps concurrently.
There's nothing really *broken* jumping out at me. The last three
methods (set_value, set_data, and clear_data) probably don't need a
mutex, since they will each have their own frame, and the operations
are atomic. If that makes no sense, Google for "Python GIL" ;). If you
just returned a value fro
When debugging using 'print' statement, I usually want to print some
important values together with the function name as the context of the
values printed out. So my hope is that I could get the name of the
function.
Since every function object actually has a private __name__ attribute
that gives
robert si è profuso/a a scrivere su comp.lang.python tutte queste
elucubrazioni:
[cut]
P.S.
I'm very bad at threaded programming. Please verify any of my suggestions
^_^
--
EleSSaR^ <[EMAIL PROTECTED]>
--
Togli .xyz dalla mia email per contattarmi.
--
http://mail.python.org/mailman/listinfo/
robert si è profuso/a a scrivere su comp.lang.python tutte queste
elucubrazioni:
> own deepcopy: thus, do you already know if the existing deepcopy has the
> same problem as cPickle.dump ?(as the problem araises rarely, it is
> difficult for me to test it out)
I don't know the exact specs
Michal Kwiatkowski <[EMAIL PROTECTED]> wrote:
> class C(object):
> __dict__ = {}
>
> obj = C()
> obj.a = 7
> obj.__dict__ = {}
> print object.__getattribute__(obj, '__dict__')
> print object.__getattribute__(C, '__dict__')
> print obj.a # => 7 !!!
>
> First print returns "{}" and the second
I think a logo contest is a good idea, and I am already working on my
entry.
I could also imagine a stylesheet contest.
The issue is who does the judging and what are the criteria.
Steve, what you say is true. Possibly people who are experienced in
making a six page site for their aunt's caterin
Hi. I'm reworking a little app I wrote, in order to separate the data
from the UI. As a start, I wanted to create a iron-clad data recepticle
that will hold all the important values, and stand up to being queried
by various sources, perhaps concurrently. In all likelihood, the app
will never need a
Bertrand Mansion wrote:
> On 3/11/06, Steve Holden <[EMAIL PROTECTED]> wrote:
>
> > "A competition" sounds like a wonderful idea, but suppose there were to
> > be one, and a winner were to be declared, where do we go from there to
> > get the winning design up on a server behind www.python.org?
>
Hi there,
Jumping until blue a écrit :
> I have a number of files, mostly text files formatted using Markdown
> syntax but also pdfs and other types of files, that are stored in a
> folder hierarchy and I want to develop a web application where I can
> brows, view and search these files. The docu
Harry Fuecks wrote:
> Hi All,
>
> Wondering if a tool exists to generate "cross reference" documentation
> for Python code bases?
>
> Particularly after something like phpxref -
> http://phpxref.sourceforge.net/ : written in Perl, scans a bunch of
> PHP scripts and generates HTML output that allo
Alex Martelli napisał(a):
> First, let's forget legacy-style classes, existing only for backwards
> compatibility, and focus on new-style ones exclusively -- never use
> legacy classes if you can avoid that.
Ok, let's cover only new-style classes in our discussion.
I've read your comments and am
On 3/11/06, Steve Holden <[EMAIL PROTECTED]> wrote:
> "A competition" sounds like a wonderful idea, but suppose there were to
> be one, and a winner were to be declared, where do we go from there to
> get the winning design up on a server behind www.python.org?
That's not the problem IMO.
Before
In article <[EMAIL PROTECTED]>,
Alex Martelli <[EMAIL PROTECTED]> wrote:
><[EMAIL PROTECTED]> wrote:
>>
>> I think I understand the original statement now. What you are really
>> saying is that there is a pool of Python float objects (which can, at
>> different times, wrap different values) which
<[EMAIL PROTECTED]> wrote:
> Sorry for responding to my own post.
>
> I think I understand the original statement now. What you are really
> saying is that there is a pool of Python float objects (which can, at
> different times, wrap different values) which can grow but never
> decrease in size
On Sat, 11 Mar 2006 16:50:26 +1100,
richard <[EMAIL PROTECTED]> wrote:
> So I did what people always do in this situation, I asked Barry Warsaw to
> name. it. And he did, "Cheese Shop". I liked the name, so it was done. When
> the new pydotorg machines went live last year, so too did the n
On Sat, 11 Mar 2006 12:00:26 -0600,
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I believe the plan is to move most/all the PyCon-related stuff to the
> pycon.org domain, though I'm not certain about that.
No, that's not the plan. The PSF doesn't own the domain, and I want
the data to
Luis M. González wrote:
> I wouldn't want to sound like I'm criticizing other people's work.
> To those who offered their time to create this site, which is quite an
> improvement over the old one, thank you!
>
> However, I like the idea of a contest. Both for the site and for the
> logo.
> Perhap
> Try here:
>
> http://us.pycon.org/zope/original/pycon/pastevents/dc2004
>
I see summaries of the paper, but when I follow the link for the papers
themselves, it leads to the same dead end.
--
http://mail.python.org/mailman/listinfo/python-list
Terry Reedy wrote:
> "P Boy" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>>> Has anyone yet written a program to grab C struct declaration from the
>>> .h
>>> to produce code like
>>>
>>> # Overlay configuration
>>> class OverlayStoreConfig(ctypes.Structure):
>>> _fields_ =
Luis M. González wrote:
> I wouldn't want to sound like I'm criticizing other people's work.
> To those who offered their time to create this site, which is quite an
> improvement over the old one, thank you!
>
> However, I like the idea of a contest. Both for the site and for the
> logo.
> Perhap
On Mar 11, 2006, at 11:21 AM, Peter Otten wrote:
> Am Freitag, 10. März 2006 19:38 schrieben Sie:
>
item = mylist.pop(random.randint(0,len(mylist)))
>>>
>>> This is broken because randint(a, b) may return b.
>>> I prefer randrange(len(mylist)) over randint(0, len(mylist)-1) as
>>> a fix.
>
I'm confused ... and need some advice
Here is what I want to do:
I have a number of files, mostly text files formatted using Markdown
syntax but also pdfs and other types of files, that are stored in a
folder hierarchy and I want to develop a web application where I can
brows, view and search the
Hallöchen!
"Michael Tobis" <[EMAIL PROTECTED]> writes:
> [...]
>
> Pythons build no nests. Their eggs are found in coils. coil.python.org
> ?
Better eggs.python.org. Would support the spread of the new file
format, too.
Tschö,
Torsten.
--
Torsten Bronger, aquisgrana, europa vetus
Hi All,
Wondering if a tool exists to generate "cross reference" documentation
for Python code bases?
Particularly after something like phpxref -
http://phpxref.sourceforge.net/ : written in Perl, scans a bunch of
PHP scripts and generates HTML output that allows you to see all the
classes / meth
I like cheeseshop just fine, but have been a Monty Python fan since
they appeared on the CBC in, I think, 1969. I'm one of those people who
is always surprised when a MP bon mot is greeted with confusion and the
suspicion that I have finally lost my mind altogether. So...
If we are moving to the s
Andrew> http://www.python.org/community/pycon/dc2004 seems to have
Andrew> vanished...
Andrew,
Try here:
http://us.pycon.org/zope/original/pycon/pastevents/dc2004
I found it by going to http://www.python.org/community/pycon/ then clicking
the 2004 link in the Past Conferences secti
I've only been goofing around with Python for about a month now, but
already I am in love.
I never get that feeling -- so common with Java -- that I'm swimming
upstream, struggling to force the language to do what I want.
Python makes it feel effortless and easy.
--
http://mail.python.org/mailman
Just wrote:
> In article <[EMAIL PROTECTED]>,
> Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
>> On Sat, 11 Mar 2006 13:30:43 +1100, Tim Churches
>> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>>> Would it be possible to rename "Cheese Shop" as "Bright Side of Life"?
>> I
robert <[EMAIL PROTECTED]> wrote:
...
> 99.99% no. I would have to use a lock everywhere, where I add or remove
> something into a dict or list of the struct. Thats not the purpose of
> big thread locks. Such simple operations are already atomic by the
> definition of Python - and thanks to the
Steven D'Aprano wrote:
> On Sat, 11 Mar 2006 16:09:22 +0100, robert wrote:
>
>
>>>Lastly, have you considered that your attempted solution is completely the
>>>wrong way to solve the problem? If you explain _what_ you are wanting to
>>>do, rather than _how_ you want to do it, perhaps there is a
Em Sáb, 2006-03-11 às 04:25 -0800, ygao escreveu:
> my question is as title!
> thanks!
Forget it. Just look:
$ python2.4 -mtimeit '"g".count("")'
100 loops, best of 3: 0.516 usec per loop
$ python2.4 -mtimeit 'len("g")+1'
100 loops, best of 3: 0.26 usec per loop
--
"Quem excele em empr
For the same reason as
>>> "".count("")
1
>>> "ab".count("")
3
This is counting slice positions, which is one more that the length of the
string.
--
http://mail.python.org/mailman/listinfo/python-list
"Spinchange" wrote:
> Can someone post a link or email me an image of the old Python logo?
> I'd like to save a copy of it, I rather liked it - very retro.
the dot matrix logo ?
you can get a copy from this page:
http://pydotorg.dyndns.org:8000/PythonOrg.html
--
http://mail.python.org
Can someone post a link or email me an image of the old Python logo?
I'd like to save a copy of it, I rather liked it - very retro.
--
http://mail.python.org/mailman/listinfo/python-list
> > YES THATS THE POINT. PYTHON CAN BE USED JUST LIKE A CONFIG FILE.
>
> AND CAN ALSO BE MISUSED AND HARDER TO USE THAN A SIMPLE CONFIG FILE.
> Get it into your thick head that you're plain wrong here.
comp.lang.python sure isn't what it used to be :-(
--
http://mail.python.org/mailman/listi
I wouldn't want to sound like I'm criticizing other people's work.
To those who offered their time to create this site, which is quite an
improvement over the old one, thank you!
However, I like the idea of a contest. Both for the site and for the
logo.
Perhaps something cool could come up from th
http://www.python.org/community/pycon/dc2004 seems to have vanished...
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 11 Mar 2006 05:49:38 -0800, gangesmaster wrote:
>>> Why is the first uglier than the second?
> YES THATS THE POINT. PYTHON CAN BE USED JUST LIKE A CONFIG FILE.
>
> and if your users did
> timeout = "300"
> instead of
> timeout = 300
>
> then either your config parser must be uber-smart a
On Sat, 11 Mar 2006 16:09:22 +0100, robert wrote:
>> Lastly, have you considered that your attempted solution is completely the
>> wrong way to solve the problem? If you explain _what_ you are wanting to
>> do, rather than _how_ you want to do it, perhaps there is a better way.
>
> So, there seem
"gangesmaster" <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> aah. you all are too stupid.
-1 QOTW.
--
rzed
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 156 matches
Mail list logo