The argument about unbound methods versus functions
As mentioned in How functions become bound or unbound methods , in Python 2 when you access a function ona class (eg you do cls.func ) it becomes an 'unbound method'. InPython 3 this is gone, as Peter Donis mentioned in a comment on that entry; if you do cls.func you getback the plain function. I'm not entirely sure how I feel aboutthis, so let's start by asking a relevant question: what's thedifference between an unbound
How functions become bound or unbound methods
Suppose that you have a class:
class A(object): def fred(self, a): print "fred", self, a
Then we have:
>>> a = A()>>> A.fred>>> b = a.fred>>> b > An unbound method is essentially a
The problem of conditional GET and caches for dynamic websites
For reasons beyond the margins of this entry, Aristotle Pagaltzis recently noticed an oddity with syndicationfeeds for this blog. To paraphrase his message , hemade an initial plain feed request with no
If-None-Matchheader,got back something with anETagheader, redid the request as aconditional GET with the same tag inIf-None-Match, and got backa different result with a differentETag. On the surface thissounds like my caching is broken, but what is really going on isthat the
Solaris gives us a lesson in how not to write documentation
Here are links to the manpages for
rebootin Solaris 8 , Solaris 9 , and Solaris 10 (orthe more readable Illumos version ,which is probably closer to the Solaris 11 version). They are all,well, manual-pagey, and thus most system administrators have wellhoned skills in how to read them. If you read any of these, itprobably looks basically harmless. If you read them in successionyou'll probably wind up feeling that they're all basically the same,although
Why we don't change Unix login names for people
Every so often as system administrators we are a bit lazy. Or perhapsyou could say that we are a bit sane. One of those cases here isthat we do not, ever, change people's Unix login names. If youreally want or need a change in login name, what we tell you to dois request a new account with the right login name, then transferall your files to it and tell us to delete the old login.
(Users can set up their own email redirection from
Why I think 10G-T will be the dominant form of 10G Ethernet
Today there are basically two options for 10G Ethernet productsand interfaces, 10G-T (standard Ethernet ports and relativelynormal Ethernet cables) and SFP+ (pluggable modules mostly usingfiber). Historically SFP+-based products have been the dominantones and some places have very large deployments of them while 10G-Tseems to only have started becoming readily available recently. Despitethis I believe that 10G-T is going to be the winning 10G format . There are
Coming to terms with D-Bus
Thinking back, I probably first encountered DBus as a new magic part ofGnome. I didn't really give it any attention then or in fact for a longtime afterwards and when I did start to pay some attention it was witha degree of old-Unix grumpyness. From my vague brushes with it, DBuscertainly felt like yet another overcomplicated solution to everythingspawned by a big GUI desktop. Like many people I've felt a certainamount of unease as DBus wormed its way deeper and deeper into the
A bit more about the various levels of IPC: whether or not they're necessary
A question you could ask about the levels of IPC that Ioutlined is if anything past basic process to process IPC is actuallynecessary (this is the level of TCP connections or Unix domainsockets). One answer to this is basically 'of course not'. All youreally need is for programs to be able to talk to each other and thenyou can build whatever each particular system needs from there, possiblyusing common patterns like simple ASCII request/response protocols. Alot of software has gotten very far on
ZFS's problem with boot time magic
One of the problems with ZFS (on Solaris et al) is that in practiceit involves quite a bit of magic. This magic is great when it worksbut is terrible when something goes wrong, because it leaves youwith very little to work with to diagnose and fix your problems.Most of this magic revolves around the most problematic times inthe life of ZFS, that being system shutdown and startup.
I've written before about boot time ZFS pool activation , so let's talk about how it would
The multiple levels of interprocess communication
In some quarters it's popular to say that things in computer programminggo in cycles and history repeats itself. I'm a bit more optimistic soI like to view it as people repeatedly facing the same problems andsolving them with today's tools. One of those things that keeps comingaround is IPC aka interprocess communication. One way to look at IPCis to split it up into multiple levels that seem to reoccur again andagain.
The first layer of IPC is simply connecting processes to each other.
Menu
![]()