First
|
Prev |
Next
|
Last
Pages: 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
with statement and standard library Hi. The with statement is certainly nifty. The trouble is, the *only* two documented examples how it can be used with the library classes are file objects (which I use all the time) and thread locks which I almost never use. Yet there are many, many classes in the library whose use would be more elegant and read... 21 Feb 2010 19:23
Interesting talk on Python vs. Ruby and how he would likePython to have just a bit more syntactic flexibility. On Fri, 19 Feb 2010 18:52:20 +1300, Gregory Ewing wrote: The Ruby approach has the advantage of making it possible to implement user-defined control structures without requiring a macro facility. You can't do that in Python. [...] Also, most people who advocate adding some form of block-passing facil... 19 Feb 2010 01:06
Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility. Steve Howell wrote: Python may not support the broadest notion of anonymous functions, but it definitely has anonymous blocks. You can write this in Python: for i in range(10): print i print i * i print i * i * i There's a clear difference between this and a Ruby ... 19 Feb 2010 01:06
Interesting talk on Python vs. Ruby and how he would likePythonto have just a bit more syntactic flexibility. On Thu, 18 Feb 2010 22:48:21 -0500, Steve Holden wrote: Next week: Lesson 2 - Ad Hominem Attacks I wouldn't pay any attention to Steve, all Stevens are notorious liars. -- Steven ... 19 Feb 2010 01:06
"Sounding" Off, IDLE (Win7) On Feb 18, 6:10 pm, "W. eWatson" <wolftra...(a)invalid.com> wrote: In Win7 IDLE, when I type in something with a syntax problem, a bell rings. How do I stop that? I've looked at Control Panel Sounds, but don't see anything of apparent use. Monkey Patch Said: """ Turn off your speakers""" ... 19 Feb 2010 00:01
[Tutor] "Sounding" Off, IDLE (Win7) In Win7 IDLE, when I type in something with a syntax problem, a bell rings. How do I stop that? I've looked at Control Panel Sounds, but don't see anything of apparent use. ... 18 Feb 2010 19:35
LISA 2010 CFP Hello All, The USENIX Large Installation System Administration Conference is now accepting paper proposals. If you are interested in submitting a paper, please check out this blog post about submitting a paper (http://www.usenix.org/events/lisa10/cfp/), or feel free to contact me directly if you think you might h... 18 Feb 2010 17:20
What happened to pyjamas? Does anyone know what happened to pyjs.org ? Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown ... 22 Feb 2010 06:19
Upgrading Py2exe App I have a Python app which I converted to an EXE (all files separate; single EXE didn't work properly) via py2exe - I plan on distributing this and would like the ability to remotely upgrade the program (for example, via HTTP/HTTPS). Looks like it's not just the EXE that I will need need to replace (DLLs, the libr... 28 Feb 2010 15:34
unit testing a routine that sends mail Hello, I have a routine that sends an email (this is how a Django view notifies me that an event has happened). I want to unit test that routine. So I gave each mail a unique subject line and I want to use python's mailbox package to look for that subject. But sometimes the mail gets delivered and sometimes i... 18 Feb 2010 16:13 |