nd the book "Pro CSS and HTML Design Patterns" from Apress
> for anyone who wants to get a more formal understanding of these
> different models etc.
Favorite'd on Safari, thanks for the tip.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT
(Apache, and
the like) can be configured to use Python to serve dynamic content in
various ways (from obsolete, like CGI, to fast cgi, to mod_python, to
the latest fad, mod_wsgi).
More information is required for us to help you.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/pyth
On 6/14/10 8:31 PM, rantingrick wrote:
> On Jun 14, 9:41 pm, Stephen Hansen wrote:
>
>> I wasn't aware of [row|column]configure, no: however, I am dubious of
>> how it directly applies.
>
> Maybe you should become more aware of a subject before you start
> runni
On 6/14/10 9:08 PM, Stephen Hansen wrote:
> The code is at: http://ixokai.io/get/layout-wx.py_
If you've already downloaded this, you have to do so again; I uploaded
the wrong one on accident.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
On 6/14/10 9:26 PM, rantingrick wrote:
> On Jun 14, 11:08 pm, Stephen Hansen wrote:
>
>>> Maybe you should become more aware of a subject before you start
>>> running your mouth about it, eh?
>>
>> You know what?
>
> You know what Stephen, just calm d
TTPServer, SocketServer, BaseHTTPRequestHandler
are where you get all the information you are looking for.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description: OpenPGP digital signature
--
http://mail.python.org/mailman/listinfo/python-list
On 6/14/10 10:35 PM, rantingrick wrote:
> On Jun 14, 11:08 pm, Stephen Hansen wrote:
>
>
>> Does not perform to spec. Quote, "Inside of A, there are four items in a
>> vertical line. The bottom which takes up half of the total vertical
>> space, and the top three
On 6/14/10 9:08 PM, Stephen Hansen wrote:
> On 6/14/10 8:31 PM, rantingrick wrote:
>> On Jun 14, 9:41 pm, Stephen Hansen wrote:
>>
>>> I wasn't aware of [row|column]configure, no: however, I am dubious of
>>> how it directly applies.
>>
>> Mayb
would work with the more specific one
seamlessly.
But such frameworks usually also have a setup/environment sort of file
where this is not done, and that's where things like adding handlers
belongs.
Just as an aside.
Renaming "logging = ..." to "logger = ..." is probabl
TIME*??
>
> That might be useful and avoid crashes and disk swapping.
Just call "process.wait()" after you call process = subprocess.Popen(...)
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
sig
class in sys.modules is really the only way
to fake the behavior.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description: OpenPGP digital signature
--
http://mail.python.org/mailman/listinfo/python-list
On 6/15/10 10:25 PM, John Nagle wrote:
> On 6/15/2010 9:33 PM, Stephen Hansen wrote:
>> Replacing the module with a class in sys.modules is really the only way
>> to fake the behavior.
>
>OK, working on this. I can make a module make itself into a
> fake class
Truth of the Zen as Delivered Unto Us by He Who Is The Timbot.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description: OpenPGP digital signature
--
http://mail.python.org/mailman/listinfo/python-list
e underscores are explicitly reserved for
Python to define as Special. They also imply a slightly different
calling semantic: normal leading-and-trailing double underscore methods
bypass instance lookup.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
On 6/16/10 7:04 AM, Chris Seberino wrote:
> On Jun 15, 2:03 pm, Stephen Hansen wrote:
>
>> Just call "process.wait()" after you call process = subprocess.Popen(...)
>
> I may have not been clear.
> I *don't* want web app to block on Popen.wait.
> I *d
dule level, too.
Well, fine, be that way, all right and correct and shiznit. :)
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description: OpenPGP digital signature
--
http://mail.python.org/mailman/listinfo/python-list
On 6/16/10 9:34 AM, Steven D'Aprano wrote:
> On Wed, 16 Jun 2010 09:17:47 -0700, Stephen Hansen wrote:
>
>> Leading-and-trailing double underscores are explicitly reserved for
>> Python to define as Special.
>
>
> That part is correct. But of course Python does
get
junked. Maybe the python-list spam filters can be tweaked, who knows.
He'll probably always show up on the usenet/Google Groups part of things
though. Cuz Google's notoriously bad at controlling spam on Groups(*)
--
Stephen Hansen
... Also: Ixokai
... Mail: me+l
rt of stuff never
originates from the mailing list)
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description: OpenPGP digital signature
--
http://mail.python.org/mailman/listinfo/python-list
On 6/16/10 1:42 PM, Mark Lawrence wrote:
> Thanks Stephen,
>
> But likely to be difficult as (presumably he) has already turned up this
> evening as smallpox.
I noticed. Reported too. Hopefully, Google'll like, ban his IP or
something. Either way, I shall persistently continue t
those file objects to non-blocking and such.
I found this useful when I needed to do it:
http://code.activestate.com/recipes/440554/
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description: OpenPGP digita
s able to be
enabled, on the few groups I've been on, it is a lot less effective then
what they use at Gmail, anecdotally speaking.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description:
otional
> state".
It could certainly do with a little less 'taking oneself too seriously' :)
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
P.S. Python-list was more fun when Timbot was around, and <0.2-ly y
On 6/16/10 9:43 PM, James Mills wrote:
> On Thu, Jun 17, 2010 at 2:23 PM, Stephen Hansen
> wrote:
>> It could certainly do with a little less 'taking oneself too seriously' :)
>
> You do realize my question was completely rhetorical :)
>
> --James
>
> /
Terribly Awfully
Long Away (meaning, some indeterminate time probably counted in months
and not years), but its not there yet.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description: OpenPGP digit
On 6/16/10 10:40 PM, madhuri vio wrote:
> if i want to create a button
> which performs the transcription of dna to rna
> using tkinter in a gui...
> can u give me the method...
You can not possibly be serious.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python
licated sort of code object marshalling and
manipulation on the other side. I have no idea where to even begin in
that situation (hw do you turn a code object into something you can
actually pass arguments to, hmm? I only know how to 'exec' a bare code
object)
--
Stephen
y to use "from ... import ..." to pull in
classes and (implicitly) constants, and despite how the rules say 'one
module per line' its OK to pull in more then one name -from- a module at
once.
> My understanding is that both forms of the import command require
> the e
On 6/17/10 10:01 AM, Ethan Furman wrote:
> Stephen Hansen wrote:
>> On 6/17/10 9:12 AM, [email protected] wrote:
>>
>> Now, this is all IMHO: the style guide does not define any 'guidelines'
>> on this, except that its okay to use "from ... import
On 6/17/10 10:22 AM, Jack Diederich wrote:
> On Thu, Jun 17, 2010 at 12:58 PM, Stephen Hansen
>> It explicitly states later its entirely OK to import classes. It never
>> says anything else directly, except in the example given, it shows you
>> importing a constant. So
lit grow an addition keyword argument to specify the desired
> behaviour? (Although it's simple enough to define your own function.)
Guido finds keyword-arguments-to-change-behavior to be unPythonic, IIRC.
It generally means 'make a new API'. But, the question is-- is it w
ocking:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/066de1c0fd38642f#
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description: OpenPGP digital signature
--
http://mail.pyth
not byte & BIT_6:
... byte = byte | BIT_6
... print "Bit 6 wasn't set, BUT NOW IS."
Bit 6 wasn't set, BUT NOW IS.
>>> byte
99
(I added 'how to set a specific bit' just cuz)
Basically, those BIT_X lines are creating numbers which have *only* the
s
asn't written anything new out yet by the time
you call that. You have to try/except looking for that and catch it.
That's why I preferred the recipe I linked to in that thread: it uses
select to only read when there's something -to- actually read.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description: OpenPGP digital signature
--
http://mail.python.org/mailman/listinfo/python-list
>>>> from asynchronous import *
>>>> p = Popen(["python", "increment.py"], stdin=PIPE, stdout=PIPE)
>>>> send_all(p, "5\n")
>>>> recv_some(p)
> ''
>>>> send_all(p, "6\n")
>>>> recv
On 6/17/10 1:29 PM, Grant Edwards wrote:
> On 2010-06-17, Stephen Hansen wrote:
>
>>>>> BIT_1 = 1 << 0
>>>>> BIT_2 = 1 << 1
>
> ...
>
>> Basically, those BIT_X lines are creating numbers which have *only* the
>> specified
On 6/17/10 2:40 PM, Laurent Verweijen wrote:
> Op donderdag 17-06-2010 om 14:36 uur [tijdzone -0700], schreef Stephen
> Hansen:
>> On 6/17/10 2:09 PM, Laurent Verweijen wrote:
>>> It just gives me an empty string.
>>>
>>> Python 2.6.5 (r265:79063, Apr 16 201
say you don't care about what value
ends up there, consider it thrown away.
That the interactive interpreter happens to store the last value in a
variable of the same name doesn't really mean anything.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT
tempting to call len() on an integer) if you corrected your arguments.
You're getting the EOFError, because you're never sending anything to
the subprocess. You're not getting anything from the subprocess because
it never receives anything to send back. And apparently there&
sometimes less: but generally,
only at the boundry of your program do you need to worry about
type-correctness (i.e., where user and data is accepted, you have to
convert stuff there.) Anywhere else, its a bug if you pass the wrote
thing in: unit tests and exceptions/tracebacks are excellent for findin
/never/ implicitly copies -- and
that it objects are discrete entities and not just names of certain
values, it more likely then not will be beneficial to you quite often
down the road. You'll -want- that to be how things work. Eventually.
When you learn more Python.
--
Stephen Hansen
..
g to do with Python.
http://letmegoogleforyou.com/?q=how+to+associate+files+in+windows
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description: OpenPGP digital signature
--
http://mail.python
But then when this project is over, sit down and load up Django (or
another of the options: look around, find one that tickles you), and
spend a few days re-doing this project in that. Not for real, but for
practice, to figure out how you'd do it in a proper framework. See how
you like it.
What's it *do*? I don't like downloading software until I have
an idea of what its for :)
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
--
http://mail.python.org/mailman/listinfo/python-list
e other addons)
That's better. :)
I would suggest adding a little more: some bullet points of how they
work together in a way that's new or efficient or what's compelling
about the interaction. And a screenshot or two.
Either way, I'm now curious enough to actually download it
ing me go
out of my way to program a hundred lines when only ten (okay, maybe 20—
it isn’t /that/ Pythonic) will do.
Also strange: its as force-OOP-down-your-throat as Java, and yet I don’t
feel a gag reflex. Can’t explain it."""
Anyways. Just curious. Ya'll are all the Python
On 6/21/10 6:47 AM, Grant Edwards wrote:
> On 2010-06-21, Stephen Hansen wrote:
>
> [...]
>
>> I'm just learning Objective-C on my spare time, and am having these
>> entirely disturbing feelings of familiarity, where strange swirling
>> thoughts enter my head
d reason to do something sneaky (such as add an attribute
to an instance at runtime: its actually *extremely* rare for someone to
do that, so why try to force it away?) down the road that you might not
think of at the time.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixok
On 6/21/10 8:08 AM, Stephen Hansen wrote:
> If you don't want a class to have attributes added at runtime, the
> Pythonic way to achieve that is to... simply add attributes at runtime.
Errr.
The Pythonic way to achieve that is to... simply NOT add attributes at
runtime.
I.e., choos
and programs,
don't ever get there.
And even more fortunately: very, very often when those people who *do*
get to that place, they actually can use a library which has already
done it and get those major performance gains without writing the
assembly themselves.
--
Stephen Hansen
... A
11 2010, 00:51:29)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> help.__class__
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixok
On 6/21/10 11:06 AM, Terry Reedy wrote:
> On 6/21/2010 11:24 AM, Stephen Hansen wrote:
>> On 6/21/10 8:08 AM, Stephen Hansen wrote:
>>> If you don't want a class to have attributes added at runtime, the
>
>> The Pythonic way to achieve that is to... simply
ble(i.e., ints,
strings), and its awful hard to make an immutable class.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description: OpenPGP digital signature
--
http://mail.python.org/mailman/listinfo/python-list
ple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> f = open("test.txt", "r")
>>> for line in f:
... print float(line)
...
52.2375412
5.1802704
Always include w
ave that number. Try it in the
interactive interpreter. float('51.9449702') works fine. I suspect your
"line", for whatever reason, contains the string "not found", as in:
>>> float('not found')
Traceback (most recent call last):
File "&q
in your data file, or some other logic going
on (maybe something related to this 'tel' thing, I don't know).
Are you sure there's no lines in out.txt which have, say, some text (on
the left end)? Or maybe some blank lines?
Maybe you should send the whole file and the data.txt if you don't see
where the problem is.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description: OpenPGP digital signature
--
http://mail.python.org/mailman/listinfo/python-list
an academic desire to learn a new language, then learn both.
Learning a new language is always a net win. Which first? Whatever you
have the vaguest preference for after five minutes.
No reason to be picky with adding tools to your mental toolbox.
--
Stephen Hansen
... Also: Ixokai
...
up as a "book" to sell to naive people for outrageous prices; and put
Guido's name on it to give it legitimacy.
It also bundles up the *tutorial* for $22. There's a number of very
good, large Python books which sell for that. Surely Fred L Drake and
Gudio aren't really invo
e 'root' -- you can skip if you only use one), the exact
module (test.py), function (run) and line (6).
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description: OpenPGP digital signature
On 6/22/10 11:01 AM, Terry Reedy wrote:
> On 6/22/2010 11:49 AM, Stephen Hansen wrote:
>> Uhh, that looks like a scam. Someone scraped the Python docs and bundled
>> it up as a "book" to sell to naive people for outrageous prices;
>
> Various people have asked on th
, and so I always use format
strings so I don't have to rewrite the line to convert from + to % later.
(And in a couple years when I can migrate to Py3, I'll start using
.format())
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
inflict Haskell on anyone).
It bends your brain and makes you think in a different way. The mental
toolbox expands. New possibilities suddenly occur to you down the road
when you return to Python (or Perl, even) for some sane, regular sort of
coding.
Learning new languages = good.
--
Steph
llness (okay, no, not really), but we're also quite content
and happy for people to use Ruby if they want to. And we're oddly not
threatened by its popularity.
Good for you, Rubyers. I applaud your success and wish you more of it.
--
Stephen Hansen
... Also: Ixokai
... Mail
/groups.google.com/group/comp.lang.python/browse_thread/thread/7dfa560c675b06b2/47ee7d03aa4c9b09
We really don't have to do it again. :)
Everyone knows you don't like unicode, man.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: ht
fellow Python-folks possibly getting ripped off
makes me an asshat, so be it. Go y'know-what yourself.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
signature.asc
Description: OpenPGP digital signature
--
http://mail.python.org/mailman/listinfo/python-list
If it looks like a scam, some due-diligence and concern is appropriate.
Especially when asked by someone like the OP who is not you, is not
sophisticated in their knowledge of the community and the resources
available to it.
If it looks like a scam, take care personally. If it looks like a scam
a
On 6/22/10 10:39 PM, Dennis Lee Bieber wrote:
> On Tue, 22 Jun 2010 15:55:51 -0700, Stephen Hansen
> declaimed the following in
> gmane.comp.python.general:
>
>> I second Forth. Learning and using that was -- slightly painful, but
>
> Just pick up any advanced HP
On 6/22/10 9:45 PM, John Bokma wrote:
> Stephen Hansen writes:
>
>> I *have* seen people burned by confusion over situations *extremely*
>> similar to this;
>
> But is it? You didn't even ask yourself that question.
Yes. I did.
I don't really make a poin
ing errors. Don't summarize them.
Third, I *think* the problem is-- though I may be wrong here, because
again, just woke up-- that you're not passing the options as a tuple.
Consider: ("hello") is not a tuple with one item. This is a slight
'wart' with Python syntax. P
On 6/23/10 8:16 AM, Victor Subervi wrote:
> On Wed, Jun 23, 2010 at 10:25 AM, Stephen Hansen
> mailto:[email protected]>> wrote:
>
> On 6/23/10 6:45 AM, Victor Subervi wrote:
> > Hi;
> > I have this line:
> >
> > cursor.execute('
On Jun 23, 2010, at 9:12 AM, Paul Rubin wrote:
Stephen Hansen writes:
On 6/23/10 6:45 AM, Victor Subervi wrote:
cursor.execute('select clientEmail from clients where client=%s', ...
Do, 'client.replace("_", " ")' instead.
Er, look what happened to
cursor.execute('select clientEmail from clients where client=%s',
(client.replace('_', ' '),))
clientEmail = cursor.fetchone()[0]
The problem is not this line but:
File "/var/www/html/globalsolutionsgroup.vi/mailSpreadsheet.py", line 38,
in mailSpreadsheet
cursor.execute('select * from %s', (client,))
This one. See above.
--Stephen via iPad.
--
http://mail.python.org/mailman/listinfo/python-list
n' at the same time?
Ouch. I hope it is thread safe or I have some problems. But: since
compiled regular expressions are automatically cached and used when
one throws non compiled expressions into re, ISTM they have to be
thread safe. Or we'd have tons of problems.
--Stephen via iPad.
On Jun 23, 2010, at 11:20 AM, Victor Subervi
wrote:
On Wed, Jun 23, 2010 at 12:51 PM, Stephen Hansen wrote:
> The problem is not this line but:
>
>
> File "/var/www/html/globalsolutionsgroup.vi/mailSpreadsheet.py", line
> 38, in mailSpreadsheet
> curs
t;two"]))
> I do the Python code all the time without thinking twice about it. But
> to a noob i'll bet Ruby is more decipherable in these cases. It's
> ironic that Python was created by a westerner and we read it from
> right to left, and Ruby was created by a easterner and we read it left
> to right. Go figure?
You read Python from right-to-left; "we" don't-- I don't.
--Stephen via iPad.
--
http://mail.python.org/mailman/listinfo/python-list
Sent from my iPad
On Jun 23, 2010, at 9:24 PM, John Nagle wrote:
> Here's dir(types), in Python 2.6.5:
>
> ['BooleanType', 'BufferType', 'BuiltinFunctionType', 'BuiltinMethodType',
> 'ClassType', 'CodeType', 'ComplexType', 'DictProxyType', 'DictType',
> 'DictionaryType', 'EllipsisType', 'File
ackage__']
>
> Seems to be missing SetType, FrozenSetType, BytesType, and
> ByteArrayType. Anything else missing?
>
> (Arguably, "bytes" isn't really distinguished until 3.x, but
> still...)
IIUC, since Python 2.2ish you can't treat the types module as
comprehensive. It exists as a remnant from the time when there was a
difference between types and classes.
Sets and the recent additions exist solely in this new world where we
just isinstance(blah, set) or issubclass or whatnot.
--Stephen via iPad
--
http://mail.python.org/mailman/listinfo/python-list
7;select * from %s', client)" which errored out
-- because you can't use parameterized queries for schema objects (tables,
fields, etc) -- you would simply change it to "cur.execute('select * from
properties where client = %s', (client,))" -- and it'd work just the same.
--Stephen
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Jun 23, 2010 at 8:07 PM, Peng Yu wrote:
> I tried to put the above code in a module. Say in a.b.__init__.py
>
> %(module)s only print to "__init__". However, I need the fullname
> a.b.__init__. I looked at the manual, but I don't see what format
> string I should supply. Would you please
On Wed, Jun 23, 2010 at 10:22 AM, John Bokma wrote:
> Stephen Hansen writes:
>
> > On 6/22/10 9:48 PM, John Bokma wrote:
> > Its when you package it up in such a way that the buyer doesn't realize
> > what they're buying, that's where the problem comes-- a
On Thu, Jun 24, 2010 at 10:06 AM, GrayShark wrote:
> In my code I have:
> from string import lower, upper
>
> When I use pylint on the program I get just one warning:
>
> Uses of a deprecated module 'string'.
>
> Iv'e noted that many if not all string functions are now in _builtin_.
> Where are t
about bounds checking on arrays, do
they? But buffer overflows persist. Probably for similar reasons as above
(with slightly different 'and prefer' clause)
--Stephen
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Jun 25, 2010 at 7:02 AM, GrayShark wrote:
> Thanks for the suggestion. I gave it a quick try. Same 'warning'. No,
> using the string module is the issue. Perhaps I'll just ignore it.
>
Perhaps? Why perhaps? The warning is simply factually wrong-- therefore,
there's no reason in the world
On Thu, Jun 24, 2010 at 7:52 PM, Peng Yu wrote:
> http://psyco.sourceforge.net/
>
> The above package can improve python program on 32 bit library. But I
> need to run on 64 bit library. Is there any other module that can help
> improving the performance of python on 64 bit?
>
This is a total as
On Fri, Jun 25, 2010 at 6:15 AM, WANG Cong wrote:
> 4) Also, this will _somewhat_ violate the OOP princples, in OOP,
> this is and should be implemented by inherence.
>
Others have answered the rest fine, I just wanted to add: Who says we have
to follow OOP principles, huh?
If you want to follo
On Fri, Jun 25, 2010 at 11:03 AM, WANG Cong wrote:
> On 06/25/10 17:25, Steven D'Aprano
> wrote:
>
> > Yes, isn't it wonderful? In other languages, metaprogramming is deepest
> > black magic, or even completely impossible. In Python it is so easy that
> > anyone can do it, and it is something beg
On Fri, Jun 25, 2010 at 1:26 PM, rantingrick wrote:
> On Jun 25, 12:46 pm, Alan G Isaac wrote:
> > On 6/25/2010 1:24 PM, rantingrick wrote:
> >
> > > the "if __name__ == '__main__' tests" use
> > > root.quit instead of root.destroy!
> >
> > Did you open an issue?http://bugs.python.org/
>
> If *I
On Fri, Jun 25, 2010 at 1:51 PM, Mark Lawrence wrote:
> On 25/06/2010 16:34, Stephen Hansen wrote:
>
> Python's slow, sure. But its in practice fast enough for an extremely
>> broad
>> range of activities.
>>
>>
> What?
>
What, what?
--S
--
http://mail.python.org/mailman/listinfo/python-list
Uhh...
On Fri, Jun 25, 2010 at 2:31 PM, GrayShark wrote:
> As to your comment about Logilab's pylint. I'v seen a ticket similar to
> this from three months back. I assume they're not fixing it because if
> you review 'string' via pydoc you'd read this:
>
> ---
On Fri, Jun 25, 2010 at 3:18 PM, Mark Lawrence wrote:
> On 25/06/2010 22:25, Stephen Hansen wrote:
>
>> On Fri, Jun 25, 2010 at 1:51 PM, Mark Lawrence> >wrote:
>>
>> On 25/06/2010 16:34, Stephen Hansen wrote:
>>>
>>> Python's slow, s
On Fri, Jun 25, 2010 at 5:00 PM, rantingrick wrote:
> However i'm not about to waste my time
> if i cannot get the code accepted into the stdlib because "some
> people" here hate me.
>
Please get over yourself, dude. No one believes this martyrdom schtick
you've taken on since you snuck away fro
On Fri, Jun 25, 2010 at 5:49 PM, Lawrence D'Oliveiro
wrote:
> In message , Jorgen Grahn
> wrote:
>
> > I thought it was well-known that the solution is *not* to try to
> > sanitize the input -- it's to switch to an interface which doesn't
> > involve generating an intermediate executable. In the
r a clear mandate appears. More often, we're just people, with
varied interests, experiences, purposes, and agendas.
The thing is, except for you and a couple rare other, most of us sort of
understand that our own personal interest, experience, purpose and agenda
doesn't translate to universal interest, experience, purpose and agenda.
Do you see the difference?
--Stephen
--
http://mail.python.org/mailman/listinfo/python-list
otal experience seem to be
continuing steady -- so eventually, Python 3'll be the norm.
Not that Python 2.7 will then die completely, I'm sure. The pydev's have
even stated it'll have a longer then usual bugfix maintenance period,
recognizing some people will be on the Python
Please ignore, sorry about wasted post. Having a posting issue, need to
test.
La de la la. Nothing to see here, move along.
--
... Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
--
http://mail.python.org/mailman
ou can get
things done. But its just plodding along not really drinking whatever
kool-aid you are, though its happy you like your flavor and is entirely
content with letting you think its playing ball with you on that.
--
... Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
--
http://mail.python.org/mailman/listinfo/python-list
On 6/26/10 11:11 AM, John Bokma wrote:
Stephen Hansen writes:
Please ignore, sorry about wasted post. Having a posting issue, need
to test.
If you mean with post Usenet, there are several groups dedicated to
testing...
I know. I don't access this forum via usenet, but via python
when outputting.
As Thomas put it:
On 6/26/10 9:33 AM, Thomas Jollans wrote:
> Also, do you use print *that* much? Really?
It was genuine surprise. Oh, I know people do use print, and I know
there's bound to be someone who finds the conversion a bit complicated
(though 2to3 does it well).
On 6/26/10 11:41 AM, John Bokma wrote:
Stephen Hansen writes:
No, "I'm" not trying to kill Python 2 at all. My current estimation is
that I'll be using it for at least the next three years -- library
conversion momentum is there, but its happening faster in the pure
Pyt
ept to ask: Have you opened bug reports?
If not, well...
--
... Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
--
http://mail.python.org/mailman/listinfo/python-list
901 - 1000 of 1209 matches
Mail list logo