Re: GUIs - A Modest Proposal

2010-06-10 Thread Mark Lawrence
On 11/06/2010 07:28, rantingrick wrote: On Jun 11, 12:48 am, "Martin v. Loewis" wrote: So Tkinter is a good choice, then, as it *does* have native widgets. And it only took how many years? ;-) Ok i have a litmus test in mind, a way we can get a *real* idea of how many python programmers actu

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
On Jun 11, 12:48 am, "Martin v. Loewis" wrote: > So Tkinter is a good choice, then, as it *does* have native widgets. And it only took how many years? ;-) Ok i have a litmus test in mind, a way we can get a *real* idea of how many python programmers actually want Tkinter to stay. In the next rel

[OT]romantic poetry

2010-06-10 Thread Mark Lawrence
For a bit of light relief from those fed up of reading of the perceived shortcomings of tkinker thought you might like this. Enjoy :) http://www.cc.gatech.edu/fac/Spencer.Rugaber/poems/love.txt Kindest regards. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-10 Thread Martin P. Hellwig
On 06/11/10 07:00, rantingrick wrote: I would bet that only myself, Kevin, and only a handful of others use Tkinter for anything more than education purposes. AFIK, Kevin is THE ONLY PYTHON programmer producing real professional GUI's with Tkinter -- i encourage anyone else to speak up if your o

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
On Jun 11, 12:17 am, ant wrote: > I like the points about backwards compatibility. Presumably that > reason alone is enough to keep Tkinter in the standard library for a > long while. I don't see why that is a good reason. Download Tkinter and your backward compatible again. The majority don't us

Re: GUIs - A Modest Proposal

2010-06-10 Thread Martin v. Loewis
Am 10.06.2010 23:20, schrieb rantingrick: Free up pydev and send Tkinter to the bitbucket! But if you *do* decide to include a GUI, should it not at *least* be based on the native widgets like PyGUI? So Tkinter is a good choice, then, as it *does* have native widgets. Regards, Martin -- http:/

Re: GUIs - A Modest Proposal

2010-06-10 Thread Martin v. Loewis
It seems that removing Tkinter from the stdlib will not only benefit Python, but also Tkinter; due to the fact that Tkinter will not be confined to Python's release schedules. As we've witnessed so far almost nothing has changed since Tkinter's addition many years ago. That's not true. Python 2.

Re: GUIs - A Modest Proposal

2010-06-10 Thread Benjamin Kaplan
On Thu, Jun 10, 2010 at 10:17 PM, ant wrote: > I don't know whether this thread is going backwards, forwards or > sideways. But a lot of useful information is creeping out of the > woodwork. > > I like the points about backwards compatibility. Presumably that > reason alone is enough to keep Tkint

Re: GUIs - A Modest Proposal

2010-06-10 Thread ant
I don't know whether this thread is going backwards, forwards or sideways. But a lot of useful information is creeping out of the woodwork. I like the points about backwards compatibility. Presumably that reason alone is enough to keep Tkinter in the standard library for a long while. But the poin

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, and the >> flexibility of HList and TList... it ac

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
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, and the > flexibility of HList and TList... it actually offers quite a lot. Urm, do you *know* wh

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
On 6/9/10 11:40 PM, Gregory Ewing wrote: > Lie Ryan wrote: > >> Doesn't Mac uses an X server as well? > > You can run one optionally if you want, but its native > graphics system is *not* based on X11. It has a window > server, but the protocol is completely different. The > details are shrouded

Re: grep command

2010-06-10 Thread rantingrick
On Jun 10, 7:56 am, "D'Arcy J.M. Cain" wrote: > On Thu, 10 Jun 2010 08:26:58 +0100 > I'm surprised that there is anyone left who hasn't killfiled this guy. > He/she hasn't made any effort to understand the group.  Why bother even > answering him?  Just filter him and enjoy the silence. All this

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
On 6/10/10 6:41 PM, rantingrick wrote: > On Jun 10, 8:05 pm, Steven D'Aprano cybersource.com.au> wrote: >> What widgets do you think Tk is missing? > > The big ones: > > - Grid > - ListCtrl > - EditableListCtrl > - glCanvas > > I can think of many more useful compound widgets too. And don't

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread fortunatus
On Jun 10, 8:24 pm, p...@informatimago.com (Pascal J. Bourguignon) wrote: > What applets?  Have you ever seen a java applet?  Last time I saw one > it must have been fifteen years ago. I have a Java applet that I use for GUI front end on some of my Lisp work - when HTML forms and pages aren't eno

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
On Jun 10, 8:05 pm, Steven D'Aprano wrote: > What widgets do you think Tk is missing? The big ones: - Grid - ListCtrl - EditableListCtrl - glCanvas I can think of many more useful compound widgets too. And don't try and tell me these are not important. Yes you could create the first three y

Re: An empty object with dynamic attributes (expando)

2010-06-10 Thread dmtr
On Jun 9, 7:31 pm, a...@pythoncraft.com (Aahz) wrote: > dmtr   wrote: > > m = lambda:expando > m.myattr = 1 > print m.myattr > >1 > > That's a *great* technique if your goal is to confuse people. > -- Yeah. But it is kinda cute. Let's hope it won't get adapted (adopted ;). -- Dmitr

Re: What's the difference?

2010-06-10 Thread Steven D'Aprano
On Thu, 10 Jun 2010 15:27:58 -0700, Martin wrote: > On Jun 10, 11:13 pm, Anthony Papillion wrote: >> Thank you Emile and Thomas! I appreciate the help. MUCH clearer now. > > Also at a guess I think perhaps you wrote the syntax slightly wrong > (square brackets)...you might want to look up "list

[Fwd: Re: [ANN] Pyjamas 0.5 Web Widget Set and python-to-javascript Compiler released]

2010-06-10 Thread Paul
The python-announce-list-ow...@python.org suggested you might have a solution to my problem. Please help if you can. Thanks, Paul Original Message Subject: Re: [ANN] Pyjamas 0.5 Web Widget Set and python-to-javascript Compiler released Date: Thu, 10 Jun 2010 17:43:48 -

Re: GUIs - A Modest Proposal

2010-06-10 Thread Steven D'Aprano
On Thu, 10 Jun 2010 16:16:41 -0700, rantingrick wrote: > But don't fear losing Tkinter in the stdlib, oh no. Actually i think > Tkinter would evolve far more quickly "outside" of Python. It will be a > metamorphosis from a cocoon of contempt into an unhindered bliss of > release cycles. Free of t

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Pascal J. Bourguignon
bolega writes: > On Jun 10, 2:51 pm, p...@informatimago.com (Pascal J. Bourguignon) > wrote: >> bolega writes: >> > Which is the best implementation of LISP family of languages for real >> > world programming ? >> >> What's the real world? >> What's real world programming? >> >> -- >> __Pascal B

Re: What's the difference?

2010-06-10 Thread Ethan Furman
Ethan Furman wrote: Anthony Papillion wrote: Someone helped me with some code yesterday and I'm trying to understand it. The way they wrote it was subjects = (info[2] for info in items) Perhaps I'm not truly understanding what this does. Does this do anything different than if I wrote for inf

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread bolega
On Jun 10, 2:51 pm, p...@informatimago.com (Pascal J. Bourguignon) wrote: > bolega writes: > > Which is the best implementation of LISP family of languages for real > > world programming ? > > What's the real world? > What's real world programming? > > -- > __Pascal Bourguignon__                  

Re: What's the difference?

2010-06-10 Thread Terry Reedy
On 6/10/2010 4:47 PM, Anthony Papillion wrote: Someone helped me with some code yesterday and I'm trying to understand it. The way they wrote it was subjects = (info[2] for info in items) This is more or less equivalent to def _(): for item in items: yield info[2] subjects = _() d

Re: How do subprocess.Popen("ls | grep foo", shell=True) with shell=False?

2010-06-10 Thread Dan Stromberg
On Thu, Jun 10, 2010 at 4:52 AM, Nobody wrote: > > Also, "ls | grep" may provide a useful tutorial for the subprocess module, > but if you actually need to enumerate files, use e.g. os.listdir/os.walk() > and re.search/fnmatch, or glob. Spawning child processes to perform tasks > which can easily

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
On Jun 10, 3:06 pm, Stephen Hansen wrote: > And actually: things do go to the stdlib to die. Its actually a very apt > description of exactly how things work. Once a module gets added to the > stdlib, its sort of dead. Static. It might change, in this > excruciatingly slow pace, with strict rules

Re: What's the difference?

2010-06-10 Thread Thomas Jollans
On 06/10/2010 10:47 PM, Anthony Papillion wrote: > Someone helped me with some code yesterday and I'm trying to > understand it. The way they wrote it was > > subjects = (info[2] for info in items) This is a generator expression, and it creates a generator object. If you loop over it (subjects),

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
On Jun 10, 5:26 pm, Mark Roseman wrote: > Discounting completely and without evidence or reason the considerable > amount of volunteer work that continues to go into Tkinter (and Tk) and > the people who use both does not help you advance your case. Mark, I am in no way trying to harm your effo

What's the difference?

2010-06-10 Thread Anthony Papillion
Someone helped me with some code yesterday and I'm trying to understand it. The way they wrote it was subjects = (info[2] for info in items) Perhaps I'm not truly understanding what this does. Does this do anything different than if I wrote for info[2] in items subject = info[2] Thanks! Anth

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Alister
On Thu, 10 Jun 2010 13:14:01 -0700, bolega wrote: > Which is the best implementation of LISP family of languages for real > world programming ? > > http://wiki.alu.org/Implementation > > Kindly pick one from commercial and one from open-source . > > The criteria is : > > libraries, gui interfa

Re: GUIs - A Modest Proposal

2010-06-10 Thread Ethan Furman
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 .ui files can be used in any language with a QT binding, PyQT included. But you gotta be

Re: Decimal problem

2010-06-10 Thread Jerry Hill
On Thu, Jun 10, 2010 at 3:45 PM, durumdara wrote: >from decimal import Decimal > ImportError: cannot import name Decimal > > I deleted my complete Python with all packages, and I reinstalled it. > But the problem also appeared... > > What is this? And what the hell happened in this machine th

Re: GUIs - A Modest Proposal

2010-06-10 Thread Evan Plaice
This is my first foray into usenet and f*** the signal to crap ratio in here is ridiculous. I can't believe that there are 150+ answers and little or no useful information yet I was wondering the same thing since the subject of cross platform GUI dev makes me cringe. I was wondering if there was a

Re: GUIs - A Modest Proposal

2010-06-10 Thread Kevin Walzer
On 6/10/10 5:20 PM, rantingrick wrote: But with Tkinter there is a larger problem, TclTk! Even Tk is not a full featured GUI library, much is to be desired. What's your basis for saying this? I've used Tk in nearly a dozen small-to-large applications on the Mac, both in Python and Tcl, and I

ANN: ActivePython 2.7.0c1.0 is now available

2010-06-10 Thread Sridhar Ratnakumar
We are pleased to announce the availability of ActivePython 2.7.0c1.0. http://www.activestate.com/activepython This release corresponds to the recently released Python 2.7 RC1, and, like ActivePython 2.6, includes the Python Package Manager (PyPM) with essential packages such as Distribute,

Re: gui doubt

2010-06-10 Thread Dan Stromberg
You probably should tell us what GUI toolkit you're using. But if your GUI toolkit has the concept of a "vertical box", then create a vertical box, add it to your window, and put things in the vertical box. To put your widget at the bottom of your vertical box, append to the end it last or insert

Re: What's the difference?

2010-06-10 Thread Anthony Papillion
Thank you Emile and Thomas! I appreciate the help. MUCH clearer now. -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
On 6/10/10 2:20 PM, rantingrick wrote: > However, i think you'll also agree that GUI > has been (and continues to be) an ever evolving beast. With many, > many, library's to choose from and nobody can agree that *this* or > *that* GUI library is better. I fail to see how the above statement (whic

Re: GUIs - A Modest Proposal

2010-06-10 Thread Mark Roseman
rantingrick wrote: > As is evidenced by the lack of > development for Tkinter. But with Tkinter there is a larger problem, > TclTk! Even Tk is not a full featured GUI library Please, enough of this nonsense rant already! :-) Discounting completely and without evidence or reason the considerable

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
On 6/10/10 3:17 PM, geremy condra wrote: > I mostly agree with you, but as Stephen points out you can't exactly > count on it being present now either, which more or less renders any > guarantee of backwards compatibility moot IMO. Whats the practical > difference between telling somebody that eith

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Pascal J. Bourguignon
bolega writes: > Which is the best implementation of LISP family of languages for real > world programming ? What's the real world? What's real world programming? -- __Pascal Bourguignon__ http://www.informatimago.com/ -- http://mail.python.org/mailman/listinfo/python-list

MySQLdb problems with named pipe connection on Windows 7?

2010-06-10 Thread John Nagle
MySQLdb won't connect to my MySQL 5.1 on on Windows 7. This worked on Windows 2000, but of course I've had to reinstall everything. The MySQL command line client, "mysql", connects to the database without problems. Installed: ActiveState Python 2.6 (Win32) "mysql-essential-5.1.47.win32.

Re: Decimal problem

2010-06-10 Thread Mark Dickinson
On Jun 10, 8:45 pm, durumdara wrote: > ne 91, in fixed_conv_out_precise >     from decimal import Decimal > ImportError: cannot import name Decimal Is it possible that you've got another file called decimal.py somewhere in Python's path? What happens if you start Python manually and type 'from d

Re: What's the difference?

2010-06-10 Thread Emile van Sebille
On 6/10/2010 1:47 PM Anthony Papillion said... Someone helped me with some code yesterday and I'm trying to understand it. The way they wrote it was subjects = (info[2] for info in items) Perhaps I'm not truly understanding what this does. Does this do anything different than if I wrote for in

Re: GUIs - A Modest Proposal

2010-06-10 Thread Mark Lawrence
On 10/06/2010 22:20, rantingrick wrote: [snip most of it] Free up pydev and send Tkinter to the bitbucket! Great idea, but lets take this further. I don't personally like module xyz, so let's free up pydev and send xyz to the bitbucket because I say so. To hell with anyone elses' views, an

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Kenneth Tilton
bolega wrote: Which is the best implementation of LISP family of languages for real world programming ? http://wiki.alu.org/Implementation Kindly pick one from commercial and one from open-source . ACL and SBCL The criteria is : libraries, gui interface and builder, libraries for TCP, and

Re: numpy arrays to python compatible arrays

2010-06-10 Thread Martin
On Jun 10, 9:02 pm, Philip Semanchuk wrote: > On Jun 10, 2010, at 9:58 AM, Javier Montoya wrote: > > > Dear all, > > > I'm new to python and have been working with the numpy package. I have > > some numpy float arrays (obtained from np.fromfile and np.cov > > functions) and would like to convert t

Re: What's the difference?

2010-06-10 Thread Martin
On Jun 10, 11:13 pm, Anthony Papillion wrote: > Thank you Emile and Thomas! I appreciate the help. MUCH clearer now. Also at a guess I think perhaps you wrote the syntax slightly wrong (square brackets)...you might want to look up "list comprehension" Martin -- http://mail.python.org/mailman/li

Re: GUIs - A Modest Proposal

2010-06-10 Thread geremy condra
On Thu, Jun 10, 2010 at 3:02 PM, Mark Lawrence wrote: > On 10/06/2010 22:20, rantingrick wrote: > [snip most of it] > >> Free up pydev and send Tkinter to the bitbucket! > > Great idea, but lets take this further.  I don't personally like module xyz, > so let's free up pydev and send xyz to the bi

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Pascal Costanza
On 10/06/2010 23:51, Pascal J. Bourguignon wrote: bolega writes: Which is the best implementation of LISP family of languages for real world programming ? What's the real world? What's real world programming? I guess somebody's just enjoying flame wars too much. Pascal -- My website: ht

Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread bolega
Which is the best implementation of LISP family of languages for real world programming ? http://wiki.alu.org/Implementation Kindly pick one from commercial and one from open-source . The criteria is : libraries, gui interface and builder, libraries for TCP, and evolving needs. Please compare

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? How many years will it be before

Re: SQLite3 - How to set page size?

2010-06-10 Thread durumdara
On jún. 10, 20:39, Ian Kelly wrote: > On Thu, Jun 10, 2010 at 12:25 PM, durumdara wrote: > > Hi! > > > I tried with this: > > > import sqlite3 > > pdb = sqlite3.connect("./copied4.sqlite") > > pcur = pdb.cursor() > > pcur.execute("PRAGMA page_size = 65536;") > > pdb.commit() > > pcur.execute('VAC

Decimal problem

2010-06-10 Thread durumdara
Hi! In the prev. week I tested my home Python projects with KinterBasDB embedded, PsyCOPG, and SQLite. All of them worked well, and everything was good. But the database blob table deletion was slow in SQLite, so I thought I will try this with FireBird and PGSQL. Today I tried to copy the SQLit

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
On 6/10/10 12:34 PM, Evan Plaice wrote: > This is my first foray into usenet and f*** the signal to crap > ratio in here is ridiculous. I can't believe that there are 150+ > answers and little or no useful information yet That's because the question wasn't really a question. Its a political rallyi

Re: What's the difference?

2010-06-10 Thread Ethan Furman
Anthony Papillion wrote: Someone helped me with some code yesterday and I'm trying to understand it. The way they wrote it was subjects = (info[2] for info in items) Perhaps I'm not truly understanding what this does. Does this do anything different than if I wrote for info[2] in items subj

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
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? How many years will it be before someone writes another? > Why not include wxPython

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
On Jun 10, 1:52 pm, Emile van Sebille wrote: > After 15 years, I don't see that MS has gotten it right yet and I'm > tired of fixing stupid windows boxes.  Talk about time sinks! And i 100% agree Emille. Just for the record i hate windows, I hate win32 programming, i hate MS office, and I hate VB

Re: historic grail python browser "semi-recovered"

2010-06-10 Thread lkcl
On Jun 10, 6:17 pm, MRAB wrote: > lkcl wrote: > > On Jun 9, 11:03 pm, rantingrick wrote: > >> On Jun 9, 4:29 pm, lkcl wrote: > > >>> um, please don't ask me why but i foundgrail, the python-based web > >>>browser, and have managed to hack it into submission sufficiently to > >>> view e.g.http://

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Mark Lawrence
On 10/06/2010 22:51, Pascal J. Bourguignon wrote: bolega writes: Which is the best implementation of LISP family of languages for real world programming ? What's the real world? What's real world programming? What's this doing on c.l.py? Regards. Mark Lawrence. -- http://mail.python.or

simple chat server

2010-06-10 Thread Burakk
Hi, I am using ubuntu lucid and i have started to learn python(vrs 3.1). I am trying to make a tutorial code(see below) work but when i run the code, open a terminal window and connect as client with telnet and type somethings and hit enter, give me error below...(the terminal says connection clos

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 learn, and I guess we do > have a world-class all-t

Re: GUIs - A Modest Proposal

2010-06-10 Thread geremy condra
On Thu, Jun 10, 2010 at 3:57 PM, rantingrick wrote: > On Jun 10, 5:17 pm, geremy condra wrote: > >> Whats the practical >> difference between telling somebody that either tkinter works out of >> the box or they'll have to satisfy an extra dependency and just telling >> them that they'll have to s

Re: regarding the dimensions in gui

2010-06-10 Thread Phlip
On Jun 10, 10:00 am, rantingrick wrote: > On Jun 10, 4:40 am, Jean-Michel Pichavant > wrote: > > > Internet rule, number 30: > > > "There are no girls on the internet" > > Well i hope at least your bedroom door does not still have that sign > hanging... > >  # >  #*      

Re: GUIs - A Modest Proposal

2010-06-10 Thread Benjamin Kaplan
On Thu, Jun 10, 2010 at 9:34 AM, rantingrick wrote: > On Jun 10, 3:52 am, Gregory Ewing wrote: > >> Pywin32 does seem to have grown rather haphazardly. Some >> functionality is wrapped in two different ways in different >> modules, for no apparently good reason, and some other >> things are wrapp

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 .ui files can be >> used in any language

Re: numpy arrays to python compatible arrays

2010-06-10 Thread Philip Semanchuk
On Jun 10, 2010, at 9:58 AM, Javier Montoya wrote: Dear all, I'm new to python and have been working with the numpy package. I have some numpy float arrays (obtained from np.fromfile and np.cov functions) and would like to convert them to simple python arrays. I was wondering which is the best

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
On Jun 10, 5:17 pm, geremy condra wrote: > Whats the practical > difference between telling somebody that either tkinter works out of > the box or they'll have to satisfy an extra dependency and just telling > them that they'll have to satisfy an additional dependency in the first > place? BIG +

Re: GUIs - A Modest Proposal

2010-06-10 Thread geremy condra
On Thu, Jun 10, 2010 at 3:24 PM, Stephen Hansen wrote: > On 6/10/10 3:17 PM, geremy condra wrote: >> I mostly agree with you, but as Stephen points out you can't exactly >> count on it being present now either, which more or less renders any >> guarantee of backwards compatibility moot IMO. Whats

Re: GUIs - A Modest Proposal

2010-06-10 Thread Mark Lawrence
On 10/06/2010 23:24, Stephen Hansen wrote: [snip] P.S. Considering I almost never use tkinter, I'm confused how I somehow suddenly became a Champion of Tkinter Inclusiveness. FWIW I've never used any GUI in Python. I'd see your involvement on this thread as being more like a Champion of Comm

Re: Java Developer with Chordiant, Hyderabad

2010-06-10 Thread Evan Plaice
You do realize that this is a python and not Java usenet group right? You'd be better off checking out comp.lang.python -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
On 6/10/10 9:34 AM, rantingrick wrote: > Like it not (And i'm talking directly to all the Unix hackers here!) > Win32 is here to stay! You should have realized that years ago! And > likewise, like it or not, GUI is here to stay. You should have also > realized that years ago (although we may be sup

Re: GUIs - A Modest Proposal

2010-06-10 Thread Emile van Sebille
On 6/10/2010 9:34 AM rantingrick said... Like it not (And i'm talking directly to all the Unix hackers here!) Win32 is here to stay! You should have realized that years ago! Frankly, I'm dropping clients that insist on windows only and am actively migrating clients to ubuntu/openoffice/firefo

Re: SQLite3 - How to set page size?

2010-06-10 Thread Ian Kelly
On Thu, Jun 10, 2010 at 12:25 PM, durumdara wrote: > Hi! > > I tried with this: > > import sqlite3 > pdb = sqlite3.connect("./copied4.sqlite") > pcur = pdb.cursor() > pcur.execute("PRAGMA page_size = 65536;") > pdb.commit() > pcur.execute('VACUUM;') > pdb.commit() > pcur.execute("PRAGMA page_size"

Re: GUIs - A Modest Proposal

2010-06-10 Thread Martin v. Loewis
or PyGui would need to be implemented in terms of ctypes (which then would prevent its inclusion, because there is a policy that ctypes must not be used in the standard library). Is there? I wasn't aware of that. What's the reason? ctypes is inherently unsafe. It must be possible to remove it

SQLite3 - How to set page size?

2010-06-10 Thread durumdara
Hi! I tried with this: import sqlite3 pdb = sqlite3.connect("./copied4.sqlite") pcur = pdb.cursor() pcur.execute("PRAGMA page_size = 65536;") pdb.commit() pcur.execute('VACUUM;') pdb.commit() pcur.execute("PRAGMA page_size") rec = pcur.fetchone() print rec pdb.close() But never I got bigger page

Re: historic grail python browser "semi-recovered"

2010-06-10 Thread MRAB
lkcl wrote: On Jun 9, 11:03 pm, rantingrick wrote: On Jun 9, 4:29 pm, lkcl wrote: um, please don't ask me why but i foundgrail, the python-based web browser, and have managed to hack it into submission sufficiently to view e.g.http://www.google.co.uk. out of sheer apathy i happened to have

Re: Deformed Form

2010-06-10 Thread Stephen Hansen
On 6/10/10 10:48 AM, Victor Subervi wrote: > Now, create_edit_passengers3() is called by the form/submit button in (you > guessed it) create_edit_passengers2.py, the latter containing a var in it > which *should* be accessible to create_edit_passengers3.py, one would think. Wait, wait, wait. If a

Re: Deformed Form

2010-06-10 Thread Victor Subervi
No, I think you've misunderstood because while I thought I was being clear I probably was not. So here is the complete code of create_edit_passengers3.py: #!/usr/bin/python import cgitb; cgitb.enable() import cgi import sys,os sys.path.append(os.getcwd()) import MySQLdb from login import login im

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 shouldn't really even mention it unless >> you're gonna back

Re: How to read source code of python?

2010-06-10 Thread Giampaolo Rodolà
2010/6/10 Leon : > Hi, there, > I'm trying to read the source code of python. > I read around, and am kind of lost, so where to start? > > Any comments are welcomed, thanks in advance. > -- > http://mail.python.org/mailman/listinfo/python-list > If you're interested in understanding Python interna

Re: Deformed Form

2010-06-10 Thread Victor Subervi
On Thu, Jun 10, 2010 at 10:30 AM, Stephen Hansen (L/P) wrote: > On 6/10/10 7:14 AM, Victor Subervi wrote: > > Hi; > > I have a script that calls values from the form that calls it. This > script > > imports another script: > > > > from New_Passenger import New_Passenger > > > > def create_edit_pa

Re: historic grail python browser "semi-recovered"

2010-06-10 Thread lkcl
On Jun 9, 11:03 pm, rantingrick wrote: > On Jun 9, 4:29 pm, lkcl wrote: > > > um, please don't ask me why but i foundgrail, the python-based web > >browser, and have managed to hack it into submission sufficiently to > > view e.g.http://www.google.co.uk.  out of sheer apathy i happened to > > hav

Re: regarding the dimensions in gui

2010-06-10 Thread rantingrick
On Jun 10, 4:40 am, Jean-Michel Pichavant wrote: > Internet rule, number 30: > > "There are no girls on the internet" Well i hope at least your bedroom door does not still have that sign hanging... # #* *# # NO GIRLS ALLOWED! # #*

Re: historic grail python browser "semi-recovered"

2010-06-10 Thread lkcl
On Jun 9, 10:58 pm, Thomas Jollans wrote: > give us a copy then, just for the laughs. ^^ Post it on bitbucket, > maybe? (or send me a copy and I'll do it) http://github.com/lkcl/grailbrowser remember it only works on python2.4 or less right now! -- http://mail.python.org/mailman/listinfo/pyt

Re: historic grail python browser "semi-recovered"

2010-06-10 Thread lkcl
On Jun 9, 11:03 pm, rantingrick wrote: > On Jun 9, 4:29 pm, lkcl wrote: > > > um, please don't ask me why but i foundgrail, the python-based web > >browser, and have managed to hack it into submission sufficiently to > > view e.g.http://www.google.co.uk.  out of sheer apathy i happened to > > hav

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
On Jun 10, 3:52 am, Gregory Ewing wrote: > Pywin32 does seem to have grown rather haphazardly. Some > functionality is wrapped in two different ways in different > modules, for no apparently good reason, and some other > things are wrapped incompletely or not at all. A well > thought out replacem

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
On Jun 10, 3:28 am, Gregory Ewing wrote: > Brian Blais wrote: > > In this whole discussion, I haven't seen anyone mention wax (http:// > > zephyrfalcon.org/labs/wax_primer.html) > > Just had a quick look at that. In the third example code box: > >    def Body(self): >         >      self.textb

Re: using reverse in list of tuples

2010-06-10 Thread Steven W. Orr
On 06/10/10 04:41, quoth Marco Nawijn: > On Jun 10, 2:39 am, james_027 wrote: >> hi, >> >> I am trying to reverse the order of my list of tuples and its is >> returning a None to me. Is the reverse() function not allow on list >> containing tuples? >> >> Thanks, >> James > > As the others already

Re: Py++, boost and python type mismatch error

2010-06-10 Thread Thomas Jollans
On 06/10/2010 05:15 PM, Murrgon wrote: > I have a simple C++ library (from a dll) I am attempting to make > accessible through bindings to python. I used Py++ to generate some > boost code for the library that I compiled into a pyd. I can import the > pyd no problem into python, but I can't seem

Re: How do subprocess.Popen("ls | grep foo", shell=True) with shell=False?

2010-06-10 Thread Lie Ryan
On 06/10/10 21:52, Nobody wrote: > Spawning child processes to perform tasks > which can easily be performed in Python is inefficient Not necessarily so, recently I wrote a script which takes a blink of an eye when I pipe through cat/grep to prefilter the lines before doing further complex filteri

Re: How do subprocess.Popen("ls | grep foo", shell=True) with shell=False?

2010-06-10 Thread Chris Seberino
On Jun 10, 6:52 am, Nobody wrote: > Without the p1.stdout.close(), if the reader (grep) terminates before > consuming all of its input, the writer (ls) won't terminate so long as > Python retains the descriptor corresponding to p1.stdout. In this > situation, the p1.wait() will deadlock. > > The c

Re: Problem with libxml2/libxlst

2010-06-10 Thread Stephen Hansen
On 6/10/10 7:47 AM, CinnamonDonkey wrote: > My mistake! *doh* > > I had an 'disable-output-escape="YES"' when it should have been "NO". > > -Shaun > Eeeeven though you figured out your problem: have you checked out lxml? Its extremely capable and ISTM much easier to use then whatever direct wra

Re: Deformed Form

2010-06-10 Thread Bruno Desthuilliers
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 learn, and I guess we do have a world-class all-times champion here. -- http://mail.python.org/mailman/li

including pygments code_block directive in rst2* from docutils

2010-06-10 Thread Sean Davis
I would like to simply extend the rst2* scripts bundled with docutils to include a code_block directive. I have found a number of sites that discuss the topic, but I guess I am new enough to docutils to still be wondering how to make it actually happen. I'm looking to convert a single .rst file t

Py++, boost and python type mismatch error

2010-06-10 Thread Murrgon
I have a simple C++ library (from a dll) I am attempting to make accessible through bindings to python. I used Py++ to generate some boost code for the library that I compiled into a pyd. I can import the pyd no problem into python, but I can't seem to call the functions. struct MM_Api { v

Re: How to read source code of python?

2010-06-10 Thread Floris Bruynooghe
On Jun 10, 8:55 am, Thomas Jollans wrote: > On 06/10/2010 07:25 AM, Qijing Li wrote: > > > Thanks for your reply. > > I'm trying to understand python language deeply and  use it efficiently. > > For example: How the operator "in" works on list? the running time is > > be O(n)?  if my list is sorte

Re: Problem with libxml2/libxlst

2010-06-10 Thread CinnamonDonkey
My mistake! *doh* I had an 'disable-output-escape="YES"' when it should have been "NO". -Shaun On 10 June, 10:17, CinnamonDonkey wrote: > Hi All, > > I could not find a dedicated libxml2/libxlst group so I thought I > would see if anyone here could help. > > I have a system which captures the s

Re: function that counts...

2010-06-10 Thread Lie Ryan
On 06/10/10 09:03, Bryan wrote: > Lie Ryan wrote: >> I went through the mathematical foundation of using >> partition/distribution and inclusion-exclusion, and have written some >> code that solves a subset of the problem, feel free if you or superpollo >> are interested in continuing my answer (I

Re: Deformed Form

2010-06-10 Thread Stephen Hansen (L/P)
On 6/10/10 7:14 AM, Victor Subervi wrote: > Hi; > I have a script that calls values from the form that calls it. This script > imports another script: > > from New_Passenger import New_Passenger > > def create_edit_passengers3(): > ... > new_passengers_curr_customers = New_Passengers_Curr_Cus

  1   2   >