art from
requiring about three times as much data from /dev/random, it wasn't
materially different from a simple SSL cert check...
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Jun 19, 2011 at 6:40 AM, Michael Hrivnak wrote:
> On Sat, Jun 18, 2011 at 1:26 PM, Chris Angelico wrote:
>> SSL certificates are good, but they can be stolen (very easily if the
>> client is open source). Anything algorithmic suffers from the same
>> issue.
>
&g
On Sun, Jun 19, 2011 at 10:38 AM, Gregory Ewing
wrote:
> And that only if the attacker isn't a Python programmer.
> If he is, he's probably writing his attack program in
> Python anyway. :-)
>
I was thinking you'd have it call on various functions defined
elsewhere in the program, forcing him to
On Sun, Jun 19, 2011 at 10:56 PM, Ethan Furman wrote:
> Lie Ryan wrote:
>> def cdr(L):
>> return L[1]
>
> IANAL (I am not a Lisper), but shouldn't that be 'return L[1:]' ?
In LISP, a list is a series of two-item units (conses).
>> L = (a, (b, (c, (d, None
This represents the LISP equival
raw_input()
"Ha ha! 'Tis mine!", he said.
>>> print repr(x)
'"Ha ha! \'Tis mine!", he said.'
In this instance, repr chose to use single quotes, but the same applies.
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Jun 20, 2011 at 1:39 AM, Laurent Claessens wrote:
> My problem is that when FileToCopyTask raises an error, the program does not
> stop.
> In fact when the error is Disk Full, I want to stop the whole program
> because I know that the next task will fail too.
If you're starting a thread f
.It'll keep some and not others, and then
you can make use of just the ones you get back.
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
d's run() method one by one,
which should propagate any exceptions in the same way that function
calls usually do.
Can you share the code for one of the tasks, and show what happens
when it raises an exception?
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
#x27;ve already
hit on the two broad types (import the code, or use stdout/rc).
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
declaring variables.
In my opinion it's better to declare them, except in interactive code
(eg IDLE or just typing "python"). But Python isn't that.
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Jun 21, 2011 at 10:39 AM, Ben Finney wrote:
> gervaz writes:
> Python doesn't have variables the way C or many other languages have
> them.
>
> Instead, Python has objects, and references to those objects so you can
> get at them. The Python documentation, much to my frustration, calls
>
he exceptions that this can
itself produce, but if there's exceptions that come from illogical
arguments (like the TypeError above), then just ignore them and let
them propagate. If is_process("asdf") throws TypeError rather than
returning False, I would call that acceptable behaviour.
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Jun 21, 2011 at 12:38 PM, Ben Finney wrote:
> The *binding* is scoped.
>
And the binding follows the exact same rules as anything else would.
It has scope and visibility. In terms of the OP, the binding IS like a
variable.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Jun 22, 2011 at 7:48 AM, John Salerno wrote:
> Thanks for the all the advice everyone. Now I'm on to problem #4, and
> I'm stumped again, but that's what's fun! :)
So now that you've solved it, I'd like to see some fast one-liners to
do the job. (Since Python cares about whitespace, it mi
Oops, realized after posting that there's a bug in my code - it
returns 1 for a perfect square. Need another check in the 'while'
loop, thus:
On Wed, Jun 22, 2011 at 8:59 AM, Chris Angelico wrote:
> exec 600851475143; for (int i=2;ii) ret/=i
>
> while not ret%i and ret
pythontest.com:8000/
Find a bug, get noted as a contributor! :)
Thanks!
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Jun 22, 2011 at 12:02 PM, Paul Rubin wrote:
> Chris Angelico writes:
>> users to supply scripts which will then run on our servers...
>> The environment is Python 3.3a0 embedded in C++, running on Linux.
>
> This doesn't sound like a bright idea, given the
nline for another shot once
things are sorted out!
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
and how much dev time it's going to take me to
change languages...
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
, so it may as well iterate over the generator instead.
But I don't really understand what codePoints() does. Is it expecting
the parameter to be a string of bytes or of Unicode characters?
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Jun 22, 2011 at 1:50 PM, Saul Spatz wrote:
> This is the third time I've tried to post this reply. If you see multiple
> answers from me, that's why.
>
All three came through on the mailing list, but out of order - this
one came in second.
Chris Angelico
--
htt
On Wed, Jun 22, 2011 at 10:01 PM, Anny Mous wrote:
> prime = table[i]
> del table[i]
>
I don't fully understand your algorithm, but I think these two lines
can be rewritten as:
prime=table.pop(i)
Interesting algo. A recursive generator, not sure I've seen one of those befor
On Thu, Jun 23, 2011 at 9:58 PM, Waldek M. wrote:
> Of course, it is just my personal opinion. It might be not pythonic,
> I may be wrong, yet - concept of constants is not something new and
> if other languages, like C/C++/Java/Perl/ (bash even) have them,
> I can't see the reason not to have the
On Fri, Jun 24, 2011 at 2:58 AM, Eric Snow wrote:
> So, which are the other pieces of Python that really need the heavy
> optimization and which are those that don't? Thanks.
>
Things that are executed once (imports, class/func definitions) and
things that primarily wait for user input don't nee
2011/6/24 Waldek M. :
> Dnia Fri, 24 Jun 2011 01:29:38 +1000, Chris Angelico napisał(a):
>> You can have them in Python. Just run your code through cpp (the C
>> preprocessor) first. Voila!
>>
>> It's handy for other things too. Don't like Python's lac
On Fri, Jun 24, 2011 at 10:07 AM, Steven D'Aprano
wrote:
> On Fri, 24 Jun 2011 04:00:17 +1000, Chris Angelico wrote:
>
>> On Fri, Jun 24, 2011 at 2:58 AM, Eric Snow
>> wrote:
>>> So, which are the other pieces of Python that really need the heavy
>>> op
On Fri, Jun 24, 2011 at 2:32 PM, Chetan Harjani
wrote:
> x=y="some string"
> And we know that python interprets from left to right. so why it doesnt
> raise a name error here saying name 'y' is not defined?
In most languages, the answer is that the = operator associates right
to left, even though
On Fri, Jun 24, 2011 at 5:14 PM, Ethan Furman wrote:
> --> x = x['huh'] = {}
> --> x
> {'huh': {...}}
>
I would have to call that dodgy practice... unless you have a lot of
places where you need a dictionary with itself as an element, I would
avoid assignments that depend on each other.
Perhaps
On Sat, Jun 25, 2011 at 7:02 AM, Terry Reedy wrote:
> If I have ever used this sort of multiple assignment, it has been for simple
> unambiguous things like "a = b = 0".
For which it's extremely useful. Initialize a whole bunch of variables
to zero... or to a couple of values:
minfoo=minbar=minq
" would be FooException +
Y.__exceptions__ + Z.__exceptions__. It won't be perfect, but it'd be
something that could go into an autodoc-style facility. Obviously you
can fiddle with things, but in _ordinary usage_ this is what it's
_most likely_ to produce.
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
2011/6/25 Waldek M. :
> Dnia Fri, 24 Jun 2011 08:00:06 +1000, Chris Angelico napisał(a):
>>> Yup, got the sarcasm, that's for sure.
>>> But your point was...?
>>
>> That if you want something, there's usually a way to get it.
>> Sometimes, giving so
On Sun, Jun 26, 2011 at 12:28 AM, wrote:
> Chris Angelico wrote:
>
>> Sure it can. And KeyboardInterrupt could be raised at any time, too.
>> But this is a TOOL, not a deity. If Function X is known to call
>> Function Y and built-in method Z,
>
> Known by whom? Yo
On Mon, Jun 27, 2011 at 1:28 AM, rzed wrote:
> As to 2to3, I have to say that:
>
> -def a(b, (c,d)):
> +def a(b, xxx_todo_changeme):
> + (c,d) = xxx_todo_changeme
>
> ... is not terribly revealing if one is unaware of what about it
> needs changing. I know, I know: RTFM
Sure, but you don't
rrently you're printing out one word and one length from
each line, which isn't terribly useful. Try this:
for wordlen, wordfreq in freq.enumerate():
print(wordlen+"\t"+wordfreq);
This should be outside the 'for line in' loop.
There's a few other improvements po
On Tue, Jun 28, 2011 at 3:00 AM, Cathy James wrote:
> for word in line.lower().split( ):#split lines into words and make lower
> case
By the way, side point: There's not much point lower-casing the line
when all you care about is the lengths of words :)
ChrisA
--
http://mail.python.org/mailman/
On Tue, Jun 28, 2011 at 12:56 PM, Steven D'Aprano
wrote:
> Zero sig figure: 0
>
Is 0.0 one sig fig or two? (Just vaguely curious. Also curious as to
whether a zero sig figures value is ever useful.)
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Jun 28, 2011 at 9:47 PM, Mel wrote:
>
> By convention, nobody ever talks about 1 x 9.97^6 .
Unless you're a British politician of indeterminate party
allegiance famous line, quoted as #6 in here:
http://www.telegraph.co.uk/culture/tvandradio/7309332/The-ten-funniest-ever-Yes-Minister-
, same as the
prefix.
This is completely untested, but it should be a start. (Replace the
calls to the imaginary "emit" function with whatever you do to emit
results - for the intermediate passes, that's probably appending to a
list.)
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Jun 29, 2011 at 8:56 AM, Chris Angelico wrote:
> else emit(lastprefix+tails)
> else emit(lastprefix+tails)
Typo in the above code. The else needs a colon after it, both times.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Jul 1, 2011 at 3:18 AM, MRAB wrote:
> Looks like it hasn't changed even in WinXP, Python 3.2.
>
> Is IOError what you'd expect, anyway?
>
> What should it do in Python 3.2? Exception or max(seconds, 0)?
The obvious thing for it to do is to go back in time and resume
executing that many se
On Fri, Jul 1, 2011 at 8:33 PM, TP wrote:
> Not sure if this is relevant. I use mail.google.com to follow mailing
> lists and a large proportion of python-list traffic ends up in my
> gmail spam folder for some reason?
Set a filter (you can "Filter messages like this") that says "Never
spam". Tha
mand that other people write your glue for you,
because chances are they won't do as good a job as an expert in the
language.
C or C++ bindings will cover most languages.
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Jul 3, 2011 at 10:21 AM, rantingrick wrote:
> No. Aspell should offer bindings for THE "Unity API" and the
> respective "abstraction communities" are then responsible for
> maintaining a plugin for their "abstraction" into THE Unity API.
>
Your proposed "Unity API" (which I assume has not
'Test'])
But:
>>> c=['Foobar']
>>> c,d
(['Foobar'], ['Test'])
When you do a=2 or c=['Foobar'], you're rebinding the name to a new
object. But c.append() changes that object, so it changes it
regardless of which name you look for it by.
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Jul 3, 2011 at 10:58 AM, rantingrick wrote:
>
> Take Pidgin[1] as an example. Pidgin is a universal chat client. It's
> a glue between the many chat clients that exist... It's a monkey patch
> for chat multiplicity but you get the idea. However the Unity API
> cannot be a monkey patch. It
On Sun, Jul 3, 2011 at 11:07 AM, Chris Rebert wrote:
> c,d
>> ({}, [])
>
> Nasty typo in your pseudo-interpreter-session there...
Whoops! This is what I get for trying to be too smart!
>>> c,d
([], [])
Thanks for catching that, Chris. :)
(another) Chris
--
http://mail.python.org/mailman/l
learning. It means you can transfer
knowledge from one language to another. It doesn't make either
useless.
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
mend change. Use try/except to
catch exceptional situations, not normalities. If your code is going
through the except block most of the time, there's probably something
wrong. Note I don't say there IS something wrong; it's an example of
code smell, and can be correct.
Your code has much in its favour. I've been wordy in suggestions but
that doesn't mean you have bad code! :)
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
("wait wha? This programmer's defined + and *
in opposite precedence to usual!"). But hey, there's only one language
that you need to learn!
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Jul 3, 2011 at 1:41 PM, John Salerno wrote:
> Yeah, I considered that, but I just hate the way it looks when the
> line wraps around to the left margin. I wanted to line it all up under
> the opening quotation mark. The wrapping may not be as much of an
> issue when assigning a variable li
A new
user should learn from day one that variables need to be stored
somewhere, so Python should stop coddling its newbies and actually get
them to do things right:
var(0x14205359) x # Don't forget to provide an address where the
object will be located
x=42
After all, everyone's gotta l
acters. If you divide the contents of the file on
the "\n" character, and then try to work with the end of each line,
you may find that the string has a "\r" character at the end.
3) What Irmen de Jong said. :)
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
> windows should have equal status.
I don't know Tkinter, but from the look of the example code, he's
creating a Label that's not attached to a window, and then packing it
into nothing. The toolkit kindly creates him a window. Is that the
"root GUI window" that he means? A basic top-level window?
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Jul 5, 2011 at 1:19 AM, rantingrick wrote:
> But let's dig a little deeper here. Your comment suggests that you
> "personally" need to create multiple windows for your applications. Is
> this correct? If so i pity any users of such application as they would
> be thoroughly confused. Most a
On Tue, Jul 5, 2011 at 1:46 AM, rantingrick wrote:
> On Jul 4, 10:40 am, Chris Angelico wrote:
>
>> Uhh, sorry. No. There are plenty of good reasons for one application
>> to make multiple top-level windows, and if I ever find myself using a
>> toolkit that makes this d
Has anyone ever used a very-high-level language (like Python or Ruby
or Lua) to write, say, a video driver? There is a place for the
languages that take most of the work away from the programmer, and a
place for languages that basically give you the hardware and say "have
fun". There will never be a universal language that does both jobs
perfectly. *returns the crystal ball*
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Jul 5, 2011 at 2:37 AM, OKB (not okblacke)
wrote:
> Well, what I'm saying is I use an editor that lets me make the
> lines as long as I want, and it still wraps them right, so I never
> explicitly hit enter to break a line except at the end of a string (or
> paragraph).
In this ins
On Tue, Jul 5, 2011 at 3:09 AM, rantingrick wrote:
> On Jul 4, 11:01 am, Chris Angelico wrote:
>> This is not
>> a modal dialog; it's not even a modeless dialog - it's a completely
>> stand-alone window that can be moved around the Z order independently
>> of
not seeing any log entries. The reactions from the Python end are
exactly what I'd expect. Look at fiddler's documentation to see if you
can enable verbose logging, or something of the sort.
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Jul 5, 2011 at 5:30 AM, rantingrick wrote:
> Umm, if you want to see where things are "going" you should learn
> about the inner workings of chrome which actually spawns a new process
> for every tab created; which has the benefit of avoiding application
> lock up when one page decides to
On Tue, Jul 5, 2011 at 10:01 AM, Tim Johnson wrote:
> Steven, I'm building a documentation system. I have my own MVC framework
> and the goal is to have a documentation module for each project.
>
Is there a reason for not using Doxygen / Autodoc / etc, or at least
something in the same style? T
On Tue, Jul 5, 2011 at 10:03 AM, Ben Finney wrote:
> Chris Angelico writes:
>
>> In this instance, I believe the OP was paragraphing his text.
>
> What is “paragraphing”?
If you look at the original code, you'll see embedded newlines used to
create multiple paragraphs.
On Wed, Jul 6, 2011 at 12:25 AM, Steven D'Aprano
wrote:
> Gregory Ewing wrote:
>
>> You've obviously never used a Macintosh. On the Mac, it's
>> perfectly normal for an application to open multiple
>> documents, each in its own window, with no one window
>> being the "main" window. Any of them can
On Wed, Jul 6, 2011 at 12:36 AM, Steven D'Aprano
wrote:
print "Hello world"
> dlrow olleH
>
You, sir, have a warped and twisted mind.
And I love it!!
Now to secretly put code into some module somewhere and wait for
people to start tearing their hair out wait, did I say that out
loud?
On Wed, Jul 6, 2011 at 4:14 AM, sal migondis wrote:
> On Jul 4, 10:31 pm, alex23 wrote:
>> rantingrick wrote:
>> > What do you think will be the eventual outcome of the human existence
>> > Alex? Since you have no imagination i will tell you, a singular
>> > intelligence.
>
> All from the land o
On Wed, Jul 6, 2011 at 3:36 AM, Steven D'Aprano
wrote:
>
> Because unless you are extremely disciplined, code and the comments
> describing them get out of sync. Quote:
>
> "At Resolver we've found it useful to short-circuit any doubt and just
> refer to comments in code as 'lies'. "
> --Michael F
On Wed, Jul 6, 2011 at 8:35 AM, rantingrick wrote:
> You're the
> best enemy a person could have. Thank you. *bows*
Compliments are made to be returned, and this one is particularly well
suited. *bow*
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Jul 6, 2011 at 8:42 AM, rantingrick wrote:
> Chris are you playing devils advocate (for my team). I am confused? :-)
I say whatever I choose to say. Don't pigeon-hole me into "on your
team" or "not on your team" or "devil's advocate" or whatever. And at
two in the morning, "whatever I cho
On Wed, Jul 6, 2011 at 9:47 AM, rantingrick wrote:
>> > Then that is NOT closing windows that is only ICONIFIYING/HIDING them.
>> > Let's use the correct lingo people!
>>
>> Actually, it IS closing those windows. Why wouldn't it be?
>> [...]
>> The memory used by that window can be reclaimed. Hand
On Wed, Jul 6, 2011 at 10:15 AM, rantingrick wrote:
> On Jul 5, 6:54 pm, Chris Angelico wrote:
>
>> To do what for me? Close windows? Reclaim memory? Terminate
>> applications? I don't understand your bogglement.
>
> ClaimA: I made claim that Tkinter's window h
On Wed, Jul 6, 2011 at 11:07 AM, rantingrick wrote:
> On Jul 4, 6:24 pm, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote:
>> Define "best for all", and try not to make it "what Rick wants".
>
> You want features? And remember i am talking about scripting/glue
> level languages here. Someth
On Wed, Jul 6, 2011 at 11:53 AM, rantingrick wrote:
> So you would start drivers education class with road construction? Or
> the history of the internal combustion engine? Who cares about
> actually *driving* the car.
>
I believe that starting driver ed with some basics of how an internal
combus
fight
> instead they're just cowards spewing more endless tripe.
Standing up and fighting takes effort. It's a lot easier - and a lot
more time-efficient - to ignore idiots and trolls and just get some
work done. I think I'll do that, right now.
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Jul 6, 2011 at 2:13 PM, Andrew Berg wrote:
> On 2011.07.05 09:31 PM, Chris Angelico wrote:
>> I've said for a while that Microsoft could do far worse than to turn
>> Windows into a GUI that sits on top of a Unix-derived kernel. They
>> won't do it, though,
On Wed, Jul 6, 2011 at 2:53 PM, Andrew Berg wrote:
>> Let Microsoft play with, and sell, pretty GUIs and pretty apps.
> I completely disagree. MS sucks at making GUIs.
>
I never said they were good at making GUIs. I said they were good at
selling GUIs.
Dan is right about the ugliness of the Wind
On Wed, Jul 6, 2011 at 3:26 PM, Dennis Lee Bieber wrote:
> On Wed, 6 Jul 2011 12:31:02 +1000, Chris Angelico
> declaimed the following in gmane.comp.python.general:
>> Democracy DOES NOT WORK. Plain and simple. You cannot build a
>> programming language democratically.
>&g
On Wed, Jul 6, 2011 at 5:49 PM, Rama Rao Polneni wrote:
> Hi All,
>
> I am facing a problem when I am storing cursor fetched(Oracle 10G)
> data in to a dictionary.
> As I don't have option to manipulate data in oracle10G, I had to stick
> to python to parse the data for some metrics.
>
> After sto
On Wed, Jul 6, 2011 at 11:30 AM, Dustin Cheung wrote:
> Hey,
> I am looking into Tkinter. But i am not sure if it will actually work. This
> maybe a crazy idea but i was wondering if i can put a web browser in the
> frame. I have tried to use Tkinter to resize and place the windows to
> certain ar
On Wed, Jul 6, 2011 at 11:41 PM, rantingrick wrote:
> Give it up man and admit i am correct and you are wrong.
>
Sorry. A Lawful Good character cannot tell a lie.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Jul 7, 2011 at 1:10 AM, rantingrick wrote:
> On Jul 6, 9:32 am, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote:
>> Open your mind to ideas that go beyond your simple window-centric paradigm!
>
> Correction: Window-Centric GUI paradigm! BIG DIFFERENCE.
>
>> There is more to graphic
Five more good entries (though I think #8 and #9 are mostly covered
already). But hey, we have at least an octagon to work in.
On Thu, Jul 7, 2011 at 3:37 AM, Tim Chase wrote:
> I think there are sufficiently many edge cases this formerly-square room is
> starting to look round...
The room is st
On Thu, Jul 7, 2011 at 5:15 AM, Ian Kelly wrote:
> On Wed, Jul 6, 2011 at 12:36 PM, Andrew Berg
> wrote:
>> On 2011.07.06 01:19 PM, rantingrick wrote:
>>> ##
>>> The Roman Stawman Sketch
>>> ##
>> Nice try, but you have to use a Monty Python sketc
On Fri, Jul 8, 2011 at 3:29 AM, rantingrick wrote:
> So your argument is:
> """ A window hierarchy is bad because if your application requires
> a user to open a gazillion windows (read as: designed poorly) --each
> representing completely different transactions-- and if you close the
> origina
On Fri, Jul 8, 2011 at 4:18 AM, high bandwidth wrote:
> I use cached dns lookups with pdnsd on my ubuntu machine to speed up web
> access as regular lookups can take 15-30 seconds. However, python's
> mechanize and urllib etc use socket.getaddrinfo, which seems not to be using
> dns cacheing or ta
On Sat, Jul 9, 2011 at 3:30 PM, Steven D'Aprano
wrote:
> It also doesn't generalise: only appends are optimized, not prepends.
>
> If you're interested in learning about the optimization:
>
> http://utcc.utoronto.ca/~cks/space/blog/python/ExaminingStringConcatOpt
>From that page:
"Also, this is o
cs.python.org/dev/tutorial/modules.html#the-module-search-path
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Jul 11, 2011 at 3:15 AM, rantingrick wrote:
> I suggest we solve this dilemma by forcing a syntax "tag" when
> declaring clobbering virtual functions.
Python has other dilemmas, too. I suggest we adopt the same solution.
For instance, every statement should begin with a marker, so that w
On Mon, Jul 11, 2011 at 3:47 AM, Andrew Berg wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: RIPEMD160
>
> On 2011.07.10 12:41 PM, Tim Johnson wrote:
>> It possible for a function to print it's own docstring?
def test():
> ... """Hi there."""
> ... print(test.__doc__)
That's assu
g able to learn
Pike might suddenly come in handy when you find yourself invited to
code on somebody's MUD some day!
Chris Angelico
Currently striving to be the Mr Melas of programming languages
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Jul 12, 2011 at 12:21 AM, sturlamolden wrote:
> You are probably aware that Unix and Unix customers have been around
> since the 1970s. I would expect the paradigm to be changed by now.
>
The paradigm of small tools that do exactly what they're supposed to,
and can be combined? Nope. Ther
On Mon, Jul 11, 2011 at 11:42 PM, rantingrick wrote:
> This mandate must be handed down from the gods who reside on "Mount
> REFUSE-E-OUS to RECOGNIZE-E-OUS a major PROBLEM-O-MOUS"
>
I assume you're trying to reference Mount Olympus where the Greek gods
live, but I'm left thinking more of Mount V
On Tue, Jul 12, 2011 at 2:56 AM, rantingrick wrote:
> It is very rare to need to "bang out" hundreds of lines of code to
> replace a mouse click interface. If properly designed a good API can
> compete with a GUI. In far less time than it takes me to scroll down a
> list of widgets, pick the appro
On Tue, Jul 12, 2011 at 4:28 AM, Ivan Kljaic wrote:
> For how many years are this vui library wars going on. How many. Look.
> I am a open source supporter but Windows will always kick the ass of
> open source because the open source comunity can not make a decision.
You think Microsoft makes dec
On Tue, Jul 12, 2011 at 4:52 AM, rantingrick wrote:
> As we all know you only need three types of geometry management:
> * Linear (horizontal&vertical)
> * Grid
> * Absolute
>
I contend that Absolute is unnecessary and potentially dangerous. Grid
and Box (linear) are the most flexible, but the
On Tue, Jul 12, 2011 at 7:46 AM, rantingrick wrote:
> Actually no i was purposely implying Mt. Vesuvius. You know, the
> VOLCANO that erupted and left poor Pompeii in ruins? Here is some text
> from the wiki verbatim:
>
Yes, I do know that mountain. But it doesn't have very many gods
sitting on i
On Tue, Jul 12, 2011 at 8:24 PM, Steven D'Aprano
wrote:
> Where is the Windows equivalent of yum or apt-get? Why isn't there a central
> repository of independent and third party Windows software? It seems clear
> to me that it is the major open source communities that aim for
> convenience, at th
On Wed, Jul 13, 2011 at 7:46 AM, rantingrick wrote:
[x for x in dir([]) if not x.startswith('_')]
> ['append', 'count', 'extend', 'index', 'insert', 'pop', 'remove',
> 'reverse', 'sort']
>
> Because we have plenty of room for args in this function...
>
dir(verbose=False)
> ['append', 'co
o go meta and block quote
something about blockquote.)
Having the colon makes it clear that the content is part of the same
general thought (paragraph or sentence).
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Jul 13, 2011 at 10:46 PM, bruno.desthuilli...@gmail.com
wrote:
> On Jul 12, 6:40 pm, John Keisling wrote:
>> After too much time coding Python scripts and reading Mark Lutz's
>> Python books, I was inspired to write the following lyrics.
>
> Brillant. This deserves to become a cpython eas
On Wed, Jul 13, 2011 at 11:03 PM, Grant Edwards wrote:
> You would think so, but human readers like redundancy.
>
One of the benefits of redundancy is error-trapping. If you see a list
of numbers like this:
40
14
24
56
48
12
60
16
=
269
then you know the result can
2101 - 2200 of 14669 matches
Mail list logo