Re: my new project, is this the right way?

2011-11-26 Thread Matt Joiner
Sounds like you want a key-value store. If it's a lot of data, you may still want a "database", I think it's just relational databases that you're trying to avoid? On Sun, Nov 27, 2011 at 10:41 AM, 8 Dihedral wrote: > On Saturday, November 26, 2011 1:01:34 AM UTC+8, rusi wrote: >> On Nov 14,

Re: my new project, is this the right way?

2011-11-26 Thread Roy Smith
In article <26232548.146.1322363676465.JavaMail.geo-discussion-forums@pruu5>, 8 Dihedral wrote: > > In general, databases differ from in-memory data > > structures in that they provide: > > > > 1) Persistence > > > > 2) Data integrity > > > > 3) Shared access > > Shared in access in a

Re: my new project, is this the right way?

2011-11-26 Thread Dave Angel
On 11/26/2011 10:14 PM, 8 Dihedral wrote: On Sunday, November 27, 2011 10:49:20 AM UTC+8, Roy Smith wrote: This is a good point. In general, databases differ from in-memory data structures in that they provide: 1) Persistence 2) Data integrity 3) Shared access Shared in access in a loc

Re: my new project, is this the right way?

2011-11-26 Thread Chris Angelico
On Sun, Nov 27, 2011 at 2:14 PM, 8 Dihedral wrote: > Shared in access in a local lan or a wide wan? > That question isn't inherent to databasiness; it might not even be network-shared at all - in fact, most database-driven web sites have a database that's accessible only from localhost (which

Re: my new project, is this the right way?

2011-11-26 Thread 88888 Dihedral
On Sunday, November 27, 2011 10:49:20 AM UTC+8, Roy Smith wrote: > In article , > Dave Angel wrote: > > > If you're using Python, you already have a "fast hash" library, in the > > dictionary class. And yes, if a problem doesn't need the full > > generality of a database, you may be able to i

Re: Pragmatics of the is operator

2011-11-26 Thread Steven D'Aprano
On Sun, 27 Nov 2011 02:42:52 +0100, candide wrote: >> Even if you can guarantee that your code base does not contain any >> object which compares equal to None except for None itself (and how >> would you do that? a full audit of every line of code in every library >> you use?), the use of `is` sh

Re: my new project, is this the right way?

2011-11-26 Thread Roy Smith
In article , Dave Angel wrote: > If you're using Python, you already have a "fast hash" library, in the > dictionary class. And yes, if a problem doesn't need the full > generality of a database, you may be able to implement it with > dictionaries, and it may even be practical to store those

Re: my new project, is this the right way?

2011-11-26 Thread Dave Angel
On 11/26/2011 06:41 PM, 8 Dihedral wrote: On Saturday, November 26, 2011 1:01:34 AM UTC+8, rusi wrote: On Nov 14, 3:41 pm, Tracubik wrote: Hi all, i'm developing a new program. Mission: learn a bit of database management Idea: create a simple, 1 window program that show me a db of movies i

Re: How to keep Console area fixed for a thread

2011-11-26 Thread Dave Angel
On 11/25/2011 01:00 PM, Nikunj Badjatya wrote: Can anyone throw some light on this please ! ? ( when you top-post, you confuse things. comp.lang.python follows the usual convention of putting new material after the parts you're quoting. Further, trying to embed images inside html messages

myComboBox.SetValue() does not work in windows.

2011-11-26 Thread Illy
Dear friends Anybody know how can I change the text of a ComboBox? Because " myComboBox.SetValue("my text") " does not work on Windows. Anybody would be so nice for telling me complete reference/documentation about wxPython on windows? Because the wxPython between on Linux and on Windows a

Re: Pragmatics of the is operator

2011-11-26 Thread Chris Angelico
On Sun, Nov 27, 2011 at 12:42 PM, candide wrote: > So, for the same reason, wouldn't it be better to use "if spam is True" > against to "if spam == True"  (or better "if spam") ? > They're quite different. "if spam" will check the truthiness of spam - it's equivalent to "if bool(spam) is True"; "

Re: Pragmatics of the is operator

2011-11-26 Thread candide
Thanks to all for your response. Le 27/11/2011 00:01, Steven D'Aprano a écrit : On Sat, 26 Nov 2011 22:20:36 +0100, candide wrote: In which cases should we use the is() function ? The is() function compares identity of objects rather than values so I was wondering in which circumstances compa

Re: my new project, is this the right way?

2011-11-26 Thread 88888 Dihedral
On Saturday, November 26, 2011 1:01:34 AM UTC+8, rusi wrote: > On Nov 14, 3:41 pm, Tracubik wrote: > > Hi all, > > i'm developing a new program. > > Mission: learn a bit of database management > > Idea: create a simple, 1 window program that show me a db of movies i've > > seen with few (<10) fiel

Re: tkinter

2011-11-26 Thread Jason Swails
The problem is that the logMode1 reference is _only_ bound to the name logMode1. Assigning it to "variable" in the Checkbutton instance (logCheck1) does not actually generate a reference to that variable inside logCheck1. Therefore, once the initialize method terminates, all references to logM

Re: Pragmatics of the standard is() function

2011-11-26 Thread Steven D'Aprano
On Sat, 26 Nov 2011 22:20:36 +0100, candide wrote: > In which cases should we use the is() function ? The is() function > compares identity of objects rather than values so I was wondering in > which circumstances comparing identities of objects is really vital. `is` is not a function. It is a ke

Re: Pragmatics of the standard is() function

2011-11-26 Thread Alexander Kapps
On 26.11.2011 22:20, candide wrote: You already got answers for the "is" vs. "==" difference. I'd like to add the following. In which cases should we use the is() function ? "is" is not a function, It's an operator, just like == or +. is() function makes comparaison of (abstract represent

Re: Pragmatics of the standard is() function

2011-11-26 Thread Chris Angelico
On Sun, Nov 27, 2011 at 8:20 AM, candide wrote: > is() function makes comparaison of (abstract representation of) adresses of > objects in memory. Comparing addresses of objects is a low level feature > performed by low level langages such as C but seldom needed in high level > languages like Pyth

tkinter

2011-11-26 Thread Dave
http://forums.devshed.com/python-programming-11/setting-tkinter-checkbox-default-graphical-state-865148.html Please answer this question I failed to resolve. Thanks, Dave. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pragmatics of the standard is() function

2011-11-26 Thread Roy Smith
In article <4ed15825$0$21841$426a3...@news.free.fr>, candide wrote: > In which cases should we use the is() function ? The is() function > compares identity of objects rather than values so I was wondering in > which circumstances comparing identities of objects is really vital. > > Examining

Pragmatics of the standard is() function

2011-11-26 Thread candide
In which cases should we use the is() function ? The is() function compares identity of objects rather than values so I was wondering in which circumstances comparing identities of objects is really vital. Examining well reputated Python source code, I realize that is() function is mainly used

Re: Using the Python Interpreter as a Reference

2011-11-26 Thread Rick Johnson
On Nov 26, 1:34 pm, Chris Angelico wrote: > On Sun, Nov 27, 2011 at 5:53 AM, Rick Johnson > > wrote: > > I hope you meant to say "*forced* indention for code blocks"! "Forced" > > being the key word here. What about tabs over spaces, have you decided > > the worth of one over the other or are you

Re: Using the Python Interpreter as a Reference

2011-11-26 Thread Chris Angelico
On Sun, Nov 27, 2011 at 5:53 AM, Rick Johnson wrote: > I hope you meant to say "*forced* indention for code blocks"! "Forced" > being the key word here. What about tabs over spaces, have you decided > the worth of one over the other or are you going to repeat Guido's > folly? I recommend demandin

Re: Using the Python Interpreter as a Reference

2011-11-26 Thread Rick Johnson
On Nov 20, 6:46 pm, Travis Parks wrote: > Hello: > > I am currently working on designing a new programming language. It is > a compiled language, but I still want to use Python as a reference. > Python has a lot of similarities to my language, such as indentation > for code blocks, I hope you mea

Re: Using the Python Interpreter as a Reference

2011-11-26 Thread Alec Taylor
Consider implementing OOP, reflection and implement in HLA or C =] On Mon, Nov 21, 2011 at 11:46 AM, Travis Parks wrote: > Hello: > > I am currently working on designing a new programming language. It is > a compiled language, but I still want to use Python as a reference. > Python has a lot of

Re: sick of distribute, setup, and all the rest...

2011-11-26 Thread Rick Johnson
On Nov 26, 11:28 am, rusi wrote: > On Nov 26, 6:40 pm, kj wrote: > The only thing I disagree about is that GvR is 'top' enough to handle > this. For a concrete example of how uninterested Mr. Van Rossum has become, take a look at the gawd awful state of Tkinter and especially IDLE. Whist I appla

Re: Return of an old friend

2011-11-26 Thread Chris Angelico
On Sun, Nov 27, 2011 at 4:11 AM, rusi wrote: > Hi Rick! > Glad to see you back! > [Courts can be dull places without jesters ye-know!] So, what... you'd take someone to court for being funny? That sounds like the -other- Pythons. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: sick of distribute, setup, and all the rest...

2011-11-26 Thread rusi
On Nov 26, 6:40 pm, kj wrote: > it's an all-out disgrace. > > when is python going to get a decent module distribution system??? > > and don't tell me to do it myself: it's clear that the sorry > situation we have now is precisely that too many programmers without > the requisite expertise or poli

Re: Return of an old friend

2011-11-26 Thread rusi
On Nov 25, 7:19 am, Rick Johnson wrote: > Hello Fellow Pythonistas, > > I am very glad to be back after an unfortunate incident caused my > Google account to be deleted. Unfortunately for those of you that have > been following along and supporting my crusade to bring fairness and > humility to th

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-26 Thread MaxTheMouse
On Nov 26, 1:13 am, Dennis Lee Bieber wrote: > On Fri, 25 Nov 2011 20:26:31 -0800 (PST), Mark Tolonen > declaimed the following in > gmane.comp.python.general: > > > Changing the application defaults is now in "Default Programs" right > > on the Start Menu.  It's more "obvious" than the old locat

Re: sick of distribute, setup, and all the rest...

2011-11-26 Thread Albert W. Hopkins
On Sat, 2011-11-26 at 14:22 +, Steven D'Aprano wrote: > > when is python going to get a decent module distribution system??? > > Python 4.3, scheduled for March 2038. It's been ready for a few years > now, and a small secret coterie of privileged developers have been > using > it for their o

Re: sick of distribute, setup, and all the rest...

2011-11-26 Thread Steven D'Aprano
On Sat, 26 Nov 2011 13:40:28 +, kj wrote: > it's an all-out disgrace. > > when is python going to get a decent module distribution system??? Python 4.3, scheduled for March 2038. It's been ready for a few years now, and a small secret coterie of privileged developers have been using it for

sick of distribute, setup, and all the rest...

2011-11-26 Thread kj
it's an all-out disgrace. when is python going to get a decent module distribution system??? and don't tell me to do it myself: it's clear that the sorry situation we have now is precisely that too many programmers without the requisite expertise or policy-making authority have decided to pitch

Re: Using the Python Interpreter as a Reference

2011-11-26 Thread Matt Joiner
http://pyjs.org/ On Sat, Nov 26, 2011 at 3:22 PM, Sells, Fred wrote: > I'm looking at a variation on this theme.  I currently use > Flex/ActionScript for client side work, but there is pressure to move > toward HTML5+Javascript and or iOS.  Since I'm an old hand at Python, I > was wondering if th