atch this exception - I'm assuming
that the problem is that "a" is an empty object, and so it has not
attributes. Thanks.
--
yours,
William
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
to represent lists or triple-quoted strings. Are there any
other suggestions? Thanks.
--
yours,
William
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ound a way to get now + 120 days, or figured out how to test if a given
datetime falls between the two. Any pointers would be appreciated.
Thanks.
--
yours,
William
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
is figure out what I need to do to get my program
to not barf when it hits an accented character. I've tried adding an
encoding line as suggested here:
http://www.python.org/dev/peps/pep-0263/
What these do is make the program fail to parse the XML at all. Has
anyone encountered this? Su
anyone had any luck getting ElementTree to deal with extended
characters? If not, has anyone got a suggestion for how to pre-process
the text in the XML so it won't barf? Thanks.
--
yours,
William
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
e might be a little stretch. It's
> like a lot of things, the higher learning curve ultimately gets you
> greater rewards.
Using vim is like riding a bicycle - it's hard to learn, but once you
get it, it becomes automatic and can make you intolerant of walking (
more to make a decision if I want to stick with it or just
>stay with VIM.
You don't have to choose, use the viPlugin for Eclipse:
http://www.eclipseplugincentral.com/Web_Links-index-req-viewlink-cid-103.html
--
yours,
William
___
Tutor mai
his is to create blocks when coding in Python
im : :
That's about it. I'm just a vim novice - there are lots of things I
haven't learned or don't use enough and forget.
--
yours,
William
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
g for
implicit 200's, but I'm actually looking for the HTTP response code.
I initially thought that httplib would be the way to go, but it does not
seems to be very user-friendly. There seems to be a class for HTTP
response codes, but I don't know how to use it. Can anyone point the
be only very basic introductions resp.
>recipes.
These are good suggestions; two more are python.org and the tutor list!
If they get stuck they can fall back on the community - the strength of
a language isn't syntax or structure or ease of use, but the core
documentation and community aroun
r"],["second
user alphabetically","most recent timestamp for this user"], ...]
Can anyone suggest an approach for this? Thanks.
--
yours,
William
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
On Fri, Mar 23, 2007 at 05:31:51PM -0700, Bob Gailer wrote:
>William O'Higgins Witteman wrote:
>>I have a list of lists derived from a log file that I want to create a
>>summary of, but I am not sure of an approach to do what I need.
>>
>>Here's a sample of the
how is the best way to find out if a number is a perfect cube in python?
i am working if integer numbers only. i am asking because
pow(1728, 1.0/3.0) --> 11.998
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/
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
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
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
I have looked at several "ide's" but still haven't found a true newbie
python editor mainly need code completion and maybe drop in code like a
wisiwig html editor would give me.
I am looking at python for basically network admin scripts.
If anyone knows of one I would really appreciate a link. By
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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
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
> 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 - 164 of 164 matches
Mail list logo