Re: My backwards logic

2014-09-06 Thread Mark Lawrence
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

Re: Posting style: interleaved responses

2014-09-06 Thread Mark Lawrence
can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

[OT?]cpython pull from hg

2014-09-06 Thread Mark Lawrence
[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

Re: "We made from water every living thing"...

2014-09-08 Thread Mark Lawrence
or you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Mark Lawrence
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

Re: very lightweight gui for win32 + python 3.4

2014-09-12 Thread Mark Lawrence
r you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Problems in python pandas

2014-09-17 Thread Mark Lawrence
you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Hierarchical consolidation in Python

2014-09-18 Thread Mark Lawrence
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

Re: Love to get some feedback on my first python app!!!

2014-09-20 Thread Mark Lawrence
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

Error from hg.python.org

2014-09-21 Thread Mark Lawrence
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

Re: pgs4a fails to build

2014-09-22 Thread Mark Lawrence
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

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Mark Lawrence
do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Mark Lawrence
can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Mark Lawrence
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

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Mark Lawrence
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

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Mark Lawrence
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

Re: GCD in Fractions

2014-09-23 Thread Mark Lawrence
do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: GCD in Fractions

2014-09-23 Thread Mark Lawrence
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

Re: GCD in Fractions

2014-09-24 Thread Mark Lawrence
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

Re: GCD in Fractions

2014-09-24 Thread Mark Dickinson
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

Re: GCD in Fractions

2014-09-24 Thread Mark Lawrence
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".

Re: why can't open the file with browser?

2014-09-24 Thread Mark Lawrence
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

Re: Syntax error in python unittest script

2014-09-24 Thread Mark Lawrence
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

Re: Python Imaging Library 1.x - 64bit setup file for Python 2.7.2.

2014-09-25 Thread Mark Lawrence
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 --

Microsoft Visual C++ Compiler for Python 2.7

2014-09-26 Thread Mark Lawrence
u can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Using namedtuple with sqlite, surely it can do better than the example

2014-09-30 Thread Mark Lawrence
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

Re: Restarting Python

2014-09-30 Thread Mark Lawrence
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

Re: how to parse standard algebraic notation

2014-10-01 Thread Mark Lawrence
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

Re: How to show a dictionary sorted on a value within its data?

2014-10-01 Thread Mark Lawrence
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

Re: Clearing globals in CPython

2014-10-01 Thread Mark Lawrence
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

Re: Function passed as an argument returns none

2014-10-01 Thread Mark Lawrence
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

Re: Clearing globals in CPython

2014-10-02 Thread Mark Lawrence
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

Re: pyqt problem

2014-10-02 Thread Mark Lawrence
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

Reticulated Python

2014-10-02 Thread Mark Lawrence
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

Re: Is there a way to display source code for Python function?

2014-10-03 Thread Mark Lawrence
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

Re: How to set the global variable so that it can be accessed and released inside other methods

2014-10-03 Thread Mark Lawrence
can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Timezones

2014-10-05 Thread Mark Lawrence
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

Re: ruby instance variable in python

2014-10-06 Thread Mark Lawrence
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

Re: Representing mathematical equations

2014-10-06 Thread Mark Lawrence
guage can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Toggle

2014-10-08 Thread Mark Lawrence
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

Re: Toggle

2014-10-08 Thread Mark Lawrence
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

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread Mark Lawrence
, 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: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread 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

Re: Make a colour blink

2014-10-10 Thread Mark Lawrence
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

Re: Butterflow installation on windows

2014-10-12 Thread Mark Lawrence
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

Re: How to install and run a script?

2014-10-12 Thread Mark Lawrence
u, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: problem with pytz

2014-10-12 Thread Mark Lawrence
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

Re: How to select every other line from a text file?

2014-10-13 Thread Mark Lawrence
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

Re: How to install and run a script?

2014-10-14 Thread Mark Lawrence
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

Re: How to debug Python IDLE?

2014-10-15 Thread Mark Lawrence
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

Re: Import Doesn't Import

2014-10-16 Thread Mark Lawrence
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

Re: Import Doesn't Import

2014-10-16 Thread Mark Lawrence
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: 2d color-bar map plot

2014-10-17 Thread Mark Lawrence
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

Re: windows log to event viewer

2014-10-17 Thread Mark Lawrence
-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

Re: Quick Question About Setting Up Pytz

2014-10-18 Thread Mark Lawrence
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

Re: Question about PANDAS

2014-10-19 Thread Mark Lawrence
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

Re: pyserial on freebsd 10.10 i386 [SOLVED]

2014-10-19 Thread Mark Lawrence
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

Re: Question about PANDAS

2014-10-20 Thread Mark Lawrence
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

Re: Quick Question About Setting Up Pytz

2014-10-20 Thread Mark Lawrence
r language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Building lists

2014-10-20 Thread Mark Lawrence
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

Re: Building lists

2014-10-20 Thread Mark Lawrence
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

Re: Building lists

2014-10-20 Thread Mark Lawrence
,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

Re: OS X Menubar in Tkinter

2014-10-20 Thread Mark Lawrence
/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

Re: No Error; No Output...Nothing

2014-10-21 Thread Mark Lawrence
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

Re: (test) ? a:b

2014-10-22 Thread Mark Lawrence
(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

Re: (test) ? a:b

2014-10-22 Thread Mark Lawrence
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

Re: (test) ? a:b

2014-10-22 Thread Mark Lawrence
/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

[ANN] Shed Skin 0.9

2011-09-10 Thread Mark Dufour
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

Re: recursive algorithm for balls in numbered boxes

2011-09-11 Thread Mark Dickinson
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

Re: way to calculate 2**1000 without expanding it?

2011-09-18 Thread Mark Dickinson
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

Re: help needed on decimal formatting issue

2011-09-19 Thread Mark Dickinson
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(&#

Re: Operator commutativity

2011-09-21 Thread Mark Dickinson
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

Re: PyEval_EvalCodeEx return value

2011-09-22 Thread Mark Hammond
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

Re: pyWin build 216

2011-09-23 Thread Mark Hammond
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

Re: random.randint() slow, esp in Python 3

2011-09-24 Thread Mark Dickinson
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

Re: Generating equally-spaced floats with least rounding error

2011-09-24 Thread Mark Dickinson
; 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

Re: Generating equally-spaced floats with least rounding error

2011-09-24 Thread Mark Dickinson
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

Re: Generating equally-spaced floats with least rounding error

2011-09-24 Thread Mark Dickinson
* 1.0 + 3/7 * 3.100088817841970012523233890533447265625. -- Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Implementing Python-OAuth2

2011-10-11 Thread Mark Hammond
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

Re: Implement comparison operators for range objects

2011-10-14 Thread Mark Dickinson
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

Re: need python+windows edit control help

2011-10-21 Thread Mark Hammond
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

Re: logging: warn() methods and function to be deprecated.

2011-10-23 Thread Mark Hammond
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

Re: Need Windows user / developer to help with Pynguin

2011-10-30 Thread Mark Hammond
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

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-25 Thread Mark Tolonen
#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

Re: pythoncom on Windows Server 2008

2011-11-29 Thread Mark Hammond
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

Re: unpack('>f', b'\x00\x01\x00\x00')

2011-12-02 Thread Mark Dickinson
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

Re: struct calcsize discrepency?

2011-12-05 Thread Mark Dickinson
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

Re: struct calcsize discrepency?

2011-12-05 Thread Mark Dickinson
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

Re: Losing com pointer

2011-12-07 Thread Mark Hammond
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

Errors installing mod_python with apache

2011-12-27 Thread Mark Seger
from mod_python.c:54: and a lot more. Can anyone help? -mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Errors installing mod_python with apache

2011-12-27 Thread Mark Seger
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

Re: thread example question

2012-01-17 Thread Mark Hammond
): 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

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Mark Lawrence
st in charge of the sheep dip? *dives for cover* ChrisA -- Cheers. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python programming language?

2013-02-08 Thread Mark Lawrence
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

Re: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7

2013-02-09 Thread Mark Lawrence
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

Re: LangWart: Method congestion from mutate multiplicty

2013-02-09 Thread Mark Janssen
ython would need a unified object model and it doesn't have one yet. Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Statistics...help with numpy/scipy install

2013-02-10 Thread Mark Lawrence
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

Re: LangWart: Method congestion from mutate multiplicty

2013-02-10 Thread Mark Janssen
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

Re: LangWart: Method congestion from mutate multiplicty

2013-02-10 Thread Mark Janssen
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

Re: LangWart: Method congestion from mutate multiplicty

2013-02-10 Thread Mark Janssen
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

<    32   33   34   35   36   37   38   39   40   41   >