ror, I can print e.info() and get all
the relevant header information. But I don't want to print. I want the
information from the instance available to use in my script. How do I
accomplish that?
Ray
___
Tutor maillist - Tutor@python.org
To unsubs
On 10/13/2012 05:09 PM, Brian van den Broek wrote:
> On 13 October 2012 19:44, Ray Jones wrote:
>> I am attempting to capture url headers and have my script make decisions
>> based on the content of those headers.
>>
>> Here is what I am using in the relative port
On 10/13/2012 07:50 PM, Steven D'Aprano wrote:
> On 14/10/12 12:45, Ray Jones wrote:
>> On 10/13/2012 05:09 PM, Brian van den Broek wrote:
>>> On 13 October 2012 19:44, Ray Jones wrote:
>>>> I am attempting to capture url headers and have my script make
>>
On 10/13/2012 11:55 PM, Brian van den Broek wrote:
> On 14 October 2012 02:15, Ray Jones wrote:
>> On 10/13/2012 07:50 PM, Steven D'Aprano wrote:
>
>
>>> If you can do `print e.info()`, then you can also do `info = e.info()`
>>> and inspect the info programm
On 10/14/2012 02:26 AM, eryksun wrote:
> e.hdrs['connection'] 'close'
> e.hdrs.getheaders('connection') ['close']
I have often used help() to find my way around imported libraries. I
didn't realize it would a
Part I
I am a good way through MIT's Introduction to Computer Science and
Programming as offered through edX. I'm not certain I'm going to pass
the course this first time through, the major hangup being the
understanding of OOP.
Part II
When the LCM thread came through, I wrote some quick code do
On 11/27/2012 07:27 PM, Steven D'Aprano wrote:
> For something as simple as Least Common Multiple? Using a function is
> much more sensible than writing a class.
>
> OOP is for when you have a single data type that needs *state* and
> *behaviour*. A LCM function only has behaviour, and so a func
STOP SENDING ME MESSAGES I NEVER SIGNED UP TO YOUR MAILING LIST
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
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
> 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
> 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
> 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
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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
> 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++.
> 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
> 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,
>
> 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
> 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
> 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
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
> 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
> 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
> 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
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:
>
> 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
>
> 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
> 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
101 - 141 of 141 matches
Mail list logo