Re: [Tutor] My Query - How to implement multi threading with remote execution capability in python to achieve parallel processing

2014-12-23 Thread Adam Jensen
This thread is hilarious. Thanks for the chuckle. http://www.ignyte.ms/whitepapers/LayersOf%20HumanValuesInStrategy.pdf http://www.principiadiscordia.com/downloads/04%20Prometheus%20Rising.pdf On Mon, 22 Dec 2014 11:27:01 + Vishwas Pathak wrote: > I am working building on developing an au

Re: [Tutor] print() invalid syntax error

2014-12-23 Thread Adam Jensen
On Tue, 23 Dec 2014 18:27:10 + stuart kurutac wrote: > finish = (int(input("Finish: ")) The parenthesis aren't balanced. I would have written it as: finish = int(input("Finish: ")) but something like this should also work: finish = (int(input("Finish: "))) ___

[Tutor] QT5 pyqt5 for python 2.7

2017-11-18 Thread adam ghering
Hello, I am trying to get up to speed on python; expand my skills etc. I work in a VFX environment where most all the tools continue to run with python 2.7XX I have seen that pyqt5 supports python 2.7 according to its documentation but it needs to be rebuilt to function. I have done some

Re: [Tutor] QT5 pyqt5 for python 2.7

2017-11-19 Thread adam ghering
Subject: Re: [Tutor] QT5 pyqt5 for python 2.7 On 18/11/17 01:51, adam ghering wrote: > Hello, > > I am trying to get up to speed on python; expand my skills etc. > > I work in a VFX environment where most all the tools continue to run with > python 2.7XX > > I have seen that p

[Tutor] Help

2018-07-03 Thread Adam Jones
", multipoint_size="0") # JOIN RandomFile (CID) to DonutFile (OBJECTID) arcpy.JoinField_management(in_data="RandomFile", in_field="CID", join_table="DonutFile", join_field="OBJECTID", fields="") # DELETE unnecessary fields in

[Tutor] Pip issue

2018-10-05 Thread Adam Eyring
". I see there's get-pip.py, but the documentation on using it is confusing. Thanks for your help. Adam ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tutor Digest, Vol 176, Issue 13

2018-10-12 Thread Adam Eyring
Also, try (works for me in Python3) rivers = {'nile' : 'egypt', 'ohio' : 'US', 'rhine' : 'germany' } for key, value in rivers.items(): print (key) for key, value in rivers.items(): print (value) for key, value in rivers.items(): print ("The " + key + " is in the country of " + value)

Re: [Tutor] Help please

2018-10-12 Thread Adam Eyring
The program works as is in Python3. For Python2, change input to raw_input and see if that makes it work (I know it worked for me when I had Python2). Also, it looks better to use " + " instead of a comma: print("Combining these foods will you," + new_food) Also, colons and spaces are good practic

Re: [Tutor] Python Help

2018-10-26 Thread Adam Eyring
Try this cleaned up version with colons in the right places, dollar signs removed, and other corrections: beefmeals=int(input("Enter number of beef meals: ")) shitmeals=int(input("Enter number of vegan meals: ")) party = beefmeals + shitmeals print("Total meals", party) a = 0 b = 0 c = 0 if party

Re: [Tutor] Python Help

2018-10-26 Thread Adam Eyring
On Fri, Oct 26, 2018 at 3:03 PM Bob Gailer wrote: > On Oct 26, 2018 1:20 PM, "Adam Eyring" wrote: > > > > Try this cleaned up version with colons in the right places, dollar > signs removed, and other corrections: > > Does it do what you want? > > >

Re: [Tutor] Installing python

2018-11-03 Thread Adam Eyring
On Fri, Nov 2, 2018 at 8:10 PM Mark Lawrence wrote: > On 02/11/2018 22:49, Alan Gauld via Tutor wrote: > > On 02/11/2018 21:13, Roger Lea Scherer wrote: > > > >> I have installed python 3.7 on my computer Windows10 > >> (C:\Users\Roger\AppData\Local\Programs\Python\Python37), > > > > Caveat: I'm

Re: [Tutor] Request for help with code

2018-11-07 Thread Adam Eyring
When I post code with questions, I just copy and paste from Python IDLE 3.6. Colors are removed, but indentation is preserved. On Tue, Nov 6, 2018 at 6:59 PM Mats Wichmann wrote: > On 11/6/18 4:36 PM, Joseph Gulizia wrote: > > Funny using a text editorand showed indented in my browser. >

Re: [Tutor] Beginners Book, Python and PyScripter

2018-12-04 Thread Adam Eyring
I haven't gone through many python books, but have been using a copy of Automating the Boring Stuff with Python. It covers lists, dictionaries, scraping data from websites, etc. https://automatetheboringstuff.com/ The PDF is free. Adam On Tue, Dec 4, 2018 at 1:09 PM James Stapleton-Cotton

Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-05 Thread Adam Eyring
I've liked turtle and make my graphing more interesting by asking for user input such as dimensions, then graph automatically. One starter source for using pygame graphics is https://inventwithpython.com/pygame/ It jumps into game writing very quickly, but provides explanations of commands. The o

Re: [Tutor] Import CSV

2018-12-13 Thread Adam Eyring
Take a look at the book Automating the Boring Stuff with Python (free PDF): https://automatetheboringstuff.com/ There's a couple of chapters in there for downloading CSV files and extracting the data. On Thu, Dec 13, 2018 at 1:57 PM Sammy Lee wrote: > I need help on how to open a webpage and sa

Re: [Tutor] graphics library for teaching Python

2018-12-21 Thread Adam Eyring
On Fri, Dec 21, 2018, 3:26 AM Michael Mossey wrote: > > There are two sub-topics I'm interested in - (1) graphics, as in drawing > interesting pictures or art, or using diagrams for data visualization. (2) > Simple games, with the use of sprites. > One that hasn't been mention in yours and Alan'

[Tutor] a par2 creator and verification program

2019-07-23 Thread Adam Gold
Hello everyone. I'm thinking through a short program I want to write that will 'par2'/generate ECCs for all of my work files which branch out from a single directory and number approximately 15,000. Specifically: 1) day one: - create a mirror copy of the directory tree empty of all files (the

Re: [Tutor] AttributeError: 'list' object has no attribute 'capitalize'

2007-06-20 Thread Adam A. Zajac
On Wed, 20 Jun 2007 12:32:53 +0200 Norman Khine <[EMAIL PROTECTED]> wrote: > My question is how to get all the words in the string to start with > capital letter? title() should do it >>>a = "hello world" >>>a.title() >>>'Hello World' ___ Tutor maillis

[Tutor] Removing a file from a tar

2007-06-27 Thread Adam A. Zajac
I was reading over the documentation for the tarfile module and it occurred to me that there didn't seem to be a way to remove an individual file from the tar. For example, suppose I did this: import tarfile tar = tarfile.open("sample.tar", "w") tar.add("unwanted") tar.add("wanted") tar.close()

Re: [Tutor] Question about code reviews

2007-07-12 Thread Adam A. Zajac
> Do you know of any service or person that could do a code review > for me? Perhaps if you were more specific about what you are looking for in the review? If you merely want something to check your code for possible errors and how well you stick to standards, then look into pylint or pychec

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-07-27 Thread Adam A. Zajac
> os.path.exists(path) returns false when the path actually exists! > > When I do this: > > >>> os.path.exists("c:\\winnt\\file_name") > > I get this: > >>> False > > Actually the file exists in c:\winnt, and I can confirm it exists > there, but os.path.exists isn't returning True, wh

[Tutor] getting the size of an open TarFile object

2007-08-18 Thread Adam A. Zajac
ending because TarFile objects can't append if the tar is compressed. And finally, I can't predict the compression ratio, so I can't merely keep track of the size of the individual files without a huge gap to my target size. I'm giving up on

Re: [Tutor] getting the size of an open TarFile object

2007-08-21 Thread Adam A. Zajac
> > I've been working with the tarfile module and just noticed an > > apparent flaw in my own logic. I wanted to add files to the tar > > until it neared a certain file size. After every addition I would > > use os.path.getsize(). What I noticed today is that I could add a > > file to the tar wi

[Tutor] Help Python String Search

2008-10-06 Thread Deitemeyer, Adam R
earching begins with a metacharacter. For example: if the string '*I need *help' contains the word 'help' then true, else false.. Any advice you can provide would be great. Thanks, Adam ___ Tutor maillist - Tutor@python.org http

<    1   2   3   4