Re: user rights and python com servers

2010-04-15 Thread Mark Hammond
On 16/04/2010 2:40 PM, sniffer wrote: Thanks Mark, just one question does the explanation given above by you also apply to winxp systems in a domain, Yeah - IIRC, domain users can't change much of the registry by default, primarily as they aren't in the 'administrators&

Re: ctypes return char array with null chars

2010-04-19 Thread Mark Tolonen
char*10)() >>> x <__main__.c_char_Array_10 object at 0x00A049E0> >>> x.raw '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' >>> x.value '' 'value' prints it is a string, stopping at the first null. 'raw' dumps the whole array. -Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows debugging symbols for python 2.5.4 and pywin32 214

2010-04-22 Thread Mark Hammond
are processed recursively, and very large input can cause the recursion limit to be hit. I'm still occasionally bitten by this in the IMAP client code... HTH, Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Engineering numerical format PEP discussion

2010-04-26 Thread Mark Dickinson
ink there's much chance of getting changes to old-style string formatting accepted; you might be better off aiming at the new- style string formatting. (And there, the 'n' modifier is already taken for internationalization, so you'd have to find something different. :) -- Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Engineering numerical format PEP discussion

2010-04-26 Thread Mark Dickinson
(123000).to_eng_string() > > '123000' That's not a bug. The triple [0,123,3] is Decimal('123e3'), which is not the same thing as Decimal('123000'). The former has an exponent of 3 (in the language of the specification), while the latter has an exponent

Re: Engineering numerical format PEP discussion

2010-04-27 Thread Mark Dickinson
t out :-) By the way, there's already a feature request open for this: http://bugs.python.org/issue8060 That might be a good place to hash out the precise semantics. If you could provide unit tests and/or an implementation that would likely help move the issue along. Mark -- http://mail.python.org/mailman/listinfo/python-list

building python 3 -- _dbm necessary bits

2010-04-28 Thread Mark Olbert
I'm getting an error message about make not being able to find the necessary bits to build modules related to _dbm. Yet I have libgdbm installed installed on my system. Suggestions on how to fix this? - Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: matching strings in a large set of strings

2010-04-29 Thread Mark Tolonen
t;>> for line in open('test.txt'): ... if 'xyz' in line: ... print line ... Reading only a line at a time has the advantage of using very little memory. Storing 83 million 14-character strings in memory requires a minimum of about 1.2GB not counting overhead for lists/sets/dictionaries. -Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: building python 3 -- _dbm necessary bits

2010-04-29 Thread Mark Olbert
On Thu, 29 Apr 2010 15:51:26 +1000, James Mills wrote: >On Thu, Apr 29, 2010 at 1:12 PM, Mark Olbert > wrote: >> I'm getting an error message about make not being able to find the necessary >> bits to build modules related to _dbm. Yet I have >> libgdbm ins

Re: building python 3 -- _dbm necessary bits

2010-04-30 Thread Mark Olbert
sue to the developers so that the Python build script can be modified to look for the gdbm files in /usr/include? - Mark On Fri, 30 Apr 2010 03:44:26 +1000, James Mills wrote: >On Fri, Apr 30, 2010 at 3:00 AM, Mark Olbert > wrote: >> Okay. But I compiled & installed gdbm from so

Re: long int computations

2010-05-06 Thread Mark Dickinson
he 'from __future__' import, then you can do long1.__truediv__(long2): >>> n = 765*10**1000 + 1 >>> n.__truediv__(n+1) 1.0 If you care about speed at all, I'd avoid the Fractions solution; it does an expensive and slow gcd computation. -- Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Fastest way to calculate leading whitespace

2010-05-08 Thread Mark Dickinson
eturning s[:-1 - len(t)] is faster. > > I'm sure it is. Unfortunately, it's also incorrect. > > >>> z = "*abcde" > >>> z[:-1-5] > '' > >>> z[:len(z)-5] > > '*' > > However, s[:-len(t)] should be both faster and correct. Unless len(t) == 0, surely? -- Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Fastest way to calculate leading whitespace

2010-05-09 Thread Mark Dickinson
On May 9, 6:13 am, Steven D'Aprano wrote: > On Sat, 08 May 2010 13:46:59 -0700, Mark Dickinson wrote: > >> However, s[:-len(t)] should be both faster and correct. > > > Unless len(t) == 0, surely? > > Doh! The hazards of insufficient testing. Thanks for ca

win32com sql update problem

2010-05-11 Thread Mark Carter
Consider the following snippet of code: import win32com.client DSN = 'PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=M:\\Finance\\camel\ \camel.mdb;' conn.Open(DSN) cursor = conn.Execute("UPDATE tblInvoice SET InvComments='Python' WHERE InvBillingPeriod = 'April 2010' AND InvJobCode = '2169'") rows

Re: Puzzled by code pages

2010-05-15 Thread Mark Tolonen
('utf-8') # s is Unicode again. f2 = codecs.open("out.txt", 'wb', encoding="iso8859-2") f2.write(s) f2.close() Note you *decode* byte strings to Unicode and *encode* Unicode into byte strings. -Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: A couple questions about classes and inheritance

2010-05-16 Thread Mark Young
You can't subclass Ellipsis. -- http://mail.python.org/mailman/listinfo/python-list

Re: remove elements incrementally from a list

2010-05-19 Thread Mark Lawrence
http://docs.python.org/tutorial/datastructures.html Regards. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: function that counts...

2010-05-19 Thread Mark Dickinson
ot callable > > on 2.5.4 The TypeError is almost certainly because you've created a integer 'sum' variable in your script/interpreter session, hiding the built-in sum function. -- Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Can upper() or lower() ever change the length of a string?

2010-05-24 Thread Mark Dickinson
r-by-character replacement. [1] http://svn.python.org/view/python/trunk/Objects/unicodeobject.c?view=markup -- Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Can upper() or lower() ever change the length of a string?

2010-05-24 Thread Mark Dickinson
[13], 16) else: lower = char if record[14]: title = int(record[14], 16) ... and so on. I agree that it might be desirable for these operations to product the multicharacter equivalents. That idea looks like a tough sell, though: apart from backwards compatibility concerns (which could p

Re: Email in 2.6.4

2010-05-24 Thread Mark Lawrence
meText. import email msg = MIMEText('test') NameError: name 'MIMEText' is not defined What should I do? Give the fully qualified name i.e. email.mime.text.MIMEText. Regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Chatroom

2010-05-24 Thread Mark Lawrence
problems ask here or on the Python tutor ng/ml. Regards. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Python-URL! archives

2010-05-26 Thread Mark Lawrence
According to http://www.python.org/community/lists/ these are archived here http://www.equi4.com/wikis/urls/82. As the latter hasn't been updated since 2000-07-20 isn't it time to change the former :) Regards. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: python command line manual

2010-05-26 Thread Mark Lawrence
On 26/05/2010 14:59, Tim Golden wrote: On 26/05/2010 14:50, Aahz wrote: In article, Chris Rebert wrote: On Mon, May 24, 2010 at 3:52 PM, Peng Yu wrote: I mainly check online python manual. But I feel that it would be nice if there is command line manual available (just like perl command line

Re: matplotlib: show xticks only for discrete times

2010-05-27 Thread Mark Lawrence
Thanks in advance. See http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.xticks matplotlib also has it's own mailing list. HTH Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: First script. Need some help

2010-05-27 Thread Mark Lawrence
n distribution for Windows." HTH. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

A Friday Python Programming Pearl: random sampling

2010-05-28 Thread Mark Dickinson
I don't claim any originality for the algorithm; only for the implementation: the algorithm is based on an algorithm attributed to Robert Floyd, and appearing in Jon Bentley's 'Programming Pearls' book (though that algorithm produces a set, so doesn't worry abou

Re: A Friday Python Programming Pearl: random sampling

2010-05-29 Thread Mark Dickinson
On May 29, 3:43 pm, Bryan wrote: > Mark Dickinson wrote: > > N.B.  I don't claim any originality for the algorithm; only for the > > implementation: the algorithm is based on an algorithm attributed to > > Robert Floyd, and appearing in Jon Bentley's 'Program

xrange issue 7721

2010-05-29 Thread Mark Lawrence
hanged at all. Assuming that I am correct, can I create myself a login on the bugs tracker and re-open the issue to get this sorted? Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: xrange issue 7721

2010-05-29 Thread Mark Lawrence
Hi Martin, thanks for the response, please see below. On 29/05/2010 20:12, Martin Manns wrote: On Sat, 29 May 2010 19:46:28 +0100 Mark Lawrence wrote: I've had an OverflowError using xrange with Python 2.6.5 on Windows. Googling got me to the subject line. msg97928 gives a code snipp

Re: if, continuation and indentation

2010-05-29 Thread Mark Lawrence
r reason the PEP is faulty in this circumstance is that a misplaced backslash, or a missing one, is easily found and fixed. A misplaced parentheses, or just one of a pair, will transform your source code into something which may compile and then give faulty results: a disaster. So keep it simple, and make it legible. Yours, John IMHO complete garbage, if your editor doesn't show misplaced or missing parenthesis by highlighting you're using the wrong editor :) Regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about permutations (itertools)

2010-05-31 Thread Mark Dickinson
am missing something. In this case, you're missing itertools.product: >>> list(itertools.product([0, 1], repeat=3)) [(0, 0, 0), (0, 0, 1), (0, 1, 0), (0, 1, 1), (1, 0, 0), (1, 0, 1), (1, 1, 0), (1, 1, 1)] -- Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: xrange issue 7721

2010-05-31 Thread Mark Lawrence
) is what I consider unreasonable. Regards, Martin Just forget it, if anyone falls foul of the garbage that has been put into the documentation, you can accept responsibility. Disgusted and offended. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Mixing Decimal and float

2010-06-02 Thread Mark Dickinson
('1.1') and Decimal('1.1') are different values.) I don't think your approach can succeed; I'd suggest just subclassing 'object' and abandoning the 'isinstance' requirements. Or perhaps creating a subclass of Decimal that interacts nicely with

Re: GUIs - A Modest Proposal

2010-06-06 Thread Mark Lawrence
til py3.0 for Tkinter to get a combobox :-O! Yea i know! :'-( Patches are welcome at any time. I look forward to seeing your first contribution. Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Drop Table w/ MySQLdb?

2010-06-07 Thread Mark Lawrence
query = query % (args) cursor.execute('drop table tmp%s', tmpTable) produces drop table tmp'xyz' NOT drop table tmpxyz Well put Sir. Can I suggest that the OPs continual requests for assistance are simply not cricket? :) Yeah, I'm a Brit, and

Re: GUIs - A Modest Proposal

2010-06-07 Thread Mark Lawrence
On 06/06/2010 22:11, rantingrick wrote: On Jun 6, 2:06 pm, Mark Lawrence wrote: On 06/06/2010 16:31, rantingrick wrote: On Jun 5, 9:22 pm, antwrote: I ask the group; should we try to create a new GUI for Python, with the following properties?: - Pythonic - The default GUI (so it

Re: GUIs - A Modest Proposal

2010-06-07 Thread Mark Lawrence
P. See the following link as to why you've got so many comments:) http://www.symbian-freak.com/news/009/08/first_public_release_of_pyside_for_qt_and_maemo.htm Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Plotting in batch with no display

2010-06-07 Thread Mark Lawrence
otlib specific mailing list at e.g. gmane.comp.python.matplotlib.general. Apologies if this has been suggested in this thread and I've missed it. Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: assign class variable in __init__

2010-06-08 Thread Mark Lawrence
ather than def __init__(self,source = "test", length = 1): Why not try this from an interactive prompt, quicker than posting and waiting for a reply? Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: assign class variable in __init__

2010-06-08 Thread Mark Lawrence
On 08/06/2010 17:55, Steven D'Aprano wrote: On Tue, 08 Jun 2010 17:24:55 +0100, Mark Lawrence wrote: On 08/06/2010 17:04, Ross Williamson wrote: Hi Everyone, Just a quick question - Is it possible to assign class variables in the __init__() - i.e. somthing like: They're instance

Re: Non Sequitur: Re: Python Forum

2010-06-08 Thread Mark Young
According to the Oxford Dictionary: *fish** noun **, **verb *noun *(**pl.**fish** or **fishes**) *Fish is the usual plural form. The older form, fishes, can be used to refer to different kinds of fish... However, I wo

Re: GUIs - A Modest Proposal

2010-06-08 Thread Mark Lawrence
ines as it's a complete non starter. My preference is for the good old command line, mainly because research I read, admittedly years ago, stated that using said beast was far more efficient for experienced users than a GUI. If more recent research suggests that this has changed then great, I

Re: GUIs - A Modest Proposal

2010-06-09 Thread Mark Roseman
ter going a different way...) Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-09 Thread Mark Roseman
er one called pTk, which wraps Tk's Tcl API, meaning it can easily keep up to date with improvements in Tk. And the wrapper code itself is frighteningly small, what amounts to an exceedingly clever but minor engineering effort. I hope this explains why trying to have Tkinter work without Tcl would be a non-starter. Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-09 Thread Mark Lawrence
f you doing anything as there is of all Arab nations keeping the piece with Israel, or vice versa. Still chuckling over the Windows compiled help file :) Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-09 Thread Mark Lawrence
On 09/06/2010 22:43, rantingrick wrote: On Jun 9, 3:52 pm, Mark Lawrence wrote: This comes from the bloke who couldn't be bothered to find out how to download the fixed version of the Windows compiled help file? Ok, so i was a bit miffed about the docs bug and felt the need to vent.

Re: GUIs - A Modest Proposal

2010-06-09 Thread Mark Roseman
ograms make a few simple changes, they won't look all that > much different. So while this tutorial will certainly benefit newcomers to > Tk, it will also help existing Tk developers bring their knowledge right up > to date. Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-09 Thread Mark Roseman
ld be better spent learning about or communicating this information to developers who might easily benefit. Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-10 Thread Mark Lawrence
e a Champion of Common Sense. This appears to be sadly lacking from some other participants. Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Mark Lawrence
On 10/06/2010 22:51, Pascal J. Bourguignon wrote: bolega writes: Which is the best implementation of LISP family of languages for real world programming ? What's the real world? What's real world programming? What's this doing on c.l.py? Regards. Mark Law

Re: GUIs - A Modest Proposal

2010-06-10 Thread Mark Lawrence
ses' views, and trivial little issues like keeping backwards compatibility. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Decimal problem

2010-06-10 Thread Mark Dickinson
ally and type 'from decimal import Decimal' at the prompt? -- Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-10 Thread Mark Roseman
siderable amount of volunteer work that continues to go into Tkinter (and Tk) and the people who use both does not help you advance your case. Mark -- http://mail.python.org/mailman/listinfo/python-list

[OT]romantic poetry

2010-06-10 Thread Mark Lawrence
For a bit of light relief from those fed up of reading of the perceived shortcomings of tkinker thought you might like this. Enjoy :) http://www.cc.gatech.edu/fac/Spencer.Rugaber/poems/love.txt Kindest regards. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-10 Thread Mark Lawrence
Note: Simon Cowell WILL NOT be making a celebrity appearance! """ What can pydev lose from such a test? If the numbers are large then i will jump full force behind Tkinter. But if not, we know it's time to act. I look forward to seeing your request on the Python bug tracker

Re: GUIs - A Modest Proposal

2010-06-11 Thread Mark Lawrence
On 11/06/2010 08:35, rantingrick wrote: On Jun 11, 1:46 am, Mark Lawrence wrote: I look forward to seeing your request on the Python bug tracker. Not holding my breath. Thanks Mark, its done! "Tkinter Litmus Test" I know, saw it on the bug tracker list before I left for

Re: GUIs - A Modest Proposal

2010-06-11 Thread Mark Lawrence
mp through any hoops to get it to run on different platforms. /W To quote R. David Murray on the Python bug tracker earlier today. "Everyone who uses IDLE uses TKInter, and a lot of people use IDLE." Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-11 Thread Mark Lawrence
On 11/06/2010 17:17, rantingrick wrote: On Jun 11, 9:06 am, Mark Lawrence wrote: "Everyone who uses IDLE uses TKInter, and a lot of people use IDLE." That sounds like hyperbole to me. What evidence do you have to made such a statement. What evidence do *I* have to make th

Re: GUIs - A Modest Proposal

2010-06-11 Thread Mark Roseman
> So let me hear of ANY improvements and/or suggestions for Tkinter/IDLE > docs, code, or whatever. Why don't you modify the IDLE code to use the newer ttk widget set, rather than what its using now? You'd be surprised at how much difference you'll see. -- http://mail.python.org/mailman/listin

Re: GUIs - A Modest Proposal

2010-06-11 Thread Mark Lawrence
if Dr Who can take on baddies like the daleks, yetis and cybermen Ranting Rick would be a piece of cake. :) My 13 year old will be glued to BBC1 tonight at 18:45 BST to see his hero (Dr Who that is) in action. Down with baddies. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-13 Thread Mark Lawrence
UI in Python, but should I need to do so this your comments and the responses will certainly stick in my mind. Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Community (A Modest Proposal)

2010-06-13 Thread Mark Lawrence
o. I feel very sorry for him. As he is incapable of communicating effectively I seriously do wonder if he suffers from some form of autism, Asperger Syndrome maybe? Seriously. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: math.erfc OverflowError

2010-06-13 Thread Mark Dickinson
f(x) and erfc(x), and that term underflows to zero at abs(x) = sqrt(1075*log(2)), which is around 27.297. Some system math libraries (unfortunately not including the ones I tested on; I *did* test, honest!) set errno on underflow to zero; this errno value was then being misinterpreted as an indi

Re: a +b ?

2010-06-14 Thread Mark Leander
(pytyhon 2.x code): print input('Enter expression: ') Example uses: Enter expression: 3+4 7 Enter expression: 1+2+3+4+5 15 Enter expression: 7*18 126 Enter expression: 2**19-1 524287 -- http://mail.python.org/mailman/listinfo/python-list

Re: a +b ?

2010-06-14 Thread Mark Dickinson
t; > >one, two = input('enter two numbers: ').split() > >print(int(one) + int(two)) > > >I like names over subscripts, but that's just me :) > > Fore! > >     print(sum(map(int, input('enter two numbers: ').split( > > Jean-Paul

Re: biopython

2010-06-14 Thread Mark Lawrence
ase read this, it'll show you your mistake. http://www.biopython.org/wiki/SeqIO#Sequence_Input Regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: biopython

2010-06-14 Thread Mark Lawrence
faqs/smart-questions.html HTH. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-15 Thread Mark Lawrence
ovoked. I apologize. No problem Stephen, as you'll find out over time i have a skin much thicker than your average grape, unlike some folks round here. Unfortunately though the code showdown will need to be postponed until tomorrow. However my good friend Mark will be glad to know I just gra

Re: logging = logging.getLogger(__name__)

2010-06-15 Thread Mark Lawrence
gging module so you won't get very far. HTH. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: logging = logging.getLogger(__name__)

2010-06-15 Thread Mark Lawrence
On 15/06/2010 17:03, genkuro wrote: On Jun 15, 8:49 am, Mark Lawrence wrote: On 15/06/2010 16:35, genkuro wrote: Newbie here. I may be missing something obvious, in which case, please feel free to berate and laugh at me. Here's a dubious line of code: logging = logging.getLogger(__n

Fwd: INCONTROVERTIBLE PROOF of the Incompetence of FBI

2010-06-15 Thread Mark Young
Agreed. PS: If yo're going to cuss, please at least spell your expletives correctly. It's not "bustard". Oops, forgot to send to list. -- http://mail.python.org/mailman/listinfo/python-list

Re: Fwd: INCONTROVERTIBLE PROOF of the Incompetence of FBI

2010-06-15 Thread Mark Young
HAHA. I apologize for my apparently incorrect criticism nanothermite. -- http://mail.python.org/mailman/listinfo/python-list

Re: INCONTROVERTIBLE PROOF of the Incompetence of FBI

2010-06-15 Thread Mark Young
Seriously, this is completely irrelevant for a list about python. -- http://mail.python.org/mailman/listinfo/python-list

Re: INCONTROVERTIBLE PROOF of the Incompetence of FBI

2010-06-16 Thread Mark Lawrence
I Bustards, but I am aware of the Great Bustard, see e.g. http://greatbustard.org/ As for the rest of the cobblers, you've managed to exceed the output of Xah Lee, Ranting Rick and Ilias Lazaridis combined and all in one hit, congratulations. Bugger off, please! Mark Law

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Mark Lawrence
he Timbot." All, I actually don't know how to report such things because of the combination of c.l.py, gmane.comp.python.general and http://mail.python.org/mailman/listinfo/python-list, possibly others?. Could somebody please show the correct direction? Kindest regards. Mark Lawre

Re: How to set up this usenet discussion?

2010-06-16 Thread Mark Lawrence
;m completely new to newsgroups. FWIW I read the ng/ml with Thunderbird on Windows Vista through gmane.comp.python.general, works a treat. Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Mark Lawrence
On 16/06/2010 21:02, Stephen Hansen wrote: On 6/16/10 12:21 PM, Mark Lawrence wrote: I actually don't know how to report such things because of the combination of c.l.py, gmane.comp.python.general and http://mail.python.org/mailman/listinfo/python-list, possibly others?. Could somebody p

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Mark Lawrence
On 16/06/2010 22:51, Joshua Kordani wrote: Benjamin Kaplan wrote: On Wed, Jun 16, 2010 at 12:21 PM, Mark Lawrence wrote: On 16/06/2010 18:56, Alan Harris-Reid wrote: Any idea how we get rid of this 'noise'? Will it eventually go away if we ignore it, or is there anything the mode

Upgrading from Python 2.6.5 w.r.t. matplotlib/numpy?

2010-06-16 Thread Mark Lawrence
ally understand what the current situation is. Could somebody please recommend whether I take the direct or indirect route to Python 3.1. FWIW I'm on Windows Vista. TIA. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: a +b ?

2010-06-16 Thread Mark Lawrence
nt days I wish there was a "Kill Poster" button. Reminds me of all those jolly old black and white Hollywood cowboy movies, "we'll have a fair trial, then we'll hang him" :) Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Py_single_input and the side-effects...

2010-06-17 Thread Mark Lawrence
sion or whatever. I've tried this in a script this evening and it works perfectly. print 'total', sum(amount for _, amount in outputs) Where is the use of _ in a script documented, I've searched all over and can't find it, guess I don't have the Midas

Re: Py_single_input and the side-effects...

2010-06-17 Thread Mark Lawrence
On 17/06/2010 22:51, Stephen Hansen wrote: On 6/17/10 2:32 PM, Mark Lawrence wrote: Where is the use of _ in a script documented, I've searched all over and can't find it, guess I don't have the Midas touch with google? :) Its purely a convention, and one that crosses langu

Re: pythonize this!

2010-06-18 Thread Mark Lawrence
news is that this is easily the fastest piece of code that I've seen yet. The bad news is that first prize in the speed competition is a night out with me. :) Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: pythonize this!

2010-06-18 Thread Mark Lawrence
On 18/06/2010 16:00, Steven D'Aprano wrote: On Fri, 18 Jun 2010 14:32:30 +0100, Mark Lawrence wrote: The good news is that this is easily the fastest piece of code that I've seen yet. The bad news is that first prize in the speed competition is a night out with me. I suppose secon

Re: pythonize this!

2010-06-18 Thread Mark Lawrence
On 18/06/2010 16:26, Andre Alexander Bell wrote: On 06/18/2010 03:32 PM, Mark Lawrence wrote: The good news is that this is easily the fastest piece of code that I've seen yet. The bad news is that first prize in the speed competition is a night out with me. :) Well, that actually means

Re: pythonize this!

2010-06-19 Thread Mark Lawrence
On 19/06/2010 11:36, Stefan Behnel wrote: Mark Lawrence, 18.06.2010 17:53: ... *AND* (looking at your email address) Germany loosing in the world cup. :( Yep, we always do that once at the early stages of a world cup. Pretty good camouflage, still works most of the time. Stefan Yes, but

Re: 500 tracker orphans; we need more reviewers

2010-06-19 Thread Mark Lawrence
verages less per message than python-list, which itself is pretty decent. Terry Jan Reedy Ok, but I'm going for EAFP rather than LBYL. I have written a will. :) Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple list problem that's defeating me!

2010-06-22 Thread Mark Lawrence
e everything together, see http://docs.python.org/library/itertools.html?highlight=groupby#itertools.groupby Combine the lists in the groups. HTH. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: GDAL-1.7.1 : vcvarsall.bat missing

2010-06-25 Thread Mark Lawrence
tudio 2008 Christian Not always, see my comment here. http://www.mail-archive.com/[email protected]/msg06755.html Kindest regards. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Help on finding word is valid as per English Dictionary through python

2010-06-25 Thread Mark Lawrence
glish dictionaries". Some don't even include "neighbour", imagine that! Please help me. Thanks, Anu -- http://mail.python.org/mailman/listinfo/python-list Are you talking about correct English, as in that from Angleland, or are you going for one of those silly foreign one

Re: improving python performance by extension module (64bit)

2010-06-25 Thread Mark Lawrence
On 25/06/2010 16:34, Stephen Hansen wrote: Python's slow, sure. But its in practice fast enough for an extremely broad range of activities. What? Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Heuristic

2010-06-25 Thread Mark Lawrence
Please stop top posting!!! On 25/06/2010 15:14, Nathan Rice wrote: I solve optimization problems like this all the time using branch and bound. Just arrange the possible scenarios into a state space tree, (ideally ordered by lowest average cost supplier) then prune any branch where the best case

Re: Python dynamic attribute creation

2010-06-25 Thread Mark Lawrence
On 25/06/2010 19:03, WANG Cong wrote: [lots of snips] "Happily mixes them all together" doesn't mean it is elegant. :) Bollocks springs to my mind. :) Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python dynamic attribute creation

2010-06-25 Thread Mark Lawrence
ot;, the next it's a performance issue. What do you want, blood on it? Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: best way to increment an IntVar?

2010-06-25 Thread Mark Lawrence
uite well. You, sadly, are beyond redemption. Have a nice day. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: improving python performance by extension module (64bit)

2010-06-25 Thread Mark Lawrence
On 25/06/2010 22:25, Stephen Hansen wrote: On Fri, Jun 25, 2010 at 1:51 PM, Mark Lawrencewrote: On 25/06/2010 16:34, Stephen Hansen wrote: Python's slow, sure. But its in practice fast enough for an extremely broad range of activities. What? What, what? --S Python is *NOT*

Re: deprecated string module issue

2010-06-25 Thread Mark Lawrence
s ng/ml. Disgusted. Mark Lawrence. On 25/06/2010 22:31, GrayShark wrote: Why the rudness Terry Jan Reedy? Get up on the wrong side of the bed? Or worse luck, no one on the other side to create a wrong side? As to your comment about Logilab's pylint. I'v seen a ticket similar to this fr

Re: Python dynamic attribute creation

2010-06-28 Thread Mark Lawrence
lain why the whole object model would need to change? UHHM! Forget it. This of course doesn't work with setattr too. My stupidness. :-( Don't worry too much, looks like your nation's football is much better than your settattr knowledge. I'm now setting up another charity

Re: [OT] Football was: Python dynamic attribute creation

2010-06-28 Thread Mark Lawrence
On 29/06/2010 00:21, Alexander Kapps wrote: Mark Lawrence wrote: On 28/06/2010 20:23, Alexander Kapps wrote: UHHM! Forget it. This of course doesn't work with setattr too. My stupidness. :-( Don't worry too much, looks like your nation's football is much better than your set

<    46   47   48   49   50   51   52   53   54   55   >