Re: int vs. float

2017-02-10 Thread boB Stepp
On Sat, Feb 11, 2017 at 1:00 AM, Amit Yaron wrote: > On 10/02/17 21:15, Peter Pearson wrote: >> >> On Fri, 10 Feb 2017 13:59:45 +0200, Amit Yaron >> wrote: >>> >>> On 10/02/17 04:33, adam14711...@gmail.com wrote: My computer programming professor challenged me to figure out a way to ma

Re: int vs. float

2017-02-10 Thread Amit Yaron
On 10/02/17 21:15, Peter Pearson wrote: On Fri, 10 Feb 2017 13:59:45 +0200, Amit Yaron wrote: On 10/02/17 04:33, adam14711...@gmail.com wrote: Hello, My computer programming professor challenged me to figure out a way to manipulate my program to display one error message if the user input is

Re: os.path.isfile

2017-02-10 Thread eryk sun
On Fri, Feb 10, 2017 at 9:09 PM, Vincent Vande Vyvre wrote: > Le 10/02/17 à 22:03, Vincent Vande Vyvre a écrit : >> Le 10/02/17 à 21:36, Peter Otten a écrit : >>> Vincent Vande Vyvre wrote: Le 10/02/17 à 19:11, epro...@gmail.com a écrit : > > Python 3.5.2 > > Windows 10 >

Re: subprocess problem

2017-02-10 Thread Cameron Simpson
On 10Feb2017 11:54, Andreas Paeffgen wrote: Thanks for all the great advice. I tested all the possibilities. So far no luck. If i start the app from a terminal, the solutions work. But not, if i start the app-bundle (There is no connection to a terminal) 1. Copied the path to p.subprocess 2.

Re: int vs. float

2017-02-10 Thread Dan Sommers
On Fri, 10 Feb 2017 20:46:16 +, Erik wrote: > Python 3.5.2 (default, Nov 17 2016, 17:05:23) > [GCC 5.4.0 20160609] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> 0.5 > 1.0 > >>> f = float("0.5") > >>> i = int(f) > >>>

Re: problem with Python 3.6 + PyX

2017-02-10 Thread stalker5
Yes, I have a Tex engine on my system. How can i fix the problem with the PATH ? Even if i execute the .py script directly by python (I mean :not inside a LateX file) pyx need to reach the TeX system ? Is there a config file to fix the PATH ? Where ? Thanks a lot !! Ciao -- Olivier PyX requ

Re: os.path.isfile

2017-02-10 Thread Vincent Vande Vyvre
Le 10/02/17 à 22:03, Vincent Vande Vyvre a écrit : Le 10/02/17 à 21:36, Peter Otten a écrit : Vincent Vande Vyvre wrote: Le 10/02/17 à 19:11, epro...@gmail.com a écrit : Hello NG Python 3.5.2 Windows 10 os.path.isfile() no recognise file with double dot? eg. match.cpython-35.pyc Please s

Re: os.path.isfile

2017-02-10 Thread Vincent Vande Vyvre
Le 10/02/17 à 21:36, Peter Otten a écrit : Vincent Vande Vyvre wrote: Le 10/02/17 à 19:11, epro...@gmail.com a écrit : Hello NG Python 3.5.2 Windows 10 os.path.isfile() no recognise file with double dot? eg. match.cpython-35.pyc Please somebody know something about that? Thank You in adv

Re: int vs. float

2017-02-10 Thread Erik
On 10/02/17 19:15, Peter Pearson wrote: > On Fri, 10 Feb 2017 13:59:45 +0200, Amit Yaron wrote: >> Use: >> >> try: >>num=int(str) >> except ValueError e: >>print "Error: not an integer" > > What should happen if the user types "1.0"? > > To be flexible about this possibility, you could

Re: os.path.isfile

2017-02-10 Thread Peter Otten
Vincent Vande Vyvre wrote: > Le 10/02/17 à 19:11, epro...@gmail.com a écrit : >> Hello NG >> >> Python 3.5.2 >> >> Windows 10 >> >> os.path.isfile() no recognise file with double dot? >> >> eg. match.cpython-35.pyc >> >> Please somebody know something about that? >> >> Thank You in advance >> > In

Re: os.path.isfile

2017-02-10 Thread MRAB
On 2017-02-10 19:50, Vincent Vande Vyvre wrote: Le 10/02/17 à 19:11, epro...@gmail.com a écrit : Hello NG Python 3.5.2 Windows 10 os.path.isfile() no recognise file with double dot? eg. match.cpython-35.pyc Please somebody know something about that? Thank You in advance Interesting, you'

Re: os.path.isfile

2017-02-10 Thread Chris Angelico
On Sat, Feb 11, 2017 at 6:50 AM, Vincent Vande Vyvre wrote: > Interesting, you're right. > > Python 3.4.3 (default, Nov 17 2016, 01:08:31) > [GCC 4.8.4] on linux > Type "help", "copyright", "credits" or "license" for more information. import os os.path.isfile('/home/vincent/oqapy-3/

Re: os.path.isfile

2017-02-10 Thread Vincent Vande Vyvre
Le 10/02/17 à 19:11, epro...@gmail.com a écrit : Hello NG Python 3.5.2 Windows 10 os.path.isfile() no recognise file with double dot? eg. match.cpython-35.pyc Please somebody know something about that? Thank You in advance Interesting, you're right. Python 3.4.3 (default, Nov 17 2016, 01

Re: int vs. float

2017-02-10 Thread Peter Pearson
On Fri, 10 Feb 2017 13:59:45 +0200, Amit Yaron wrote: > On 10/02/17 04:33, adam14711...@gmail.com wrote: >> Hello, >> >> My computer programming professor challenged me to figure out a way >> to manipulate my program to display one error message if the user >> input is a zero or a negative number,

os.path.isfile

2017-02-10 Thread eproser
Hello NG Python 3.5.2 Windows 10 os.path.isfile() no recognise file with double dot? eg. match.cpython-35.pyc Please somebody know something about that? Thank You in advance -- https://mail.python.org/mailman/listinfo/python-list

Re: subprocess problem

2017-02-10 Thread Andreas Paeffgen
Thanks for all the great advice. I tested all the possibilities. So far no luck. If i start the app from a terminal, the solutions work. But not, if i start the app-bundle (There is no connection to a terminal) 1. Copied the path to p.subprocess 2. Used the def wich: python function 3. Used sh

Re: Repeating of posts

2017-02-10 Thread Tim Golden
On 10/02/2017 16:20, Rob Gaddi wrote: On 02/10/2017 07:25 AM, Grant Edwards wrote: On 2017-02-10, Cecil Westerhof wrote: I see a lot of post delivered multiple times. Is that a problem at my side, or are others experiencing this also? I see it too. Same as a a month or two back, but not as

Re: Repeating of posts

2017-02-10 Thread Rob Gaddi
On 02/10/2017 07:25 AM, Grant Edwards wrote: On 2017-02-10, Cecil Westerhof wrote: I see a lot of post delivered multiple times. Is that a problem at my side, or are others experiencing this also? I see it too. Same as a a month or two back, but not as much. I pinged Wolfgang, who runs

Re: Repeating of posts

2017-02-10 Thread Grant Edwards
On 2017-02-10, Cecil Westerhof wrote: > I see a lot of post delivered multiple times. Is that a problem at my > side, or are others experiencing this also? I see it too. Same as a a month or two back, but not as much. -- Grant Edwards grant.b.edwardsYow! Do you like "TEN

Re: problem with Python 3.6 + PyX

2017-02-10 Thread Lele Gaifax
stalker5 writes: > I'm have a problem with this little program > ... > raise child_exception_type(errno_num, err_msg) > FileNotFoundError: [Errno 2] No such file or directory: 'tex' PyX requires TeX to render textual glyphs into the image. Do you have it installed? If so, is it "reachable" b

problem with Python 3.6 + PyX

2017-02-10 Thread stalker5
Hello everybody ! I'm have a problem with this little program #---début--- from pyx import * g = graph.graphxy(width=8, x=graph.axis.linear(min=-15, max=15)) g.plot(graph.data.function("y(x)=sin(x)/x")) g.writeEPSfile("function") g.writePDFfile("function") g.writeSVGfile("function") #--- fin---

Re: Python Events in 2017, Need your help.

2017-02-10 Thread Stefan Behnel
Hi! Germany has three major Python events planned this year: - PyCon-Web in München (May 27-28th) - Python-Camp in Köln (April 8-9th) - PyCon-DE in Karlsruhe (October, dates TBA). http://pyconweb.org/ https://python-verband.org/informieren/events/pythoncamp-2017 Stefan Stephane Wirtel via PS

Repeating of posts

2017-02-10 Thread Cecil Westerhof
I see a lot of post delivered multiple times. Is that a problem at my side, or are others experiencing this also? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof -- https://mail.python.org/mailman/listinfo/python-list

Outthentic - full support for Python

2017-02-10 Thread melezhik
Hi! Whether you are operations guy, devops or developer from time to time you deal with scripts development for various tasks - handy utilities, automation scripts, monitoring tools, so on. Outthentic - is universal, language independent framework to encourage scripts development in easy and f

Re: int vs. float

2017-02-10 Thread Amit Yaron
On 10/02/17 04:33, adam14711...@gmail.com wrote: Hello, My computer programming professor challenged me to figure out a way to manipulate my program to display one error message if the user input is a zero or a negative number, and a separate error message if the user input is a decimal numbe

check MS SQL database status, and execute preconfigured jobs

2017-02-10 Thread udhay prakash pethakamsetty
Hi I am using pyodbc to connect to MS SQL server. I got a result for cursor.execute('SELECT * FROM sys.databases') statement. But, I dont know what fields among them must be considered to ensure that database is up and running and is fine. IN this https://www.mssqltips.com/sqlservertip/14

Re: Extract sigle file from zip file based on file extension

2017-02-10 Thread Amit Yaron
On 10/02/17 10:35, loial wrote: I need to be able to extract a single file from a .zip file in python. The zip file will contain many files. The file to extract will be the only .csv file in the zip, but the full name of the csv file will not be known. Can this be done in python? Yes, you can

Re: Extract sigle file from zip file based on file extension

2017-02-10 Thread Peter Otten
loial wrote: > I need to be able to extract a single file from a .zip file in python. > The zip file will contain many files. The file to extract will be the only > .csv file in the zip, but the full name of the csv file will not be known. > > Can this be done in python? See

Re: Extract sigle file from zip file based on file extension

2017-02-10 Thread Jussi Piitulainen
loial writes: > I need to be able to extract a single file from a .zip file in python. > > The zip file will contain many files. The file to extract will be the > only .csv file in the zip, but the full name of the csv file will not > be known. > > Can this be done in python? Find the one member

Extract sigle file from zip file based on file extension

2017-02-10 Thread loial
I need to be able to extract a single file from a .zip file in python. The zip file will contain many files. The file to extract will be the only .csv file in the zip, but the full name of the csv file will not be known. Can this be done in python? -- https://mail.python.org/mailman/listinfo/pyt