Re: [newbie] advice and comment wanted on first tkinter program

2014-01-27 Thread Jean Dupont
Op woensdag 22 januari 2014 16:43:21 UTC+1 schreef Alister: > On Wed, 22 Jan 2014 06:45:53 -0800, Jean Dupont wrote: > > > Op maandag 20 januari 2014 10:17:15 UTC+1 schreef Alister: > >> On Sun, 19 Jan 2014 20:04:05 -0800, Jean Dupont wrote: > >> > >> > Op zaterdag 18 januari 2014 16:12:41 UTC+1 sc

Re: [newbie] advice and comment wanted on first tkinter program

2014-01-27 Thread Jean Dupont
Op woensdag 22 januari 2014 15:45:53 UTC+1 schreef Jean Dupont: > Op maandag 20 januari 2014 10:17:15 UTC+1 schreef Alister: > > On Sun, 19 Jan 2014 20:04:05 -0800, Jean Dupont wrote: > > > > > Op zaterdag 18 januari 2014 16:12:41 UTC+1 schreef Oscar Benjamin: > > >> On 18 January 2014 14:52, Jean

Re: Help: python 3.3.3 (AMD64) scripts fail as non-admin user on Windows Server 2012 R2

2014-01-27 Thread Tim Golden
On 26/01/2014 22:30, Luis Marsano wrote: > I've installed python for all users with full permissions to all users > (see picture). > Python runs for all users. > However, scripts only work when I run as Administrator. > Running a script always results in an "ImportError: cannot import name" error.

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Peter Otten
me wrote: Not me, you ;) > Since this code is for a personal research project I'm not as concerned > about code quality as I would be if I was getting paid to write > production code...and if it was production code I'd only prototype a > proof-of-concept in python and then rewrite in c++. Anothe

Re: Lists inside dictionary and how to look for particular value

2014-01-27 Thread Peter Otten
mick verdu wrote: > ThanK you. It solved my problem. > Can someone tell me how can i print particular value inside list of key. > > I know how to print J['PC2'][1] means will print IP. but I want the user > to input some element and I will print element just before that element. > > e.g. if user

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Chris Angelico
On Mon, Jan 27, 2014 at 6:44 PM, me wrote: > On Sun, 26 Jan 2014 23:17:29 -0800, Ethan Furman wrote: > >> On 01/26/2014 10:46 PM, me wrote: >>> >>> [...] I'm satisfied that the except: syntax yields undefined behavior, >>> and in my mind it shouldn't be >>> syntactically allowed then. >> >> Two

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread me
On Mon, 27 Jan 2014 20:01:33 +1100, Chris Angelico wrote: > On Mon, Jan 27, 2014 at 6:44 PM, me wrote: >> On Sun, 26 Jan 2014 23:17:29 -0800, Ethan Furman wrote: >> >>> On 01/26/2014 10:46 PM, me wrote: [...] I'm satisfied that the except: syntax yields undefined behavior, an

Re: Highlighting program variables instead of keywords?

2014-01-27 Thread Lele Gaifax
Skip Montanaro writes: > I think this might have value, especially if to could bounce back and forth > between both schemes. Is anyone aware of tools like this for Python? Bonus > points for pointers to an Emacs implementation. There has been a recent thread on some emacs group about this. Dunno

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Alister
O > My python stuff is all rapid application development for personal > projects. If I need to do anything serious I take the time to do it in > C+ > +. Many people "Prototype" in python & then re-factor into a compiled language later if needed (often it turns out there is not really any need

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Neil Cerutti
On 2014-01-27, me wrote: > The thread is done so lets give it a rest. The condescending > attitude about proper USENET tech help is just as annoying as > perhaps my "opinions" seem. If someone is so sensitive as to > not be able to discuss a technical matter without making it > personal or seein

Re: Remove unwanted characters from column

2014-01-27 Thread matt . s . marotta
On Monday, 27 January 2014 00:24:11 UTC-5, Dave Angel wrote: > matt.s.maro...@gmail.com Wrote in message: > > > School assignment is to create a tab separated output with the original > > given addresses in one column and then the addresses split into other > > columns (ex, columns for city, po

Re: Unwanted Spaces and Iterative Loop

2014-01-27 Thread Mark Lawrence
On 27/01/2014 01:58, matt.s.maro...@gmail.com wrote: On Sunday, 26 January 2014 20:56:01 UTC-5, Chris Angelico wrote: On Mon, Jan 27, 2014 at 12:15 PM, wrote: I`m not reading and writing to the same file, I just changed the actual paths to directory. For next time, say "directory1" and

Re: Highlighting program variables instead of keywords?

2014-01-27 Thread Mark Lawrence
On 27/01/2014 01:46, Skip Montanaro wrote: What it is doing is color coding user-supplied identifiers, with different color for each one. I found that confusing to read. I think it would take some time to get used to, and I don't think it would be the only way I'd like to view my program. I th

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Mark Lawrence
On 27/01/2014 07:17, me wrote: My python stuff is all rapid application development for personal projects. If I need to do anything serious I take the time to do it in C+ +. For me at least you'll fit in extremely well here with a sense of humour like that. -- My fellow Pythonistas, ask no

Re: [RELEASED] Python 3.3.4 release candidate 1

2014-01-27 Thread Mark Lawrence
On 27/01/2014 07:36, Georg Brandl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm reasonably happy to announce the Python 3.3.4 release candidate 1. "Reasonably" happy? Is there a smiley missing there, or what? :) -- My fellow Pythonistas,

Re: Remove unwanted characters from column

2014-01-27 Thread Steven D'Aprano
On Mon, 27 Jan 2014 05:32:08 -0800, matt.s.marotta wrote: > The code that I used is the proper way that we were supposed to complete > the assignment. All I need now is an 'if...then' statement to get rid > of the unwanted FarmID at the end of the addresses. I just don't know > what will come af

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Steven D'Aprano
On Mon, 27 Jan 2014 09:32:43 +, some guy who calls himself "me" wrote: > On Mon, 27 Jan 2014 20:01:33 +1100, Chris Angelico wrote: > >> On Mon, Jan 27, 2014 at 6:44 PM, me wrote: >>> On Sun, 26 Jan 2014 23:17:29 -0800, Ethan Furman wrote: >>> On 01/26/2014 10:46 PM, me wrote: >

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Rick Johnson
On Monday, January 27, 2014 3:32:43 AM UTC-6, me wrote: > On Mon, 27 Jan 2014 20:01:33 +1100, Chris Angelico wrote: > > [snip chris reply] > > You feel better now that you too have vented? I had a > productive discussion with a couple of top level posters > who helped me solve my problem and the

Re: Highlighting program variables instead of keywords?

2014-01-27 Thread Ethan Furman
On 01/26/2014 06:54 PM, Roy Smith wrote: Chris Angelico wrote: That said, though, I grew up without syntax highlighting of any sort, and didn't think it particularly important; but now that I have editors with all those sorts of features, I do find them handy. Same here, except I'd replace "f

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Chris Angelico
On Tue, Jan 28, 2014 at 2:33 AM, Rick Johnson wrote: > You can kindly ignore Chris, he is just one of our well > known *resident* "lonely individuals", seeking attention yet > again! And his constant blabbing about and idol worship of REXX is > more annoying than all of xah lee post combined, howe

Re: [RELEASED] Python 3.3.4 release candidate 1

2014-01-27 Thread William Ray Wing
On Jan 27, 2014, at 8:55 AM, Mark Lawrence wrote: > On 27/01/2014 07:36, Georg Brandl wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On behalf of the Python development team, I'm reasonably happy to announce >> the >> Python 3.3.4 release candidate 1. >> > > "Reasonably" hap

Re: Remove unwanted characters from column

2014-01-27 Thread Chris Angelico
On Tue, Jan 28, 2014 at 2:03 AM, wrote: > On Monday, 27 January 2014 09:57:32 UTC-5, Chris Angelico wrote: >> On Tue, Jan 28, 2014 at 1:23 AM, wrote: >> >> > If the farmID < 10: >> > remove one character from the address column >> > Elif farmID > 10: >> > remove two characters from the address

Re: Remove unwanted characters from column

2014-01-27 Thread matt . s . marotta
On Monday, 27 January 2014 08:54:20 UTC-5, Steven D'Aprano wrote: > On Mon, 27 Jan 2014 05:32:08 -0800, matt.s.marotta wrote: > > > > > The code that I used is the proper way that we were supposed to complete > > > the assignment. All I need now is an 'if...then' statement to get rid > > > o

Re: Remove unwanted characters from column

2014-01-27 Thread Chris Angelico
On Tue, Jan 28, 2014 at 1:23 AM, wrote: > If the farmID < 10: > remove one character from the address column > Elif farmID > 10: > remove two characters from the address column What if farmID == 10? ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Remove unwanted characters from column

2014-01-27 Thread matt . s . marotta
On Monday, 27 January 2014 09:57:32 UTC-5, Chris Angelico wrote: > On Tue, Jan 28, 2014 at 1:23 AM, wrote: > > > If the farmID < 10: > > remove one character from the address column > > Elif farmID > 10: > > remove two characters from the address column > > What if farmID == 10? > > ChrisA Ok

Re: Remove unwanted characters from column

2014-01-27 Thread Mark Lawrence
On 27/01/2014 14:23, matt.s.maro...@gmail.com wrote: On Monday, 27 January 2014 08:54:20 UTC-5, Steven D'Aprano wrote: On Mon, 27 Jan 2014 05:32:08 -0800, matt.s.marotta wrote: The code that I used is the proper way that we were supposed to complete the assignment. All I need now is an

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Mark Lawrence
On 27/01/2014 15:53, Chris Angelico wrote: Frankly, I don't "idol worship" *any* language. I worship English because it's so easy to learn. Ducks and runs :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Zachary Ware
On Mon, Jan 27, 2014 at 1:17 AM, me wrote: > It's the intendation specific requirements that throw me. I haven't seen > such a hork since RPG. ;^) Best I can tell, the only thing RPG and Python have in common is the fact that they're "programming languages", though I'm being a little generous to

EncodedFile/StreamRecoder

2014-01-27 Thread Mark Lawrence
I'd never heard of these and personally have no use for them, but came across them here http://bugs.python.org/issue20405#msg209430 and thought they might be of use to some of you. Quoting from the message:- "The purpose of EncodedFile/StreamRecoder was to convert an externally used encoding t

Re: Remove unwanted characters from column

2014-01-27 Thread Denis McMahon
On Sun, 26 Jan 2014 19:49:01 -0800, matt.s.marotta wrote: > School assignment is to create a tab separated output with the original > given addresses in one column and then the addresses split into other > columns (ex, columns for city, postal code, street suffix). If you're trying to create fixe

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Dan Sommers
On Mon, 27 Jan 2014 10:23:49 -0600, Zachary Ware wrote: >> Understood, except that some parameters take multiple elements...thus >> why I manually reference the indexes. > > Try this on for size, then: > > a_iter = iter(a) > for arg in a_iter: > print('current', arg) > if arg == '-#': >

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Mark Lawrence
On 27/01/2014 07:17, me wrote: It's the intendation specific requirements that throw me. I haven't seen such a hork since RPG. ;^) Programming with a rocket propelled grenade is vastly superior to programming in C++. -- My fellow Pythonistas, ask not what our language can do for you, ask

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Michael Torrie
On 01/27/2014 02:32 AM, me wrote: > You feel better now that you too have vented? Sorry but the emotional intent you're reading in to Chris's post is completely misplaced. I don't know why you chose to be offended by it. Chris's comments about C++ are accurate, but not intended to be a personal

Run python script with CMD error

2014-01-27 Thread raedtjr
Hi everyone; Im new with python and i just installed it and added it to the path.I have already a script that i want to execute(run) but every time i do this commend python > client.py in CMD to execute it,i got this error. Any solutions please? > File ", line 29 except Exception, e: ^ Syn

Re: Run python script with CMD error

2014-01-27 Thread Peter Otten
raed...@gmail.com wrote: > Hi everyone; > > > Im new with python and i just installed it and added it to the path.I have > already a script that i want to execute(run) but every time i do this > commend python > >> client.py > > in CMD to execute it,i got this error. Any solutions please? > >

Re: Run python script with CMD error

2014-01-27 Thread Joel Goldstick
Look at lines around 29 On Jan 27, 2014 2:45 PM, wrote: > Hi everyone; > > > Im new with python and i just installed it and added it to the path.I have > already a script that i want to execute(run) but every time i do this > commend python > > > client.py > > in CMD to execute it,i got this erro

Re: Run python script with CMD error

2014-01-27 Thread FalaG
I m using Python 3.3 and the script is not written by me therefore i'm gonna try to install 2.7 instead and i will let you know the result. Thank you Peter -- https://mail.python.org/mailman/listinfo/python-list

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Rick Johnson
On Monday, January 27, 2014 9:53:37 AM UTC-6, Chris Angelico wrote: > Heh. If you'd said Pike instead of REXX, I might have > believed you :) I've said more about Pike than is perhaps > appropriate, but of late, I've actually not been the one > to most often quote REXX code. Yes in my haste to inj

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Chris Angelico
On Tue, Jan 28, 2014 at 7:22 AM, Rick Johnson wrote: > maintain a consistency between them > > input (reads a string from stdin) > print (writes a string to stdout) > > It is my strong believe that defining an "input" method that > "magically" evals the input string is just plain evil. Fo

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Steven D'Aprano
On Mon, 27 Jan 2014 12:22:22 -0800, Rick Johnson wrote: > "input" is only used by neophytes, so who cares about breaking that one, > but "print" is almost everywhere! Heh heh heh, how very "Ranting Rick" to think that a function for listening to input is unimportant, while a function for sprayin

Re: Highlighting program variables instead of keywords?

2014-01-27 Thread Vito De Tullio
Skip Montanaro wrote: > My son sent me a link to an essay about highlighting program data instead > of keywords: > > https://medium.com/p/3a6db2743a1e/ > > I think this might have value, especially if to could bounce back and > forth between both schemes. Is anyone aware of tools like this for P

Need help with pushing technology ... and a bit more ...

2014-01-27 Thread Mario R. Osorio
Background: === We are studying the possibility of creating a system that will have the following entities: Customer(s) (appCustomer) Service Provider(s) (appProviders) and Manager(s) Server(s) appCustomers will have all appServices available to them and appServices will have at least on

Re: Help with my 8-year old son's first program. I'm stuck

2014-01-27 Thread john pierce
First, forget about the def a() statement. def is for defining a function and this is not a function. Second, research the difference between == (logical test) and = (assignment operator). Third, take a look at the length of "op" just after the readline(). You can add a line that says print

Web service in Python

2014-01-27 Thread yiitest123
I installed rapidsms in local for send messages. The application tested with local server. Now i would like to store the incoming messages in another database via a php application. Means when a message received in rapidsms (Django-Python) app, i want to call a php application function and store

Re: Highlighting program variables instead of keywords?

2014-01-27 Thread wxjmfauth
Different, but a little bit related. The work which is done actually on the possibility (not implemented but alreay realized) to colorize (style") the different graphemes of a glyph is very interesting. Python with its absurd Flexible String Representation just become a no go for the kind of task.

Re: Web service in Python

2014-01-27 Thread dieter
yiitest...@gmail.com writes: > I installed rapidsms in local for send messages. The application tested with > local server. Now i would like to store the incoming messages in another > database via a php application. Means when a message received in rapidsms > (Django-Python) app, i want to cal

Re: Need Help with Programming Science Project

2014-01-27 Thread alex23
On 24/01/2014 8:05 PM, theguy wrote: I have a science project that involves designing a program which can examine a bit of text with the author's name given, then figure out who the author is if another piece of example text without the name is given. This sounds like exactly the sort of thin