94 arcminutes
So I would say that your table and Python are in agreement. Do you
know what the notation 63'30" means?
ChrisA
Somebody or something has a length, height or width of 63 feet 30 inches? :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
7;i0', 'n0', (dsd, 0, 0), 'n0', (dsd, 10, 1), (IE,
'n0'))
self.chain(range(10), 'i0', (KE, ddi, 10), 'n0', (ddi, 9), (IE, 'n0'))
Do you think the 2nd version is legible? Could it interfere with the accuracy
of the test?
ry.
Just don't try to pretend to yourself that Greece uses GMT+2, because
it's not that simple. For one thing, it's currently summer there...
ChrisA
I guess that Double British Summer Time made things twice as difficult?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
there?
I'm on Windows Vista and read many Python mailing lists with Thunderbird
via gmane.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
27;ve
researched, what code you've written and what problems you've got with
it. If you get a code exception please provide the complete traceback
and a mimimal code snippet that reproduces the issue. This way you're
much more likely to get help.
--
Cheers.
Mark Lawrence.
--
ht
perhaps people could give you a solution to
your problem.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ut it was just to let him know he can call me by
my used name.
Any particular him?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
, why not post to both in one hit?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ere a portable way of splitting the environment variable PATH?
With os.sep ?
Thanks for any sugestions
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
')
as Chris mentioned.
However for my current use case this is not necessarily required.
HTH,
Jason
http://nedbatchelder.com/code/utilities/wh_py.html
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
x27;2 years release cycle'?
Because there aren't enough volunteers to get it done any faster?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
doesn't work you cut and paste
the smallest sample of code that can reproduce the problem, together
with the full traceback if applicable, and you're likely to get plenty
of answers.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
File "C:\Users\Mark\pattern.py", line 22
Doing your homework since 2001
^
SyntaxError: invalid syntax
What am I doing wrong?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
taxError" will return a
useful result.
Tongue-firmly-in-cheek-ly y'rs,
+ one trillion
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
implementing operating systems :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
go by, nothing is ever desperate anyway.
Apart from that what have you tried and where did it go wrong? "I can't
install livewires" isn't much to go on.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
e and
possibly other places while you're at it, or does the whole world now
revolve around G$?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
urnished a piece of information that doubtless not
one other person on this group knew.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
a bit less interesting. Worth keeping this in mind:
http://www.codeirony.com/?p=9
Stefan
I'd like to say thanks for the link but unfortunately for me, but good
news for you (plural), is that I've bust a gut laughing out loud, so I
won't :)
Oh alright then thanks for t
py of another list.
Looks to me as if there are three options.
a) raise a bug report on the Python bug tracker at bugs.python.org.
b) fix your code.
As option b) is the likely route, the way forward is to put print
statements in your code so you can see what data you have *AND* what
e.com/recipes/498072-implementing-an-immutable-dictionary/
[4]http://code.activestate.com/recipes/66531-singleton-we-dont-need-no-stinkin-singleton-the-bo/
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ght it was, but my first
impression was that foolist was a play on foolish.
I also like the anti-pattern on the link namely:-
for (index, value) in enumerate(alist):
print index, value
Fancy wasting time, money and effort typing those unnecessary round
brackets.
--
Cheers.
Mark Lawrence
On 24/09/2012 18:33, Duncan Booth wrote:
Steven D'Aprano wrote:
On Mon, 24 Sep 2012 00:14:23 +0100, Mark Lawrence wrote:
Purely for fun I've been porting some code to Python and came across
the singletonMap[1]. I'm aware that there are loads of recipes on
the web for both si
On 24/09/2012 20:22, Devin Jeanpierre wrote:
On Sun, Sep 23, 2012 at 7:14 PM, Mark Lawrence wrote:
Purely for fun I've been porting some code to Python and came across the
singletonMap[1]. I'm aware that there are loads of recipes on the web for
both singletons e.g.[2] and
eing a case of if it ain't broke don't fix it.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
l#pep-3151-reworking-the-os-and-io-exception-hierarchy
?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
In a part of one thread he referred to my family as pigs. I've
have lived with that, using the sticks and stones reply, but then
someone had the audacity to protect his stance. I am sure that people
have seen enough of his behaviour in the last few hours to see the real
Dwight Hutto so I
check what features a programming
environment or language offers before reinventing the wheel with four
sides.
Thankfully easier in a relatively concise language like Python as
opposed to (say) Java. Which reminds me, in what version of Python are
we getting the singletonMap? :)
--
Cheers.
Hi all,
I though this might be of interest.
http://www.ironfroggy.com/software/i-am-worried-about-the-future-of-python
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
age. I really
appreciate and rediscover the strictness I learned with
Pascal.
So go and use go as nobody here is stopping you.
jmf
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 25/09/2012 10:53, Chris Rebert wrote:
[snip]
Well, the PSU might, except they emphatically do not exist...
I know that they exist but if I admit to it I'd have to shoot myself.
If I can get the bra off of the debutante that is.
Cheers,
Chris
--
PEP-401 compliant
--
Cheers.
On 25/09/2012 11:22, Tejas wrote:
How to configure python in apache2 ?
So my html embedded code will works.
Please follow the instructions that you'll find by searching the web.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 25/09/2012 11:38, Oscar Benjamin wrote:
On 25 September 2012 08:27, Mark Lawrence wrote:
On 25/09/2012 03:32, Mark Adam wrote:
On Mon, Sep 24, 2012 at 5:55 PM, Oscar Benjamin
wrote:
try:
f.pos = 256
except IOError:
print('Unseekable file')
Something along t
On 25/09/2012 11:51, Tim Chase wrote:
[snip]
If only other unnamed persons on the list were so gracious rather
than turning the flame-dial to 11.
Oh heck what have I said this time?
-tkc
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
sing, how strange.
I think the next port of call after the standard library should be pypi
followed by the search engine, possibly targetted at sites like github,
followed by a question here. I'm not certain about the next step, help
please.
--
Cheers.
Mark Lawrence.
--
http://mail.pyth
On 25/09/2012 12:40, Tim Chase wrote:
On 09/25/12 06:10, Mark Lawrence wrote:
On 25/09/2012 11:51, Tim Chase wrote:
If only other unnamed persons on the list were so gracious rather
than turning the flame-dial to 11.
Oh heck what have I said this time?
You'd *like* to take c
On 25/09/2012 13:44, alex23 wrote:
On Sep 25, 9:39 pm, Tim Chase wrote:
Mostly instigated by one person with a
particularly quick trigger, vitriolic tongue, and a disregard for
pythonic code.
I'm sorry. I'll get me coat.
Oi, back of the queue if you don't mind :)
-
lasses.
Still, all things considered, it's a good trade.
Thanks for this reminder, my port of the J word code to Python has just
been simplified :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
e but do free RDBMes have the sales and marketing budgets that
effectively shot down Ingres?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ou know when it's time to make sure that you're safely
strapped in and reach for and use the release button for the ejector
seat. Further for somebody who is apparently up in the high tech world,
why are you using a gmail account and hence sending garbage in more ways
than one to mai
to plonk so few.
ChrisA
I tried to make a play on that some days ago and failed dismally.
Thanks for putting me out of my misery :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
isery :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
combination of Python 3.3 and unicode as Hitler, Stalin and Pol Pot
amongst others knew about human rights.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
pany.
And around that time, some poor schmuck of a dev manager is telling his
team what the sales guy sold. And that they have 12 weeks to design,
build, and deliver it.
How long did you just say??? I promised it in 8 weeks, not 12 you
complete moron :)
--
Cheers.
Mark Lawrence
ibutor. I certainly prefer
him to Xah Lee, who's attempts at improving Python documentation were
beautifully torn to pieces here, IIRC by Ethan Furman, apologies to him
and the actual author if I'm incorrect.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
an end
user, this is the only thing that counts.
The modern day Pinball Wizard? Or a physic? Or what?
jmf
#pseudo code
for _ in range(-inf, +inf, 1): print(FUD)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 27/09/2012 01:40, Steven D'Aprano wrote:
On Wed, 26 Sep 2012 10:01:11 +0100, Mark Lawrence wrote:
You remind me of the opening to the song Plaistow Patricia by Ian Dury
and the Blockheads.
While I always appreciate a good reference to Ian Dury, please stop
feeding D.H.'s ego by
ne has yet optimized this case.
I have taken a liberty and raised this on the bug tracker quoting Steven
D'Aprano's original figures and your response above.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 27/09/2012 17:16, Devin Jeanpierre wrote:
On Thu, Sep 27, 2012 at 10:25 AM, Steven D'Aprano
wrote:
On Thu, 27 Sep 2012 08:11:13 -0400, Devin Jeanpierre wrote:
On Thu, Sep 27, 2012 at 2:13 AM, Steven D'Aprano
wrote:
On Tue, 25 Sep 2012 09:15:00 +0100, Mark Lawrence wrote: And
On 27/09/2012 07:13, Steven D'Aprano wrote:
On Tue, 25 Sep 2012 09:15:00 +0100, Mark Lawrence wrote:
Hi all,
I though this might be of interest.
http://www.ironfroggy.com/software/i-am-worried-about-the-future-of-
python
And a response:
http://data.geek.nz/python-is-doing-just
On 27/09/2012 17:49, Chris Angelico wrote:
On Fri, Sep 28, 2012 at 2:45 AM, Mark Lawrence wrote:
The article Steven D'Aprano referred to is not a direct response to the
article I referred to, yet your words are written as if it were. May I ask
why? Or have I missed something?
Steven
nderfully.
I understand from an earlier post that latin-9 meets your needs
completely for all French language characters plus the Euro sign, why
don't you simply use that and stop rabitting on about latin-1.
jmf
Would you please be so kind as to stand up as your voice is rather
id it.
http://bugs.python.org/issue16061 and you should read it. I've tried to
really muddy the waters by opening this issue, and the python devs are
giving out facts, how dare they!!! It's just not my day is it? :(
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
asked on numerous occasions so if you search the
archives you're sure to get loads of answers.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
;t
you be using the regex module from pypi instead of the standard library
re? Guess who's borrowed the time machine?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
s regressed the performance of ''.
Surely the Python devs can speed the performance back up and, just for
us, use less memory at the same time?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 29/09/2012 11:05, Chris Angelico wrote:
On Sat, Sep 29, 2012 at 7:38 PM, Mark Lawrence wrote:
My understanding is that Python 3.3 has regressed the performance of ''.
Surely the Python devs can speed the performance back up and, just for us,
use less memory at the same time?
Y
'll say me "learn python", why should I learn it over Ruby?
Thanks!
PS: I don't want to start a flame-war, I just want an advice if it's possible
please!
http://www.gossamer-threads.com/lists/python/python/129650?do=post_view_threaded
--
Cheers.
Mark Lawrence.
--
http
th raising a feature request on the
bug tracker?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ready being using 3.3 to use
this facility. I was hoping for a solution which was backwards
compatible with Python 2.x.
You don't need 3.3 to get py.exe. I've been running it for months, it's
available here https://bitbucket.org/vinay.sajip/pylauncher/downloads
--
Cheers.
Mar
milar to IDLE.
Just python. With the arrival of pylauncher
http://www.python.org/dev/peps/pep-0397/ you can also type py [options].
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
here some reason not to install 3.3?
Fo those who missed it earlier you can download the launcher here
https://bitbucket.org/vinay.sajip/pylauncher/downloads , you don't need
Python 3.3.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 02/10/2012 17:12, Ramchandra Apte wrote:
On Monday, 1 October 2012 13:47:50 UTC+5:30, Mark Lawrence wrote:
On 01/10/2012 01:58, 8 Dihedral wrote:
Your question seems vague to me. If you know you are storing
only immutable tuples in a list, then the way to iterate is simple
or mailing list and
they simply won't believe ya :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
rror-prone, non-obvious solutions.
Peter Otten's response is obviously vastly superior to yours, 4 tests in
0.000s compared to your highly inefficient 4 tests in 0.001s :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
e.org/gmane.comp.python.general shows the last post
was the Steven D'Aprano thread titled "Emulating C++ namespaces with ChainMap
and metaclass trickery" on 3 Oct at 20:26.
I've tried flagging this up but obviously with no success. Anyone any ideas on
how to sort this out?
Kindes
tiple repeat
why the "\s{6}+" is not a regular pattern?
Why are you too lazy to do any research before posting a question?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 04/10/2012 15:27, Chris Angelico wrote:
ensured that Australia won the next Test Match
ChrisA
may need to schedule surgical detongueing of his cheek
I'll arrange the cheek detonguing very cheaply after a comment like that :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/ma
ate for c.l.p?
I'm sure that with some appropriate grovelling the PSF could arrange
this. Perhaps fly everybody to the UK for PyCon and get the surgery
done on the NHS at the same time.
Ramit
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
pep-0397/ and let us
know whether or not it fits your needs on Windows.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ESP, a crystal ball, and
a mind-reader!)
~Ethan~
My probably highly uneducated guess is that "Python-provided attribute"
refers to double underscore names. YMMV by several trillion light years :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
a starting point as any
http://www.velocityreviews.com/forums/t716131-challenge-escape-from-the-pysandbox.html
?
Also throw "python experimental sandbox" into your search engine and
follow your nose, something might come up smelling of roses :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
his exercise. How
can we make each group of words (e.g. car-automobile, jounrney-voyage,
gem-jewel)
sorted according to their similarity value?
Thanks for your tips.
In your for loop save the data in a list rather than print it out and
sort according to this
http://wiki.python.org/moin/HowTo/Sorting#Operator_Module_Functions
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
-methods-in-the-object-oriented
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
the 'in' keyword.
I see you've already corrected youself :)
if "' in mystring:
No need to escape any ASCII characters except backslash.
No need to escape anything if raw strings are used.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
Something like:-
if "{" in line or "}" in line or line not in lines_seen:
outfile.close()
But it deletes also the lines with a closing bracket } and the lines with the
same authordata.
Therefor i need the condition of the brackets.
Could someone point me out to adding this
s readable, your use of CrapMail
made life difficult until I stripped the superfluous newlines out. Is
it really so awkward to equip yourself with a semi-decent mail reader?
Like Thunderbird, hint, hint :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
'd also be willing to pay for a suitable
tool.
Windows or *ix tools would be fine.
Any suggestions about things to check into?
I've found clonedigger very useful http://clonedigger.sourceforge.net/
Not what you're asking for but figleaf is good as well
http://darcs.idyll.org/~t/
onder
if he's *STILL* researching?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 13/10/2012 23:26, Joshua Landau wrote:
On 13 October 2012 23:13, Mark Lawrence wrote:
On 13/10/2012 22:31, Joshua Landau wrote:
With two irritants (including 8), is it not advisable that python-list
gets an admin to block these accounts? Even if it does nothing more than
slow them
On 13/10/2012 23:52, Mark Lawrence wrote:
On 13/10/2012 23:26, Joshua Landau wrote:
On 13 October 2012 23:13, Mark Lawrence wrote:
On 13/10/2012 22:31, Joshua Landau wrote:
With two irritants (including 8), is it not advisable that
python-list
gets an admin to block these accounts
rror doing PIL.Image.open():", sys.exc_info()[0])
raise
[snip]
Vincent
You've already had some advice so I'll just point out that a bare except
is a bad idea as you wouldn't even be able to catch a user interrupt.
Try (groan!) catching StandardError i
On 14/10/2012 11:06, Terry Reedy wrote:
On 10/14/2012 4:20 AM, Mark Lawrence wrote:
You've already had some advice so I'll just point out that a bare except
is a bad idea as you wouldn't even be able to catch a user interrupt.
Try (groan!) catching StandardError instead.
Ther
7;d want would
be FUD or worse still complete crap being written in response to any
thread and me not being in a position to reply. Is this something for
the Python community here to be thinking about?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 15/10/2012 14:55, Debashish Saha wrote:
how to insert random error in a programming?
Just use some of my code, it's far more random than that suggested by
others who've replied to your query.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
'f n onq vqrn.
Vs gur vzcyrzragngvba vf rnfl gb rkcynva, vg znl or n tbbq vqrn.
Anzrfcnprf ner bar ubaxvat terng vqrn -- yrg'f qb zber bs gubfr!"""
d = {}
for c in (65, 97):
for i in range(26):
d[chr(i+c)] = chr((i+13) % 26 + c)
print ""
On 15/10/2012 20:51, Chris Angelico wrote:
On Tue, Oct 16, 2012 at 6:28 AM, Mark Lawrence wrote:
I like clearly written code like this
"
d = {}
for c in (65, 97):
for i in range(26):
d[chr(i+c)] = chr((i+13) % 26 + c)
print "".join([d.get(c, c) for c in s])
S
On 17/10/2012 05:16, 8 Dihedral wrote:
What you really want is b=a.copy()
not b=a to disentangle two objects.
__eq__ is used in the comparison operation.
The winner Smartest Answer by a Bot Award 2012 :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
start my campaign to be the first world president.
Seven votes at the last count, another 3.5 billion and I'm first past
the post.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
options here
http://wiki.python.org/moin/PythonTestingToolsTaxonomy and an active
mailing list that I read via gmane.comp.python.testing.general
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
me and is partially deaf to boot is getting up my nose.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
sed? Any preferences?
-[]z.
I suggest re-reading PEP 8, particularly the section titled "A Foolish
Consistency is the Hobgoblin of Little Minds" and specifically the first
sentence of the third paragraph "But most importantly: know when to be
inconsistent -- sometimes
uot;quit".
To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics". Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given
word such as "spam", ty
On 19/10/2012 09:56, Duncan Booth wrote:
Mark Lawrence wrote:
Good morning/afternoon/evening all,
Where is this specific usage documented as my search engine skills have
let me down? By this I mean entering help() without parameters to get
the following output and then the help> pro
/4750806/how-to-install-pip-on-windows :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
named a quite well known programming
language after a humorous BBC television programme?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
rary/stdtypes.html#typememoryview only
gives examples of equality comparisons and there was nothing that I
could see in PEP3118 to explain the rationale behind the lack of other
comparisons. What have I missed?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
re is not :-)
In the end I am going to what to get triples, quads... also.
Thanks
Vincent
I suggest that you try taking slices out of your apple :) Start here
http://docs.python.org/tutorial/introduction.html
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 22/10/2012 17:01, nepaul wrote:
Try using a search engine for specific Python issues that you'd like to
read up on. If you can't find what you want please ask a specific
question, that way you're far more likely to get some answers.
--
Cheers.
Mark Law
On 21/10/2012 12:24, Mark Lawrence wrote:
http://docs.python.org/dev/whatsnew/3.3.html states "memoryview
comparisons now use the logical structure of the operands and compare
all array elements by value". So I'd have thought that you should be
able to compare them and hence sort
301 - 400 of 3466 matches
Mail list logo