Re: Uninstall problem

2020-09-06 Thread Luuk
by py Launcher for Windows -3.7-64 * Can you explain above? D:\TEMP>where py C:\Windows\py.exe D:\TEMP>where python C:\Users\Luuk\AppData\Local\Microsoft\WindowsApps\python.exe -- https://mail.python.org/mailman/listinfo/python-list

Re: Uninstall problem

2020-09-05 Thread Luuk
ewtab then uninstall info is here: https://support.microsoft.com/en-us/help/4028054/windows-10-repair-or-remove-programs -- Luuk -- https://mail.python.org/mailman/listinfo/python-list

Re: Downloading Python

2020-08-01 Thread Luuk
On 31-7-2020 22:10, Tanmay Shah wrote: Hello to whoever this may concern, After downloading Python 3.8.5 IDLE, an error message popped up, saying the code execution cannot proceed because python38.dll was not found. What should I do in order to use the Python interpreter? Thank you! It's W

Re: Fwd: How can I build embeddable zip python on Linux

2020-06-04 Thread Luuk
On 5-6-2020 08:49, Luuk wrote: On 5-6-2020 06:12, Michael Torrie wrote: On 6/4/20 2:47 AM, Filip Bascarevic wrote: When I tried to build GDB with Python support on Linux, I realized I couldn’t find embeddable python for Linux. Please, can you give me some instructions how can I build

Re: Fwd: How can I build embeddable zip python on Linux

2020-06-04 Thread Luuk
he version. For example, libpython3.8-dev. On Fedora that might be python-devel (or on CentOS, python36-devel). probably the same as asked here (with no answer (yet)): https://stackoverflow.com/questions/49425397/building-an-embeddable-minimal-python-distribution-on-linux -- Luuk -- https://

Re: "min( arg1, arg2, *args )" vs. "print( value, ... )"?

2020-04-07 Thread Luuk
ents at the place of "value, ..." or of "*args", respectively. So, from the point of view of the caller: is there any difference between "args, ..." and "*args" when he reads it in the documentation? `arg1, arg2, *args` is just a smart way to say

Re: Exceptions versus Windows ERRORLEVEL

2020-04-04 Thread Luuk
On 3-4-2020 02:08, Stephen Tucker (Stephen Tucker) wrote: Hi, I have found that raising an exception in a Python 2.7.10 program running under Windows does not set ERRORLEVEL. I realise that Python 2.x is no longer supported. Does an exception raised by a Python 3.x program on a Windows machine

Re: Testing the data type of a value

2019-05-12 Thread Luuk
On 12-5-2019 16:07, Piet van Oostrum wrote: Luuk writes: After thinking about this, (i am prettry new to python), i was doing this: print(type(5),type(int),type(5)==type(int),type(5)==int) False True Can someone explain why type(5)==int evaluates to True ? print(int) The

Re: Testing the data type of a value

2019-05-12 Thread Luuk
On 12-5-2019 10:16, Luuk wrote: On 12-5-2019 09:27, binoythomas1...@gmail.com wrote: When I run the following code, I get the following output: print(type(5)) class 'int' Next, I try to compare the data-type of 5 with the earlier output, I get no output: if type(5) == "&qu

Re: Testing the data type of a value

2019-05-12 Thread Luuk
is not an object of the given type, the function always returns false. If classinfo is a tuple of type objects (or recursively, other such tuples), return true if object is an instance of any of the types. If classinfo is not a type or tuple of types and such tuples, a TypeError excep

Re: unicode mail list archeology

2019-04-20 Thread Luuk
On 20-4-2019 12:47, Luuk wrote: On 20-4-2019 11:26, wxjmfa...@gmail.com wrote: http://unicode.org/mail-arch/unicode-ml/Archives-Old/UML018/0594.html [quoot] > It is simple to make a compacter version of UTF-8 using the base > 256 character codes were possible (comacter for many lan

Re: unicode mail list archeology

2019-04-20 Thread Luuk
30 32 20 63 65 6e 74 73 0a -- Luuk -- https://mail.python.org/mailman/listinfo/python-list

Re: (no subject)

2019-04-19 Thread Luuk
t;cond3 NOK") else: print("cond2 NOK") else: print("cond1 NOK") -- Luuk -- https://mail.python.org/mailman/listinfo/python-list

Re: (no subject)

2019-04-19 Thread Luuk
t;cond3 NOK") else: print("cond2 NOK") else: print("cond1 NOK") -- Luuk -- https://mail.python.org/mailman/listinfo/python-list

Re: Multiple log files using logging module

2019-03-24 Thread Luuk
On 24-3-2019 19:33, Peter Otten wrote: Luuk wrote: On 24-3-2019 18:13, Sharan Basappa wrote: I have a test program that imports a design program. Both the programs need to log messages. I have tried the following: 1) Both the programs have the following lines: for handler in

Re: Multiple log files using logging module

2019-03-24 Thread Luuk
27; ), did you also put the 'r' in front of it, like this: , r'D:\TEMP\TEST') -- Luuk -- https://mail.python.org/mailman/listinfo/python-list

Re: log file

2019-03-24 Thread Luuk
On 24-3-2019 09:50, Sharan Basappa wrote: Ah. I finally solved the issue though I don't know what the problem itself it. The problem, shown with a simple example Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "cr

Re: Help!!! How to apply my created function to another function

2019-03-10 Thread Luuk
to vectorMagnitude(B). vectorMagnitude(B) ==>>>> this is problem Luckily the text 'Please see first line' is missing ;) -- Luuk -- https://mail.python.org/mailman/listinfo/python-list

Re: System Beep?

2019-03-09 Thread Luuk
ot.destroy() see: https://stackoverflow.com/questions/110923/how-do-i-close-a-tkinter-window -- Luuk -- https://mail.python.org/mailman/listinfo/python-list

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 m

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: why can't download file from linux server into local window disk c:

2014-12-09 Thread Luuk
To: pengsir On 9-12-2014 09:14, pengsir wrote: > > > My vps ip is x.y.z.w ,i want to download /etc/passwd from linux server > into my local window disk c: . > > import paramiko > host = "x.y.z.w" > port = 22 > transport = paramiko.Transport((host, port)) > password = "mykey" > username = "root" >

Re: why can't download file from linux server into local window disk c:

2014-12-09 Thread Luuk
To: ishish On 8-12-2014 18:37, ishish wrote: >> with open(localpath, 'wb') as fl: >> PermissionError: [Errno 13] Permission denied: 'c:' > > I remember gloomily (haven't used windows since ages) that newer Windows > versions don't like users to write directly to C:. Have you tried to > save t

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread Luuk
On 8-12-2014 18:37, ishish wrote: with open(localpath, 'wb') as fl: PermissionError: [Errno 13] Permission denied: 'c:' I remember gloomily (haven't used windows since ages) that newer Windows versions don't like users to write directly to C:. Have you tried to save the file to your Documen

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread Luuk
On 9-12-2014 09:14, pengsir wrote: My vps ip is x.y.z.w ,i want to download /etc/passwd from linux server into my local window disk c: . import paramiko host = "x.y.z.w" port = 22 transport = paramiko.Transport((host, port)) password = "mykey" username = "root" transport.connect(username = use

Re: Beginner python 3 unicode question

2013-11-16 Thread Luuk
On 16-11-2013 21:57, Laszlo Nagy wrote: the error is in one of the lines you did not copy here because this works without problems: <> #!/usr/bin/python Most probably, your /usr/bin/python program is python version 2, and not python version 3 Try the same program with /usr/bin/python3.

Re: Beginner python 3 unicode question

2013-11-16 Thread Luuk
On 16-11-2013 20:12, Laszlo Nagy wrote: Example interactive: $ python3 Python 3.3.1 (default, Sep 25 2013, 19:29:01) [GCC 4.7.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import uuid >>> import base64 >>> base64.b32encode(uuid.uuid1().bytes)[:-6].lowe

Re: mySQLdb

2013-02-02 Thread Luuk
On 02-02-2013 11:01, Armin Karner wrote: MySQLdb for python versions 3.3 or higher http://lmgtfy.com/?q=MySQLdb+for+python+versions+3.3+or+higher -- http://mail.python.org/mailman/listinfo/python-list

Re: read a web page using python

2007-03-17 Thread Luuk
<[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hi All, > > Kindly, could you someone tell me how to read a page(any web site) > using Python, what method to be used ? > > Paris > http://www.amk.ca/python/howto/sockets/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help (Basic python)...what did I do wrong?

2006-10-28 Thread Luuk
"frankie_85" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hi everyone, > > I just made a simple code which is part of my assignment but I can't > figure it out what's wrong with it. (always give me error messages) > > What the code basically does is: > > a function that takes o

Re: efficient text file search.

2006-09-11 Thread Luuk
"John Machin" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > > Luuk wrote: > [snip] >> some googling turned op the following. >> Second paragraph of chapter 14 of http://www.amk.ca/python/2.1/ > [snip] >> For a fuller discussi

Re: efficient text file search.

2006-09-11 Thread Luuk
"noro" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > :) > > via python... > > Luuk wrote: >> "noro" <[EMAIL PROTECTED]> schreef in bericht >> news:[EMAIL PROTECTED] >> > Is there a more efficient method to find

Re: efficient text file search.

2006-09-11 Thread Luuk
"noro" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Is there a more efficient method to find a string in a text file then: > > f=file('somefile') > for line in f: >if 'string' in line: > print 'FOUND' > yes, more efficient would be: grep (http://www.gnu.org/softwa