Re: [Tutor] Need all values from while loop - only receiving one

2018-07-03 Thread Alan Gauld via Tutor
On 04/07/18 01:08, Alan Gauld via Tutor wrote: > # Now the main code just needs the outer loops: > tree = ET.parse(r'\\DealData.xml') > root = tree.getroot() > deals = [] > for deal in root.findall("Deals"): > for dl in deal.findall("Deal"): > deals.append( Deal(dl) ) > > if d

Re: [Tutor] Need all values from while loop - only receiving one

2018-07-03 Thread Alan Gauld via Tutor
On 03/07/18 20:39, Daryl Heppner wrote: > The idea of a class is something I'd unsuccessfully tried but I'm up > for the challenge! I'm very comfortable in Transact SQL but OOP is > new to me. OK, What I meant by using a class was to define one (or more?) that encompassed all the data in one De

Re: [Tutor] C++ or Python?

2018-07-03 Thread Carlton Banks
tir. 3. jul. 2018 18.25 skrev Bellamy Baron : > Hi, > > I have heard C++ is faster than python and I have a few questions > 1.Is there a way to make python run just as fast > Look Up cpython might be a bit faster 2.can I get in a serious game making team like 343 by using python > No > 3. if C++

Re: [Tutor] Need all values from while loop - only receiving one

2018-07-03 Thread Daryl Heppner
Again thank you so much! I truly appreciate your direction! The idea of a class is something I'd unsuccessfully tried but I'm up for the challenge! I'm very comfortable in Transact SQL but OOP is new to me. Here's my updated code with a sample XML. The full XML file is over 600K rows. I'd app

Re: [Tutor] C++ or Python?

2018-07-03 Thread Alan Gauld via Tutor
On 03/07/18 14:48, Bellamy Baron wrote: > I have heard C++ is faster than python and I have a few questions > 1.Is there a way to make python run just as fast Kind of. Nearly. But its limited to specific types of program. The most common approach is to identify the slow bits and rewrite them in C

Re: [Tutor] C++ or Python?

2018-07-03 Thread Leam Hall
Howard is right. You will produce actual code doing actual stuff much faster with Python than with C++. There are ways to resolve performance bottlenecks but most people don't actually hit those sorts of issues. Leam On 07/03/2018 01:06 PM, Howard B wrote: Greetings -- Faster to do what?

Re: [Tutor] C++ or Python?

2018-07-03 Thread Howard B
Greetings -- Faster to do what? Develop faster? Run faster? Debug faster? In my experience, making the development and eventual debugging of programs as easy and quick as possible is very important. My experience and advice has been to design a clear algorithm, then program it in as clear an

[Tutor] C++ or Python?

2018-07-03 Thread Bellamy Baron
Hi, I have heard C++ is faster than python and I have a few questions 1.Is there a way to make python run just as fast 2.can I get in a serious game making team like 343 by using python 3. if C++ is better where can I get good 3d model libraries and libraries that make coding in C++ faster 4. Is t

Re: [Tutor] Need all values from while loop - only receiving one

2018-07-03 Thread Alan Gauld via Tutor
On 02/07/18 23:52, Daryl Heppner wrote: > The two While Loops are the part I'm struggling with. The goal is to > list each bill month number and date for each month in the term. When you need multiple values you need to use a collection type such as a list or tuple. Your problem is that you are u

Re: [Tutor] Help

2018-07-03 Thread Alan Gauld via Tutor
On 03/07/18 06:23, Adam Jones wrote: > Good day, I am currently checking a piece of arcpy code. Where a point is > shifted within a set distance to protect the privacy of said point. Please > see the code below, and please advise me or correct the code where it is > needed It would help us to help

[Tutor] Help

2018-07-03 Thread Adam Jones
Good day, I am currently checking a piece of arcpy code. Where a point is shifted within a set distance to protect the privacy of said point. Please see the code below, and please advise me or correct the code where it is needed # Step 11 - SELECT By Attributes -> where FID == FID_1, export to new