Re: [Tutor] Which non SQL Database ?

2010-12-04 Thread Brett Ritter
On Sat, Dec 4, 2010 at 5:42 PM, Jorge Biquez wrote: > Newbie question. Sorry. If it isn't you're on the wrong list :) > training so no pressure on performance). One application will run as a > desktop one,under Windows, Linux, Macintosh, being able to update data, not > much, not complex, not ma

[Tutor] Which non SQL Database ?

2010-12-04 Thread Jorge Biquez
Hello all. Newbie question. Sorry. As part of my process to learn python I am working on two personal applications. Both will do it fine with a simple structure of data stored in files. I now there are lot of databases around I can use but I would like to know yoor advice on what other option

Re: [Tutor] PHP

2010-12-04 Thread wesley chun
On Sat, Dec 4, 2010 at 12:44 PM, Brett Ritter wrote: > On Sat, Dec 4, 2010 at 2:27 PM, Kirk Bailey wrote: >> and continue in html. What a BLOODY shame we can't do that in python, >> which is otherwise awesome and superior in every way i can thus far >> evaluate. > > As someone mentioned, you CAN

Re: [Tutor] printing in python 3.x

2010-12-04 Thread Monte Milanuk
Alan, Perhaps this is a silly question (and possibly not strictly python-related) but I was under the impression that controlling exactly layout via html was kind of difficult and somewhat fragile. The latter perhaps less so as one could make some fairly concrete assumptions about the paper

Re: [Tutor] PHP

2010-12-04 Thread Brett Ritter
On Sat, Dec 4, 2010 at 2:27 PM, Kirk Bailey wrote: > and continue in html. What a BLOODY shame we can't do that in python, > which is otherwise awesome and superior in every way i can thus far > evaluate. As someone mentioned, you CAN do that in Python. However, you'll find that mixing content a

Re: [Tutor] PHP

2010-12-04 Thread wesley chun
> Straightaway, i was impressed by one powerful property; the ability to > imbed php into a html webpage, and switch into and out of php as needed, > and let normal ssi and html and css work the rest of the time, outside > of php. all I have to do is start the php block with > write code; > ?> # e

Re: [Tutor] PHP

2010-12-04 Thread Corey Richardson
On 12/4/2010 2:27 PM, Kirk Bailey wrote: For reasons of my work, of recent I have started aquiring php. Straightaway, i was impressed by one powerful property; the ability to imbed php into a html webpage, and switch into and out of php as needed, and let normal ssi and html and css work the res

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Albert-Jan Roskam
Hi Steven, Awesome, I've got it working now! Here's the code: http://pastebin.com/BQhW8piD (I also pasted it below this message). I tried your approach before but I abandoned it because I made a mistake in lines 16 (pass None for event) and 22 (I didn't use the parameters of the outer functio

[Tutor] PHP

2010-12-04 Thread Kirk Bailey
For reasons of my work, of recent I have started aquiring php. Straightaway, i was impressed by one powerful property; the ability to imbed php into a html webpage, and switch into and out of php as needed, and let normal ssi and html and css work the rest of the time, outside of php. all I have

Re: [Tutor] Newline

2010-12-04 Thread Alex Hall
On 12/4/10, Steven D'Aprano wrote: > Alex Hall wrote: >> On 12/4/10, Alan Gauld wrote: >>> "Steven D'Aprano" wrote >>> >>> for i in (1, 2, 3): ... print(i, "spam", end="\n" if i==3 else "***") >>> Ooooh! A new trick. >>> I hadn't thought of using the conditional expression there but

Re: [Tutor] Newline

2010-12-04 Thread ALAN GAULD
> >> ... print(i, "spam", end="\n" if i==3 else "***") > > > > I hadn't thought of using the conditional expression there but it > > makes a lot of sense. > So is this a python3.x feature only? Is there an equivallent in 2.x? I The end parameter of print is a Python 3 feature - only poss

Re: [Tutor] Newline

2010-12-04 Thread Steven D'Aprano
Alex Hall wrote: On 12/4/10, Alan Gauld wrote: "Steven D'Aprano" wrote for i in (1, 2, 3): ... print(i, "spam", end="\n" if i==3 else "***") Ooooh! A new trick. I hadn't thought of using the conditional expression there but it makes a lot of sense. Definitely more fun and flexible than

Re: [Tutor] Question about the "main" Python help list

2010-12-04 Thread Luke Paireepinart
Next time you email tutor, start a new email msg instead of clearing out the contents of a reply to a different e-mail. When you do it like that it breaks threading, so all these emails are in the same thread as the "need help" one even though they aren't related to that e-mail. ---

Re: [Tutor] Newline

2010-12-04 Thread Alex Hall
On 12/4/10, Alan Gauld wrote: > > "Steven D'Aprano" wrote > >> >>> for i in (1, 2, 3): >> ... print(i, "spam", end="\n" if i==3 else "***") > > Ooooh! A new trick. > I hadn't thought of using the conditional expression there but it > makes a lot of sense. > Definitely more fun and flexible th

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Steven D'Aprano
Albert-Jan Roskam wrote: Meanwhile, I tinkered a bit more with the code. I used exec() to isolate the event handler function. It works and it's better, but I think it could be still better. I'm not so fond of eval() and exec(). They have their uses, but yes, it's best to avoid them unless you

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Steven D'Aprano
Evert Rol wrote: I actually find it a bit weird that a (programming?) company has a coding convention for non-English names; makes it harder if you want to hire non-Dutch speaking employees, distribute software (& code) internationally etc. I can't put my hands on the reference right now, bu

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Albert-Jan Roskam
Hi Evert, I actually wanted the var names to be in English, but apparently the people who came up with the coding convention did not agree with me on this. Then again, the Zen of Python states that (1) readability counts and that (2) practicality beats purity. Most of the time, I'm 120% sure th

Re: [Tutor] Question about the "main" Python help list

2010-12-04 Thread Alan Gauld
"Joel Schwartz" wrote My question: Is there a general Python help list that is open for all to see, in the same way that the Python Tutor list is open? There are many Python mailing lists and usenet newsgroups. They are all available to browse on gmane. (just short of 200 of them by my esti

Re: [Tutor] Newline

2010-12-04 Thread Alan Gauld
"Steven D'Aprano" wrote >>> for i in (1, 2, 3): ... print(i, "spam", end="\n" if i==3 else "***") Ooooh! A new trick. I hadn't thought of using the conditional expression there but it makes a lot of sense. Definitely more fun and flexible than the old comma at the end of a print in v2

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Evert Rol
> Hi Patty, > > As far as books are concerned, I actually prefer (programming) books in the > English language. Although the Dutch don't do it as much as e.g. the French > or the Germans, I hate it when technical terms are translated into Dutch in a > somewhat artificial way ("Computer" is "Or

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Albert-Jan Roskam
Hi Patty, As far as books are concerned, I actually prefer (programming) books in the English language. Although the Dutch don't do it as much as e.g. the French or the Germans, I hate it when technical terms are translated into Dutch in a somewhat artificial way ("Computer" is "Ordinateur" in

Re: [Tutor] Question about the "main" Python help list

2010-12-04 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Joel Schwartz wrote: I meant the Python-Help mailing list (http://mail.python.org/mailman/listinfo/python-help), which is described on the Python mailing list page (http://mail.python.org/mailman/listinfo) as "Expert volunteers answer Python-related questions." I guess

Re: [Tutor] Question about the "main" Python help list

2010-12-04 Thread Stefan Behnel
Joel Schwartz, 04.12.2010 09:07: I meant the Python-Help mailing list (http://mail.python.org/mailman/listinfo/python-help), which is described on the Python mailing list page (http://mail.python.org/mailman/listinfo) as "Expert volunteers answer Python-related questions." I guess I should have

Re: [Tutor] Question about the "main" Python help list

2010-12-04 Thread Joel Schwartz
I meant the Python-Help mailing list (http://mail.python.org/mailman/listinfo/python-help), which is described on the Python mailing list page (http://mail.python.org/mailman/listinfo) as "Expert volunteers answer Python-related questions." I guess I should have stated specifically what list I was