Re: Use the Source Luke

2011-01-31 Thread Stephen Hansen
:-) First tonight, you find sexism funny; now you find bigotry funny. Disgusting. -- 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/mailm

Re: Errors while using strip and remove on a variable.

2011-02-03 Thread Stephen Hansen
s to make it so you WILL get errors like the above. You only run into this situation with mutable data-types by the way: strings ALWAYS return a copy or new string, because they can't actually modify the string itself. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT

Re: socket.rcv timeout while-loop

2011-02-03 Thread Stephen Hansen
o the whole socket, and not just one method -- so you may want to reset it after you're done recv'n. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ signature.asc Description: OpenPGP digital signature -- h

Re: socket.rcv timeout while-loop

2011-02-03 Thread Stephen Hansen
fter the 'with' block concludes. If the with block throws an exception, it'll be catchable at the yield point. -- 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: socket.rcv timeout while-loop

2011-02-03 Thread Stephen Hansen
ing for how to NOT do that, I thought. How to use a timeout instead. I showed you how to use a timeout instead-- now you're mixing it in with what you originally had? Why? -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.

Re: socket.rcv timeout while-loop

2011-02-04 Thread Stephen Hansen
er is sent back to the clients. > > @ Stephen Hansen > Each player can send as many words as he wants. I think this is why I > need the loop. Don't you think so ? No. I've never seen or used network code which operated in any way like that. Sometimes you want code which

Re: socket.rcv timeout while-loop

2011-02-04 Thread Stephen Hansen
On 2/4/11 9:16 AM, Dwayne Blind wrote: > @ Stephen Hansen > Now I am pretty much worried. :'( Why? This is all sounding like a problem that isn't actually a problem. I think you may have over-analyzed yourself into a corner and think you have something to solve which doesn'

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-04 Thread Stephen Hansen
ome support and followers. Talking will get you none at all. Put your money where your mouth 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

Re: using attributes as defaults

2011-02-04 Thread Stephen Hansen
self.b = b > DoSomething(a, b) > > The above doesn't work. Is there a way to make it work? The normal way to go about it would be to set the a/b arguments to None, like so: def MyMethod(self, a = None, b = None): if a is not None: self.a = a if b is

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-04 Thread Stephen Hansen
o run two build slaves and proactively try to assist in resolving issues that come up with Python's testing (usually: ouch, there's a lot of red at the moment, must get cracking) and stability. So, yeah. You're the hypocrite here, man. -- Stephen Hansen ... Also: Ixokai

Re: Unable to register com component built with python2.7

2011-02-05 Thread Stephen Hansen
like your Python install directory (C:\Python27 probably) is not on your PATH. Which is the default. There's much debate about that on and off, but in short-- if you go add it to your environment variables things will probably work. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/pyt

Re: [python-list] - what do you think ?

2011-02-09 Thread Stephen Hansen
re's this super easy link added right next that you can click. Voila, it fills out everything you need have just Gmail, depend just on Gmail, and sort your messages in a very usable way, without screwing with everyone else and stealing away their valuable horizontal space. -- Stephen H

Re: [python-list] - what do you think ?

2011-02-09 Thread Stephen Hansen
On 2/9/11 12:36 AM, Stephen Hansen wrote: > .. yeah, no. Okay, I actually have to apologize for the tone of this message. It was late and I was a jerk. I could have just been helpful without including the jerk, but something about it set me off. So the helpful and the jerk got mixed in toget

Re: Problem with giant font sizes in tkinter

2011-02-11 Thread Stephen Hansen
ajority, to declare you the spokesman for all that is holy and proper and good, none of which can be found here. Now.. this? Lol. Time to change your name. You're no longer Ranting Rick. Congratulations! You're now Blabbering Rick. -- Stephen Hansen ... Also: Ixokai

Re: Easy function, please help.

2011-02-11 Thread Stephen Hansen
I'm saying (while utterly proving his inability to read basic English), and righteous indignation about how bad I am as one of the Evil Ones of python-list. Doing... bad things. Badly. Because, I, er, am, bad. Bad. BAD. CUZ. RICK. SAYS. SO. -- Stephen Hansen ... Also:

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Stephen Hansen
not years ago, Tyler. There's really nothing more to say about it. He doesn't get it. -- 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: Python-os. Command Execution

2011-02-19 Thread Stephen Hansen
going WRONG with your program. You said GUI, and perhaps that's the problem? If you are calling a unix interactive command line program from within a GUI context, things are quite likely to go wrong unless you do a lot of extra work. Are you expecting a new console window to pop up for '

Re: Python fails on math

2011-02-22 Thread Stephen Hansen
t; classification. (That said, you'd run into problems with many entirely non-Transcendental floating point numbers that have not yet meditated enough to reach nirvana-- but still). -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog:

Re: local variable referenced before assignment

2010-04-04 Thread Stephen Hansen
On 2010-04-04 15:22:48 -0700, Alf P. Steinbach said: * johngilbrough: I cannot make sense of what's happening here ... I'm getting the following error: (1) At least in Py3 you can declare the variable as 'global', like this: global lastModifiedTime within the function. Actually, what

Re: Incorrect scope of list comprehension variables

2010-04-04 Thread Stephen Hansen
On 2010-04-04 17:01:20 -0700, Steven D'Aprano said: On Sun, 04 Apr 2010 05:50:01 -0700, Ethan Furman wrote: Yes, this has been fixed in later revisions, but I'm curious to know what led you to believe that a list comprehension created a new scope. I don't that was ever promised. Common sens

Re: Incorrect scope of list comprehension variables

2010-04-04 Thread Stephen Hansen
On 2010-04-04 14:50:54 -0700, Paul Rubin said: Alain Ketterlin writes: d[r] = [r for r in [4,5,6]] THe problem is that the "r" in d[r] somehow captures the value of the "r" in the list comprehension, and somehow kills the loop interator. Yes, this is a well known design error in Python 2.x.

Re: local variable referenced before assignment

2010-04-05 Thread Stephen Hansen
On 2010-04-05 10:08:51 -0700, John Nagle said: Yes. Functions with persistent state are generally a bad idea. Unfortunately, the "signal" module requires a callback parameter which is a plain function. So you have to send it a function, closure, or lambda. Here, it's being sent a clos

Re: Incorrect scope of list comprehension variables

2010-04-06 Thread Stephen Hansen
On 2010-04-06 09:34:04 -0700, Lie Ryan said: in python there is only a flat local namespace and the names resolver becomes a thousand times simpler (and faster). This hasn't been true for a long time. Yes, local variables are optimized to be indexed in an array, but Python has nested scopes f

Re: Q about assignment and references

2010-04-06 Thread Stephen Hansen
On 2010-04-06 19:51:07 -0700, jdbosmaus said: Pretty new to Python, but I thought I understood what is meant by "an assignment is a reference." An assignment isn't really a reference, it binds a name to an object. Not quite the same thing. But, what's really the problem here is -- wxPython i

Re: order that destructors get called?

2010-04-07 Thread Stephen Hansen
On 2010-04-07 15:08:14 -0700, Brendan Miller said: When doing this, I noticed some odd behaviour. I had code like this: def delete_my_resource(res): # deletes res class MyClass(object): def __del__(self): delete_my_resource(self.res) o = MyClass() What happens is that as the p

Re: Default paranmeter for packed values

2010-04-18 Thread Stephen Hansen
On Sun, Apr 18, 2010 at 4:23 PM, Xavier Ho wrote: > G'day Pythoneers, > > I ran into a strange problem today: why does Python not allow default > paranmeters for packed arguments in a function def? > >>> def t(a, *b = (3, 4)): > File "", line 1 > def t(a, *b = (3, 4)): > ^ >

Re: Picking a license

2010-05-06 Thread Stephen Hansen
On Thu, May 6, 2010 at 4:56 PM, Ben Finney > wrote: > a...@pythoncraft.com (Aahz) writes: > > > In article <4be05d75.7030...@msn.com>, > > Rouslan Korneychuk wrote: > > > > > >The only question I have now is what about licensing? Is that > > >something I need to worry about? Should I go with LG

Re: Picking a license

2010-05-09 Thread Stephen Hansen
On Sun, May 9, 2010 at 10:23 AM, Paul Boddie wrote: > On 9 Mai, 07:09, Patrick Maupin wrote: > > Apple is ***not a "do no evil" corporation > > This being the same Apple that is actively pursuing software patent > litigation against other organisations; a company which accuses other > compa

Re: Picking a license

2010-05-09 Thread Stephen Hansen
On Sun, May 9, 2010 at 12:33 PM, Martin P. Hellwig < martin.hell...@dcuktec.org> wrote: > On 05/09/10 18:24, Stephen Hansen wrote: > >> >> >> Wait, what? Why shouldn't I profit repeatedly from the "same work already >> done"? *I* created, i

Re: Picking a license

2010-05-09 Thread Stephen Hansen
On Sun, May 9, 2010 at 2:22 AM, Martin P. Hellwig < martin.hell...@dcuktec.org> wrote: > Microsoft has indeed lost control of it in the same way, it is just because > we here in the 'western' world spend huge amount of money on prosecuting and > bringing to 'justice' does who, whether for commerci

Re: Installing Lightweight Python

2010-05-17 Thread Stephen Hansen
On Mon, May 17, 2010 at 2:04 PM, Nima Mohammadi wrote: > On May 18, 12:30 am, geremy condra wrote: > > On Mon, May 17, 2010 at 1:05 PM, Nima wrote: > > > Well, I tried to run Python with -v option. It seems that python26.zip > is > > > partially loaded but can't be used, because zlib is "unavai

Re: Where's the List?

2010-06-05 Thread Stephen Hansen
On Sat, Jun 5, 2010 at 1:17 PM, Victor Subervi wrote: > option_values = [] > Here you create a list. You also can get option_values by slicing your 'order' variable, and I assume that is actually producing a tuple. Otherwise, you wouldn't get the error you're getting. Either way, you go

Re: GUIs - A Modest Proposal

2010-06-07 Thread Stephen Hansen
> > However as i have mentioned before there will NEVER be a crowd of us > marching in the streets behind one GUI. People are just too busy to > get involved. This has to be an executive decision. The powers that be > must make the change themselves or it will never happen -- i can > guarantee that

Re: GUIs - A Modest Proposal

2010-06-07 Thread Stephen Hansen
On Mon, Jun 7, 2010 at 10:34 PM, Rick Johnson wrote: > Hi Stephen, > > Great to hear from you. You're right about the powers that be, and i agree! > I was just being a bit theatrical (i've been known to do that from time to > time...Sorry. ;-). > > I know one of at least is interested enough to

Re: GUIs - A Modest Proposal

2010-06-08 Thread Stephen Hansen
On Tue, Jun 8, 2010 at 6:55 AM, Kevin Walzer wrote: > I have no opinion on the merits of PyGUI itself, but after taking a quick > look at the site and the docs, it seems to be an abstraction API over three > different, platform-specific GUI toolkits--PyObjC (Mac), PyGtk (X11) and > Windows (pywin

Re: GUIs - A Modest Proposal

2010-06-09 Thread Stephen Hansen
On Wed, Jun 9, 2010 at 4:16 AM, ant wrote: > We are talking about the thing that the rest of the world sees as > Python's biggest missing piece Citation needed, or its just hyperbole. > - the thing that > beginning programmers look for and don't find - a decent, well- > supported and elegant

Re: Problem with libxml2/libxlst

2010-06-10 Thread Stephen Hansen
and ISTM much easier to use then whatever direct wrapper you seem to be using. Check out: http://codespeak.net/lxml/xpathxslt.html#xslt -- Stephen Hansen ... me+list/python (AT) ixokai (DOT) io signature.asc Description: OpenPGP digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Deformed Form

2010-06-10 Thread Stephen Hansen
On 6/10/10 10:11 AM, Victor Subervi wrote: > On Thu, Jun 10, 2010 at 10:30 AM, Stephen Hansen (L/P) pyt...@ixokai.io> wrote: >> >> But what does "cannot be called" mean? "Cannot" usually means "an error >> happened" -- in which case you should

Re: Deformed Form

2010-06-10 Thread Stephen Hansen
into thinking you're passing. The only way to pass variables between CGI scripts is to explicitly write them out to the form, and read them in from the form. You can't pass them around pythonically. -- Stephen Hansen ... me+list/python (AT) ixokai (DOT) io signature.asc

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
will be obvious. PyGUI is indeed a solid project, and perhaps-- eventually-- a contender for replacing Tkinter, once it works the kinks out and matures. Maybe it is almost mature enough now? Maybe it needs more help? If so-- your time would be better spent downloading it, using it, and offering

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
On 6/10/10 1:14 PM, Ethan Furman wrote: > Stephen Hansen wrote: >> Another thing you can look at is QT/PyQT. If you're doing GPL'd >> software, that might be a very good solution for you-- you can design >> your whole app in the beautiful QTDesigner, and the

Re: Deformed Form

2010-06-10 Thread Stephen Hansen
On 6/10/10 8:35 AM, Bruno Desthuilliers wrote: > Stephen Hansen (L/P) a écrit : >> On 6/10/10 7:14 AM, Victor Subervi wrote: > (snip) >> >> +1 for "absolutely worst framed question of the day" :) > > IMHO you're wasting your time. Some guys never lear

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
ner, and the .ui files can be used in any language with a QT binding, PyQT included. But you gotta be GPL'd to use Python. (Although QT is now LGPL, the PyQT bindings continue the GPL/commercial split... and PySide isn't cross platform yet) -- Stephen Hansen ... me+list/python (AT) ixokai (DOT) io signature.asc Description: OpenPGP digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
On 6/10/10 12:36 PM, rantingrick wrote: > On Jun 10, 1:56 pm, Stephen Hansen wrote: > >> So... uh, why again are we including it? Those people who need it, have >> ready access. > > But what if Mark decided one day he no longer wants to support Python > or Win32

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
os may choose to cut up the standard Python library; that's their business if they wanna do it. But they also make it really easy to add back in. -- Stephen Hansen ... me+list/python (AT) ixokai (DOT) io P.S. Considering I almost never use tkinter, I'm confused how I

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
other positives-- a good pythonic API, maybe some other carrots-- then maybe talk of replacing Tkinter is appropriate. As it is, it doesn't seem to me that its there yet. Not that I am deeply familiar with PyGUI, mind you. -- Stephen Hansen ... me+list/python (AT) ixokai (DOT) io signature.asc Description: OpenPGP digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
ard library. > Wait a minute Steven, are you fighting *for* Tkinter now? I thought > you did not use those "graphical interfaces"? And I do not use tkinter (usually). People can recognize you're really, really, really wrong and really, really, really off your rocket without

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
ether is perfectly fine :) X11.app runs as a regular app on top of all of this. Regular users can't be allowed to see programs that run under X11. It will alarm and offend their sensibilities. We macophiles are a touchy bunch about user interface. -- Stephen Hansen ... me+list/pytho

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
On 6/10/10 8:21 PM, rantingrick wrote: > On Jun 10, 9:38 pm, Stephen Hansen wrote: > >> Also-- you're just starting to get wrong. >> >> http://docs.python.org/library/tix.html >> >> They don't -call- them the things you are, but between ComboBox, a

Re: Deformed Form

2010-06-11 Thread Stephen Hansen
learly, to your arrogant and repeated refusal to take advice that is given, to your abject rudeness here, and so on). -- Stephen Hansen ... me+list/python (AT) ixokai (DOT) io signature.asc Description: OpenPGP digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-11 Thread Stephen Hansen
t there. I might be wrong on the LGPL policy bit. But the only stuff I'm aware of that Python bundles (i.e., zlib, sqlite) have the permissive 'do whatever' type of license. I don't believe Python wants to create a situation where any burden is placed on someone who embeds it. --

Re: GUIs - A Modest Proposal

2010-06-11 Thread Stephen Hansen
professional GUI's with Tkinter -- i > encourage anyone else to speak up if your out there producing real > Tkinter GUI. (psst: i don't think we'll be seeing mobs in the streets, > really i don't) Hint: the world and even Python community is a lot larger then this mailin

Re: GUIs - A Modest Proposal

2010-06-11 Thread Stephen Hansen
y to whom 'just download it' simply doesn't apply. To replace tkinter would require a clea r upgrade path. Or a really, really, really long deprecation period. -- Stephen Hansen ... me+list/python (AT) ixokai (DOT) io signature.asc Description: OpenPGP digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Deformed Form

2010-06-11 Thread Stephen Hansen
k like fools. > On Fri, Jun 11, 2010 at 12:24 PM, Stephen Hansen > wrote: >> >> And this comment ends my attempt at assisting you, for multiple reasons >> (from the utter absurdity of you insisting we understand you when you >> take insultingly little care to actua

Re: Deformed Form

2010-06-11 Thread Stephen Hansen
not wanting to type absurdly long variable names :P) wouldn't work, is if you didn't move the lines correctly. Those will absolutely work just fine in Script2.py. You had to have done it wrong. Maybe typo'd. Show the traceback. Hint: Never say it "doesn't work", or

Re: Deformed Form

2010-06-11 Thread Stephen Hansen
e other files that you import are python > modules, not scripts. Yeah, those exact terminology issues tripped me up very hard in understanding what was going on. -- Stephen Hansen ... me+list/python (AT) ixokai (DOT) io signature.asc Description: OpenPGP digital signature -- http:

Re: GUIs - A Modest Proposal

2010-06-11 Thread Stephen Hansen
x27;just download tkinter from pypi' is not sufficient) -- Stephen Hansen ... me+list/python (AT) ixokai (DOT) io signature.asc Description: OpenPGP digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Good solutions for passing around large numbers of arguments in a layered architecture?

2010-06-11 Thread Stephen Hansen
bject. Its like, environ["beaker.session.blah"] = "fubar". Though that's something of a mix of configuration and state. -- Stephen Hansen ... me+list/python (AT) ixokai (DOT) io signature.asc Description: OpenPGP digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-11 Thread Stephen Hansen
On 6/11/10 7:11 PM, Gregory Ewing wrote: > Stephen Hansen wrote: > >> There's very little you can do with pywin32 that you can't do with >> ctypes. > > Except, apparently, use it from another module in the stdlib. :-( > Yeah. I get the policy in general,

Re: GUIs - A Modest Proposal

2010-06-12 Thread Stephen Hansen
ompetent to write a safe C extension. I know I only *barely* fit into the latter category. Maybe Cython'll be mature enough eventually that the stdlib could accept Cython-based "C" extensions for such cases. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/pyth

Re: Deformed Form

2010-06-12 Thread Stephen Hansen
hey're descriptive, and other posters not so > playfully jibed me about my absurdly short nondescriptive names. Hey, could > you guys coordinate your jibes so you're all on the same page? ;/ Its a question of balance. Using a lot of extremely small nondescriptive names is bad. Using a

Re: Deformed Form

2010-06-12 Thread Stephen Hansen
mething can be said succinctly and clearly on one, Baby Jeebus is happy. And when something can be said on a line that's not over oh, 80-100 (depending a lot on how Old School you are :)) characters wide, yet still clear and entirely comprehensible, Baby Jeebus is very happy. Even in the era of

Re: Python ctypes / pywin32 [was: GUIs - A Modest Proposal]

2010-06-12 Thread Stephen Hansen
, be removed from python, i'm happy. I believe the point is that it must be possible for users/admins to remove it, and that this removal will not cause any other part of the standard library to fail to function. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixoka

Re: safer ctype? (was GUIs - A modest Proposal)

2010-06-12 Thread Stephen Hansen
ogramming goof, oversight or unexpected event causes an exception. It doesn't cause a buffer overflow. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ P.S. Yes, I do understand that ctypes invalidates those assumpt

Re: WebBrowserProgramming [was: GUIs - A Modest Proposal]

2010-06-12 Thread Stephen Hansen
On 6/12/10 9:20 AM, lkcl wrote: > On Jun 10, 6:56 pm, Stephen Hansen wrote: > >> For example: if you want to embed a CSS-capable web-browser into your >> app? PyQT is actually your best option-- albeit a commercial one if >> you're not open source.. wx/Pytho

Re: safer ctype? (was GUIs - A modest Proposal)

2010-06-12 Thread Stephen Hansen
On 6/12/10 12:46 PM, lkcl wrote: > On Jun 12, 6:05 pm, Stephen Hansen wrote: >> Its one of the reasons why we *like* Python at my day job. (Though it >> applies to nearly any other high level language): its inherently safer. >> A programming goof, oversight or unexpected even

Re: __getattribute__ and methods proxying

2010-06-12 Thread Stephen Hansen
g decorators (which is just more explicit wrapping), I think. -- 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: safer ctype? (was GUIs - A modest Proposal)

2010-06-12 Thread Stephen Hansen
On 6/12/10 8:26 PM, Gregory Ewing wrote: >> On Jun 12, 6:05 pm, Stephen Hansen wrote: > >>> A programming goof, oversight or unexpected event causes an exception. >>> It doesn't cause a buffer overflow. > > The important thing here isn't so much th

Re: safer ctype? (was GUIs - A modest Proposal)

2010-06-12 Thread Stephen Hansen
On 6/12/10 8:42 PM, Gregory Ewing wrote: > Stephen Hansen wrote: > >> Its one thing for Python to make available foot-shooting tools(this is >> good! I love ctypes, with care) for the developer, its another thing >> entirely for it to shoot at the ground in the normal co

Re: GUIs - A Modest Proposal

2010-06-12 Thread Stephen Hansen
pps use dynamic / "auto-layout" sort of orientation and sizing without any sort of explicit management. So its clearly -possible-. Maybe its entirely done in wx, and wx does all the pain that lkcl went through trying to get gtk to do it. But that seems unlikely. But I don't actually kno

Re: GUIs - A Modest Proposal

2010-06-12 Thread Stephen Hansen
wing the pain of C, just following a certain limited Python subset. Its very doable, very accessible, and *seems* to address this very issue. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ signature.asc Des

Re: Community (A Modest Proposal)

2010-06-12 Thread Stephen Hansen
we" now, I know) Practicality beats purity. This is a fundamental concept, not only in Python, but in the community. The community is about solving problems. Not an agenda. There is no desire to win. There is no desire to be best. There is a desire for individuals to be empowered to succeed

Re: Community (A Modest Proposal)

2010-06-12 Thread Stephen Hansen
On 6/12/10 10:10 PM, Cameron Simpson wrote: > Python advocacy seems to be by example, not cheerleading. +1 QOTW -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ signature.asc Description: OpenPGP digital signat

Re: GUIs - A Modest Proposal

2010-06-13 Thread Stephen Hansen
straight face? I don't think I've ever seen that before. HTML+CSS have some very strong advantages. Simplicity is not one of them. Precision web design these days is a dark art. (Go center an image vertically and horizontally in an arbitrary sized field!) -- Stephen Hansen ...

Re: Deformed Form

2010-06-13 Thread Stephen Hansen
ery request. I'd "python -m compileall -f ." whenever you edit a file and before testing. -- 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: Community (A Modest Proposal)

2010-06-13 Thread Stephen Hansen
On 6/13/10 9:14 AM, rantingrick wrote: > On Jun 13, 1:50 am, Stephen Hansen wrote: > >> You don't argue a position; you don't support it with facts, logic, >> reason. You start immediately into this emotional rhetoric, >> pseudo-inspirational nonsense which ju

Re: Community (A Modest Proposal)

2010-06-13 Thread Stephen Hansen
nded to be taken as a neutral statement and not a condemnation of one over the other). -- 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: efficiently create and fill array.array from C code?

2010-06-13 Thread Stephen Hansen
ay be entirely wrong. Not my area of expertise. But I lurk a lot. -- 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: efficiently create and fill array.array from C code?

2010-06-13 Thread Stephen Hansen
t? The OP seemed to be concerned about using numpy due to it not yet being ready for 3+. If so, that's very awesome. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ signature.asc Description: OpenPGP di

Re: Community (A Modest Proposal)

2010-06-13 Thread Stephen Hansen
On 6/13/10 12:08 PM, Mark Lawrence wrote: > On 13/06/2010 18:24, Stephen Hansen wrote: >> On 6/13/10 8:42 AM, rantingrick wrote: > > [big snip] > > Stephen, you've tried as have others with this troll, but you're wasting > your time. Realistically, I

Re: Python OpenSSL library

2010-06-13 Thread Stephen Hansen
Add & Remove Programs. -- 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: Deformed Form

2010-06-13 Thread Stephen Hansen
On 6/13/10 3:19 PM, Ethan Furman wrote: > I thought python (well, cpython, at least) didn't use .pyc files for the > main script? You're right, it doesn't. I forgot about that interaction with CGI*. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 7:15 AM, lkcl wrote: > On Jun 13, 2:34 pm, Stephen Hansen wrote: >> On 6/13/10 4:29 AM, lkcl wrote: >> >>> it's in fact how the entire pyjamas UI widget set is created, by >>> doing nothing more than direct manipulation of bits of DOM an

Re: Convert .doc to .pdf

2010-06-14 Thread Stephen Hansen
ending on how old the file format is) -- with OpenOffice being the most controllable. So I think you either need to figure out a way to turn your "can't use it" into a "can" or -- I'm back to out of luck :) -- Stephen Hansen ... Also: Ixokai ... Mai

Re: Is Scheme/LISP faster than C/C++

2010-06-14 Thread Stephen Hansen
On 6/14/10 10:17 AM, bolega wrote: > Sorry, I dont have access to the journal papers ... or I would do > research myself. This has what to do with Python? -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixo

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 11:47 AM, lkcl wrote: > On Jun 14, 4:17 pm, Stephen Hansen wrote: > yes. that's effectively what pyjs applications are about: as much > HTML/CSS as you can stand, then _absolute_ pure javascript from there- > on in... only using a compiler (python-to-javascript

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
pyjamas and plus the wtf-javascript for the client side) -- 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: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 1:00 PM, lkcl wrote: > On Jun 14, 7:30 pm, Stephen Hansen wrote: >> On 6/14/10 11:47 AM, lkcl wrote: >> wx has two separate containment hierarchies. The first is a >> hierarchical, parent->child relationship. This is what a lot of people >> think is i

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 3:44 PM, rantingrick wrote: > On Jun 14, 2:30 pm, Stephen Hansen wrote: > > Stephan speaking of Wx geometry managers... > >> Ahem. /Rant. I'm not saying its the best layout system in the world, but >> like your DOM/HTML example -- its resolution indep

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 4:51 PM, AD. wrote: > On Jun 14, 2:34 am, Stephen Hansen wrote: >> HTML+CSS have some very strong advantages. Simplicity is not one of >> them. Precision web design these days is a dark art. (Go center an image >> vertically and horizontally in an arbitrary sized

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 6:02 PM, AD. wrote: > On Jun 15, 12:06 pm, Stephen Hansen wrote: >> "Arbitrarily sized" was the key point ;-) In that, you set the sizes of >> the div's explicitly. > > As I said to Ed, I think you missed why I included the exact same > image i

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
ho like Wx geometry managers are the same who have no > experience with Tkinter's beautiful geometry managers. I encourage you > to investigate them for yourself. If anyone needs help feel free to > send me a private email or ask here on c.l.p. And exactly what's so great about it? All of the things you said it can do, wx can do easily. -- 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: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 7:22 PM, rantingrick wrote: > On Jun 14, 6:27 pm, Stephen Hansen wrote: > [1] But please, make sure to post code that will run as-is. The last > block of wx code you posted is missing an application instance and > will not run without modification. There are noobs watchi

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 7:22 PM, rantingrick wrote: > On Jun 14, 6:27 pm, Stephen Hansen wrote: > >> From a functionality perspective, "pack" and "grid" are both distinctly >> less capable then wx sizers. > > Are you just flapping your gums or can you prove it S

Re: GUIs - A Modest Proposal

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

Re: configuration setting for python server

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

Re: GUIs - A Modest Proposal

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

Re: GUIs - A Modest Proposal

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

Re: GUIs - A Modest Proposal

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

Re: python local web server

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

<    1   2   3   4   5   6   7   8   >