Re: Easy questions from a python beginner

2010-07-22 Thread Stephen Hansen
a generator instead. :) -- 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

Re: Did class inheritance from dict work in early Python?

2010-07-21 Thread Stephen Hansen
On 7/21/10 7:45 PM, John Nagle wrote: Did class inheritance from dict work in early Python? Or did that only start working when new objects came in? The latter, that's why UserDict (and UserList) was added. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai

Re: why is this group being spammed?

2010-07-19 Thread Stephen Hansen
to devour not only the knowledge of good and evil but all knowledge of all things, most notably breasts. Of course there'd be a dire consequence for our hubris. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ signature.asc

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-17 Thread Stephen Hansen
. -- 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

Re: Easy questions from a python beginner

2010-07-12 Thread Stephen Hansen
, and therefore our opinions, arguments, facts, and conclusion are based solely on faith and unworthy of consideration on their merits. That, my friend, is an ad hominem attack. Hypocrite. And you are plonked. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io

Re: Learn Python the Hard Way (online tutorial)

2010-07-12 Thread Stephen Hansen
about him that colors or holds meaning for his approach? Just curious. -- 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

Re: any issues with long running python apps?

2010-07-12 Thread Stephen Hansen
downright frightening. -- 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

Re: integer = 1 == True and integer.0 == False is bad, bad, bad!!!

2010-07-11 Thread Stephen Hansen
On 7/10/10 11:03 PM, rantingrick wrote: On Jul 11, 12:51 am, Stephen Hansen me+list/pyt...@ixokai.io wrote: You don't need to build a tuple. Just change the tests, to if choiceIdx1 is not None. Its a little more work, sure. But its not enough that its even vaguely worth breaking

Re: integer = 1 == True and integer.0 == False is bad, bad, bad!!!

2010-07-11 Thread Stephen Hansen
On 7/10/10 11:50 PM, rantingrick wrote: On Jul 11, 1:22 am, Stephen Hansen me+list/pyt...@ixokai.io wrote: If you are so desperately concerned with space, then simply do: if (choiceIdx1, choiceIdx2) != (None, None): Its only eleven characters longer. Or, you can do: if None

Re: integer = 1 == True and integer.0 == False is bad, bad, bad!!!

2010-07-11 Thread Stephen Hansen
On 7/11/10 12:30 AM, Alf P. Steinbach /Usenet wrote: * Stephen Hansen, on 11.07.2010 09:19: On 7/10/10 11:50 PM, rantingrick wrote: It was a typo not an on purpose misspelling If this had been the first time, perhaps. If you had not in *numerous* previous times spelled my name correctly

Re: grailbrowser now running under python 2.5 (probably above too)

2010-07-11 Thread Stephen Hansen
and rally behind*? -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ (*): I do not argue that a non-default file manager on an OS might be a great thing. I use Path Finder on the mac and have been very pleased

Re: Easy questions from a python beginner

2010-07-11 Thread Stephen Hansen
to figure out what. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ * Yes, I know its actually possible, to manipulate outer/calling scopes with frame hacking. This is dangerous / bad / an implementation detail

Re: Easy questions from a python beginner

2010-07-11 Thread Stephen Hansen
to scope off variables as much as possible (I believe in minimal state). That's a fine and nice goal. In Python your only real tool for this is to break things up into more logical functions. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog

Re: grailbrowser now running under python 2.5 (probably above too)

2010-07-11 Thread Stephen Hansen
On 7/11/10 5:01 PM, rantingrick wrote: On Jul 11, 11:57 am, Stephen Hansen me+list/pyt...@ixokai.io wrote: On 7/11/10 9:31 AM, Thomas Jollans wrote: trying to support both UNIX and Windows is NOT a good idea. And you can't lump the Mac in with UNIX here, even though it really is UNIX

Re: integer = 1 == True and integer.0 == False is bad, bad, bad!!!

2010-07-11 Thread Stephen Hansen
ten years. Or twenty. If ever. -- 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

Re: grailbrowser now running under python 2.5 (probably above too)

2010-07-11 Thread Stephen Hansen
On 7/11/10 6:10 PM, rantingrick wrote: On Jul 11, 7:31 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: You said about macs... Copying a file without the resource fork on a mac, *can* result in essential data being lost (This is less common then it used to be). As simple a task as chown

Re: Easy questions from a python beginner

2010-07-11 Thread Stephen Hansen
and leave it at that at this rate. I'm getting worn out of these kinds of responses. -- 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

Re: Why doesn't python's list append() method return the list itself?

2010-07-11 Thread Stephen Hansen
I've used hundreds, thousands of times. I use it constantly. -- 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

Re: integer = 1 == True and integer.0 == False is bad, bad, bad!!!

2010-07-10 Thread Stephen Hansen
(indexing) where it is not. You don't need to build a tuple. Just change the tests, to if choiceIdx1 is not None. Its a little more work, sure. But its not enough that its even vaguely worth breaking the otherwise very useful behavior of bool(0) == False. -- Stephen Hansen ... Also: Ixokai

Re: Is This Open To SQL Injection?

2010-07-08 Thread Stephen Hansen
is indicating that when you do this INSERT, there is no corresponding row in the products table. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ signature.asc Description: OpenPGP digital signature -- http

Re: Python 2.7 released

2010-07-08 Thread Stephen Hansen
. So it only really works if there's a user specifically clicking through it -- or if you have code made to look for the .lnk files, parse them (they're really simple INI files) and deference it manually. At least, IIUC. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python

Re: Is This Open To SQL Injection?

2010-07-08 Thread Stephen Hansen
have to actual enter data in the correct order. The constraints enforce consistency so programmer-error can't introduce data into the tables which is out of whack with the data layout. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http

Re: Is This Open To SQL Injection?

2010-07-08 Thread Stephen Hansen
On 7/7/10 11:52 AM, Stephen Hansen wrote: On 7/7/10 11:38 AM, Victor Subervi wrote: Hi; I have this code: sql = 'insert into personalDataKeys values (%s, %s, %s)' % (store, user, ', %s'.join('%s' * len(col_vals)) cursor.execute(sql, col_vals) First, its always best to be explicit

Re: Opinions please -- how big should a single module grow?

2010-07-08 Thread Stephen Hansen
together still. Its just more likely the higher the count that you have subsets that would benefit from logical separation. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ signature.asc Description: OpenPGP digital

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-07 Thread Stephen Hansen
is available now may change as soon as tomorrow or later with very little real notice. Yeah, you can get a MSDN subscription and get access to a lot. Lots of people can't afford that just to compile an extension they support. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python

Re: Is This Open To SQL Injection?

2010-07-07 Thread Stephen Hansen
generic SQL statement which can set some arbitrary number of random columns-- if so, why? I can't picture just what this table layout is or what kind of data it holds to advise better. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-07 Thread Stephen Hansen
, and start a preemptive reconfiguration to support a future Py3k migration. -- 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

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-06 Thread Stephen Hansen
On 7/6/10 10:52 AM, Ed Keith wrote: I downloaded the ISO, but it seems to be just a bit too big to fit on a CD! The website says its a DVD iso. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ signature.asc

Re: Argh! Name collision!

2010-07-06 Thread Stephen Hansen
- PyQt crypto - pycrypto MT - PyMT I think the point is QTPy would be pronounced cutie pie :) -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ signature.asc Description: OpenPGP digital signature -- http

Re: Lua is faster than Fortran???

2010-07-04 Thread Stephen Hansen
to Lua byte code. -- 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

Decorators, with optional arguments

2010-07-02 Thread Stephen Hansen
? :) Some play-through testing appears to work. But, the dizzying array of nested def's up there leaves me a bit dazed, so I'm wondering if there's a simpler way to accomplish what I'm trying to do. Thanks. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT

Re: Decorators, with optional arguments

2010-07-02 Thread Stephen Hansen
migrate). I just can't yet. I can't quite figure out why people are all, '3.x brings you nothing'. Yes, the majority of the focus was cleaning, removing edges, but *lord* there's a LOT I am VERY looking forward to using. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python

Re: Decorators, with optional arguments

2010-07-02 Thread Stephen Hansen
a decorator which has no args as @hello(), I can't abide. For internal consistancy purposes, I want no arguments to always look like @hello, and arguments to look like @hello(something). I don't want to have to think, Hey, does this no-arg version require parens or no? -- Stephen Hansen ... Also

Re: Why are String Formatted Queries Considered So Magical?

2010-07-01 Thread Stephen Hansen
On 6/30/10 11:58 PM, Jorgen Grahn wrote: On Wed, 2010-06-30, Steven D'Aprano wrote: On Wed, 30 Jun 2010 14:14:38 +, Jorgen Grahn wrote: On Tue, 2010-06-29, Stephen Hansen wrote: There's nothing silly about it. It is an exaggeration though: but it does represent a good thing to keep

Re: Composition of functions

2010-07-01 Thread Stephen Hansen
On 7/1/10 12:45 AM, Terry Reedy wrote: On 7/1/2010 12:32 AM, Mladen Gogala wrote: On Wed, 30 Jun 2010 21:04:28 -0700, Stephen Hansen wrote: However, you can easily get what you want by using the 'reversed' function (and similarly, the 'sorted' function), a la: y = ''.join(reversed(list(x

Re: Composition of functions

2010-07-01 Thread Stephen Hansen
into one in my head. -- ... 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

Re: Why are String Formatted Queries Considered So Magical?

2010-07-01 Thread Stephen Hansen
on. Since we can't destroy re, maybe we can go club baby seals. -- ... 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

Re: Why are String Formatted Queries Considered So Magical?

2010-07-01 Thread Stephen Hansen
to be a certain amount of cross-polination from unix-geeks to students-of-students-of-students-of unix geeks to spread the idea, but it seems more pervasive for that. I just picture a re-vangelist camping out in high schools and colleges selling the party line or something :) -- ... Stephen

Re: Python dynamic attribute creation

2010-07-01 Thread Stephen Hansen
On 7/1/10 5:41 AM, Bruno Desthuilliers wrote: Stephen Hansen a écrit : On 6/30/10 10:37 PM, Aahz wrote: It may not be the primary concern, but elegance certainly is *a* primary concern. I concur. Its not explicitly stated, but it is the Zen 0. This is further supported by its implied

Re: Python dynamic attribute creation

2010-07-01 Thread Stephen Hansen
make /any/ distinction between adding a new attribute and replacing an old one that already existed), and one when the name of that attribute is dependent on some runtime state. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http

Re: Python dynamic attribute creation

2010-07-01 Thread Stephen Hansen
design of a system, there you find elegance. It doesn't exist in the general. -- ... 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

Re: Python dynamic attribute creation

2010-07-01 Thread Stephen Hansen
harm. As long as setattr() exists in Python, that will be not so ordinary. :) setattr is perfectly ordinary. -- ... 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

Re: Python dynamic attribute creation

2010-07-01 Thread Stephen Hansen
it. Except to you, *personally*. In your head, only. Its fine to believe that and treat classes as special for you: but its your *choice* to do so. If you want magic, go learn about metaclasses, descriptors, and such. Othewrise, I give up. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me

Re: Ignorance and Google Groups (again)

2010-07-01 Thread Stephen Hansen
accurate :) -- ... 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

Re: Why are String Formatted Queries Considered So Magical?

2010-06-30 Thread Stephen Hansen
On 6/30/10 7:14 AM, Jorgen Grahn wrote: On Tue, 2010-06-29, Stephen Hansen wrote: On 6/29/10 5:41 AM, Roy Smith wrote: Nobodynob...@nowhere.com wrote: And what about regular expressions? What about them? As the saying goes: Some people, when confronted with a problem, think

Re: I strongly dislike Python 3

2010-06-30 Thread Stephen Hansen
-hill complaint: print() is really not that significantly more difficult then the print statement. This isn't Ruby or another language which has determined () is an onerous requirement for executing something. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai

Re: I strongly dislike Python 3

2010-06-30 Thread Stephen Hansen
On 6/30/10 9:22 AM, Lie Ryan wrote: On 07/01/10 01:30, Stephen Hansen wrote: On 6/30/10 5:52 AM, Lie Ryan wrote: On 06/27/10 11:24, Steven D'Aprano wrote: Producing print function takes a little bit more effort than producing a print statement. (1) The main use-cases for print are quick

Re: Hwy doesn't len(None) return zero ?

2010-06-30 Thread Stephen Hansen
object. -- ... 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

Re: Hwy doesn't len(None) return zero ?

2010-06-30 Thread Stephen Hansen
On 6/30/10 12:02 PM, Tim Chase wrote: On 06/30/2010 01:50 PM, Stephen Hansen wrote: On 6/30/10 11:39 AM, Stef Mientki wrote: if len ( Result ) 1 : But to prevent exceptions, i've to write ( I often forget) if Result and ( len ( Result ) 1 ) : Just do: if Result: You don't have to do

Re: Ignorance and Google Groups (again)

2010-06-30 Thread Stephen Hansen
-list.python.org * ^From:@gmail.com * ^Newsgroups: /dev/null Bye. -- ... 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

Re: Ignorance and Google Groups (again)

2010-06-30 Thread Stephen Hansen
, so I'll have to take your word on that. Okay, un-Bye :) -- ... 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

Re: I strongly dislike Python 3

2010-06-30 Thread Stephen Hansen
hadn't ever heard of or seen Perl6 in _use_ anywhere, or even available*. Granted, I am neither omniscient nor in any way connected to those sorts of places where you are likely to see that, so it might be my own personal tunnel vision. -- ... Stephen Hansen ... Also: Ixokai ... Mail

Re: Composition of functions

2010-06-30 Thread Stephen Hansen
that lazilly convert an iterable as needed. -- ... 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

Re: Python dynamic attribute creation

2010-06-30 Thread Stephen Hansen
of enlightenment. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ P.S. Yes, my wording is intentionally silly-religious. Not meant to be taken as anything but tongue-in-cheek. -- http://mail.python.org/mailman/listinfo

Re: [ANN] optphart (alpha2)

2010-06-29 Thread Stephen Hansen
On 6/28/10 10:41 PM, rantingrick wrote: I am pleased to announce optphart (alpha2)! This is just stupid. It isn't worthy of any more elaborate response. You just don't get the point, do you? -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io

Re: N00b question: matching stuff with variables.

2010-06-29 Thread Stephen Hansen
format, such as one with quoting in fields. I don't know if that's what the OP is working with, but good point: csv might be a good approach if this is more complicated format then just a line with a couple commas. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python

Re: Why are String Formatted Queries Considered So Magical?

2010-06-29 Thread Stephen Hansen
the same task. It obviously applies less to the guru's who know all about regular expressions and their subtleties including potential pathological behavior. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io

Re: optphart (alpha2)

2010-06-29 Thread Stephen Hansen
featured for *very* good reasons-- but you don't bother addressing why less is more here, you basically just declare it all shit) all the while being simply insulting to the authors and users of those solutions. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai

Re: python source code - win/dos executable (on linux)

2010-06-29 Thread Stephen Hansen
. Windows has a way to track what you install, and the ability to uninstall about three fourths of it later. That's it. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ -- http://mail.python.org/mailman/listinfo

Re: Python dynamic attribute creation

2010-06-29 Thread Stephen Hansen
not drop the harder one, setattr()? Why would we? There are some corner cases where setattr is easier then other options (such as thing.__dict__[key]). There is no exclusive-OR here. There's no reason to drop the harder one. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list

Re: Python dynamic attribute creation

2010-06-29 Thread Stephen Hansen
of the dodo. Is Python perhaps less perfect, pure, with that addition to the language denied? Who cares? Perfection is what the Borg* worship, I like understandable. :) -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ P.S

Re: Python v3.1.2 documentation question

2010-06-29 Thread Stephen Hansen
? Yes. I'd submit a doc bug. -- ... 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

Re: Python dynamic attribute creation

2010-06-28 Thread Stephen Hansen
outside of the context of Smalltalk. Smalltalk may have originated it and may be one of the purest forms of the concept, but... To say you can't really know much about OOP without knowing much about Smalltalk seems basically, well, wrong. -- ... Stephen Hansen ... Also: Ixokai ... Mail

Re: Why Is Escaping Data Considered So Magical?

2010-06-28 Thread Stephen Hansen
and conflicting netiquette and on. But I decided it really just had no point. So, I'm left with: wow. You kinda suck*, man. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ P.S. *Then again, I'm fairly sure anytime

Re: I strongly dislike Python 3

2010-06-28 Thread Stephen Hansen
On 6/28/10 2:20 AM, Thomas Jollans wrote: On 06/28/2010 03:21 AM, Stephen Hansen wrote: On 6/27/10 6:11 PM, geremy condra wrote: On Sun, Jun 27, 2010 at 8:50 PM, Grant Edwardsinva...@invalid.invalid wrote: If you install a real shell on Windows, then the hash-bang line works fine

Re: I strongly dislike Python 3

2010-06-28 Thread Stephen Hansen
the time I do. I *could* use, say, print file_object, ... in those cases, but I sort of hate that construct kind of a lot. So don't. :) -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ -- http://mail.python.org

Re: An invalid expression as parameter

2010-06-28 Thread Stephen Hansen
confusing surrounding elements when needed. -- ... 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

Re: I strongly dislike Python 3

2010-06-28 Thread Stephen Hansen
just me, but I find both debugging and small scripts to be very useful. No one said otherwise, or that print was useless and never used in such contexts. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ -- http

Re: Python dynamic attribute creation

2010-06-28 Thread Stephen Hansen
, yeah, seriously :) #1-#7 seem to all be quite about not just elegance, but how to define it :) -- ... 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

Re: Python 2.6.x version module compatibility

2010-06-28 Thread Stephen Hansen
, they should work fine with later updates to 2.6. The exception of course would be if there's some bug or regression that happened, but its not *supposed* to happen. Conversely, if you upgrade to 2.7, you'll probably need to end up recompiling all the C extensions. -- ... Stephen Hansen

Re: More MySQL Stuff

2010-06-28 Thread Stephen Hansen
it is. Better a 'master' table with some related smaller tables that may only be used for certain types of products. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ -- http://mail.python.org/mailman/listinfo/python

Re: I strongly dislike Python 3

2010-06-28 Thread Stephen Hansen
claims, and am going to go back to my OSX Terminal.app :) -- ... 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

Re: N00b question: matching stuff with variables.

2010-06-28 Thread Stephen Hansen
full regex power and you know they won't try to bomb you, just leave out the 'seeking = ' lines and cross your fingers. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ -- http://mail.python.org/mailman/listinfo

Re: Python dynamic attribute creation

2010-06-28 Thread Stephen Hansen
__slots__) -- ... 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

Re: refactoring a group of import statements

2010-06-28 Thread Stephen Hansen
and they're going down a path leading to pain and suffering. So we will advise and share our experience in addition to, perhaps eventually, answering directly. If you don't like it, tough :) -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread Stephen Hansen
? How's C a scripting anything, that you need an alternate for? :) I mean, scripting is what you use to push around C programs :) -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ -- http://mail.python.org/mailman

Re: dynamically modify help text

2010-06-28 Thread Stephen Hansen
differences between old/new classes. -- ... 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

Re: I strongly dislike Python 3

2010-06-28 Thread Stephen Hansen
scripts. You can do that without breaking on 2.x. Only sort of. But in Python 2.6+, you only need to from __future__ import print_function to make code work in both 2.x and 3.x (at least insofar as the print situation is concerned). -- ... Stephen Hansen ... Also: Ixokai ... Mail: me

Re: I strongly dislike Python 3

2010-06-27 Thread Stephen Hansen
races to see which were the best for its purposes. -- ... 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

Re: I strongly dislike Python 3

2010-06-27 Thread Stephen Hansen
said, if you wish to reinterpret my words. -- ... 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

Re: I strongly dislike Python 3

2010-06-27 Thread Stephen Hansen
-- but as it is, its 11 years since 1.5.2 was released and no one seems inclined to remove it. :) -- ... 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

Re: Why Python3

2010-06-27 Thread Stephen Hansen
him. So we're stuck with the Py3k break. :) -- ... 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

Re: I strongly dislike Python 3

2010-06-27 Thread Stephen Hansen
. Not at all, bash via msys is trivial to install and use. -- ... 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

Re: Need instruction on how to use isinstance

2010-06-27 Thread Stephen Hansen
. If that works, great. If not, I'd try to call it. Etc. Then again it does depend on just what you're *doing* with the arg being passed in. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ -- http://mail.python.org

Re: I strongly dislike Python 3

2010-06-27 Thread Stephen Hansen
://effbot.org/zone/exemaker.htm does approximately that and has been very useful for me. -- ... 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

Re: I strongly dislike Python 3

2010-06-27 Thread Stephen Hansen
around and 4.0 will come next, without it being some massive shift again. Not that it might not bring fun and interesting new mind-reading capabilities, but I'm not sure I see that there needs to be another Major Event. At least, not so soon as 4.0. -- ... Stephen Hansen ... Also: Ixokai

Re: Need instruction on how to use isinstance

2010-06-27 Thread Stephen Hansen
On 6/27/10 8:04 PM, Steven W. Orr wrote: On 6/27/2010 10:25 PM, Stephen Hansen wrote: On 6/27/10 7:09 PM, Steven W. Orr wrote: So, my question is, what value can I use as the 2nd arg to isinstance to see if foo is a function? And while I'm on the subject, what types does isinstance not support

Re: Why are String Formatted Queries Considered So Magical?

2010-06-27 Thread Stephen Hansen
sanitization, even if you're divinely capable of perfect sanitization and even if sanitization is a trivial task that a monkey should be able to handle. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ P.S. *My

Re: Why are String Formatted Queries Considered So Magical?

2010-06-27 Thread Stephen Hansen
it, then you're actually imposing an order on how it processes the query... unless your API is just a sort of opaque wrapper for some underlining declarative structure. (Like ORM's try to be) -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io

Re: Need instruction on how to use isinstance

2010-06-27 Thread Stephen Hansen
for everything callable-esque? (I don't have a 3.x to play with on this temporary computer) -- ... 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

Re: Need instruction on how to use isinstance

2010-06-27 Thread Stephen Hansen
. Not Benevolent _Diety_ For Life. Just because a man has an uncanny sense of style (in the programming sense) and a time machine, doesn't a god make. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ -- http

Re: Need instruction on how to use isinstance

2010-06-27 Thread Stephen Hansen
crazy (print crazy, not withstanding) I've been pleased with the less odd edges as I explore Py3. Until now. Oh well, nothing can be perfect. :) -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ -- http

Re: best way to increment an IntVar?

2010-06-26 Thread Stephen Hansen
[Sent to python-list and CC'd] On Fri, Jun 25, 2010 at 10:31 PM, rantingrick rantingr...@gmail.com wrote: Clearly the user is upset and blabbing all sorts of incendiary nonsense but again and again the good folks at SketchUp stay calm and always attempt to help. This is how i would like to

Re: I strongly dislike Python 3

2010-06-26 Thread Stephen Hansen
On Sat, Jun 26, 2010 at 8:59 AM, Stefan Reich wertiges.prod...@googlemail.com wrote: My complaint is about changing the syntax of print. Okay. To reiterate, I am strongly in disfavor of Python 3 and will stick to Python 2, for as least as long as Python 3 breaks my scripts. This will be

Test - Ignore, clicketh not on I!

2010-06-26 Thread Stephen Hansen
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

Re: Python dynamic attribute creation

2010-06-26 Thread Stephen Hansen
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

Re: Test - Ignore, clicketh not on I!

2010-06-26 Thread Stephen Hansen
, but via python-list. -- ... 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

Re: I strongly dislike Python 3

2010-06-26 Thread Stephen Hansen
showing over this particular change implied a level of usage which just seemed strange. -- ... 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

Re: I strongly dislike Python 3

2010-06-26 Thread Stephen Hansen
it It hurts now, but everything will grow better after. -- ... 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

Re: I strongly dislike Python 3

2010-06-26 Thread Stephen Hansen
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

<    1   2   3   4   5   6   7   8   >