Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-27 Thread Steve Holden
-- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: what a cheap rule

2010-11-25 Thread Steve Holden
message. Regards, Yingjie regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- http

Re: tilted text in the turtle module

2010-11-25 Thread Steve Holden
such an issue). You may find if you look at the module's code that you can imagine how to make the change. If not, the request will wait until some maintainer sees it and has time. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http

Re: do something every n seconds

2010-11-25 Thread Steve Holden
and time.time() as your time function. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- http

Re: a regexp riddle: re.search(r'(?:(\w+), |and (\w+))+', 'whatever a, bbb, and c') =? ('a', 'bbb', 'c')

2010-11-25 Thread Steve Holden
*, 'whatever a, bbb, and c')[::2] ['whatever', 'a', 'bbb', '', 'c'] That empty string is because of the , and which isn't recognise as a single delimiter. A parsing package might give you better results. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta

Re: what a cheap rule

2010-11-25 Thread Steve Holden
could be ignored. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org

Re: tilted text in the turtle module

2010-11-25 Thread Steve Holden
On 11/25/2010 10:49 AM, Yingjie Lan wrote: --- On Thu, 11/25/10, Steve Holden st...@holdenweb.com wrote: From: Steve Holden st...@holdenweb.com Subject: Re: tilted text in the turtle module To: python-list@python.org Date: Thursday, November 25, 2010, 7:00 PM On 11/25/2010 5:06 AM, Yingjie

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-25 Thread Steve Holden
a very thorough description of the new-style class system with an example showing the resolution of the diamond pattern. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http

Re: tilted text in the turtle module

2010-11-25 Thread Steve Holden
On 11/25/2010 5:58 PM, Yingjie Lan wrote: --- On Thu, 11/25/10, Steve Holden st...@holdenweb.com wrote: And even if I made a patch, then how to publish it? Once you have a patch, attach it to the issue as a file and try and get it reviewed by a developer for incorporation into a future

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: On 11/25/2010 11:48 AM, Eric Smith wrote: Eric Smith e...@trueblade.com added the comment: How about: from collections import defaultdict class defaultdict_value(defaultdict): def __init__(self, value): defaultdict

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: On 11/25/2010 1:44 PM, Łukasz Langa wrote: To sum up: if you don't find the idea of adding `fallbackdict' (possibly with an different *short* name) worth it, then I'm +1 on correcting the docs in terms of __missing__ and leaving

Re: strings getting unnecessarily cut in lstrip

2010-11-21 Thread Steve Holden
is removed because there's a d in abcd_. If you want to remove a string, try testing is with its .startswith() method and them removing the right number of characters. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org

Re: Scheme as a virtual machine?

2010-11-21 Thread Steve Holden
, but Paul Graham's story [1] speaks for itself. [1] http://www.paulgraham.com/avg.html Perhaps we could take this thread to alt.small.minded.bickering now? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python

Re: What was your strategy?

2010-11-19 Thread Steve Holden
for experienced programmers, whether in Python or other languages. It's definitely not something I would recommend for a programming noob. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http

Re: Program, Application, and Software

2010-11-19 Thread Steve Holden
will trigger it to be run by the registered interpreter. As far as I know, anyway. By default on my Vista system I see PATHEXT contains C:\Users\sholden\workspace\Python3_Lesson3\srcecho %PATHEXT% .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC regards Steve -- Steve Holden +1 571

Re: Modifying Element In For List

2010-11-19 Thread Steve Holden
to True or False perfectly safe. But it's still the wrong thing to do. if condition==True: and if condition is True: should both be replaced (under most circumstances) by if condition: regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17

Re: strange behavor....

2010-11-19 Thread Steve Holden
-subclassed dict, at least as far as __setitem__ is concerned. But it doesn't make this assumption for locals(). That's because it reserves the right to optimize local storage without extending the mapping to allowing item setting. regards Steve -- Steve Holden +1 571 484 6266 +1

Re: dict diff

2010-11-19 Thread Steve Holden
on the builtin dict, but that'd take a pep, no? A PEP *and* some explanation of why you would want such an obscure piece of code built in to the dict object, yes. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org

Re: Distribution of Python Scripts

2010-11-18 Thread Steve Holden
one distribution file for all platforms, but I can live with making three if that's the only option. So, what's my options. The only one I could find was cxFreeze: http://cx-freeze.sourceforge.net/ regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011

Re: Program, Application, and Software

2010-11-18 Thread Steve Holden
created (assuming file permissions permit) when the module is *imported*. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http

Re: Raw Unicode docstring

2010-11-17 Thread Steve Holden
it may sound like a noobish one. Thanks. Check out http://cse.csusb.edu/dick/samples/python.syntax.html#stringprefix which lists alternate string prefixes. Does any bodyy know if ur and UR mean the same thing? Yes, they do. regards Steve -- Steve Holden +1 571 484 6266 +1 800

Re: How to read such file and sumarize the data?

2010-11-17 Thread Steve Holden
: ls = line.split() if len(ls) 3 and ls[3].startswith(NCPU=): amt = int(ls[3][5:]) c[ls[0]] += amt for key, value in c.items(): print key, :, value $ python data.py xyz : 4 tanhoi : 1 sabril : 6 regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119

Re: How to read such file and sumarize the data?

2010-11-17 Thread Steve Holden
On 11/17/2010 7:51 PM, Terry Reedy wrote: On 11/17/2010 6:10 PM, Steve Holden wrote: $ cat data.py lines = open(data.txt).readlines() Since you iterate through the file just once, there is no reason I can think of to make a complete in-memory copy. That would be a problem with a multi

Re: Using Python and Connecting to MySQL remotely WITHOUT MySQL installed on local computer

2010-11-17 Thread Steve Holden
a reference implementation in Python to ease the task of those wishing to port the language and get as much functionality (albeit at some performance in cost) available as early in the porting cycle as possible. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011

Re: Using Python and Connecting to MySQL remotely WITHOUT MySQL installed on local computer

2010-11-17 Thread Steve Holden
On 11/17/2010 10:19 PM, Tim Harig wrote: On 2010-11-18, Steve Holden st...@holdenweb.com wrote: On 11/17/2010 7:21 PM, Tim Harig wrote: On 2010-11-18, dave davidrey...@gmail.com wrote: http://sourceforge.net/projects/mysql-python/ Using this package, WITHOUT having MySQL installed on my Mac

Re: What was your strategy?

2010-11-16 Thread Steve Holden
years of Python coding and it rarely disappoints. +1 It's encyclopedic. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC

Re: strange behavor....

2010-11-14 Thread Steve Holden
to such a method. I would prefer to think of a = something and lst[i] = something as in some sense different, because I see names as referencing locations in a namespace. Perhaps you can help to unify my perceptions. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494

Re: Copy Protected PDFs and PIL

2010-11-12 Thread Steve Holden
On 11/12/2010 12:00 PM, Brett Bowman wrote: Steve Holden - A traceback sounds like a great idea, but I don't know how to go about it, or know what is involved. Could you suggest a tutorial I could follow? The traceback is the listing of modules and line numbers that you normally get when

Re: Newbie question about python garbage collection when keeping only a reference to an object's member

2010-11-12 Thread Steve Holden
on to references outside the functions, and you are fine. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com

Re: How to test if a module exists?

2010-11-12 Thread Steve Holden
? OK, that's probably enough. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- http

Re: need some debug-infos on a simple regex

2010-11-12 Thread Steve Holden
. Or you could look at the Kodos tool, which is written in Python and will tell you exactly what a Python pattern will and will not match. http://kodos.sourceforge.net/ regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org

Re: is there an Python equivalent for the PHP super globals like $_POST, $_COOKIE ?

2010-11-11 Thread Steve Holden
, but I can't find the answer. thanks, Stef Mientki Stef: Moving from one language to anther is not just a matter of transliterating the code. Of you try that you will end up with a messy code base that looks like PHP written in Python. regards Steve -- Steve Holden +1 571 484 6266

Re: is there an Python equivalent for the PHP super globals like $_POST, $_COOKIE ?

2010-11-11 Thread Steve Holden
On 11/11/2010 3:23 PM, r0g wrote: On 11/11/10 18:01, Steve Holden wrote: On 11/11/2010 9:22 AM, Stef Mientki wrote: hello, finally got Python running at my server. Now I would like to replace the PHP server scripts with Python ( for easier maintenance). But I can't find how th get

Re: How to test if a module exists?

2010-11-11 Thread Steve Holden
would be lying, would you not? I still await some insight (which, of course, you are under no obligation to provide) about just why you perceive these innocent mistakes to be great wrongs that need righting. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011

Re: Copy Protected PDFs and PIL

2010-11-11 Thread Steve Holden
, for a start. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo

Re: How to test if a module exists?

2010-11-11 Thread Steve Holden
address. You mean from this one on http://mail.python.org/pipermail/python-list/2010-November/1259515.html? Here's a screen capture from Thunderbird. Anything else you need? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http

Re: How to test if a module exists?

2010-11-11 Thread Steve Holden
l...@geek-central.gen.nz wrote: ? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- http

Re: Looping through files in a directory

2010-11-10 Thread Steve Holden
. Any input or pointers to functions that'd help would be very much appreciated. Thanks! from glob import glob for filename in glob(*): # do something with filename regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http

Re: How to test if a module exists?

2010-11-10 Thread Steve Holden
, and it does little or no good to draw people's attention to it. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com

Re: Questions: While And List Comprehension

2010-11-10 Thread Steve Holden
=== print [v for v in sys.stdin.readlines()[:5]] how about print [sys.stdin.readline() for i in range(5)] At least that won't consume the whole file. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See

Re: Questions: While And List Comprehension

2010-11-10 Thread Steve Holden
the source. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo

Re: DTD Parsing

2010-11-10 Thread Steve Holden
. (That wasn't intended to be a production server though it ran sporadically on a computer in my basement for several years and produced a traceback occasionally). regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See

Re: A way to get setup.py to create links instead of copy

2010-11-09 Thread Steve Holden
to undo the installation manually by removing its additions to your Python's Lib/site-packages directory. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden

Re: Compare source code

2010-11-08 Thread Steve Holden
because the guarded suites (in this case, simple statements) are not flagged as clearly by indentation or a trailing colon, and are therefore more likely to be missed by the casual reader. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17

Re: Compare source code

2010-11-07 Thread Steve Holden
On 11/7/2010 8:23 AM, Grant Edwards wrote: [...] (I bought 4:3 monitors before they got replaced by cheap 16:8 screens) I think you'll find the new aspect ration is 16:9. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http

Re: Compare source code

2010-11-07 Thread Steve Holden
On 11/7/2010 10:46 AM, Grant Edwards wrote: On 2010-11-07, Steve Holden st...@holdenweb.com wrote: On 11/7/2010 8:23 AM, Grant Edwards wrote: [...] (I bought 4:3 monitors before they got replaced by cheap 16:8 screens) I think you'll find the new aspect ration is 16:9. aspect ration

Re: Using %x to format number to hex and number of digits

2010-11-06 Thread Steve Holden
-- Steve Holden +1 571 484 6266 +1 800 494 3119 Open source meetings? When, and where? Call for details PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ Ob Open Source

Re: ANN: PyQt v4.8.1 Released

2010-11-06 Thread Steve Holden
“commercial” use. I think he means a license that *he* sells comercially :) Presumably that’s a proprietary licence. I don't see why. GPL v2, for example, has nothing to say about the price charged for the software: simply that the source must be made available. regards Steve -- Steve

Re: Compare source code

2010-11-06 Thread Steve Holden
get past the standards, as a matter of temporal precedence. -s If someone were to use a text editor which had always historically mangled whitespace I would find myself wondering why they found it necessary to restrict themselves to such stone-age tools. regards Steve -- Steve Holden

Re: Silly newbie question - Carrot character (^)

2010-11-06 Thread Steve Holden
the tutorial. That ought to be quite a manageable project. Remember, Python is we, not they. Quite. having-no-wish-to-be-they-ly - steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http

Re: using google app through python

2010-11-04 Thread Steve Holden
. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python changes

2010-10-30 Thread Steve Holden
about everything you already know. Python 3.x would have some surprises, but 2.7 is currently the best-supported all-purpose install. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Steve Holden
, so I must be misunderstanding. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- http

Re: Why flat is better than nested?

2010-10-26 Thread Steve Holden
to tell those who are even newer to Python than me not to take it seriously.) The answer is probably the same as you will see if you try from __future__ import braces That feature *is* available in Python 2.6 ;-) regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon

Re: Unicode questions

2010-10-26 Thread Steve Holden
nor helpful, John. Silence might have been more productive: feeling crabby today? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC

Re: Why flat is better than nested?

2010-10-26 Thread Steve Holden
On 10/26/2010 2:44 PM, kj wrote: In mailman.258.1288104186.2218.python-l...@python.org Steve Holden st...@holdenweb.com writes: The answer is probably the same as you will see if you try from __future__ import braces That feature *is* available in Python 2.6 ;-) Now, that's

Re: Unittest: how to pass information to TestCase classes?

2010-10-26 Thread Steve Holden
instances, e.g. the location of the temp dir I created? The dir has to be created just once, before any tests run, and then multiple packages and multiple modules in them are imported and run. In which case a class variable would seem to be the appropriate mechanism. regards Steve -- Steve Holden

Re: Unicode questions

2010-10-25 Thread Steve Holden
on different architectures - indeed the DECSystem-10 and -20 had instructions that could be parameterized as to byte size. So octet was an unambiguous term for the (now standard) 8-bit byte. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http

Re: Exception Handling in Python 3

2010-10-25 Thread Steve Holden
On 10/25/2010 2:57 AM, Martin v. Loewis wrote: Am 24.10.2010 23:48, schrieb Steve Holden: On 10/24/2010 4:44 PM, John Nagle wrote: Are exception semantics changing in a way which would affect that? No, I don't believe so. I simply felt that the traceback gives too much information

Re: nntplib and ssl

2010-10-25 Thread Steve Holden
a crack at it if I can figure out how. Thanks for the help. You might find helpful information at http://python.org/dev/ regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http

Re: Why flat is better than nested?

2010-10-25 Thread Steve Holden
seriously should remember that it was written by Tim Peters one night during the commercial breaks between rounds of wrestling on television. So while it can give useful guidance, it's nether prescriptive nor a bible ... regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon

Re: Question on multiple python environments in Apache

2010-10-25 Thread Steve Holden
this? Thanks in advance, Jeff -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman

Re: Unicode questions

2010-10-25 Thread Steve Holden
On 10/25/2010 2:36 PM, Terry Reedy wrote: On 10/25/2010 2:33 AM, Steve Holden wrote: On 10/25/2010 1:42 AM, Lawrence D'Oliveiro wrote: In messagemailman.31.1287517442.2218.python-l...@python.org, Petite Abeille wrote: Characters vs. Bytes And why do certain people insist on referring

Re: Why flat is better than nested?

2010-10-25 Thread Steve Holden
On 10/25/2010 3:11 PM, kj wrote: In mailman.232.1288020268.2218.python-l...@python.org Steve Holden st...@holdenweb.com writes: On 10/25/2010 10:47 AM, rantingrick wrote: On Oct 25, 5:07 am, kj no.em...@please.post wrote: In The Zen of Python, one of the maxims is flat is better than

Re: Exception Handling in Python 3

2010-10-24 Thread Steve Holden
On 10/24/2010 4:48 AM, Martin v. Loewis wrote: Am 24.10.2010 07:01, schrieb Steve Holden: I was somewhat surprised to discover that Python 3 no longer allows an exception to be raised in an except clause (or rather that it reports it as a separate exception that occurred during the handling

Re: newbie to python

2010-10-24 Thread Steve Holden
questions, one wonders why you want to start Python. Perhaps you can explain, or is this simply trolling? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org

Re: Exception Handling in Python 3

2010-10-24 Thread Steve Holden
On 10/24/2010 2:22 AM, Lawrence D'Oliveiro wrote: In message mailman.176.1287896531.2218.python-l...@python.org, Steve Holden wrote: I was somewhat surprised to discover that Python 3 no longer allows an exception to be raised in an except clause (or rather that it reports it as a separate

Re: time difference interms of day

2010-10-24 Thread Steve Holden
object which contains days, seconds and microseconds: import datetime t1 = datetime.datetime.now() [waited a while] t2 = datetime.datetime.now() t2-t1 datetime.timedelta(0, 16, 509000) regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17

Re: Exception Handling in Python 3

2010-10-24 Thread Steve Holden
. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python

Re: newbie to python

2010-10-24 Thread Steve Holden
On 10/24/2010 5:19 PM, rantingrick wrote: On Oct 24, 7:31 am, Steve Holden st...@holdenweb.com wrote: On 10/24/2010 3:29 AM, Hrishikesh wrote: I want to start python, I have just downloaded python compiler, Can somebody please tell me what python really is and explain its architecture

Re: How do I chain methods?

2010-10-24 Thread Steve Holden
itself: x = 4 x.__add__(1).__sub__(3) 2 The implementation of many common operators return self (the object you're working with). You surely aren't trying to suggest that (4).__add__(1) returns 4? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011

Re: Exception Handling in Python 3

2010-10-24 Thread Steve Holden
that, but Python insists that you don't dick around with the built-in types. And roghtly so, IMHO. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC

Re: How to optimize and monitor garbage collection?

2010-10-24 Thread Steve Holden
structures. In their absence reference counting alone is sufficient to ensure that unused object memory is reclaimed. regards Steve [aside: in general, if you think your program is not working because of a bug in Python, look harder at your program]. -- Steve Holden +1 571 484 6266 +1

Re: How do I chain methods?

2010-10-24 Thread Steve Holden
we can safely conclude that method chaining isn't idiomatic in Python. Not that it doesn't have specialized uses though (See asterisk note). Yes, the Twisted guys use method chaining a lot - it's definitely idiomatic in that framework. regards Steve -- Steve Holden +1 571 484 6266

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-24 Thread Steve Holden
a terminal connected to a computer by a serila line, for heavens sake. Let's not go overboard looking for things to disagree about ;-) regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http

Exception Handling in Python 3

2010-10-23 Thread Steve Holden
if name not in _attrs: raise AttributeError ... value = _attrs[name] which requires an unnecessary second lookup on the attribute name. What is the correct paradigm for this situation? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta

Re: Python 2.7 parser bug on syntax for set literals ?

2010-10-23 Thread Steve Holden
' object has no attribute 'items' I'm not clear on what the bug is supposed to be, as this looks right to me. Or are you trying to make a dictionary and getting thrown by the set syntax? Geremy Condra -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17

Re: Exception Handling in Python 3

2010-10-23 Thread Steve Holden
implementation detail of __getattr__() is exposing *way* too much information. I even tried calling sys.exc_clear(), but alas that doesn't help :( regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video

[issue10000] mark more tests as CPython specific

2010-09-30 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: Of course, but better some record than none due to the overwhelming nature of the task. At least someone else can carry the torch from here. -- nosy: +holdenweb ___ Python tracker rep

DjangoCon US 2010

2010-08-09 Thread Steve Holden
://djangocon.us/schedule/ and you can register at http://djangocon.us/tickets/ The conference price for hotel accommodation is guaranteed only until August 13, so if you plan to attend you should register straight away. -- Steve Holden +1 571 484 6266 +1 800 494 3119 DjangoCon US

[issue1116520] Prefix search is filesystem-centric

2010-08-09 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: Personally I think it's just as relevant as it always was, particularly with the introduction of importlib, but Brett will have a more informed opinion. I won't be surprised if this issue is closed as wontfix

DjangoCon 2010

2010-08-08 Thread Steve Holden
://djangocon.us/schedule/ and you can register at http://djangocon.us/tickets/ The conference price for hotel accommodation is guaranteed only until August 13, so if you plan to attend you should register straight away. -- Steve Holden +1 571 484 6266 +1 800 494 3119 DjangoCon US

[issue8118] PYTHON_API_VERSION needs to be bumped?

2010-07-23 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: With the 2.7 release now completed should we close this issue? There's nothing to be done about the 2.6 issue. -- nosy: +holdenweb ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2010-07-23 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: The test program Larry provided does not appear to function as intended on Windows, and runs without either producing error messages or requiring interactive input. Here's a typical output, in this case from Python 3.1 on Vista: C:\Users

Re: Python Ireland's pre-PyCon drinks - Wed, 14th July @ Trinity Capital Hotel

2010-07-08 Thread Steve Holden
! See you a week on Saturday. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 DjangoCon US September 7-9, 2010http://djangocon.us/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
New submission from Steve Holden st...@holdenweb.com: The attached program completes in less than half a second under Python 2.5. Under Python 3 it takes almost three minutes on the same system. The issue appears to be heavy use of decoding, at least in a Windows system, during creation

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
Changes by Steve Holden st...@holdenweb.com: Added file: http://bugs.python.org/file17810/test.mailbox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
Changes by Steve Holden st...@holdenweb.com: Added file: http://bugs.python.org/file17811/test2.5.out ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
Changes by Steve Holden st...@holdenweb.com: Added file: http://bugs.python.org/file17812/test3.1.out ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: Thread at http://aspn.activestate.com/ASPN/Mail/Message/python-dev/3873005 refers to this issue. Posted files are already attached herewith. -- ___ Python tracker rep...@bugs.python.org http

[issue8943] Bug in InteractiveConsole

2010-06-26 Thread Steve Holden
Changes by Steve Holden st...@holdenweb.com: -- nosy: +holdenweb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8943 ___ ___ Python-bugs-list

[issue9083] At least some Tools utilities are still Python 2

2010-06-25 Thread Steve Holden
New submission from Steve Holden st...@holdenweb.com: C:\Users\sholden\python31\python \python31\Tools\webchecker\wcgui.py Traceback (most recent call last): File \python31\Tools\webchecker\wcgui.py, line 63, in module from Tkinter import * ImportError: No module named Tkinter This makes

May Introduction to Python class

2010-04-27 Thread Steve Holden
Holden Web is pleased to announce the next run of its popular three-day Introduction to Python class in Washington DC on May 11-13, 2010. Further details of all current event listings are available from http://holdenweb.eventbrite.com/ regards Steve -- Steve Holden +1 571 484 6266

May Introduction to Python class

2010-04-27 Thread Steve Holden
Holden Web is pleased to announce the next run of its popular three-day Introduction to Python class in Washington DC on May 11-13, 2010. Further details of all current event listings are available from http://holdenweb.eventbrite.com/ regards Steve -- Steve Holden +1 571 484 6266

Re: off topic but please forgive me me and answer

2010-04-03 Thread Steve Holden
. If he does, then surely he must also agree that 1 * 1/2 == 1/2, i.e. multiplication can indeed make things smaller. Good luck, though. Crackpots aren't generally responsive to appeals to rational thinking. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 See PyCon Talks

Re: off topic but please forgive me me and answer

2010-04-03 Thread Steve Holden
superpollo wrote: Steve Holden ha scritto: [...] If he agrees to that, then get him to agree that x * 1 == x for any x. If he agrees to that he does not, since you cannot multiply something, and not getting some more of it ... he is stuck with the latin etimology of multiply (multiplicare

Re: off topic but please forgive me me and answer

2010-04-03 Thread Steve Holden
the religious, so I will cease and desist). regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ -- http

Re: subclass of object

2010-04-02 Thread Steve Holden
). regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: subclass of object

2010-04-02 Thread Steve Holden
and replied accordingly. As can plainly be seen ... regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com

Re: (a==b) ? 'Yes' : 'No'

2010-04-02 Thread Steve Holden
on. While philosophical discussions are interesting they don't pay the bills. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http

<    1   2   3   4   5   6   7   8   9   10   >