m guessing that rm is Bob
Martin but who is rf? Shouldn't that be a backslash '\' on Windows?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
somebody please try to slap
some sense into me.
I'm having wonderful thoughts of Michael Palin's favourite Python sketch
which involved fish slapping.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
as, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
http://java.dzone.com/articles/orm-offensive-anti-pattern
Please don't shoot the messenger. More importantly please don't make
him write Java :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
n 3.4
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
ssing through 'print inlist[0]' is possible,i.e it shows
the e;lement. but the list skips it. .
Please enlighten me. .
Thanks.
Why don't you show us your actual code? There is no for loop above and
running the actual code gives "ValueError: 0 is not in list" on the
first pass through the while loop.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
On 01/01/2015 10:15, Steven D'Aprano wrote:
I know that the code you show cannot possibly be the code you are using,
because the code you show fails. If you ran this code, it would raise
TypeError.
Traceback (most recent call last):
File "C:\Users\Mark\Documents\MyPython\mytest
ks.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
s it a
bird, is it a plane, no, it's our resident unicode expert!!!" :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
k not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
ows but I’ve tried
several variations without success. I’ve tried writing the script using
only commands, without the accouterments of a full program (without the
def statement and without the if __name__ == ‘__main__’ …) to no avail.
I’m out of ideas. Any suggestions?
Ken Stewart
Works fi
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
rb and a part of an animal, but what we would
refer to in the UK as "mum" and "dad" :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
ignore him as he's
just not worth the effort.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
On 03/01/2015 17:53, Rick Johnson wrote:
On Saturday, January 3, 2015 4:39:25 AM UTC-6, Mark Lawrence wrote:
I used to get very confused watching the old westerns. The child when
talking about "more" and "paw" wasn't referring to possibly an
adjective, noun or adver
x27;%f' % S, ICON_WARNING,
BUTTON_OK)
For all the formatting options see
https://docs.python.org/3/library/string.html#string-formatting or
https://docs.python.org/3/library/stdtypes.html#old-string-formatting
respectively.
--
My fellow Pythonistas, ask not what our language can do for you,
://docs.python.org/3/library/timeit.html#module-timeit ?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
?
Thank you for your attention,
Yours
Simon
You could put your file on the moon provided you give the code a
complete path to it, something like
r'c:\the\path\to\your\file\called\EcologicalPyramid.html'
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you
form matching "+description)
mechanize._mechanize.FormNotFoundError: no form matching nr 0
pi@raspberrypi ~/facebook $
Can anyone help me futher on?
Maybe
http://stackoverflow.com/questions/10507169/using-python-requests-to-select-forms
failing which work your way down the remaining 816 hits on google
ows.html
I'll admit to being a little annoyed that scandir says it supports
Python 3 but only provides a 2.7 exe on pypi.
Worse even my normal backup failed me
http://www.lfd.uci.edu/~gohlke/pythonlibs/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you ca
hanks :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
spacing and single line paragraphs, thanks.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
an do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
ing a
day that starts with me getting out of bed on the wrong side, and worse
later on when my hair do gets ruined!!! :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
ust ask would you be more
comfortable on the tutor mailing list
https://mail.python.org/mailman/listinfo/tutor ?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
said that I do know that there loads of old bugs on the bug tracker,
many of which are fixed in the "new" regex module that's available here
https://pypi.python.org/pypi/regex/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
efer him or her to the Zen of Python so they don't repeat the
mistake with future design decisions?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
On 12/01/2015 15:58, Steven D'Aprano wrote:
Mark Lawrence wrote:
If doctest is dumb then that's clearly down to the author. Perhaps we
should refer him or her to the Zen of Python so they don't repeat the
mistake with future design decisions?
o_O
I don't even ...
wait
ge can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
On 13/01/2015 02:53, Rick Johnson wrote:
On Monday, January 12, 2015 at 7:55:32 PM UTC-6, Mark Lawrence wrote:
On 12/01/2015 23:47, Rick Johnson wrote:
'Some people, when confronted with a problem, think "I
know, I'll use regular expressions." Now they have two
problems
Just wondering if anyone is doing Python 3 bindings for the IUP GUI library?
The library is pure C and GUI only (so not a giant framework), and uses native
controls. It comes with Lua bindings and I believe there are third-party Ruby
bindings.
http://webserver2.tecgraf.puc-rio.br/iup/
--
https:/
o for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
go off at about one hour, 30 seconds. Programming becomes such
fun working around such things :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
the 3.x answer is too.
I'm confused, can you please explain what you're trying to achieve
rather than how you're trying to achieve it and I'm sure that others
will give better answers than I can :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what
On 14/01/2015 17:37, Grant Edwards wrote:
On 2015-01-14, Mark Lawrence wrote:
On 14/01/2015 16:33, Dave Angel wrote:
Note that neither Timer nor sleep makes any promises about how
accurately it matches the requested time.
Reminds me of working on Telematics S200/300/4000/5000 telecomms kit
tance.
def __init__(self, s):
super(B, self).__init__(s)
For the OP an excellent article on super here
https://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.
dable. Thanks in
anticipation.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
see its
asthetically pleasing properties.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
in patterns in the Python world take a look at Alex
Martelli's writings on the subject, e.g. http://www.aleax.it/gdd_pydp.pdf
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
ythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
low Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
the end of a word or similar.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
011
b1='0xf4'
b2='0o36'
b3='011'
Giving a completely different take on previous answers how about.
a1, b1 = b1, a1
a2, b2 = b2, a2
a3, b3 = b3, a3
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
ailable at gmane.comp.python.pydata amongst
other places.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
t what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
romberg.dnsalias.org/~strombrg/python-tree-and-heap-comparison/
HTH
I don't know if you've seen this http://kmike.ru/python-data-structures/
but maybe of interest.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawren
se reading gmane.comp.python.general using
Thunderbird. The only annoying things I recall recently are bvbvbvbv
and the Italian Mob. Whenever I spot them I'm straight onto gg to flag
them as abuse.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
On 20/01/2015 05:19, Marko Rauhamaa wrote:
Mark Lawrence :
On 19/01/2015 22:06, Zachary Gilmartin wrote:
Why aren't there trees in the python standard library?
Probably because you'd never get agreement as to which specific tree
and which specific implementation was the most su
On 21/01/2015 01:22, Joshua Landau wrote:
On 20 January 2015 at 04:21, Dan Stromberg wrote:
On Mon, Jan 19, 2015 at 6:46 PM, Mark Lawrence wrote:
I don't know if you've seen this http://kmike.ru/python-data-structures/ but
maybe of interest.
I've seen it. It's a nice p
ivestate.com/lists/python-ideas/30922/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
s, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
ome space in his museum!
April 1st already?
Or will Python be saved by RickedPython3?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
g another PEP with an alternative
proposal, although I suspect there is as much chance of that ever
happening as there is of ever seeing RickedPython(3).
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.pytho
which should be
"_get_hostport", right?
[1] http://bugs.python.org/issue7776
[2] https://github.com/python/cpython/blob/2.7/Lib/httplib.py
You've found a bug so please raise it on bugs.python.org :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for
thonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
ning.
The implementation of a type checker, whether linting source files or
enforcing type information during runtime, is out of scope for this PEP."
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.pyt
On 22/01/2015 18:41, [email protected] wrote:
On Thu, Jan 22, 2015, at 13:28, Mark Lawrence wrote:
Evidence in completely the opposite direction if I'm reading this
correctly https://www.python.org/dev/peps/pep-0484/#usage-patterns
"The main use case of type hinting is stati
k
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
On 22/01/2015 20:44, Rick Johnson wrote:
On Thursday, January 22, 2015 at 12:28:47 PM UTC-6, Mark Lawrence wrote:
Evidence in completely the opposite direction if I'm
reading this correctly [snip link]
"The main use case of type hinting is static analysis
using an external to
re-opened.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
guage.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
a better proposal:
def adder(a, b):
return a + b
All those wasted characters?
What is wrong with:-
def adder(a, b): return a + b ? :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
Hungarian Notation?
Seems like a good excuse to mention CORAL 66 for the first time in
years, even if it wasn't *that* bad :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
re taking.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
atement in current, official documentation that says
that it's deprecated.
ChrisA
This http://bugs.python.org/issue14123 seems relevant.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/
ition, what with
Python 2.8 and RickedPython(3). Is anybody aware of just how far
advanced these projects are?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
u, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
is having a bad hair day, hence using fuzzy logic? Ooh, that
one is so bad even my stomach hurts :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
ou have knowledge of, such as
tkinter/IDLE, you would earn that respect. Serving up dross as you do
so often gets you nothing except plonks.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
tion.is_integer = is_integer # Monkey-patch Fraction
>>>
>>> Fraction(1,2).is_integer()
False
>>> Fraction(2,1).is_integer()
True
Gary Herron
As regards this being a bad idea I'd suggest the latest score is
Practicality 1 Purity 0 :)
--
My fellow Pythonistas, a
On 25/01/2015 01:00, Rick Johnson wrote:
On Saturday, January 24, 2015 at 5:56:02 PM UTC-6, Mark Lawrence wrote:
For at least the third time the PEP was written by three
people, one of whom was the BDFL. Why do you keep
insisting that "he" is wrong, surely it should be "they&q
;s only one way to find out :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
sewhere in this thread it mentions sudoku. To me this
http://norvig.com/sudoku.html is a classic example of putting theory
into practice. Read and weep :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.pyt
On 26/01/2015 13:38, Andrew Robinson wrote:
*plonk*
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
grams have been fast enough for me.
IIRC, and probably from this list, creating tuples is way faster than
creating lists, but accessing items is slower. Can anybody confirm this
for us?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
People might find this http://bugs.python.org/issue1602 and hence this
https://github.com/Drekin/win-unicode-console useful. The latter is
available on pypi.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
llow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
to get
the stage payment, does either of your bosses really care whether or not
you are dealing with an object, an instance, or a piece of dead meat
dropped by the neighbour's cat?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
s, instance and object. Instead of
accepting their knowledge of the language and gracefully stepping back,
you've carried on until the twist of knots would make any boy scout proud.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our lang
ut it produces, especially if that's a traceback.
Those are incredibly helpful.
ChrisA
Windows will accept forward slashes in path names.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
then makes all sense for them to coexist with
the language syntax.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
y/anything/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
ou can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
didn't feel guilty of including there.
I don't know enough about most other languages to comment, I'll leave
that to the various gurus.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.pyt
The author is quite clear on his views here
https://realpython.com/blog/python/the-most-diabolical-python-antipattern/
but what do you guys and gals think?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https
as, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
.
It seems I could use the generator and iterate with .next() in python
2.6, at least from what I found here:
http://stackoverflow.com/questions/1756096/understanding-generators-in-python
Al
I'd be inclined to upgrade, see here
https://www.python.org/dev/peps/pep-0380/#formal-semantics for why :)
ep-0409/
https://www.python.org/dev/peps/pep-0415/ and finally try (groan :)
https://pypi.python.org/pypi/pep3134/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
On 30/01/2015 08:10, Mark Lawrence wrote:
On 30/01/2015 06:16, Marko Rauhamaa wrote:
Ian Kelly :
At least use "except Exception" instead of a bare except. Do you
really want things like SystemExit and KeyboardInterrupt to get turned
into 0?
tion in reposting for the umpteenth time.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
https://www.youtube.com/watch?v=kAG39jKi0lI
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
ss. As a one-liner:
result = {x:l2[min(i/(len(l1)/len(l2)),len(l2)-1)] for i,x in enumerate(l1)}
But the one-liner is not better code :)
ChrisA
The one-liner might not be better code, but it must be better speed wise
precisely because it's on one line, right? :)
--
My fellow Pythonis
question will claim it's a feature.
You'll surely have to work around it whilst waiting for a reply to the
"WTF do you think you're playing at?" question.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
On 01/02/2015 18:14, Grant Edwards wrote:
On 2015-02-01, Chris Angelico wrote:
On Sun, Feb 1, 2015 at 2:06 PM, Mark Lawrence wrote:
The one-liner might not be better code, but it must be better speed wise
precisely because it's on one line, right? :)
Well of course it is. Python code
2001 - 2100 of 5534 matches
Mail list logo