's not all unchanging. Take, for example,
<http://www.python.org/doc/current/tut/node16.html>. I have wanted to
steer people towards that page a number of times, and that node number
keeps changing.
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
h
On 4/20/05, praba kar <[EMAIL PROTECTED]> wrote:
>In Python what is equivalent to goto statement
http://docs.python.org/tut/node6.html
See, it's those dratted node numbers again. ;-)
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://m
On 4/20/05, Maurice Caret <[EMAIL PROTECTED]> wrote:
>
> other equivalents are in
>
> http://docs.python.org/tut/node10.html
I also missed
<http://docs.python.org/tut/node5.html#SECTION00520>,
for the while statement.
Those URLs just keeg getting better
On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote:
> it would be quite useful for debuging porposes
How does goto help you to remove bugs?
I can certainly see how it helps you put them in in the first place...
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/s
On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote:
> WOW, just greate! ... but i'd like to relax at some more interesting way than
> to comment each of rows
Get a decent text editor.
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http:
oes python have to stop a program? I tried
> end but that did not work.
sys.exit()
Welcome to Python!
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
nd it here -
<http://mail.python.org/mailman/listinfo/tutor>.
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
in menu.
Funny you should mention that...
http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/832906c6122dc137/f4cca2f994881220#f4cca2f994881220
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote:
> > Or, if you really like the spirit of goto,
> > use "if 0:".
>
> ... and add tabs to each string
Get a decent text editor.
What are you using? Notepad?
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http:/
nce Guido to introduce a 'goto'
statement than it would be to learn vi.
I'm really not sure if I'm joking or not.
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
can I set up Ant to do this? Sorry, I'm no expert with Ant.
http://www.pycs.net/users/177/stories/11.html
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
his. Is a dictionary what I should be
> using? Thanks for any help. Hope this makes sense, its getting very
> late here.
Sounds like homework, so I'll just say that yes, a dictionary would be
ideal for what you are trying to do.
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunning
m>.
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
exe] ..
'''
print between(foo, '[', ']')
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
alke's "Wrapping command-line programs" series might come in
handy:
http://www.dalkescientific.com/writings/diary/archive/2005/04/12/wrapping_command_line_programs.html
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
t; > books, but i want this directory as a subdirectory of test.
> http://docs.python.org/ref/string-catenation.html
For this job, os.path.join() might be better. See
<http://docs.python.org/lib/module-os.path.html>.
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
nds.getstatusoutput('ls /bin/ls')
You'll certainly need to import *something*. Have you looked at the
subprocess module?
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
I've been a PHP and Perl programmer (amongst others) for 10 years or
more now, and a Python coder for 3 or so.
I have come to hate PHP now, it's pseudo-OOP is awful, it's dog slow at
handling XML, it's so easy to use that most of the programmers I've had
contact with are very sloppy and do things
QOTW: "Sure, but what about the case where his program is on paper tape and
all he has for an editor is an ice pick?" - Grant Edwards
"And in this case, you get improved usability *and* improved speed at the
same time. That's the way it should be." - Fredrik Lundh
The Simplest Possible Metac
ing I learned from bitter experience when I tried to be smart
> and make script-based edits over entire directories of html files.
See http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/56037
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://ma
QOTW: "Sure, but what about the case where his program is on paper tape and
all he has for an editor is an ice pick?" - Grant Edwards
"And in this case, you get improved usability *and* improved speed at the
same time. That's the way it should be." - Fredrik Lundh
The Simplest Possible Metac
> >>> safetyChecker = re.compile(r"^[-\[\]0-9,. ]*$")
..doesn't the dot (.) in your character class mean that you are allowing
EVERYTHING (except newline?)
(you would probably want \. instead)
/Simon
--
http://mail.python.org/mailman/listinfo/python-list
ot;
I'm running out of ideas what to try next, so suggestions/ideas appreciated!
/Simon
--
http://mail.python.org/mailman/listinfo/python-list
is missing a vital battery.
It indicates to *me* that people aren't reading the FAQ. ;-)
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
"Mark Lawrence" wrote in message
news:mailman.2752.1384654581.18130.python-l...@python.org...
> All the references regarding the subject that I can find, e.g.
> http://stackoverflow.com/questions/1829872/read-datetime-back-from-sqlite-as-a-datetime-in-python,
>
> talk about creating a table in
> basically what I wanna do is this :
>
> x = 4
> y = 7
> def switch (z,w):
> ***this will switch z to w and vice verca***
> c= z
> z=w
> w=c
> print 'Now x =', w, 'and y = ' , z
> return w
> x = switch(x,y)
>
> How am I supposed to do so I can return also a value to th
ld aim more for consistency (the hobgoblin that may be), which is what
makes code easier to grok. Stop arguing, start thinking about others who will
have to read your code. What is better in your subjective opinion means very
little. Having commonly understandable style is what matters, and wha
[4,4,4,4]]
Use the transpose() method:
http://docs.scipy.org/doc/numpy-1.10.0/reference/generated/numpy.ndarray.transpose.html
Simon
--
Sent from Kaiten Mail. Please excuse my brevity.
--
https://mail.python.org/mailman/listinfo/python-list
On Wednesday, 22 October 2014 19:43:25 UTC+1, luc2 wrote:
> hello, would you know how to make data_files work in setuptools ?
> i can't figure out how to put datas in the generated .tar.gz
If you're creating an sdist then you'll need to create a MANIFEST.in file in
the same folder as setup.py wi
Just out of academic interest, is there somewhere in the Python docs where the
following is explained?
>>> 3 == True
False
>>> if 3:
print("It's Twue")
It's Twue
i.e. in the if statement 3 is True but not in the first
--
https://mail.python.org/mailman/listinfo/python-list
Thanks everyone. That's a thorough enough explanation for me.
--
https://mail.python.org/mailman/listinfo/python-list
On Thursday, 23 October 2014 20:02:43 UTC+1, Chris Angelico wrote:
> I don't think it's possible to auto-solve the Google Groups formatting
> issues at the mailing list level, as the fundamental problem is that
> information isn't being transmitted. (Forcing everything to be wrapped
> and forcing
orXML/lxml but best to cross that bridge when gotten to, as
they say.
Thank you for reading.I look forward to hearing from you.
Yours
Simon Evans
--
https://mail.python.org/mailman/listinfo/python-list
Dear Terry Reedy
I am using operating system Windows 7.
I put the HTML TreeBuilder / htm5 library into the Python2.7 folder.
I read that the LXML Treebuilder /lmxl installs itself automatically to the
Python2.7 installation, so that is why I am not having difficulty with that
installation.
I
I have proceeded to click on the 'setup.py' in the html5-0.999 lib and got a
python console for a few seconds, this may have been the installation of the
HTML5 parser/ treebuilder - I will have to put the code that did not work to it
previously to it again, hopefully it will.
--
https://mail.
Dear Mark Lawrence,
I have tried inputting the code in the first link, re:
>>> import lxml
>>> import lxml.etree
>>> import bs4.builder.htmlparser
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named htmlparser
>>> import bs4.builder._lxml
>>> import bs4.builder.h
I have got the html5lib-0.999.tar.gz
and the HTMLParser-0.0.2.tar.gz files in my Downloads the problem is how I
install them to Python2.7.
The lxml-3.3.3.win32-py2.7 is an exe file, which upon clicking will install
but obviously the html and the html5 installations are not so
straightforwa
Oh I don't mind quoting console output, I just thought I'd be sparing you
unnecessary detail.
output was going nicely as I input text from my 'Getting Started with
Beautiful Soup' even when the author reckoned things would go wrong - due to
lxml not being installed, things went right, becau
What I meant to say was I can't get the html5 or the html parsers to install, I
have got their downloads in their respective directories in the downloads
directory.
--
https://mail.python.org/mailman/listinfo/python-list
I input 'pip install html5lib' to the Python 2.7 console and got :
>>> pip install html5lib
File "", line 1
pip install html5lib
^
SyntaxError: invalid syntax
>>>
I am not sure what you mean about 'single line paragraphs'. I put my text
into double line spacing in my last mi
I input to the cmd console 'pip install html5lib' but again got an error
return. I thought one of the participants was unhappy about single line spacing
(re: single line paragraphs') Okay I will go back to single line spacing, I
don't think it is all that important, really.
Anyway this is my co
hen please decline to respond, seeing as far as I'm concerned such
trivialities are besides the point, and are of no help, so vent your ire
elsewhere.
YOurs Simon Evans.
--
https://mail.python.org/mailman/listinfo/python-list
re:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Intel Atom>pip install html5lib
Downloading/unpacking html5lib
Running setup.py (path:c:\users\intela~1\appdata\local\temp\pip_build_Intel At
om\html5lib\setup.py) egg_info for pac
urns at the first
line re:-
>>> atag = soup_atag.a
Traceback (most recent call last):
File "", line 1, in
NameError: name 'soup_atag' is not defined
>>>
----
Can anyone tell me where I am going wrong or where the text is wrong ?
So far the given code has run okay, I have put to the console everything the
text tells you to.
Thank you for reading.
Simon Evans
--
https://mail.python.org/mailman/listinfo/python-list
7;>Home</a>
<a href=" http="">
>>> atag.name = 'p'
>>> print(soup)
Test html a tag example
http://www.packtpub.com'>Home</a>
<a href=" http="">
>>> atag.name = 'a'
>>> print(soup)
Test html a tag example
http://www.packtpub.com'>Home</a>
<a href=" http="">
>>> soup_atag = soup
>>> atag = soup_atag.a
>>> print (atag['href'])
http://www.packtpub.com'>Home
>>
Thank you.
Yours
Simon.
--
https://mail.python.org/mailman/listinfo/python-list
d) style guides (or rather policies) exist.
Maybe we should sack such programmers regardless of their other abilities
instead of forcing all, including the conscientious, programmers to adhere to
strict style policies? While I like the idea, I think that a slap on the wrist
and a bit of re-indentation/re-alignment is all that is necessary (although I
have worked with people who consider pure style changes to be a sin too).
Simon
--
https://mail.python.org/mailman/listinfo/python-list
SC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> cd Soup
File "", line 1
cd Soup
^
SyntaxError: invalid syntax
>>>
--
ow if its related to the above or not.
Yours
Simon.
--
https://mail.python.org/mailman/listinfo/python-list
given (according to the book) the output:
---
plants
Maybe that is getting a bit far ahead, but I can't quite see where I have gone
wrong - 'soup' has been defined as an object made of file
'EcologicalPyramid.html
I hope you can help me on this point.
Yours
Simon
--
https://mail.python.org/mailman/listinfo/python-list
ne which
comes after, again I get an error return, my only point is that with the above
input, console return does not seem to infer that soup has not been defined.
You recommend that I put all the code into a file then run it - how do I do
that ? I am new to Python, as you might have gathered.
Thank you for your help.
Yours Simon
--
https://mail.python.org/mailman/listinfo/python-list
Dear Jussi, and Billy
I have changed the input in accordance with your advice, re:
--
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for
@Steven D'Aprano,
I input the following to Python 2.7, which got the following:-
>>> from bs4 import BeautifulSoup
>>> with open("ecologicalpyramid.html","r") as ecological_pyramid:
... soup= next(ecological_pyramid,
rompt to that folder (re: cd Soup)as instructed on
page 30, and put a duplicate file of 'EcologicalPyramid.html' in the python 2.8
directory.
I therefore am wondering where I ought put this html file where the Python
console will recognize it ?
Thank you for your attent
I ran across this and I thought there must be a better way of doing it, but
then after further consideration I wasn't so sure.
if key[:1] + key[-1:] == '<>': ...
Some possibilities that occurred to me:
if key.startswith('<') and key.endswith('>'): ...
and:
if (key[:1], key[-1:]) == ('<
For the record I wasn't worried about the performance. ;-)
It was for Tkinter event strings not markup tags.
I'm glad this was the time winner!
"key and key[0] == '<' and key[-1] == '>'"
Cheers to the folks who did the timings (and saved me from the trouble!)
Last but not least... s[::len(s
of readability and, uh,
unsurprising-ness, and so I was pleased to learn that that was also the fastest.
(FWIW, it seems to me that whoever wrote that line was influenced by shell
programming. It's a shell sort of a trick to my eye.)
When writing Python code I *do* value "clarity, fle
nd how it's not Google Groups.)
I really hope I can be of use with IDLE. I've been using it for years now. :)
Warm regards,
~Simon
--
http://phoenixbureau.org/
http://phoenixbureau.org/blog.html
http://twitter.com/SimonForman
"The history of mankind for the last four centuries
trying to explain to a friend about Usenet
and how it's not Google Groups.)
I really hope I can be of use with IDLE. I've been using it for years now. :)
Warm regards,
~Simon
--
http://phoenixbureau.org/
http://phoenixbureau.org/blog.html
http://twitter.com/SimonForman
&q
I am new to Python, but my main interest is to use it to Webscrape. I have
downloaded Beautiful Soup, and have followed the instruction in the 'Getting
Started with Beautiful Soup' book, but my Python installations keep returning
errors, so I can't get started. I have unzipped Beautiful Soup to
Thank you everyone who replied, for your help. Using the command prompt
console, it accepts the first line of code, but doesn't seem to accept the
second line. I have altered it a little, but it is not having any of it, I
quote my console input and output here, as it can probably explain things
Dear Chris Angelico,
Yes, you are right, I did install Python 3.4 as well as 2.7. I have removed
Python 3.4, and input the code you suggested and it looks like it has installed
properly, returning the following code:-
--
I have downloaded Beautiful Soup 3, I am using Python 2.7. I understand from
your message that I ought to use Python 2.6 or Python 3.4 with Beautiful Soup
4, the book I am using 'Getting Started with Beautiful Soup' is for Beautiful
Soup 4. Therefore I gather I must re-download Beautiful Soup an
Yeah well at no point does the book say to start inputting the code mentioned
in Python command prompt rather than the Windows command prompt, but thank you
for your guidance anyway.
I have downloaded the latest version of Beautiful Soup 4, but am again facing
problems with the second line of c
On Monday, May 12, 2014 12:19:24 AM UTC+1, Simon Evans wrote:
> Yeah well at no point does the book say to start inputting the code mentioned
> in Python command prompt rather than the Windows command prompt, but thank
> you for your guidance anyway.
>
> I have downloaded the la
- but wait a moment 'BeautifulSoup4 works with 2.6+ and 3.x'(Terry Reedy) -
doesn't 2.6 + = 2.7, which is what I'm using with BeautifulSoup4.
--
https://mail.python.org/mailman/listinfo/python-list
Hi Ian, thank you for your help.
Yes that is the book by Vineeth J Nair.
At the top of page 12, at step 1 it says :
1.Download the latest tarball from
https://pypi.python.org/packages/source/b/beautifulsoup4/.
So yes, the version the book is dealing with is beautiful soup 4.
I am using Pyhon 2
The version of Python the book seems to be referring to is 2.7, re: bottom of
page 10-
'Pick the Path variable and add the following section to the Path variable:
;C:\PythonXY for example C:\Python 27'
The version of Beautiful Soup seems to be Beautiful Soup 4 as at the top of
page 12 it states
Thank you for your advice. I did buy a book on Python, 'Hello Python' but the
code in it wouldn't run, so I returned it to the shop for a refund. I am going
to visit the local library to see if they have any books on Python. I am
familiar with Java and Pascal, and looking at a few You tubes on t
Dear Ian,
The book does recommend to use Python 2.7 (see bottom line of page 10).
The book also recommends to use Beautiful Soup 4.
You are right that in that I have placed the unzipped BS4 folder within a
folder, and I therefore removed the contents of the inner folder and
transferred them to
I did download the latest version of Beautiful Soup 4 from the download site,
as the book suggested.
--
https://mail.python.org/mailman/listinfo/python-list
I have removed the original Beautiful Soup 4 download, that I had unzipped to
my Beautiful Soup directory on the C drive.
I downloaded the latest version of Beautiful Soup 4 from the Crummy site.
I unzipped it, and removed the contents of the unzipped directory and placed
contents in my Beautif
Dear Ian, and other programmers, thank you for your advice.
I am resending the last message because this twattish cut and paste facility on
my computer has a knack of chopping off ones original message, I will try to
convey the right message this time :
I have removed the original Beautiful
I downloaded the get-pip.py file. I installed it to the same folder on my C
drive as the Beautiful Soup one in which the Beautiful Soup 4 downloads was
unzipped to. I changed directory to the folder on the Command Prompt, as you
instructed in step 2. I input the code to the console you gave on s
I have input the above code by copy and pasting to the Idle python console, as
the python 2.7 command prompt is fussy about the indentation on the eleventh
line down, if I then indent it, it replies that the indentation is unnecessary
of unexpected, and if I don't it says an indentation is expec
Dear Programmers,
I downloaded Peazip, which doesn't remove file/ folder hierarchy. I unzipped it
and input the same code to the console and it installed Beautiful Soup 4 okay
re:-
-
Microsoft Windows [Version 6.1.76
Dear Programmers,
As anticipated, it has not been to long before I have encountered further
difficulty. At the top of page 16 of 'Getting Started with Beautiful Soup" it
gives code to be input, whether to the Python or Windows command prompt I am
not
sure, but both seem to be resistant to
Dear Programmers, I noticed a couple of typos in my previous message, so have
now altered them thus :-
Dear Programmers,
As anticipated, it has not been to long before I have encountered further
difficulty. At the top of page 16 of 'Getting Started with Beautiful Soup" it
gives code to be in
ger(5) not null default 1,
> visits datetime not null,
> downloads set('None Yet'),
>
> foreign key (counterID) references counters(ID),
> unique index (visits)
> )ENGINE = MYISAM;
>
>
> Is the SET column type the way to do it?
> i tried it but the error i'm receiving is:
>
>
> pymysql.err.InternalError: (1241, 'Operand should contain 1 column(s)')
>
> Please help pick the necessary column type that will be able to store a a
> list of values.
> --
> https://mail.python.org/mailman/listinfo/python-list
If you have a list of values of the same type, but different values,
you need a new table with a foreign key to the table it relates to.
This is a relational database question. You can read more here:
http://en.wikipedia.org/wiki/Database_normalization#Normal_forms
--
Joel Goldstick
http://joelgoldstick.com
He doesn't a many to many table, although that would put the schema
into a classic normal form. Yes, there will be duplicated data. Sometimes
de-normalizing a schema may make things simpler and easier to use for
someone not used to database work. I would also use a many to many table
being familiar with normal forms but it is not a neccessity.
Paul Simon
--
https://mail.python.org/mailman/listinfo/python-list
"Nick the Gr33k" wrote in message
news:l50oo5$k05$1...@dont-email.me...
> 1/11/2013 7:07 ??, ?/? Paul Simon ??:
>
>> If you have a list of values of the same type, but different values,
>> you need a new table with a foreign key to the table it relates
the ease of avoiding it makes the extra character a practical defensive
technique. I agree it is not a worst case.
Simon
--
https://mail.python.org/mailman/listinfo/python-list
or level is higher than N.
None of the above is a good reason to use error *or* success return values in
Python--use exceptions!--but may be encountered when running other processes.
Simon
--
https://mail.python.org/mailman/listinfo/python-list
On 26 February 2015 21:23:34 GMT+00:00, Ben Finney
wrote:
>Simon Ward writes:
>> 0 = success and non-zero = failure is the meme established, rather
>> than 0 = true, non-zero = false.
>
>That is not the case: the commands ‘true’ (returns value 0) and ‘false’
>(r
ruth and falseness are inverted. No programming language
>other than that provided by system shells I have used evaluates 0 to
>true.
I hope the following examples from bash illustrate this:
$ (( 0 )) && echo success
$ (( 1 )) && echo success
success
$ (( 0 )) ; echo
On 27 February 2015 20:06:25 GMT+00:00, Simon Ward
wrote:
>
>I mentioned the true and false. OK, so it's a meme, but it's based on a
>false (pun intended) understanding of exit status codes. That success
>evaluates to true and failure evaluates to false does not mean th
d 1.0.1 and it should build against any version in these
branches. I also have pyOpenSSL built against these branches.
Simon
--
A complex system that works is invariably found to have evolved from a
simple system that works.—John Gall
--
https://mail.python.org/mailman/listinfo/python-list
Good morning,
Everything else appeared to work though.
Kept getting the windows 'donut' telling
me it was doing something, but then
the program did not appear.
Windows 7 Home Premium Service Pack 1 intel 64 bit pc.
Kind regards
Simon Ball
Luton
Bedfordshire
UK
--
Using Opera
Dear Programmers,
Thank you for your advice regarding giving the console a current address in the
code for it to access the html file.
The console seems to accept the code to that extent, but when I input the two
lines of code intended to access the location of a required word, the console
re
Dear Mark Lawrence, thank you for your advice.
I take it that I use the input you suggest for the line :
soup = BeautifulSoup("C:\Beautiful Soup\ecological_pyramid.html",lxml")
seeing as I have to give the file's full address I therefore have to modify
your :
soup = BeautifulSoup(ecological_py
Dear Peter Otten, thank you for your reply that I have not gone very far into
the detail of which, as it seems Python console cannot recognise the name 'f'
as given it, re output below :
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright"
Dear Peter Otten,
Incidentally, you have discovered a fault in that there is an erroneous
difference in my code of 'ecologicalpyramid.html' and that given in the text,
in the first few lines re:
plants
1000
Dear Peter Otten,
Yes, I have been copying and pasting, as it saves typing. I do get 'indented
block' error responses as a small price to pay for the time and energy thus
saved. Also Console seems to reject for 'indented block' reasons better known
to itself, copy and pasted lines that it accep
Dear Peter Otten,
I typed in (and did not copy and paste) the code as you suggested just now
(6.28 pm, Sunday 12th July 2015), this is the result I got:
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit
On 23 August 2015 00:06:44 BST, Chris Angelico wrote:
>Precisely. Every time you support multiple versions of some
>dependency, you have to test your code on all of them, and in the
>common case (new features added in newer versions), you have to target
>the oldest and weakest version.
Just don
Regular_expression#Patterns_for_non-regular_languages
[3]: https://en.wikipedia.org/wiki/Regular_language
Simon
--
Sent from Kaiten Mail. Please excuse my brevity.
--
https://mail.python.org/mailman/listinfo/python-list
f spaces. If you don't use such an editor, and you really
can't tolerate the different style, you can use another tool to reindent your
code.
Simon
--
https://mail.python.org/mailman/listinfo/python-list
to highlight tabs and trailing
spaces.
Simon
--
https://mail.python.org/mailman/listinfo/python-list
f you could tell me where I am going wrong.
Yours faithfully
Simon Evans.
>>>import urllib
>>>import re
>>>htmlfile = urllib.urlopen("http://www.racingpost.com/horses2/cards/card.sd?
On Tuesday, August 12, 2014 9:00:30 PM UTC+1, Simon Evans wrote:
> Dear Programmers,
>
> I have been looking at the You tube 'Web Scraping Tutorials' of Chris Reeves.
> I have tried a few of his python programs in the Python27 command prompt, but
> altered them from a
'RacingPost.com' 'SportingLife.com''Oddschecker.com' and
'Bestbetting.com' which is what I am interested in working on.
Hope you can help.
Yours Simon Evans.
--
https://mail.python.org/mailman/listinfo/python-list
selected text rather than replacing it with a tab character. Shift-tab
probably out dented too.
Simon
--
Sent from Kaiten Mail. Please excuse my brevity.
--
https://mail.python.org/mailman/listinfo/python-list
401 - 500 of 1585 matches
Mail list logo