it, can
someone explain please.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
cale.LC_NUMERIC, "en_DK.UTF-8")
print(locale.atof("3,14"))
See
http://docs.python.org/3/library/locale.html#background-details-hints-tips-and-caveats
for the background.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can d
On 31/12/2013 17:53, eryksun wrote:
On Tue, Dec 31, 2013 at 11:21 AM, Mark Lawrence wrote:
The glossary entry for __slots__ states "A declaration inside a class that
saves memory by pre-declaring space for instance attributes and eliminating
instance dictionaries. Though popular, the tech
On 31/12/2013 21:11, Mark Lawrence wrote:
On 31/12/2013 17:53, eryksun wrote:
Refer to the language reference:
http://docs.python.org/3/reference/datamodel.html#notes-on-using-slots
Not found on the windows CHM file. Looks like another bug report to
keep our lazy, bone idle core developers
, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
n some who pose questions here!!! Happy
New Year to everybody. And as I've already said elsewhere, let's hope
2014 is more code, less bugs :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our
It doesn't help that the
code you've posted isn't even valid. If you add the missing colon at
the end of the for loop, you've still got a problem in that standard
lists don't have a name attribute.
--
My fellow Pythonistas, ask not what our lan
7;ve never used eval in over 10 years of using Python, here's why
http://nedbatchelder.com/blog/201206/eval_really_is_dangerous.html
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
On 03/01/2014 06:18, Keith Winston wrote:
Shoot: I sent this response directly to Mark, without even trimming.
Here it is to the list...
Hi Mark: sorry for unclarity. I am probably going to make a hash of
explaining this, but here goes:
I want to iterate a variable across a list of objects
On 03/01/2014 06:55, Keith Winston wrote:
Mark wrote: You enjoy making life difficult for yourself :) You've
assigned strings to the name func, just assign the functions themselves?
Like.
for func in max, min:
print(func.__name__, func(range(5)))
Output.
max 4
e me Alan, this is an oft used idiom in Python. A typical
example would be having a fast C module but if this can't be imported
fall back to a Python implementation.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can d
On 03/01/2014 21:41, Keith Winston wrote:
--
Keith
Frankly I think you're lining up to jump fences when you're actually
riding on the flat :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mar
docs.python.org/3/library/copy.html
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https:
asssuming that there is one.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://
integers. Use the dis module to compare the byte code that the two
lines of code produce. The difference is interesting.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
future.org/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailma
know where to make the call. Even
then, if memory is being allocated and Python thinks it's still in use,
calling the GC won't have any impact anyway.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
_
h" yet, that's interesting. As usual, I don't totally get it...
Keith
Search for python context managers, then read to your hearts's content :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
ithm or buy more ram :)
A slight aside you've managed to lose all of my context, more problems
with gmail I take it?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
On 08/01/2014 10:41, Alan Gauld wrote:
On 08/01/14 08:15, Mark Lawrence wrote:
Did I? :)
I just saw where I could do os.system('python'), but in restarting the
interpreter I'd lose everything currently loaded: my real question
involves merely pushing the garbage collector
lease Select the number which is the correct definition
of the word:" ,keywords[word]
Please add the needed brackets, print is a function in Python 3, not a
statement.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mar
3.0.html#common-stumbling-blocks
Have you read this document already?
Please don't attach 118kb screenshot files when you could have used cut
and paste for the four lines that are relevant.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for
parameter and prints them to the screen.
This is my closest guess:
def print_ID(“Amy Davidson”, 1)
The def line should finish with a colon. How do you expect to call this
function for "Mark Lawrence", 1? Research something like:- python
functions parameters arguments.
Stud
omputing.co.uk/software/pyqt/download5, find the
section "Binary Packages" and this gives Windows 32 and 64 bit installers.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
On 11/01/2014 15:24, Matthew Ngaha wrote:
On Sat, Jan 11, 2014 at 2:55 PM, Mark Lawrence wrote:
On Windows finding a binary installer is always the first thing to do,
makefiles indeed. Go here
http://www.riverbankcomputing.co.uk/software/pyqt/download5, find the
section "Binary Packages
guage can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
to figure out... maybe next week ;)
A better idea would be to find out why the above dosn't work correctly,
I'll leave that in your capable hands :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
ITHOUT* the -w
flag. Am I correct? You could have found this out for yourself by
using this command:-
2to3 --help
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tuto
ven D'Aprano to supply us with the actual figures from the
timeit module :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.or
nistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
)]
I have increased the size of the two s's to show the problem.
Doug
What has the name you've given your lambda parameter got to do with the
name of your list?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
_
as, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
a shorthand single line form.
hth
If you must top post please get your facts right.
In [1]: X=['washington','adams','jefferson','madison','monroe']
In [2]: print(X[::3])
['washington', 'madison']
In [3]: pri
s both my main and
spare crystal balls are currently being mended. So if you'd be kind
enough to tell us exactly what you've tried and exactly what went wrong
then I'm certain that we'll be able to help.
--
My fellow Pythonistas, ask not what our language can do for you,
our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
ll :-)
Still my favourite
http://english.stackexchange.com/questions/16285/what-is-the-meaning-of-the-expression-we-can-table-this
as it caused a row between UK and US commanders during WWII.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our l
thing from the numpy maths
library and not pure Python.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscri
ythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On 29/01/2014 14:50, Gabriele Brambilla wrote:
thanks to everyone, I've used David's method.
Gabriele
2014-01-29 Mark Lawrence mailto:breamore...@yahoo.co.uk>>
On 29/01/2014 02:09, Gabriele Brambilla wrote:
Hi,
how could I read float numbers if the dat
inting out that there is a difference here between
the OP's 'Site Name's Harbor.JPG' and Peter's "Site Name's Harbor.JPG".
Left as homework for the newbies :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our
On 29/01/2014 19:47, Keith Winston wrote:
On Wed, Jan 29, 2014 at 12:11 PM, Mark Lawrence wrote:
I think it's worth pointing out that there is a difference here between the
OP's 'Site Name's Harbor.JPG' and Peter's "Site Name's Harbor.JPG". Lef
Python 3.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
==2:
return 1
else:
return fib(n-2) + fib(n-1)
thanks,
rakesh
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http
tion options:
https://mail.python.org/mailman/listinfo/tutor
"AttributeError: 'str' object has no attribute 'decode'" is saying that
header_hex has no attribute decode, the string 'hex' doesn't enter into
the equation.
--
My fellow Pythonistas, ask no
nd(fin2.readlines())
with open("D:\\file3.txt", "r+") as fout: fout.write('\n'.join(lines))
Use sets http://docs.python.org/3/library/stdtypes.html#set
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To
Please don't top post on this list.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
__
ll last)
in ()
> 1 re.match(r'',string).group()
AttributeError: 'NoneType' object has no attribute 'group'
In [44]: re.match(r'',string)
Thanks,
santosh
Please do not top post on this list.
--
My fellow Pythonistas, ask not what our language c
On 18/02/2014 20:57, S Tareq wrote:
sorry, is there any other way to convert the coding
Use an editor?
Or try this:-
c:\Users\Mark>2to3 --help
Usage: 2to3 [options] file|dir ...
Options:
-h, --helpshow this help message and exit
-d, --doctests_only Fix up doctests o
u try the main Python
mailing list/newsgroup rather than this tutor list.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
info/tutor, looks as if your choices
are activestate or gmane, I'm unsure as to whether or not you can grab
gzip'd text.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and m
he directory exists.
# A thorough coder would check the errno here
pass
Python 3.3+ allows finer grained error handling than that shown above,
so you could catch FileExistsError, see
http://legacy.python.org/dev/peps/pep-3151/ for the details.
--
My fellow Pythonistas, ask not what our
e that this question is suited to a tutor mailing
list? Strangely enough I don't but I'm pleased to see that you've taken
Ben Finney's advice and gone to the testing mailing list.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our
unction in Python 3, again a great way
to observe what your code is doing.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is ac
r you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscripti
the comparison. You also
don't have to read the whole file just to compare a specific line. I'll
leave you to find out how :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from virus
t thinking straight :(
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www
alue == 'x165'
if 'x165' in value
and every other test I can think of.
Why am I not seeing the "We got a date" message?
PS.
Please don't suggest other modules/packages etc,
I'm using html.parser for a reason.
Frustratedly,
Steven has pointed out the sy
guess < 1 or guess > 100:
Only now do I feel that it's time to point out that the above line would
probably be written by an experienced Python programmer as:-
if 1 > guess > 100:
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do fo
or our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.pyt
ly be helped by the
extremely sensible PEP 434 http://legacy.python.org/dev/peps/pep-0434/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus prot
On 10/03/2014 02:05, Scott W Dunning wrote:
On Mar 8, 2014, at 7:35 AM, Mark Lawrence wrote:
I have no interest in the efficiency, only what is easiest for me to read,
which in this case is the chained comparison. As a rule of thumb I'd also
prefer it to be logically correct :)
as, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@pytho
3 against dbfpy.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
__
istas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@pyt
#x27;')
But I don't know how to pass the os key to the sqlite command.
Thank you in advance for any help,
Kind regards,
http://docs.python.org/3/library/sqlite3.html#module-sqlite3 the 7th
paragraph describes 'parameter substitution'
--
My fellow Pythonistas, ask not wh
7;s reply that was posted on the same day
as your original query?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is act
pecific questions about any problems that you may encounter.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is activ
http://docs.python.org/3/library/collections.html#collections.Counter :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avas
Please raise an issue on the bug tracker if there isn't one already, as
Terry Reedy and others have been doing a lot of work to improve IDLE
recently, helped by PEP 434 "IDLE Enhancement Exception for All Branches".
--
My fellow Pythonistas, ask not what our language can do for
On 26/03/2014 16:54, Alan Gauld wrote:
On 26/03/14 15:38, Mark Lawrence wrote:
On 26/03/2014 01:26, Alan Gauld wrote:
>>> if ph < 7.0:
print(ph, "is acidic.")
elif ph > 7.0:
print(ph, "is basic.")
in my IDLE.
That's pretty ugly and I
;" python string1.py""""" into the interpreter! maybe a dumb
question but i would appreciate the help for sure. thanks :)
Please don't top post on this list.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To
by `cd PythonProjects`…
Because the desktop is hardly ever anywhere near where the cmd prompt
lands you.
So cd desktop usually results in an error and typing the full path (even
with directory completion, Mark) is a royal pain because
you have to remember where it is. There is no ~ shortcut in
e(s, str)
assert isinstance(n, int)
They say that the truth hurts, so if that's the best you can come up
with, I suggest you give up programming :(
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This
, but let's make sure about this.
Can you explain what 'x', 'y' are in this function?
And the difference between eps and epsilon while (ouch) we're at it.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
That's what this site http://pythontutor.com/ claims although I haven't
tried it myself. Hopefully it's of some use to all you newbies out there :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
Thi
hon-libraries/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
_
guage can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or
ndas that does this for you?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
_
is mostly about the basics of generic Python.
gmane.comp.python.pydata or
https://groups.google.com/forum/#!forum/pydata but I'd definitely
recommend the former.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Law
On 09/04/2014 15:17, uga...@talktalk.net wrote:
Is it common for files saved to a working directory to 'mask' library
files located in the Python framework?
-A
Yes.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mar
community such as Dave.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www
istas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@pyt
enter 123&&gf I am not told to try again with a
valid input - how do I implement this in the code above
Thanks
Saba
https://docs.python.org/3/tutorial/errors.html#handling-exceptions is as
good a starting point as any.
--
My fellow Pythonistas, ask not what our language can do for
means least, where is the Python question here?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
on whether you're talking about Outlook the Office application
or Outlook the new name for Hotmail. I think :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because a
ath\to\file.txt'
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
_
professional response.
Jorge
Excellent article here on super for anybody who's interested
http://rhettinger.wordpress.com/2011/05/26/super-considered-super/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This
k not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.o
t our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To unsubscri
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor
l, why should we now
waste our time attempting to help you?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
de see
https://docs.python.org/2/library/array.html#module-array but note that
this does *NOT* exist in Python 3.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and ma
hat our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To unsub
but even then "it falls over" isn't too helpful.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast
On 11/05/2014 16:50, munazah zaidi wrote:
i want help
http://www.catb.org/esr/faqs/smart-questions.html
http://www.sscce.org/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and
ne.split, not
four, and I'm unsure whather or not the call to vector.append is what
you actually want.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because
801 - 900 of 1119 matches
Mail list logo