Re: 0 + not 0

2015-07-11 Thread Gregory Ewing
Ian Kelly wrote: I must concur. The grammar as written does not actually produce 1 + not 0. I think it's still worthwhile opening a bug, because the behavior is surprising and possibly not intentional. It's almost certainly intentional. If you want not a + b > c to be interpreted as no

Re: Fwd: Python Error: ImportError: No module named ''folder_name’ at Command Prompt

2015-07-11 Thread Vincent Vande Vyvre
Le 12/07/2015 06:02, Ernest Bonat, Ph.D. a écrit : Thanks for your help. I had follow the link: How to add a Python module to syspath? and I could not make it work. I did use sys.path.insert() and sys.path.append() as:

Re: beginners choice: wx or tk?

2015-07-11 Thread Ned Deily
In article , Kevin Walzer wrote: > On 7/11/15 10:48 AM, Laura Creighton wrote: > > Unless I was misinformed 2 weeks or so ago when I asked, that is the > > problem. Tcl/Tk 8.6 works (and is shipped with) OSX, but tkinter > > and idle don't work with it. We will see what Ned Deily says > > when

Re: beginners choice: wx or tk?

2015-07-11 Thread Paul Rubin
Ulli Horlacher writes: >> Do you mean it's not ok for the setup tool to install files? > Yes, as I wrote before: They cannot install any files. You wrote before that the users couldn't install files, but it wasn't clear before that the setup tool also can't install files. >> Hmm. It might still

Fwd: Python Error: ImportError: No module named ''folder_name’ at Command Prompt

2015-07-11 Thread Ernest Bonat, Ph.D.
Thanks for your help. I had follow the link: How to add a Python module to syspath? and I could not make it work. I did use sys.path.insert() and sys.path.append() as: Examples: sys.path.append('/python_mvc_calculator/

Fwd: Python Error: ImportError: No module named ''folder_name’ at Command Prompt

2015-07-11 Thread Ernest Bonat, Ph.D.
Thanks Ernest Bonat, Ph.D. Senior Software Engineer | Senior Data Analyst Visual WWW, Inc. | President and CEO 115 NE 39th Avenue | Hillsboro, OR 97124 Cell: 503.730.4556 | Email: ernest.bo...@gmail.com *The content of this email is confidential. It is intended only for the use of the persons nam

Re: beginners choice: wx or tk?

2015-07-11 Thread Kevin Walzer
On 7/11/15 10:48 AM, Laura Creighton wrote: Unless I was misinformed 2 weeks or so ago when I asked, that is the problem. Tcl/Tk 8.6 works (and is shipped with) OSX, but tkinter and idle don't work with it. We will see what Ned Deily says when he gets around to reading this. You were misinfor

Re: beginners choice: wx or tk?

2015-07-11 Thread Jugurtha Hadjar
Hello, On 07/11/2015 11:20 AM, Chris Angelico wrote: Yeah, I'd distribute the .py files and have done with it. Maybe do it up as a package and distribute it via pip, which allows you to fetch dependencies automatically. I'm also writing something, and the target audience is Windows users in a

Re: Python Error: ImportError: No module named ''folder_name’ at Command Prompt

2015-07-11 Thread Terry Reedy
On 7/11/2015 11:15 AM, Ernest Bonat, Ph.D. wrote: Hi All, I’m doing a CSV data analysis in Python using Eclipse IDE/PyDev. I have organized my project using the standard MVC architecture. In Eclipse IDE everything is working properly. When I run my main.py file it at Command Prompt I got an err

Re: beginners choice: wx or tk?

2015-07-11 Thread Ian Kelly
On Sat, Jul 11, 2015 at 5:10 PM, Paul Rubin wrote: > Ulli Horlacher writes: >>> Long ago I was involved with a thing like this and used Inno Setup, >>> which was great. It's a very slick installer >> It is not a matter of knowledge, but one of user rights. >> It is also forbidden by organization

Re: beginners choice: wx or tk?

2015-07-11 Thread Ulli Horlacher
Paul Rubin wrote: > Ulli Horlacher writes: > >> Long ago I was involved with a thing like this and used Inno Setup, > >> which was great. It's a very slick installer > > It is not a matter of knowledge, but one of user rights. > > It is also forbidden by organization rules. > > Do you mean it'

Re: Python 3.5.0b3(64 bit) - idle refused to work on windows 7 desktop pc.

2015-07-11 Thread Terry Reedy
On 7/11/2015 5:56 AM, Mark Lawrence wrote: On 11/07/2015 10:06, Simon Ball wrote: Good morning, Everything else appeared to work though. Kept getting the windows 'donut' telling me it was doing something, but then the program did not appear. Windows 7 Home Premium Service Pack 1 intel 64 bit p

Re: beginners choice: wx or tk?

2015-07-11 Thread Paul Rubin
Ulli Horlacher writes: >> Long ago I was involved with a thing like this and used Inno Setup, >> which was great. It's a very slick installer > It is not a matter of knowledge, but one of user rights. > It is also forbidden by organization rules. I might not understand what you're looking for.

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-11 Thread Mark Lawrence
On 11/07/2015 23:17, Simon Evans wrote: Dear Programmers, Thank you for your advice regarding giving the console a current address in the code for it to access the html file. The console seems to accept the code to that extent, but when I input the two lines of code intended to access the loca

Re: beginners choice: wx or tk?

2015-07-11 Thread Ulli Horlacher
Paul Rubin wrote: > Ulli Horlacher writes: > > This is not an option for me. My users only accept standalone executables. > > They cannot install any runtime environment or extra libraries. > > Long ago I was involved with a thing like this and used Inno Setup, > which was great. It's a very sl

Re: beginners choice: wx or tk?

2015-07-11 Thread Paul Rubin
Ulli Horlacher writes: > This is not an option for me. My users only accept standalone executables. > They cannot install any runtime environment or extra libraries. Long ago I was involved with a thing like this and used Inno Setup, which was great. It's a very slick installer whose user experi

Re: beginners choice: wx or tk?

2015-07-11 Thread Ulli Horlacher
Chris Angelico wrote: > > pyinstaller can make a standalone executable, there is no need for the > > users to install "another library". They just click on the program icon, > > that's it. > > Yeah, I'd distribute the .py files and have done with it. This is not an option for me. My users only

Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-11 Thread Simon Evans
Dear Programmers, Thank you for your advice regarding giving the console a current address in the code for it to access the html file. The console seems to accept the code to that extent, but when I input the two lines of code intended to access the location of a required word, the console re

Re: 0 + not 0

2015-07-11 Thread random832
On Sat, Jul 11, 2015, at 07:20, Chris Angelico wrote: > On Sat, Jul 11, 2015 at 9:12 PM, Luuk wrote: > > It can occur in an arithmetic expression, and 'not' has a higher precedence > > than '+' > > (https://docs.python.org/2/reference/expressions.html#operator-precedence) > > > > I think you're m

Re: beginners choice: wx or tk?

2015-07-11 Thread Michael Torrie
On 07/11/2015 11:39 AM, Chris Angelico wrote: >> I'm happy with PyQt. I haven't created standalone executable files with it, >> though. Do they necessarily have to be large? I would think that >> well-written import statements would cut down on the file size. Just import >> the objects you n

Re: 0 + not 0

2015-07-11 Thread Mark Lawrence
On 11/07/2015 17:56, Ian Kelly wrote: On Sat, Jul 11, 2015 at 10:02 AM, Stefan Ram wrote: I look at Python 3.4.3: a_expr ::= m_expr | a_expr "+" m_expr | a_expr "-" m_expr So, »not 0« must be an »m_expr« when used as the right operand of »+«. m_expr ::= u_expr | m_expr "*" u_expr | m

Re: beginners choice: wx or tk?

2015-07-11 Thread Laura Creighton
In a message of Sat, 11 Jul 2015 19:37:17 +0200, Laura Creighton writes: >Kivy has its own way to make standalone windows executables, which >uses pyinstallers. s/pyinstallers/PyInstaller/ sorry about that. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: beginners choice: wx or tk?

2015-07-11 Thread Chris Angelico
On Sun, Jul 12, 2015 at 3:25 AM, John Ladasky wrote: > On Saturday, July 11, 2015 at 2:51:32 AM UTC-7, Ulli Horlacher wrote: >> Chris Angelico wrote: >> > There are other choices, too - pygtk/pygobject (GTK) and pyqt (Qt) >> > come to mind >> >> Both create BIG executables, much bigger than with

Re: beginners choice: wx or tk?

2015-07-11 Thread Laura Creighton
In a message of Sat, 11 Jul 2015 16:01:05 -, Ulli Horlacher writes: >> I'd also recommend kivy, which has the added advantage that if >> somebody wants to use your app from a cellphone or a tablet, it >> will just work. see: http://kivy.org/#home > >Is it compatible with pyinstall? >My main ta

Re: beginners choice: wx or tk?

2015-07-11 Thread John Ladasky
On Saturday, July 11, 2015 at 2:51:32 AM UTC-7, Ulli Horlacher wrote: > Chris Angelico wrote: > > There are other choices, too - pygtk/pygobject (GTK) and pyqt (Qt) > > come to mind > > Both create BIG executables, much bigger than with wx or tk. I worked with wxPython back when I was using Pyth

Re: 0 + not 0

2015-07-11 Thread Ian Kelly
On Sat, Jul 11, 2015 at 10:02 AM, Stefan Ram wrote: > I look at Python 3.4.3: > > a_expr ::= m_expr | a_expr "+" m_expr | a_expr "-" m_expr > > So, »not 0« must be an »m_expr« when used as the right operand of »+«. > > m_expr ::= u_expr | m_expr "*" u_expr | m_expr "//" u_expr | m_expr "/"

Re: beginners choice: wx or tk?

2015-07-11 Thread Ian Kelly
On Sat, Jul 11, 2015 at 3:35 AM, Chris Angelico wrote: > On Sat, Jul 11, 2015 at 7:28 PM, Ulli Horlacher > wrote: >> I want to start a project with python. >> The program must have a (simple) GUI and must run on Linux and Windows. >> The last one as standalone executable, created with pyinstaller

Re: beginners choice: wx or tk?

2015-07-11 Thread nickgeovanis
I've recently been facing the same question but with a new (probably simpler) app than your own. I've decided to re-implement what I have in tk, replacing GTK in the python code. I am no expert in either but I find tk to be more coherent at the API level and better documented. However Windows an

Re: 0 + not 0

2015-07-11 Thread MRAB
On 2015-07-11 17:02, Stefan Ram wrote: Serhiy Storchaka writes: On 11.07.15 13:26, candide wrote: 0 + not 0 File "", line 1 0 + not 0 ^ SyntaxError: invalid syntax What is syntactically wrong with 0 + not 0? This looks as a bug to me. Please file a report I look at Py

Re: beginners choice: wx or tk?

2015-07-11 Thread Ulli Horlacher
Christian Gollwitzer wrote: > > I have already an implementation in perl/tk : > > http://fex.rus.uni-stuttgart.de/fop/ZAcXSugp/schwuppdiwupp.png > > http://fex.belwue.de/download/schwuppdiwupp.pl > > May I ask what is the reason to port this over to Python? Is it to learn > Python, or do you wa

Re: beginners choice: wx or tk?

2015-07-11 Thread Ulli Horlacher
Laura Creighton wrote: > The question is, why do you want to reimplement this thing in Python? The Windows support of perl/pp (a perl "compiler" similar to pyinstall) is really bad. It does not work any more with Windows 7, I still have to use Windows XP. > If the plan is to get rid of some p

Python Error: ImportError: No module named ''folder_name’ at Command Prompt

2015-07-11 Thread Ernest Bonat, Ph.D.
Hi All, I’m doing a CSV data analysis in Python using Eclipse IDE/PyDev. I have organized my project using the standard MVC architecture. In Eclipse IDE everything is working properly. When I run my main.py file it at Command Prompt I got an error: ImportError: No module named 'folder_name'. It’s

Re: beginners choice: wx or tk?

2015-07-11 Thread Ned Deily
In article <201507111448.t6bemh6z025...@fido.openend.se>, Laura Creighton wrote: > In a message of Sat, 11 Jul 2015 13:56:09 +0200, Christian Gollwitzer writes: > >Am 11.07.15 um 13:27 schrieb Laura Creighton: > >> Also, if you need your app to work with MacOS, be warned that you > >> will need a

Re: 0 + not 0

2015-07-11 Thread candide
Le samedi 11 juillet 2015 15:38:51 UTC+2, Serhiy Storchaka a écrit : > This looks as a bug to me. Please file a report on http://bugs.python.org. OK, I'll report. -- https://mail.python.org/mailman/listinfo/python-list

Re: beginners choice: wx or tk?

2015-07-11 Thread Laura Creighton
In a message of Sat, 11 Jul 2015 13:56:09 +0200, Christian Gollwitzer writes: >Am 11.07.15 um 13:27 schrieb Laura Creighton: >> Also, if you need your app to work with MacOS, be warned that you >> will need an older version of tk than the most recent one. >> This information is current: https://www

Re: 0 + not 0

2015-07-11 Thread Serhiy Storchaka
On 11.07.15 13:26, candide wrote: 0 + not 0 File "", line 1 0 + not 0 ^ SyntaxError: invalid syntax What is syntactically wrong with 0 + not 0? This looks as a bug to me. Please file a report on http://bugs.python.org. -- https://mail.python.org/mailman/listinfo/pytho

Re: 0 + not 0

2015-07-11 Thread candide
Le samedi 11 juillet 2015 14:05:58 UTC+2, Chris Angelico a écrit : > You'll see down below a footnote referring to this as a special case. I didn't spot the footnote and I don't regard it as dealing with a "special case": the footnote is paraphrasing the precedence hierarchy given by the table.

Re: 0 + not 0

2015-07-11 Thread Chris Angelico
On Sat, Jul 11, 2015 at 9:54 PM, candide wrote: > Le samedi 11 juillet 2015 13:31:03 UTC+2, Luuk a écrit : > >> >> But operator precedence of 'not' is higher than of '+' > > > Right but what does this prove? For instance, unary minus has higher > precedence than exponentiation but the expres

Re: beginners choice: wx or tk?

2015-07-11 Thread Christian Gollwitzer
Am 11.07.15 um 13:27 schrieb Laura Creighton: Also, if you need your app to work with MacOS, be warned that you will need an older version of tk than the most recent one. This information is current: https://www.python.org/download/mac/tcltk/ Don't use 8.6 I'm not sure how recent this really is

Re: 0 + not 0

2015-07-11 Thread candide
Le samedi 11 juillet 2015 13:31:03 UTC+2, Luuk a écrit : > > But operator precedence of 'not' is higher than of '+' Right but what does this prove? For instance, unary minus has higher precedence than exponentiation but the expression 2 ** -1 doesn't raise a syntax error. -- https://ma

Re: 0 + not 0

2015-07-11 Thread candide
Le samedi 11 juillet 2015 13:21:03 UTC+2, Chris Angelico a écrit : > I think you're misreading the table; 'not' has *lower* precedence than '+'. > Right but Python docs helps a lot in misreading ;) Following the iconicity principle, it's pretty obvious that one has to display table priority beg

Re: 0 + not 0

2015-07-11 Thread Luuk
On 11-7-2015 13:20, Chris Angelico wrote: On Sat, Jul 11, 2015 at 9:12 PM, Luuk wrote: It can occur in an arithmetic expression, and 'not' has a higher precedence than '+' (https://docs.python.org/2/reference/expressions.html#operator-precedence) I think you're misreading the table; 'not' ha

Re: beginners choice: wx or tk?

2015-07-11 Thread Laura Creighton
In a message of Sat, 11 Jul 2015 09:28:43 -, Ulli Horlacher writes: >I want to start a project with python. >The program must have a (simple) GUI and must run on Linux and Windows. >The last one as standalone executable, created with pyinstaller. > >I have already an implementation in perl/tk :

Re: 0 + not 0

2015-07-11 Thread Chris Angelico
On Sat, Jul 11, 2015 at 9:12 PM, Luuk wrote: > It can occur in an arithmetic expression, and 'not' has a higher precedence > than '+' > (https://docs.python.org/2/reference/expressions.html#operator-precedence) > I think you're misreading the table; 'not' has *lower* precedence than '+'. > But,

Re: 0 + not 0

2015-07-11 Thread Luuk
On 11-7-2015 12:38, Irmen de Jong wrote: On 11-7-2015 12:26, candide wrote: 0 + not 0 File "", line 1 0 + not 0 ^ SyntaxError: invalid syntax What is syntactically wrong with 0 + not 0? I would say that the boolean operator 'not' cannot occur in an arithmetic express

Re: 0 + not 0

2015-07-11 Thread Irmen de Jong
On 11-7-2015 12:26, candide wrote: 0 + not 0 > File "", line 1 > 0 + not 0 > ^ > SyntaxError: invalid syntax > > > What is syntactically wrong with 0 + not 0? > I would say that the boolean operator 'not' cannot occur in an arithmetic expression. Maybe you meant to us

Re: 0 + not 0

2015-07-11 Thread Chris Angelico
On Sat, Jul 11, 2015 at 8:26 PM, candide wrote: 0 + not 0 > File "", line 1 > 0 + not 0 > ^ > SyntaxError: invalid syntax > > > What is syntactically wrong with 0 + not 0? I'm actually not sure why this can't be handled. Possibly it's a limitation of the parser. Certainl

0 + not 0

2015-07-11 Thread candide
>>> 0 + not 0 File "", line 1 0 + not 0 ^ SyntaxError: invalid syntax >>> What is syntactically wrong with 0 + not 0? -- https://mail.python.org/mailman/listinfo/python-list

Re: beginners choice: wx or tk?

2015-07-11 Thread Chris Angelico
On Sat, Jul 11, 2015 at 7:51 PM, Ulli Horlacher wrote: > Chris Angelico wrote: > >> On Sat, Jul 11, 2015 at 7:28 PM, Ulli Horlacher >> wrote: >> > I want to start a project with python. >> > The program must have a (simple) GUI and must run on Linux and Windows. >> > The last one as standalone e

Re: beginners choice: wx or tk?

2015-07-11 Thread Christian Gollwitzer
Am 11.07.15 um 11:28 schrieb Ulli Horlacher: I want to start a project with python. The program must have a (simple) GUI and must run on Linux and Windows. The last one as standalone executable, created with pyinstaller. I have already an implementation in perl/tk : http://fex.rus.uni-stuttgart.

Re: beginners choice: wx or tk?

2015-07-11 Thread Mark Lawrence
On 11/07/2015 10:28, Ulli Horlacher wrote: I want to start a project with python. The program must have a (simple) GUI and must run on Linux and Windows. The last one as standalone executable, created with pyinstaller. I have already an implementation in perl/tk : http://fex.rus.uni-stuttgart.de

Re: Python 3.5.0b3(64 bit) - idle refused to work on windows 7 desktop pc.

2015-07-11 Thread Mark Lawrence
On 11/07/2015 10:06, Simon Ball wrote: Good morning, Everything else appeared to work though. Kept getting the windows 'donut' telling me it was doing something, but then the program did not appear. Windows 7 Home Premium Service Pack 1 intel 64 bit pc. Kind regards Simon Ball Luton Bedfordsh

Re: beginners choice: wx or tk?

2015-07-11 Thread Ulli Horlacher
Chris Angelico wrote: > On Sat, Jul 11, 2015 at 7:28 PM, Ulli Horlacher > wrote: > > I want to start a project with python. > > The program must have a (simple) GUI and must run on Linux and Windows. > > The last one as standalone executable, created with pyinstaller. > > Not sure what your adv

Re: beginners choice: wx or tk?

2015-07-11 Thread Chris Angelico
On Sat, Jul 11, 2015 at 7:28 PM, Ulli Horlacher wrote: > I want to start a project with python. > The program must have a (simple) GUI and must run on Linux and Windows. > The last one as standalone executable, created with pyinstaller. Not sure what your advantage is with pyinstaller, it adds a

beginners choice: wx or tk?

2015-07-11 Thread Ulli Horlacher
I want to start a project with python. The program must have a (simple) GUI and must run on Linux and Windows. The last one as standalone executable, created with pyinstaller. I have already an implementation in perl/tk : http://fex.rus.uni-stuttgart.de/fop/ZAcXSugp/schwuppdiwupp.png http://fex.be

Python 3.5.0b3(64 bit) - idle refused to work on windows 7 desktop pc.

2015-07-11 Thread Simon Ball
Good morning, Everything else appeared to work though. Kept getting the windows 'donut' telling me it was doing something, but then the program did not appear. Windows 7 Home Premium Service Pack 1 intel 64 bit pc. Kind regards Simon Ball Luton Bedfordshire UK -- Using Opera's mail client: h

How to use Tornado.gen.coroutine in TCP Server?

2015-07-11 Thread Zely Zon
hi ,evreyone! i want to know how to user tornado.gen.coroutine in Tcp server? here is my question link in stackoverflow. http://stackoverflow.com/questions/31353861/how-to-use-tornado-gen-coroutine-in-tcp-server thank you ! -- https://mail.python.org/mailman/listinfo/python-list

Re: Trouble getting to windows My Documents directory

2015-07-11 Thread Chris Warrick
On 11 July 2015 at 02:24, wrote: > The My Documents directory is not guaranteed to be named "Documents". On > older versions of windows it was "My Documents", and on foreign versions > of windows it is a name in their language. That’s not necessarily “older”. Windows XP/7/8: My Documents Window