Re: [Tutor] Package which can extract data from pdf

2019-08-14 Thread William Ray Wing via Tutor
> On Aug 14, 2019, at 2:16 PM, Mats Wichmann wrote: > >> On 8/14/19 10:10 AM, Nupur Jha wrote: >> Hi All, >> >> I have many pdf invoices with different formats. I want to extract the line >> items from these pdf files using python coding. >> Treat this as a two part problem: part one is extra

Re: [Tutor] data structures general query

2019-06-26 Thread William Ray Wing via Tutor
> On Jun 26, 2019, at 6:40 AM, mhysnm1...@gmail.com wrote: > > All, > > > > General computer science question for data structures. > > When would you use the below structures and why? If you can provide a real > life example on when they would be used in a program This would be great. I > am

Re: [Tutor] How to Scrape Text from PDFs

2019-06-17 Thread William Ray Wing via Tutor
> On Jun 17, 2019, at 1:30 AM, Cem Vardar wrote: > > Hello, > > I have been working on assignment that was described to me as “fairly > trivial” for a couple of days now. I have some PDF files that have links for > some websites and I need to extract these links from these files by using >

Re: [Tutor] Questions

2019-04-08 Thread William Ray Wing via Tutor
filings of individual > companies by putting in a ticker (preferably in excel, but an be done > elsewhere). Trying to figure out how to even start setting this up. > > Thank you! > > On Sun, Apr 7, 2019 at 8:57 PM William Ray Wing <mailto:w...@mac.com>> wrote: >

Re: [Tutor] Fwd: Can tempfile.NamedTemporaryFile(delete=False) be used to create *permanent* uniquely named files?

2018-10-22 Thread William Ray Wing via Tutor
> On Oct 22, 2018, at 8:30 PM, boB Stepp wrote: > > On Mon, Oct 22, 2018 at 11:57 AM Mats Wichmann wrote: >> >> On 10/22/18 8:24 AM, boB Stepp wrote: >>> Forwarding to the Tutor list. Herr Maier offers a good idea that >>> would take away much of a remaining issue -- the name "Temporary". I

Re: [Tutor] Python 3.6.5 for MAC

2018-04-23 Thread William Ray Wing
> On Apr 23, 2018, at 6:29 AM, Giorgio De Angelis > wrote: > > Hello guys, > > I have a problem with my MacBook Pro ’13, version 10.13.4, because when I try > to open the shell it says that it couldn’t make any connection because it > wasn’t able to make a subprocess. Can you help me? > So

Re: [Tutor] Beginner Level Projects

2018-04-19 Thread William Ray Wing
> On Apr 18, 2018, at 9:34 PM, Joshua Nghe wrote: > > Hi, > > This is Joshua N from Campus Middle School in CO. Our science class is > collectively participating in a project that consumes 20% of our classtime > every week. For my project, I chose to learn Python, and create something > from

Re: [Tutor] Problem python script

2017-12-19 Thread William Ray Wing
Sent from my iPhone > On Dec 19, 2017, at 3:47 AM, Antoan Hristov wrote: > > Hello, > > I am using a script which extracts data from internet every Monday, but > sometimes I have a problem that the script is not finishing properly. In > terminal I stop it with Ctrl-C and the message it gives

Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'

2017-11-20 Thread William Ray Wing
> On Nov 20, 2017, at 9:55 AM, Stephen P. Molnar wrote: > > > On 11/20/2017 09:34 AM, William Ray Wing wrote: [byte] >> As an experiment, I took the code and moved it to my laptop (MacOS, running >> 10.12.6 where there is a complete Anaconda installation that cont

Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'

2017-11-20 Thread William Ray Wing
> On Nov 19, 2017, at 3:14 PM, Stephen P. Molnar wrote: > > > On 11/19/2017 03:10 PM, William Ray Wing wrote: >>> On Nov 19, 2017, at 11:36 AM, Stephen P. Molnar >>> wrote: >>> >>> I have written a short Python 3 script to plot three curve

Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'

2017-11-19 Thread William Ray Wing
> On Nov 19, 2017, at 3:14 PM, Stephen P. Molnar wrote: > > > On 11/19/2017 03:10 PM, William Ray Wing wrote: >>> On Nov 19, 2017, at 11:36 AM, Stephen P. Molnar >>> wrote: >>> >>> I have written a short Python 3 script to plot three curve

Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'

2017-11-19 Thread William Ray Wing
> On Nov 19, 2017, at 11:36 AM, Stephen P. Molnar > wrote: > > I have written a short Python 3 script to plot three curves (one plot) of > data from a FORTRAN program. Initially the code worked and produced the plot > which is attached. I have also attached the code and the input data, >

Re: [Tutor] coding help with maxwell-boltzmann distribution

2017-10-12 Thread William Ray Wing
> On Oct 12, 2017, at 4:22 PM, Cameron McKay wrote: > > Hello, > > I've never used python trying to plot a graph. Thus I am having > difficulties trying to plot the maxwell-boltzmann distribution. right now > i've defined the y-axis given the probability, but the difficult part is > trying to

Re: [Tutor] Fahrenheit to Celsius Conversion another problem and Programming Paradigm

2017-06-15 Thread William Gan
, June 15, 2017 1:53 AM To: William Gan ; tutor@python.org Subject: Re: [Tutor] Fahrenheit to Celsius Conversion another problem and Programming Paradigm Hi William, Glad to see the tutor list is being of help in your learning. On 14/06/17 09:20, William Gan wrote: > if unit == 'C' or

Re: [Tutor] Fahrenheit to Celsius Conversion another problem and Programming Paradigm

2017-06-15 Thread William Gan
...@graniteweb.com] Sent: Thursday, June 15, 2017 2:04 AM To: tutor@python.org Subject: Re: [Tutor] Fahrenheit to Celsius Conversion another problem and Programming Paradigm > On Jun 14, 2017, at 09:20, William Gan wrote: > > However, today I modified only the print instruction a little

Re: [Tutor] Fahrenheit to Celsius Conversion another problem and Programming Paradigm

2017-06-15 Thread William Gan
] Sent: Thursday, June 15, 2017 2:15 AM To: tutor@python.org Subject: Re: [Tutor] Fahrenheit to Celsius Conversion another problem and Programming Paradigm On 14/06/17 15:20, William Gan wrote: > print('Enter C for Celsius to Fahrenheit or F for Fahrenheit to > Celsius.') > >

[Tutor] Fahrenheit to Celsius Conversion another problem and Programming Paradigm

2017-06-14 Thread William Gan
Good day Everyone, I am seeking help on two issues. ISSUE 1: Yesterday I posted a problem on this tiny script I wrote for temperature conversion (as practice for a newbie). My error was pointed out to me that there is a difference in upper and lowercase letters. After correcting that error, I

Re: [Tutor] Fahrenheit to Celsius Conversion with if else statements

2017-06-12 Thread William Gan
Alan Gauld [mailto:alan.ga...@yahoo.co.uk] Sent: Tuesday, June 13, 2017 1:36 AM To: tutor@python.org Subject: Re: [Tutor] Fahrenheit to Celsius Conversion with if else statements On 12/06/17 15:17, William Gan wrote: > print('Enter C for Celsius to Fahrenheit or F for Fahrenheit to > Ce

[Tutor] Fahrenheit to Celsius Conversion with if else statements

2017-06-12 Thread William Gan
uted instead. The if block was skipped. Enter C for Celsius to Fahrenheit or F for Fahrenheit to Celsius. Enter C or F:c Enter temperature:100 100 F is equivalent to 37.78 C. I could not figure out my mistake. For advice, please. Thank you. Best regards william _

Re: [Tutor] 10+ Different Python Script?

2016-07-13 Thread William Ray Wing
> On Jul 13, 2016, at 8:03 AM, Crusier wrote: > > Dear All, > > I am currently using: > Python 3.5 > Window 7 > > > I have a python script which is used for downloading Real Time Stocks. > Currently, there is over a 1000 stocks in the Portfolio. > > If I download the market info during marke

Re: [Tutor] Study Tips

2016-06-01 Thread William Ray Wing
> On May 30, 2016, at 1:45 AM, Steve Lett wrote: > > Hi folks, > Just started learning python. I've been having a really hard time in > getting started, and still am! I have a slight learning difficulty, > including a stroke in Jan.2010. You wouldnt know even if u were here > looking at me! Prai

Re: [Tutor] Changing the interpreter prompt symbol from ">>>" to ???

2016-03-11 Thread William Ray Wing
> On Mar 11, 2016, at 10:31 PM, boB Stepp wrote: > > I must be bored tonight. I have to confess that when copying and > pasting from the interpreter into a plain text email, I often find it > cluttered to confusing by all the ">>>..." that can result from nested > quoting. So I poked around on

Re: [Tutor] Python help

2015-08-24 Thread William
oop went a = 0 #increments with each loop c = 0 while (c<5): b = a+1 c = a+b a += 1 print(c) print("Number of loops until c >= 5:", a) I think that is all that is being asked here. HTH! -William ___ Tutor maillist

Re: [Tutor] Hi

2015-04-11 Thread William Ray Wing
> On Apr 11, 2015, at 8:32 AM, Vick wrote: > [byte] > However I recently talked to a guy online and he told me the following, > which actually intrigued and surprised me: > > "The vast majority of numerical codes in science, including positional > astronomy, are written in Fortran and C/C++.

Re: [Tutor] Trouble creating a pygame.font.SysFont, was Re: (no subject)

2014-12-01 Thread William Becerra
It seems I forgot to write pygame.init() Thank you guys for your time it is much appreciated.  On Saturday, 29 November 2014, 15:31, Peter Otten <__pete...@web.de> wrote: William wrote: Hello William; please provide a meaningful subject line so that your readers get a hint w

[Tutor] (no subject)

2014-11-29 Thread William
the following error Traceback (most recent call last): File "/home/william/Desktop/Pygame/Python 3X/Drawing_Shapes.py", line 48, in font = pygame.font.SysFont('Calibri', 25, True, False) File "/usr/local/lib/python3.4/dist-packages/pygame/sysfont.py", line 614, in S

Re: [Tutor] hexodecimal to decimal form

2014-11-11 Thread William Becerra
Thank you for your time On 11 Nov 2014 15:02, "Dave Angel" wrote: > William Becerra Wrote in message: > > Hello, I'm new to programming using Python 2.7.8 and Windows 8 OSI'm > reading How to Think Like a Computer Scientist - learning with pythonon > chapter 1

[Tutor] hexodecimal to decimal form

2014-11-11 Thread William Becerra
Hello, I'm new to programming using Python 2.7.8 and Windows 8 OS I'm reading How to Think Like a Computer Scientist - learning with python on chapter 12.2 theres the following code: class Point: pass blank = point() blank.x = 3.0 blank.y = 4.0 >>print blank.x 3.0 >>print blank.y 4.0 >>prin

Re: [Tutor] Strings

2014-11-06 Thread William Becerra
Thank you guys On Thu, Nov 6, 2014 at 3:39 AM, Dave Angel wrote: > William Becerra Wrote in message: > > > > have the following code: > names = "John, Cindy, Peter" > def find(str, ch, s): > index = 0 > while index < len(str): >

[Tutor] Strings

2014-11-05 Thread William Becerra
Hey, I'm new to programming running Python 2.7.8 Windows 8.1 I was reading 'How to Think Like a Computer Scientist- Learning with Python' chapter 7 sub-chapter 7.7 I have the following code: names = "John, Cindy, Peter" def find(str, ch, s): index = 0 while index < len(str): if s==

Re: [Tutor] Flow of execution of execution

2014-11-03 Thread William Becerra
Thank you guys On Mon, Nov 3, 2014 at 11:26 PM, Alan Gauld wrote: > On 03/11/14 18:04, William Becerra wrote: > > def printMultiples(n, high): >> i = 1 >> while i<=high: >> print n*i, "\t", >> i = i + 1 >>

[Tutor] Flow of execution of execution

2014-11-03 Thread William Becerra
hey, I'm new to programming. running Python 2.7.8 on windows 8 OS Im on chapter 6 of a book called 'How to Think Like a Computer Scientist-Learning with Python' here is the code: def printMultiples(n, high): i = 1 while i<=high: print n*i, "\t", i = i + 1 print def multi

[Tutor] Differentiating vowels from consonants

2014-10-26 Thread William Becerra
Hello, I'm new to programming Running Python 2.7.8 on Windows 8 OS I was reading http://www.sthurlow.com/python/lesson07/ Here there is an example of the for loop with a Cheerleader program but the program is not able to print grammatically correct. word = raw_input("Who do you go for? ") for l

Re: [Tutor] Return Statement error

2014-10-13 Thread William Becerra
I am familiar with funtions, i didn't realize i had to write the return statement inside a function...Thank you all..that was very helpful On 13 Oct 2014 01:03, "Steven D'Aprano" wrote: > On Sun, Oct 12, 2014 at 04:38:54PM +0200, William Becerra wrote: > > Hello

[Tutor] Return Statement error

2014-10-12 Thread William Becerra
error appears The window says the following There's an error in your program: ***'return' outside function (C:/Users/William/Desktop/Python Files/Function compare.py, line6) What am I doing Wrong? I noticed that if i substitute all the return keywords with print the code runs corr

[Tutor] Infinite Recursion

2014-10-12 Thread William Becerra
Hey, I'm new to programming. Using python 2.7.8 and running windows8 OS I'm reading 'How to think like a computer scientist, learning with Python' I'm in chapter 4 sub-chapter 4.11 Infinite recursion According to the book if I write def recurse(): recurse() I should get the following error F

[Tutor] keyword colors disappear

2014-10-11 Thread William Becerra
Hey, I'm new to programming. Only have about 2 weeks of experience. Using Python 2.7.8 and running Windows 8 I'm having the following problem. I open Python shell press file, new file and write my code(any code) then all the Python keywords appear in their different *colors*, for example print ap

Re: [Tutor] (no subject)

2014-10-09 Thread William Becerra
It is working now. Thank you everyone. It was very helpfull. On Fri, Oct 10, 2014 at 2:36 AM, Alan Gauld wrote: > On 09/10/14 19:38, William Becerra wrote: > > import maths; >> > > Python, like most languages speaks American English > so its math not maths. > &g

[Tutor] (no subject)

2014-10-09 Thread William Becerra
I'm new to programming. Started reading the book 'How to think like a computer Scientist-learning with python'. I'm now in chapter 3 sub-chapter 3.4 Math functions. When I write the following code: import maths; decibel = math.log10 (17.0); angle = 1.5; height = math.sin(angle); print height; I

Re: [Tutor] usage difference between tabs and spaces

2014-09-09 Thread William Ray Wing
On Sep 9, 2014, at 8:27 AM, Mirage Web Studio wrote: > > Hello, > > I am not an advanced programmer, but am very good with keyboard and find > using tabs for syntax and formatting very helpful. But in this list and > other python documentation i have repeatedly seen people recommending > use of

Re: [Tutor] debug and execute python code in Mac

2014-08-28 Thread William Ray Wing
On Aug 27, 2014, at 8:08 PM, Sebastian Silva wrote: > I stumbled today upon this IDE for the mac http://plotdevice.io/ > > From the looks of it, it seems like a nice tool for teaching/learning Python. > Too bad it's mac only. If you try it, do share your experience. I don't use > non-free oper

[Tutor] New dealing with Pythong and programming

2014-08-06 Thread William Vargas
Hello My name is Will, I live in Costa Rica and I really want to learn how to program. In the past, a friend said to me that was really cool but I did not feel the call to learn, but now I was talking to a new friend and he said to me code was really great then I ask what was the best language and

Re: [Tutor] how do I set variables in Python 3.4

2014-07-11 Thread William Ray Wing
On Jul 11, 2014, at 1:50 AM, Danielle Salaz wrote: > I'm a noob to Python and cannot figure out how to complete one of my > assignments. > Welcome to Python - I’d hope you’ve been monitoring this Tutor list for at least a few days - > I am supposed to use operand1=2 and operand2=7 > To com

Re: [Tutor] What are your favourite unofficial resources

2014-06-29 Thread William Ray Wing
Probably obvious (meaning you will get them both 50+ times), but I like both Stackoverflow.com and Doug Hellmann’s site. Thanks, Bill On Jun 29, 2014, at 6:41 PM, Alan Gauld wrote: > I'm looking for tips for an appendix to a book that > I'm working on. > > What are the best unofficial (ie not

Re: [Tutor] which is faster

2014-06-10 Thread William Ray Wing
On Jun 10, 2014, at 2:42 AM, diliup gabadamudalige wrote: > Hi All, > > This is a Pygame related question and if not answered it's ok and I apologise > for asking. But if someone can answer it is much appreciated. > > In Pygame Which is faster? > > 1. filling the screen with a colour > or

Re: [Tutor] Help with Guess the number script

2014-03-11 Thread William Ray Wing
On Mar 11, 2014, at 8:06 PM, Scott W Dunning wrote: [mega byte] >> > Yeah, I had no idea that my messages were coming through in HTML, nor what it > looked like until someone sent me a section showing me what it looked like, I > can see how that would be frustrating. > > I’m using the mail

Re: [Tutor] same python script now running much slower

2013-12-30 Thread William Ray Wing
On Dec 30, 2013, at 7:54 PM, "Protas, Meredith" wrote: > Thanks for all of your comments! I am working with human genome information > which is in the form of many very short DNA sequence reads. I am using a > script that sorts through all of these sequences and picks out ones that > contain

Re: [Tutor] same python script now running much slower

2013-12-30 Thread William Ray Wing
On Dec 30, 2013, at 1:37 PM, "Protas, Meredith" wrote: > Hi, > > I'm very new to python so I'm sorry about such a basic question. > > I am using a python script generated by another person. I have used this > script multiple times before and it takes around 24 hours to run. Recently, > I ha

Re: [Tutor] Quantum computing

2013-12-14 Thread William Ray Wing
On Dec 14, 2013, at 1:22 PM, Mark Lawrence wrote: > On 14/12/2013 17:14, Alan Gauld wrote: >> On 14/12/13 15:37, Mark Lawrence wrote: >>> >>> I believe that quantum computing is way OT for the Python tutor mailing >>> list. >> >> Yeah, you are probably right. Although there are precedents where

Re: [Tutor] Subprocess communications query

2013-12-11 Thread William Ray Wing
On Dec 10, 2013, at 2:28 PM, Reuben wrote: > Hi, > > There exists two Linux machines A and B. Machine B contains python script > which needs to be run e.g. Test.py > > In order to run that script, machine A needs to telnet into machine B and > then execute "python Test.py" > > How can this b

Re: [Tutor] Load Entire File into memory

2013-11-05 Thread William Ray Wing
On Nov 5, 2013, at 11:12 AM, Alan Gauld wrote: > On 05/11/13 02:02, Danny Yoo wrote: > >> To visualize the sheer scale of the problem, see: >> >> http://i.imgur.com/X1Hi1.gif >> >> which would normally be funny, except that it's not quite a joke. :P > > I think I'm missing something. All I s

Re: [Tutor] Load Entire File into memory

2013-11-04 Thread William Ray Wing
On Nov 4, 2013, at 8:30 AM, Amal Thomas wrote: > Yes I have found that after loading to RAM and then reading lines by lines > saves a huge amount of time since my text files are very huge. > [huge snip] > -- > AMAL THOMAS > Fourth Year Undergraduate Student > Department of Biotechnology > II

Re: [Tutor] Resetting state of http.client/httplib HTTPSConnection objects

2013-08-26 Thread William Ray Wing
On Aug 26, 2013, at 5:28 AM, Chris Down wrote: > On 2013-08-26 01:23, Alan Gauld wrote: >> While this is technically within the remit of this list, since its >> about a standard library module, I suspect you might be better >> off asking on the main tutor list. It's at a deeper level of >> skill/

[Tutor] library:

2013-08-21 Thread William Crowder
I am reading posts and watching videos. I am following along with the shell, i am retaining the info. But WHAT is a library? Thanks, everyone. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://ma

Re: [Tutor] Python web script to run a command line expression

2013-05-18 Thread William Ranvaud
I'm not sure if this is what you are looking for or if this will work on WAMP but python has a virtual terminal emulator called Vte or python-vte. I use it to display the terminal and run commands. I'm using it on Linux by adding "from gi.repository import Vte". Hope it helps. On 18-05-2013

Re: [Tutor] (no subject)

2013-03-24 Thread William Ray Wing
On Mar 24, 2013, at 8:13 PM, Mandi Seger wrote: > Hello, everyone, > > I am looking for suggestions on a beginner's book for learning Python. I have > a nursing background with basic science and math education. I have no > programming experience in any computer language. > > I am currently en

Re: [Tutor] python on ipad

2013-03-10 Thread William Ray Wing
On Mar 10, 2013, at 6:18 PM, Sven wrote: > On 10 March 2013 21:42, Benjamin Fishbein wrote: > Hello. I wrote some python programs for my small business that I run on my > computer...macbook air. I'm planning to backpack around Mexico and perhaps > south america. I'll still be working though. B

Re: [Tutor] simon says

2012-09-10 Thread William R. Wing (Bill Wing)
On Sep 10, 2012, at 1:15 PM, Matthew Ngaha wrote: > hi guy my book has set me an assignment of a simon says game but i > don't really understand what it's asking me to do. here's the text: > > write a version of the simon says game where a player has to repeat an > ever-growing, random sequence

Re: [Tutor] running more than one python program at the same time

2012-09-03 Thread William R. Wing (Bill Wing)
On Sep 3, 2012, at 11:01 AM, Benjamin Fishbein wrote: > Hi. I started running the program in the terminal rather than IDLE. It works, > and I can run several programs at the same time. The problem is that when the > program is finished running, it prints: > exit status: 0 > logout > > [Process

Re: [Tutor] Running a script in the background (this time Cc'd to the list)

2012-09-02 Thread William R. Wing (Bill Wing)
On Sep 2, 2012, at 6:15 PM, Alan Gauld wrote: > On 02/09/12 21:30, William R. Wing (Bill Wing) wrote: > >> My suggestion would be to take the script and run it through py2app, >> which will turn it into a stand-alone application which can then >> be added to your

Re: [Tutor] Running a script in the background

2012-09-02 Thread William R. Wing (Bill Wing)
On Sep 2, 2012, at 5:06 PM, Michael Lewis wrote: > > > Michael, I see you have several Windows answers, but it doesn't look as > though you found quite what you were hoping for on OSX. My suggestion would > be to take the script and run it through py2app, which will turn it into a > stand-a

Re: [Tutor] Running a script in the background

2012-09-02 Thread William R. Wing (Bill Wing)
On Sep 1, 2012, at 11:29 PM, Michael Lewis wrote: > Hi everyone, > > I am sorry to ask this when there are a lot of resources online regarding the > subject, but I've spent the past two days trying to figure this out and I > don't get it. > > I have a script that will run forever. Since it ru

Re: [Tutor] Tutor Digest, Vol 102, Issue 98

2012-08-31 Thread William R. Wing (Bill Wing)
On Aug 31, 2012, at 4:31 AM, Mark Lawrence wrote: > On 31/08/2012 04:27, William R. Wing (Bill Wing) wrote: >> >> How about - >> >>>>> for item in iter(list): >>>>> ….print item > > Overengineering? :) A list is an iterator. > Ri

Re: [Tutor] Tutor Digest, Vol 102, Issue 98

2012-08-30 Thread William R. Wing (Bill Wing)
> On Aug 30, 2012, at 8:15 PM, tutor-requ...@python.org wrote: > >> Message: 6 >> Date: Fri, 31 Aug 2012 00:15:41 + >> From: Ashley Fowler >> To: "tutor@python.org" >> Subject: [Tutor] Printing a list as a column >> Message-ID: >> >> <6962c976ae76ac4298cbf6fd6d0c63561f37c...@bl2prd071

Re: [Tutor] running more than one python program at the same time

2012-08-29 Thread William R. Wing (Bill Wing)
On Aug 28, 2012, at 11:28 PM, aklei...@sonic.net wrote: >> On 08/28/2012 03:30 PM, Benjamin Fishbein wrote: >>> Hello, >>> I wrote a program that I want to have running 24/7. But the problem is >>> that I also want to write and run other programs. I'm using Idle and it >>> won't let me run more th

Re: [Tutor] What are all those letters after terminal commands?

2012-08-23 Thread William R. Wing (Bill Wing)
On Aug 23, 2012, at 12:59 PM, Steven D'Aprano wrote: > On 23/08/12 23:18, Cecilia Chavana-Bryant wrote: > [...] >> I found this command: >> mkdir -p i/like/icecream. I am guessing that the -p stands for directory >> path? > > Ha, that's the trouble with command line interfaces -- they tend to en

Re: [Tutor] What are all those letters after terminal commands?

2012-08-23 Thread William Ray Wing
On Aug 23, 2012, at 9:18 AM, Cecilia Chavana-Bryant wrote: > Hola, > > I'm going through the 'Command line crash course' by Zed Shaw, thanks to the > people that recommended this book, its quite a good course, I can see what > the author was going for with the title but if it wasn't for your

Re: [Tutor] Confusion with Python, Bash and Command Prompt

2012-08-10 Thread William R. Wing (Bill Wing)
On Aug 10, 2012, at 12:20 AM, Steven D'Aprano wrote: > [byte] > That is not Python's doing. That is the shell, and so it depends > entirely on your choice of operating system and shell. It works on Unix, > Linux and probably Mac OS, but not on Windows. > Yes, it definitely does work on Mac O

Re: [Tutor] Problem When Iterating Over Large Test Files

2012-07-18 Thread William R. Wing (Bill Wing)
On Jul 18, 2012, at 10:33 PM, Ryan Waples wrote: > Thanks for the replies, I'll try to address the questions raised and > spur further conversation. > >> "those numbers (4GB and 64M lines) look suspiciously close to the file and >> record pointer limits to a 32-bit file system. Are you sure you

Re: [Tutor] Problem When Iterating Over Large Test Files

2012-07-18 Thread William R. Wing (Bill Wing)
On Jul 18, 2012, at 7:33 PM, Ryan Waples wrote: > I'm seeing some unexpected output when I use a script (included at > end) to iterate over large text files. I am unsure of the source of > the unexpected output and any help would be much appreciated. > > Background > Python v 2.7.1 > Windows 7 3

[Tutor] Newbe problem with wxPython on Mac OS X (need a work-around)

2012-06-05 Thread William R. Wing (Bill Wing)
I'm running Mac OS-X 10.7.4 (Lion) and have installed Python 2.7 from Python.org. It's in /Library so as to not conflict with the one from Apple in /System/Library and I've set my .profile to make it my default. So far so good. I decided I wanted to start playing with wxPython, and downloaded

Re: [Tutor] how to rewrite area.py

2012-02-22 Thread William Stewart
width+width+width+width = 4*width RECTANGLES:     area = width*height     perimeter = width+height+width+height = 2*(width+height) CIRCLES:     area = pi*radius**2     circumference = 2*pi*radius         --- On Tue, 2/21/12, Alan Gauld wrote: From: Alan Gauld Subject: Re: [Tutor] how

Re: [Tutor] how to rewrite area.py

2012-02-22 Thread William Stewart
On 2/21/2012 6:51 PM, William Stewart wrote: hello I need to rewrite area.py program so that it has separate functions for the perimeter and area of a square, a rectangle, and a circle (3.14 * radius**2). "Need to"" - why? Is this a homework assignment? I

[Tutor] how to rewrite area.py

2012-02-21 Thread William Stewart
hello I need to rewrite area.py program so that it has separate functions for the perimeter and area of a square, a rectangle, and a circle (3.14 * radius**2). I am horrible at math and I cannot even figure out what I need to do for this Any help would be appreciated All I have is the menu which

Re: [Tutor] string integers?

2012-02-12 Thread William Stewart
Thank you for the reply It worked fine ! --- On Sun, 2/12/12, Steven D'Aprano wrote: From: Steven D'Aprano Subject: Re: [Tutor] string integers? To: tutor@python.org Date: Sunday, February 12, 2012, 6:50 PM William Stewart wrote: > this is the code I have >  str1 = raw_

Re: [Tutor] string integers?

2012-02-12 Thread William Stewart
these days I know you all dont have alot of time either and thats why I am extremely appreciative of everyones help     --- On Sun, 2/12/12, Dave Angel wrote: From: Dave Angel Subject: Re: [Tutor] string integers? To: "William Stewart" Date: Sunday, February 12, 2012, 5:07 PM On 02

[Tutor] string integers?

2012-02-12 Thread William Stewart
I am trying to get 2 string variables and 2 integer variables to be able to be multiplied can anyone tell me what I did wrong   str1 = raw_input("Type in a String: ") str2 = raw_input("Type in a String: ") int1 = raw_input("Type in a integer variable: ") int2 = raw_input("Type in a integer variabl

[Tutor] Question on how to do exponents

2012-02-06 Thread William Stewart
Hello everyone, I am making a calculator and I need to know how to make it do exponents and remainders How can I input this info in python? Any help would be appreciated Thanks --- On Mon, 2/6/12, Steven D'Aprano wrote: From: Steven D'Aprano Subject: Re: [Tutor] Sandbox Game To: "tutor" Date

[Tutor] New user Knows nothing about python I Need HELP

2012-01-30 Thread William Stewart
hello I am trying to make a math functions program which includes ADDITION: 2+2=4 SUBTRACTION: 4-2=2 MULTIPLICATION: 4*2=8 DIVISION: 4/2=2 EXPONENT: 2**3=8 REMAINDER: 5%2=1 I have no Idea how to start this task I have never used ANY programming programs before And I dont Know the language eit

[Tutor] Scrabble Help

2010-09-05 Thread William Allison
I'd like to write a program to help find words for Scrabble but I've been having trouble right from the beginning. tiles = 'aeirstw' dictionary = ['aardvark', 'cat', 'dog', 'taste', 'stare', 'wrist'] for word in range(len(dictionary)): for letter in range(len(dictionary[word])): if d

Re: [Tutor] has it gone quiet or is it just me?

2010-07-21 Thread William Witteman
been hearing crickets as well. -- yours, William ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] What Editori?

2010-02-24 Thread William Witteman
itors. Certainly you would find many who would (perhaps strenuously) refute a suggestion that vi[m]|emacs are not "powerful". Of the many editors mentioned in this thread at least vim, emacs and geany have integration available for any version contr

Re: [Tutor] datetime, time zones, and ISO time

2010-02-17 Thread William Witteman
ent* offset between local time and >utc. I know the system has this information already; it doesn't >require any kind of fancy calculations about global politics or >anything. Well, does time.timezone help? It returns time offset from UTC in seconds. -- yours, William _

Re: [Tutor] datetime, time zones, and ISO time

2010-02-17 Thread William Witteman
suitable for every application.[1] I suspect that it'll take some fooling around to see how it works though - use the interpreter or ipython to test things out. [1] http://docs.python.org/library/datetime.html -- yours, William ___ Tutor mail

Re: [Tutor] Recursive user input collection problem

2009-10-15 Thread William Witteman
On Thu, Oct 15, 2009 at 07:54:23AM -0400, Dave Angel wrote: >William Witteman wrote: >>Thanks to all who responded. There were several good points about the >>code itself, all of which both helped and work. >> >>I will likely use Alan's example because I find it

Re: [Tutor] Recursive user input collection problem

2009-10-14 Thread William Witteman
how I was doing it). Lie's suggestion that I didn't understand the calling structure of Python was right on the money, and his included link helps with that, too. Thanks again. -- yours, William ___ Tutor maillist - Tutor@python.org To

[Tutor] Recursive user input collection problem

2009-10-13 Thread William Witteman
This works fine if I put in good input, but not if I pass in a bad value. Can anyone show me where I have gone astray? Thanks. -- yours, William ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Having trouble with a dictionary of lists

2009-09-04 Thread William Witteman
On Fri, Sep 04, 2009 at 09:54:20AM -0700, Emile van Sebille wrote: >On 9/4/2009 9:09 AM William Witteman said... >>On Thu, Sep 03, 2009 at 11:26:35AM -0700, Emile van Sebille wrote: >> >>Thanks to Emile for pointing out the error. There were several other >>errors - in

Re: [Tutor] Having trouble with a dictionary of lists

2009-09-04 Thread William Witteman
f_columns)] sortedtermlist = termdict.keys() sortedtermlist.sort() counter = 0 for sslist in sslists: for term in sslist: #debug print(counter) #debug print(term) termdict[term][counter] = term counter = counter + 1 for term in sortedterml

[Tutor] Having trouble with a dictionary of lists

2009-09-03 Thread William Witteman
= 0 for term in sslist: # The line below is where my program barfs. sortedtermdict[term][counter] = term counter = counter + 1 for row in sortedtermdict: fn.writerow(row) -- yours, William ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tokenizing Help

2009-04-22 Thread William Witteman
he only type of file I'd need to parse, I'd agree with you, but this is one of at least 4 formats I'll need to process, and so a robust methodology will serve me better than a regex-based one-off. -- yours, William ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tokenizing Help

2009-04-22 Thread William Witteman
I could use from the base library. >> > > What is your ultimate goal? These references will populate a django model. -- yours, William ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tokenizing Help

2009-04-22 Thread William Witteman
an appropriate tool and hints on possible >algorithms. I hope this helps. I spent quite some time with pyparsing, but I was never able to express the rules of my grammar based on the examples on the website. -- yours, William ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Tokenizing Help

2009-04-22 Thread William Witteman
cipate what will be found What I am looking for is some help to get started, either with explaining the implementation of one of the modules with respect to my format, or with an approach that I could use from the base library. Thanks. -- yours, W

[Tutor] Long list error

2009-03-08 Thread William Stephens
teger Is there a type or something that I can do to prevent this error? Or am I on the wrong track for such large primes? Thanks, William Stephens ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How Compute # of Days between Two Dates?

2008-09-01 Thread William Allison
Wayne Watson wrote: > That's the question in Subject. For example, the difference between > 08/29/2008 > and 09/03/2008 is +5. The difference between 02/28/2008 and 03/03/2008 is 4, > leap year--extra day in Feb. I'm really only interested in years between, > say, > 1990 and 2050. In other wor

[Tutor] Looking for IEEE "double-precision" library

2008-07-10 Thread Tse, William: #CIPO - OPIC
Can anyone tell me where I can download the latest version of the fpconst.py library ? This library has a set of constants/functions for working with IEEE754 double-precision special values and provides support for SOAP datatype specification. There are older links to the fpconst library that no

[Tutor] Python and SOAP Web Services

2008-06-20 Thread Tse, William: #CIPO - OPIC
I am trying to use a SOAP Web Service with Python 2.5 and I'm following the instructions in Chapter 12 of the "Diving into Python" tutorial. It refers to three libraries that I'm having problems accessing or that appear out of date : PyXML, fpconst and SOAPpy. The tutorial also seems to be for Pyt

Re: [Tutor] why?

2008-05-29 Thread Robert William Hanks
happenig wen python round the the cubed root. is this code wrong? On 5/29/08, Kent Johnson <[EMAIL PROTECTED]> wrote: > On Wed, May 28, 2008 at 8:43 PM, Robert William Hanks > <[EMAIL PROTECTED]> wrote: > > > > Need ti find out whem a number o this form i**3+j**3+1 is ac

[Tutor] why?

2008-05-28 Thread Robert William Hanks
Need ti find out whem a number o this form i**3+j**3+1 is acube. tryed a simple brute force code but, why this not work? def iscube(n): cubed_root = n**(1/3.0) if round(cubed_root)**3 == n: return True else: return False for i in range(1,1000): for j in range

  1   2   >