This is top posted and makes it extremely difficult to follow long
threads with many replies. This is heavily frowned upon here.
On 06/09/2014 02:54, Juan Christian wrote:
@Mark Lawrence: Sorry to ask, but what do you mean by "don't top post
here, thanks.", I'm not familia
can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
[command completed successfully Sat Sep 06 08:34:18 2014]
--
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
or you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
he answers online, as you can guarantee
someone else has already been there, seen it, done it and got the t-shirt :)
--
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
r you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
iding high-performance, easy-to-use data structures and data
analysis tools for the Python programming language.".
--
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
may be the PEP 8 guideline but I don't regard it as normal, I find
camelCase far easier to read.
--
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
this related to an upgrade that has been done in the last few weeks
or is that a complete red herring?
--
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 22/09/2014 03:00, aws Al-Aisafa wrote:
Yes I've followed and installed everything
Please provide some context when you reply and to whom you are replying,
thank you.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Law
do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
n/listinfo/python-list
Hells bells if it's not googlegroups it's top posting. What did I do in
a past life to deserve this?
--
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
g here.
--
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
do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
On 23/09/2014 22:48, blindanagram wrote:
On 23/09/2014 20:30, Mark Lawrence wrote:
On 23/09/2014 18:43, blindanagram wrote:
On 23/09/2014 18:26, Stefan Behnel wrote:
Wolfgang Maier schrieb am 23.09.2014 um 18:38:
While at first I thought this to be a rather irrelevant debate over
module
On 23/09/2014 23:52, Mark Lawrence wrote:
On 23/09/2014 22:48, blindanagram wrote:
On 23/09/2014 20:30, Mark Lawrence wrote:
On 23/09/2014 18:43, blindanagram wrote:
All you need do is raise an issue on the bug tracker, provide a patch to
code, test and docs and the job is done.
Thank you
Mark Lawrence yahoo.co.uk> writes:
> Somebody got there first http://bugs.python.org/issue22477
I think there's good reason to suspect that Brian Gladman and
blindanagram are one and the same. :-)
>>> sorted("BrianGladman".lower()) == sorted("bl
On 24/09/2014 12:14, Mark Dickinson wrote:
Mark Lawrence yahoo.co.uk> writes:
Somebody got there first http://bugs.python.org/issue22477
I think there's good reason to suspect that Brian Gladman and
blindanagram are one and the same. :-)
sorted("BrianGladman".
program.
However, this is neither supported nor portable." So it looks like a
case of changing the file association through control panel or similar.
I'll leave the OP to find out how to do that as an exercise.
--
My fellow Pythonistas, ask not what our language can do for you, ask
wha
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
friendly fork
is available see https://pypi.python.org/pypi/Pillow/2.5.3 where right
at the bottom of a long page you'll find Pillow-2.5.3.win-amd64-py2.7.exe
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
u can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
x27;re trying to achieve but I've found it easy to use
the sqlite Row object see
https://docs.python.org/3/library/sqlite3.html#row-objects
--
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
any sense to anybody else?
Short answer no.
Long answer definitely not.
--
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
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
parameter needed to sort it by the
tuple item. Maybe I need a cmp= ?
E.g. I want to do something like:-
for meas in sorted(adc.cfg, key=???):
print(adc.cfg[meas].ain, adc.cfg[meas].Description)
What's needed in the ???
IIRC one method involves using itemgetter from
https://docs.python.org/3/library/operator.html#module-operator
--
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 need a Restart Command.
--
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
read the tutorial again and digest
it, then have another go.
Any idea why 'None' is getting passed even though calling the donuts(4)
alone returns the expected value?
What is your expected value? My expected value is None for a value of 4
as you've given a return statement wi
rom...
--
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
chin
Please show us what you're tried so far and where it's going wrong,
we're not here simply to write code for you.
--
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
My apologies if this has been discussed before but I thought it may be
of interest wphomes.soic.indiana.edu/jsiek/files/2014/08/retic-python-v3.pdf
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https
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
can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
t our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
post here, thank you.
--
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 can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
or = "Red"
else:
color="Blue"
x= not x
Others?
Here http://stackoverflow.com/questions/8381735/toggle-a-value-in-python
but why couldn't you search in the first place?
--
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 09/10/2014 02:25, Mark Lawrence wrote:
On 09/10/2014 01:11, Seymore4Head wrote:
I want to toggle between color="Red" and color="Blue"
Here is one:
if color == "Red":
color = "Blue"
else:
color = "Red"
Here is two
, 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
sleep(0.5)
lbl.['background'] = 'SystemButtonFace'
Can you help?
Telling us what platform you're on, your OS, Python version and the
actual GUI helps in cases like this.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our
On 11/10/2014 16:20, Virgil Stokes wrote:
The butterflow package (https://pypi.python.org/pypi/butterflow/0.1.4a1)
has recently been released. I would like to know if anyone has been able
to install it on a windows platform.
Short answer no.
Long answer follows.
c:\Users\Mark\PythonIssues
u, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
o/python-list, 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
se the 'continue'
statement to start the loop over and read another line.
Why bother to initialise a counter when you can get the enumerate
function to do all the work for you?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark La
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
n.org/mailman/listinfo/python-list or read and action
this https://wiki.python.org/moin/GoogleGroupsPython to prevent us
seeing double line 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
2.7, because that wouldn't do anything either.
I'm just about ready to uninstall 3.4.
https://docs.python.org/3/using/windows.html
https://docs.python.org/3/using/windows.html#launcher
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do fo
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
also available as gmane.comp.python.matplotlib.general
--
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
-python
--
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
atest/installing.html
--
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
rawl.
--
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
ple a patch is a thing that mends your flat tyre or
goes over your eye.
--
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
7;ll get
precisely nowhere.
--
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
r language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
oupsPython to prevent us
seeing double line 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
list will have before
making it?
Python doesn't have commands and no. Perhaps you'd care to (re)read the
tutorial.
--
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
,c)
Something like that.
https://docs.python.org/3/library/functions.html#zip
--
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
/moin/GoogleGroupsPython to prevent us
seeing double line 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
nt us
seeing double line 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
(j>=10)]
The death penalty should be reintroduced into the UK for two crimes,
writing code like the above and using google groups.
--
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/listin
On 22/10/2014 10:27, Chris Angelico wrote:
On Wed, Oct 22, 2014 at 8:16 PM, Mark Lawrence wrote:
without not:
j = [j+1, 3][j>=10]
with not:
j = [3, j+1][not (j>=10)]
The death penalty should be reintroduced into the UK for two crimes, writing
code like the above and using google
/mail.python.org/mailman/listinfo/python-list or read and action
this https://wiki.python.org/moin/GoogleGroupsPython to prevent us
seeing double line 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
Hi all,
I have just released version 0.9 of Shed Skin, a (restricted-)Python to C++
compiler.
Please see my blog for the full announcement:
http://shed-skin.blogspot.com
The Shed Skin homepage is located here:
http://shedskin.googlecode.com
Thanks!
Mark Dufour.
--
http://www.youtube.com
often enough (without the box size
limit twist) that maybe it would be useful to include something like
this recipe in the itertool documentation.
For getting this into itertools, I'd suggest opening a feature request
on bugs.python.org and assigning it to Raymond Hettinger.
--
Mark
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 16, 9:17 pm, Arnaud Delobelle wrote:
> Ah go on, let's make a codegolf contest out of it.
> My entry:
>
> >>> sum(map(int,str(2**1000)))
You could save another character by replacing "2**1000" with "2<<999"
--
Mark
--
http://mail.python.org/mailman/listinfo/python-list
unded up to 10**max_digits by the quantize
operation.
BTW, that's a fairly horrible way of creating the first argument to
the quantize method, too. It would be more efficient to do something
like:
>>> decimal_places = 2
>>> decimal.Decimal('0.{}1'.format(
ecause
you want MyInt to be 'contagious', so that an arithmetic operation
that combines an int and a MyInt returns a MyInt). How would you
achieve this without this rule?
--
Mark
--
http://mail.python.org/mailman/listinfo/python-list
on "f" in
the context of the module you should get the result returned. Obviously
though it is designed to eval more complex expressions and in your
specific example, doing the getattr thing will also work fine.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
ction change for the windows
extensions? Is it time I make the move to 3.x? Mark Hammond has
given much to the Python community and I do not intend for this post
to be negative in any way.
No problem. There have been no updates as there is very little to
update (ie, the code hasn't change
2+ calls _getrandbits for *every* invocation of randrange. (All
assuming that we're using the default MT random number generator.)
This may well explain the difference in timings observed by the OP.
--
Mark
--
http://mail.python.org/mailman/listinfo/python-list
; from fractions import Fraction
>>> start, stop, n = 0.0, 2.1, 7
>>> [float(Fraction(start) + i * (Fraction(stop) - Fraction(start)) / n) for i
>>> in range(n+1)]
[0.0, 0.3, 0.6, 0.9, 1.2, 1.5, 1.8, 2.1]
--
Mark
--
http://mail.python.org/mailman/listinfo/python-list
will be powers of 2 they're largely
unnecessary.
> But out of curiosity, how would you do it using nothing but floats? Is there
> a way?
Hmm. Beyond writing my own multiple-precision integer library using
floats as the base type, I can't think of anything obvious. :-)
--
Mark
--
http
* 1.0 + 3/7 *
3.100088817841970012523233890533447265625.
--
Mark
--
http://mail.python.org/mailman/listinfo/python-list
tched during the auth step so
"replay" attacks can be prevented. It might be true that some server
implementations don't check the timestamp or nonce, so it *might* work
for some servers if the exact same request parameters are used, but such
servers are simply insecure and brok
rns a list, and lists have a .count method.
> > Could that be the reason?
>
> Python 2 xrange objects do not have a .count method. Python 3 range
> objects do have a .count method. The addition is curious, to say the
> least.
See http://bugs.python.org/issue9213
--
Mark
--
http://mail.python.org/mailman/listinfo/python-list
cuments most of what you can
do with edit control (look for windows messages starting with "EM_"),
but without checking, I expect you will find programs like Skype don't
use a Windows edit control at all.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
them.
I think that is a real shame - it seems to be gratuitous breakage for
almost zero benefit. That issue shows that Trac makes heavy use of
.warn, I've use .warn almost exclusively for many years, and
code.google.com shows it is used extensively in the wild.
Is there still a chanc
you? The py2exe license shouldn't be a
problem and py2exe or something like it is good advice.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
#x27;m also using Python 2.7 and Python 3.3 on Windows 7, 64-bit, and
have both "Edit" menu items as well.
Changing the application defaults is now in "Default Programs" right
on the Start Menu. It's more "obvious" than the old location, but the
old location is just known by more people and Microsoft loves to move
things around.
-Mark
--
http://mail.python.org/mailman/listinfo/python-list
uming a 32bit Python, you need the 32bit
implementation of the COM object, or if a 64bit Python, you need the
64bit COM object. Note that both the 32 and 64bit versions of both will
work fine on a 64bit version of Windows - you just need to make sure
they match.
Mark
--
http://mail.python.or
os can help
give the appearance of fixed-point arithmetic for simple operations
(addition, subtraction) that stay within suitable bounds. And decimal
fixed-point isn't so much use for a binary fixed-point format, anyway.
--
Mark
--
http://mail.python.org/mailman/listinfo/python-list
t. I
find it cleaner to think of C as having no padding in arrays, but
padding at the end of a struct. See C99 6.7.2.1p15: 'There may be
unnamed padding at the end of a structure or union.' There's no
mention in the standard of padding for arrays.
--
Mark
--
http://mail.python.org/mailman/listinfo/python-list
orkarounds for in the past. See note 3 at:
http://docs.python.org/library/struct.html#byte-order-size-and-alignment
If it weren't for backwards compatibility issues, I'd say that this
should be fixed.
--
Mark
--
http://mail.python.org/mailman/listinfo/python-list
ocess is going away - it almost certainly has
nothing to do with Python itself deciding to make the object go away.
Mark
a=foo()
o="get istance of a cad application via com"
a.setComObject(o)
a.showForm() #< here if pass some time I'm not able to call any
method to the co
from mod_python.c:54:
and a lot more. Can anyone help?
-mark
--
http://mail.python.org/mailman/listinfo/python-list
further digging around I did find rh's mod_python rpm so I installed
than and now seem to be ok. nevertheless it still bothers me the
'standard' tarball install didn't work. but I guess I'll leave that to
others to worry about.
thanks
-mark
On Tue, Dec 27, 2011 at 12:02 PM, Ra
):
time.sleep(1)
print('[{}] => {}'.format(myId, i))
def main():
for i in range(5):
thread.start_new_thread(counter, (i, 5))
I think you meant for the following 2 lines to be outside the loop (ie,
to be dedented one level). Once you do that the output is as *I* exp
st in charge of the sheep dip?
*dives for cover*
ChrisA
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
ve no idea what
you'd call the language used in Newcastle upon Tyne.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
using Python?
Assuming the .doc file is MS Word see here
http://sourceforge.net/projects/pywin32/ as a starter? If you're
talking plain text others have already replied.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
ython would need a unified object
model and it doesn't have one yet.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
7;t given us and got error messages that you also haven't
given us?
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Feb 10, 2013 at 5:30 AM, Oscar Benjamin
wrote:
> On 10 February 2013 04:53, Mark Janssen wrote:
>> I have to agree with Rick, I think requiring the user to explicitly
>> create a new object, which is already a good and widely-used practice,
>> should be the Only One
On Sun, Feb 10, 2013 at 6:29 AM, Steven D'Aprano
wrote:
> Mark Janssen wrote:
>> I have to agree with Rick, I think requiring the user to explicitly
>> create a new object, which is already a good and widely-used practice,
>
> Perhaps so, but consider how you creates n
On Sun, Feb 10, 2013 at 1:51 PM, Chris Angelico wrote:
> On Mon, Feb 11, 2013 at 8:28 AM, Mark Janssen
> wrote:
>> Yes, I was aware of his sarcasm. But I was actually wanting to agree
>> with the fundamental idea: that one could reduce all data types to 1
>> at
3601 - 3700 of 5832 matches
Mail list logo