Re: [Tutor] which of these is more efficient?

2019-08-19 Thread nathan tech
not realise I could do something like: key=(x, y) game_map[key]=bla. LEarned a lot, so thanks! Nathan On 19/08/2019 15:02, Mats Wichmann wrote: > On 8/18/19 5:55 PM, nathan tech wrote: >> Hi there, >> >> So I am running over some coding ideas in my head for creatin

[Tutor] which of these is more efficient?

2019-08-19 Thread nathan tech
Hi there, So I am running over some coding ideas in my head for creating a map for a game. This map would expand based on how far the user explores. I figure there are two ways to do this: 1: the list method: map=[] for x in range(3):  temp=[]  for y in range(3):   temp.append(default_

Re: [Tutor] just a quick logic check if someone has two seconds

2019-08-02 Thread nathan tech
> On 01/08/2019 23:10, nathan tech wrote: > >> import speedtest > This is not a standard library module so I have no idea > what it does so obviously there could be magic afoot of > which I am unaware. But assuming it behaves like most > Python code... > >> de

[Tutor] just a quick logic check if someone has two seconds

2019-08-01 Thread nathan tech
Hi there, I wondered if someone wouldn't mind just taking two seconds to make sure i understand this concept: Here is a code snippet: import speedtest def do-test(): test=speedtest.Speedtest() test.download() test.upload() return [test.download_speed, test.upload_speed] Now. If I

Re: [Tutor] Fwd: Re: would someone please explain this concept to me

2019-06-06 Thread nathan tech
Hi alan, thanks so much for clearing that up. Now you've explained it in that way, I understand what it is doing and how it went wrong. Thank you so much! Nathan On 06/06/2019 00:57, Alan Gauld via Tutor wrote: > On 05/06/2019 20:47, nathan tech wrote: > >> so fo

Re: [Tutor] Fwd: Re: would someone please explain this concept to me

2019-06-05 Thread nathan tech
hi there, Thanks for that, I never thought of those options, though now you mention them, I'm going, duh! I also, defined in globals, have a variable called checklimit. EG: g.checklimit. Am I ok to assign that to values? so for example if I do: feeds[feed1]["limit"]=g.checklimit And later

[Tutor] Fwd: Re: would someone please explain this concept to me

2019-06-05 Thread nathan tech
Thought I addressed this to the list... Aparrently my mail client hates me. Forwarded Message Subject:Re: [Tutor] would someone please explain this concept to me Date: Wed, 5 Jun 2019 02:37:49 +0100 From: nathan tech <mailto:nathan-t...@hotmail.com> To:

[Tutor] would someone please explain this concept to me

2019-06-04 Thread nathan tech
Hi there, So I have just fixed a huge bug in my program, but don't understand exactly... How it bugged. Confused? I sure was. Here's some code: globals.py: feeds={} blank_feed={} blank_feed["checked"]=1 blank_feed["feed"]=0 main file: import globals as g # some code that loads a feed

Re: [Tutor] is this doable

2019-06-01 Thread nathan tech
app or through psutil.send_signal()  # exit the program Hope I'm making more sense now, and thank you for the help everyone. Nate On 01/06/2019 04:30, Mats Wichmann wrote: > On 5/31/19 1:41 PM, nathan tech wrote: >> Hi there, >> >> So for a future project of mine, I was wonde

[Tutor] is this doable

2019-05-31 Thread nathan tech
Hi there, So for a future project of mine, I was wondering something. Is it possible, in python, to store a running task id in the registry? I might be using the complete wrong terms here, because I'm only used to doing this with a specific language, but here's what I want to do: python mytes

[Tutor] tweeting from python

2019-05-26 Thread nathan tech
Hi there, I was wondering if anyone had some tips that might direct me to answers to this problem: I have a program which one downloads to your computer, and you install. Then, I want to add into this program a share button. This share button would send a tweet to your twitter saying, "I am w

[Tutor] cython and threads, and feedparser

2019-05-12 Thread nathan tech
Hello! After a day of various attempts yesterday, I managed to get cython installed on my windows 10 machine. Allow me to prefix this by saying, if there is somewhere else I should put this, II'M SORRY! So I ran cython on my python project, and it worked fine, there was one error about an in

Re: [Tutor] don't steel my code Mister user

2019-05-05 Thread nathan tech
alone 700 bucks, the other is I'm a sucker for helping as many people as I can. Anyway, staying on topic here, I really appreciate all of you taking the time to give me advice and help, thank you very much :) Thanks Nate On 04/05/2019 22:50, Alan Gauld via Tutor wrote: > On 04/05/2019

Re: [Tutor] don't steel my code Mister user

2019-05-04 Thread nathan tech
roducts it would be £5, or $7, and 7 bucks just isn't worth all the effort to make python difficult to hack. Nothing is impossible, but, deterring the average user just for $7? Not worth it. Thanks anyway guys. Nate On 04/05/2019 12:46, Alan Gauld via Tutor wrote: > On 04/05/2019 00:45,

[Tutor] don't steel my code Mister user

2019-05-03 Thread nathan tech
Hi there, Hope you like the subject, I was feeling inventive. my question today concerns compilation. I hear this a lot from the communities I hang around in, and it is something I wonder about often. There are tools like py2exe and pyinstaller that are able to compile your python code into .

Re: [Tutor] feedparser in python

2019-04-29 Thread nathan tech
ppreciated. Thanks Nate On 29/04/2019 08:43, Alan Gauld via Tutor wrote: > On 29/04/2019 01:26, nathan tech wrote: > >> Most recently, I have started work using feedparser. > I've never heard of it let alone used it so there may > be another forum where you can get specific an

[Tutor] feedparser in python

2019-04-29 Thread nathan tech
Hello everyone, Most recently, I have started work using feedparser. I noticed, almost straight away, it's a  bit slow. For instance:     url="http://feeds.bbci.co.uk/news/rss.xml";     f1=feedparser.parse(url) On some feeds, this can take a few seconds, on the talk python to me feed, it

[Tutor] Import error, no module named app script

2019-03-21 Thread nathan tech
Hi guys, So I recently begun using Mac to program in python. For one of the modules I am going to be using, it calls app script in order to send commands to voiceover, which is a screen reader for the MAC. The only problem is, it gives an error about no module named appscript. Indeed, when I go i

Re: [Tutor] schedulers

2019-03-01 Thread nathan tech
guys pointing out the floors. :) Thanks again. Nathan On 28/02/2019 23:23, Alan Gauld via Tutor wrote: > On 28/02/2019 14:45, nathan tech wrote: > >> but I'm thinking, should I do this? > No. fOr several reasons... > >> def do_backup >>  # backup code he

[Tutor] schedulers

2019-02-28 Thread nathan tech
Hi there, I recently started working on a backup program, and the one big feature everyone wants in backup programs is the ability to schedule backups, right? but I'm thinking, should I do this? def do_backup  # backup code here, without prints to screen or anything so it just does it in the

[Tutor] running a game server

2019-01-06 Thread nathan tech
Hello all, Above all I am a game developer and I want to make multi player games. For my first trick I want to make a game that is building related, with a map and such. For the map I was thinking of using a dict and running along those lines. My question is, is python really the way to go for

[Tutor] playing sound files in python

2018-12-07 Thread nathan tech
Hello all! My name is nate, and I am relatively new to this list, relatively being just signed up. I have a question that you would think would be obvious, but alas I have struggled to figure out. How do I play sound files in python. More specificly, I want to play ogg files especially, with