Re: where should I use python difrint datatypes

2020-12-28 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: where should I use python difrint datatypes @6I wouldn't be that harsh.  95% of the people trying to code here are under 16.  There's definitely an instant gratification problem, but expecting university-level understanding from people who aren't even out of high school and who don't

Re: where should I use python difrint datatypes

2020-12-28 Thread AudioGames . net Forum — Developers room : Dragonlee via Audiogames-reflector
Re: where should I use python difrint datatypes @5 is exactly right. audiogame devs mostly use lists, because they don't understand fundamental datastructures, how they work, what they should be used for, what they are their space and time cost characteristics, and so on. it's particularly

Re: where should I use python difrint datatypes

2020-12-27 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: where should I use python difrint datatypes @4For sets you can just thing in set, for dicts you can just key in dict, and both are basically instantaneous as compared to a list.  No iteration required.  But lists aren't safe.  Lists let you have duplicate items.  So in either case you

Re: where should I use python difrint datatypes

2020-12-27 Thread AudioGames . net Forum — Developers room : mohamed via Audiogames-reflector
Re: where should I use python difrint datatypes @camlorn, Most of audiogames devs uses lists for their stuff because it's safe, You will get sure that your data won't get deleted because a key matched another one in the dictionary so boom, Good bye, You could do stuff to avoid

Re: where should I use python difrint datatypes

2020-12-27 Thread AudioGames . net Forum — Developers room : mohamed via Audiogames-reflector
Re: where should I use python difrint datatypes @camlorn, Most of audiogames devs uses lists for their stuff because it's safe, You will get sure that your data won't get deleted because a key matched another one in the dictionary so boom, Good bye, You could do stuff to avoid

Re: where should I use python difrint datatypes

2020-12-27 Thread AudioGames . net Forum — Developers room : Dragonlee via Audiogames-reflector
Re: where should I use python difrint datatypes I will also add that the assumption that Sets are unordered isn't true, because there are two main flavors of Sets, namely HashSets and TreeSets. python's default Set is a HashSet, which is unordered. Treesets are ordered, essentially

Re: where should I use python difrint datatypes

2020-12-27 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: where should I use python difrint datatypes There are different data types because they have different performance characteristics, and because they also have semantic meaning.To start with the simplest: a tuple is immutable, meaning that you can't add values or change the values

where should I use python difrint datatypes

2020-12-27 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector
where should I use python difrint datatypes so hi all, I want to know why do we have sets, tuples and listsso a list is ordered and changeable, a tuple is ordered and unchangeable, and a set is unordered and unchangeablewhere should I use these 3, and why they wont just put lists only, you

where should I use python difrint datatypes

2020-12-27 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector
where should I use python difrint datatypes so hi all, I want to know why do we have sets, tuples and listsso a list is ordered and changeable, a tuple is ordered and unchangeable, and a set is unordered and unchangeablewhere should I use these 3, and why they wont just put lists only, you