Re: What is the problem with my code?

2020-04-26 Thread Chris Angelico
On Mon, Apr 27, 2020 at 4:26 PM wrote: > > def is_positive_int(int): > x = int[0] > if int == "": > return Flase > elif int != "": > print(True) > if int[0] < 1: > return false > else: > print(True) > for x in int: > if x > 0 and x < 10:

What is the problem with my code?

2020-04-26 Thread yoavmelnik5
def is_positive_int(int): x = int[0] if int == "": return Flase elif int != "": print(True) if int[0] < 1: return false else: print(True) for x in int: if x > 0 and x < 10: print(True) x = x + 1 else: return Fal

Re: How to test?

2020-04-26 Thread DL Neil via Python-list
If I have understood correctly, the objective is to check a dir-tree to ensure that specific directory/file-permissions are in-effect/have not been changed. The specifications come from a .JSON file and may be over-ridden by command-line arguments. Correct? Yes. How to test this in the best

Re: Function to avoid a global variable

2020-04-26 Thread Chris Angelico
On Mon, Apr 27, 2020 at 1:39 PM Bob van der Poel wrote: > > Does this make as much sense as anything else? I need to track calls to a > function to make sure it doesn't get called to too great a depth. I had a > global which I inc/dec and then check in the function. Works fine, but I do > need to

Function to avoid a global variable

2020-04-26 Thread Bob van der Poel
Does this make as much sense as anything else? I need to track calls to a function to make sure it doesn't get called to too great a depth. I had a global which I inc/dec and then check in the function. Works fine, but I do need to keep a global around just for this. So ... instead I wrote a short

Re: Python Problems

2020-04-26 Thread DL Neil via Python-list
On 27/04/20 11:29 AM, Mats Wichmann wrote: On 4/26/20 2:06 AM, helal uddin wrote: https://drive.google.com/open?id=1DCciLNPkARXnVIHFhXmijRTbFEC9Xsa- Please visit this link to see my problem I'm facing some problems to installlibraries like 'torch library' My Operating System is Windows 10 64

Re: Python Problems

2020-04-26 Thread Mats Wichmann
On 4/26/20 2:06 AM, helal uddin wrote: > https://drive.google.com/open?id=1DCciLNPkARXnVIHFhXmijRTbFEC9Xsa- > Please visit this link to see my problem > I'm facing some problems to installlibraries like 'torch library' > My Operating System is Windows 10 64bit. > I don't think anyone is going

Re: Python Problems

2020-04-26 Thread DL Neil via Python-list
On 26/04/20 8:06 PM, helal uddin wrote: https://drive.google.com/open?id=1DCciLNPkARXnVIHFhXmijRTbFEC9Xsa- Please visit this link to see my problem I'm facing some problems to installlibraries like 'torch library' My Operating System is Windows 10 64bit. <<< 404. That’s an error. The reque

Python Problems

2020-04-26 Thread helal uddin
https://drive.google.com/open?id=1DCciLNPkARXnVIHFhXmijRTbFEC9Xsa- Please visit this link to see my problem I'm facing some problems to installlibraries like 'torch library' My Operating System is Windows 10 64bit. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to test?

2020-04-26 Thread Manfred Lotz
On Sun, 26 Apr 2020 15:26:58 +1200 DL Neil wrote: > On 25/04/20 7:53 PM, Manfred Lotz wrote: > > On Sat, 25 Apr 2020 18:41:37 +1200 > > DL Neil wrote: > > > >> On 25/04/20 5:16 PM, Manfred Lotz wrote: > >>> On Fri, 24 Apr 2020 19:12:39 -0300 > >>> Cholo Lennon wrote: > >>> > On