[issue8943] Bug in InteractiveConsole /pickle

2020-10-28 Thread Steve Holden
Change by Steve Holden : -- nosy: -holdenweb ___ Python tracker <https://bugs.python.org/issue8943> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2020-01-11 Thread Steve Holden
Steve Holden added the comment: Verified. Methododology: 1. Copied test_localise.py from the PR into a master checkout. 2. Added a null locale.localize. 3. Verified that all new tests failed. .. code-block:: Ran 64 tests in 0.023s FAILED (errors=4, skipped=4) (base) blockhead:cpython

[issue37490] poor documentation for .startswith, .endswith

2019-07-03 Thread Steve Holden
Steve Holden added the comment: "Is the same as" is a little misleading - "gives the same result as" would be better, since there is little doubt actually slicing the subject strings would be massively less efficient in looping contexts. The re module offers the sta

Fwd: [PSF-Community] Announcing IndyPy Web Conf - August 23, 2019

2019-06-26 Thread Steve Holden
-- Forwarded message - From: MaryBeth Okerson Date: Wed, Jun 19, 2019 at 3:45 PM Subject: [PSF-Community] Announcing IndyPy Web Conf - August 23, 2019 To: group-organiz...@python.org , psf-commun...@python.org Hello all! IndyPy is excited to announce the call for proposals

[issue15443] datetime module has no support for nanoseconds

2018-07-05 Thread Steve Holden
Change by Steve Holden : -- nosy: -holdenweb ___ Python tracker <https://bugs.python.org/issue15443> ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: [Python-Dev] [RELEASE] Python 3.6.4rc1 and 3.7.0a3 now available for testing

2017-12-06 Thread Steve Holden
it. Seasons greetings Steve Steve Holden On Wed, Dec 6, 2017 at 2:29 AM, Ned Deily <n...@python.org> wrote: > Announcing the immediate availability of Python 3.6.4 release candidate 1 > and of Python 3.7.0 alpha 3! > > Python 3.6.4rc1 is the first release candidate for Pyth

[issue26732] multiprocessing sentinel resource leak

2017-07-28 Thread Steve Holden
Steve Holden added the comment: IIRC sockets can be marked as inheritable or not. It seems to me it would be a useful enhancement to allow the same determination for the pipes. -- nosy: +holdenweb ___ Python tracker <rep...@bugs.python.org>

[issue1116520] Prefix search is filesystem-centric

2016-12-25 Thread Steve Holden
Steve Holden added the comment: Don't forget that the built-in modules may need to be available before the zipimporter is. A long time ago (when sys.metapath was introduced) I experimented with imports from non-filesystem sources and that hit me until I realised what was going on. S Steve

[issue28205] Add optional suffix to str.join

2016-09-19 Thread Steve Holden
Steve Holden added the comment: If you are going to add such a keyword argument, wouldn't it make sense to maintain compatibility with print, and use end=terminator? -- nosy: +holdenweb ___ Python tracker <rep...@bugs.python.org>

[issue15443] datetime module has no support for nanoseconds

2016-09-16 Thread Steve Holden
Steve Holden added the comment: I agree on reflection that a single nanoseconds integral value makes more sense. This then requires refactoring of the existing code so that existing tests continue to pass using a microsecond property. Code using ONLY nanoseconds is a disjoint case, for which

[issue27842] Order CSV header fields

2016-08-30 Thread Steve Holden
Steve Holden added the comment: A pleasure. Pretty heavily committed at present, but all Python related so maybe there'll be more small positive improvements. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27842] Order CSV header fields

2016-08-26 Thread Steve Holden
Steve Holden added the comment: OK, here's what I think should be close to the final patch. I've updated the documentation, rebuilt it and verified it reads OK, and confirmed that the new code passes all tests except those skipped for platform reasons (I think they expect a Windows

[issue27842] Order CSV header fields

2016-08-26 Thread Steve Holden
Steve Holden added the comment: Is there another way? :) Sent from my iPhone > On 26 Aug 2016, at 12:16, Raymond Hettinger <rep...@bugs.python.org> wrote: > > > Raymond Hettinger added the comment: > > Consider using itertools.permutations() to generate the 120 ca

[issue27842] Order CSV header fields

2016-08-24 Thread Steve Holden
Steve Holden added the comment: Testing could be interesting. I'm thinking of generating five random string keys with a couple of rows of data, creating csv StringIOs (using pure Python) for all 120 combinations and verifying that they read back in the order they were written. We should also

[issue27842] Order CSV header fields

2016-08-23 Thread Steve Holden
Steve Holden added the comment: Sorry, deleted the originally submitted (incorrect) patch file. -- Added file: http://bugs.python.org/file44203/csv.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27842] Order CSV header fields

2016-08-23 Thread Steve Holden
Changes by Steve Holden <st...@holdenweb.com>: Removed file: http://bugs.python.org/file44202/csv.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27842] Order CSV header fields

2016-08-23 Thread Steve Holden
New submission from Steve Holden: It's sometimes annoying that a csv.DictReader doesn't retain the field ordering given in the first line of the file. Sometimes it matters. This patch converts the reader so that it returns an OrderedDict rather than a plain dict, thereby retaining

[issue27680] Reduce Github pull request rate

2016-08-04 Thread Steve Holden
Steve Holden added the comment: Hmm. Tried making a PR to a forked copy and didn't see it. Probably just incompetence on my part. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27680] Reduce Github pull request rate

2016-08-04 Thread Steve Holden
Steve Holden added the comment: I don't seem to be able to activate the PR template, but if you are happy it works then I guess this would be a belt-and-braces change. If nobody merges it and it gets closed that's fine, but if it obviates just a few pull requests it will save both the core

[issue27680] Reduce Github pull request rate

2016-08-04 Thread Steve Holden
Steve Holden added the comment: Hmm, not sure I quite understand how to interact with this tracker. So here's an updated patch that I thought I had already submitted ... -- Added file: http://bugs.python.org/file44006/README2.patch ___ Python

[issue27680] Reduce Github pull request rate

2016-08-04 Thread Steve Holden
New submission from Steve Holden: I have seen a relatively large number of pull requests via the Github mirror repository, because would-be contributors presumably just look on Github and, having found Python there, assume this is the place for contributions. The standard README file gives

[issue15443] datetime module has no support for nanoseconds

2016-07-20 Thread Steve Holden
Steve Holden added the comment: BTW, I presume it's a bug in the issue tracker that my view of this message ends after a few lines of msg166386? Makes it rather difficult to track the issue! -- ___ Python tracker <rep...@bugs.python.org>

[issue15443] datetime module has no support for nanoseconds

2016-07-12 Thread Steve Holden
Steve Holden added the comment: Just wanted to add a couple of comments here in case there's any interest. In our missions to make the world's market data available we deal with financial exchanges, many of whom are already recording event data at nanosecond resolution. Further, I believe

[issue15443] datetime module has no support for nanoseconds

2016-07-12 Thread Steve Holden
Steve Holden added the comment: Just wanted to add a couple of comments here in case there's any interest. In our missions to make the world's market data available we deal with financial exchanges, many of whom are already recording event data at nanosecond resolution. Further, I believe

[issue26449] Tutorial on Python Scopes and Namespaces uses confusing 'read-only' terminology

2016-02-29 Thread Steve Holden
Steve Holden added the comment: I don't agree there is any place for the term "read-only" in this document. A reader who doesn't understand it or seeks clarification is likely to end up at a page like https://en.wikipedia.org/wiki/Read-only. I submit that nowhere except the doc

UK Python Training Day

2014-12-02 Thread Steve Holden
://www.eventbrite.com/e/uk-python-training-day-tickets-14720737121 regards Steve -- Steve Holden st...@holdenweb.com +1 571 484 6266 @holdenweb -- https://mail.python.org/mailman/listinfo/python-list

New Python Course

2014-11-17 Thread Steve Holden
Hi everybody, I am pleased to announce the availability of a Python Programming Skills Lab in London on December 9, 2014 in The Church House, Westminster. The blurb follows. Led by Steve Holden, a well-known educator and member of the Python community, this one-day lab presents Python

New Python Course

2014-11-17 Thread Steve Holden
Hi everybody, I am pleased to announce the availability of a Python Programming Skills Lab in London on December 9, 2014 in The Church House, Westminster. The blurb follows. Led by Steve Holden, a well-known educator and member of the Python community, this one-day lab presents Python

[issue21904] Multiple closures accessing the same non-local variable always see the same value

2014-07-02 Thread Steve Holden
New submission from Steve Holden: When repeated use of a nonlocal variable is made (e.g. to define multiple functions in a loop) ideally the closure should reflect the value of the local variable at the time of use. This should at least be explicitly documented if the behavior is considered

[issue21904] Multiple closures accessing the same non-local variable always see the same value

2014-07-02 Thread Steve Holden
Steve Holden added the comment: Indeed the issue is that the pointer is to the local variable rather than its value at time of closure defnition. Not being familiar with the way cells are used, I am unsure as to how the closure keeps the whole namespace alive (that would seem to require

[issue21904] Multiple closures accessing the same non-local variable always see the same value

2014-07-02 Thread Steve Holden
Steve Holden added the comment: I believe (though my belief is untrammeled by anything as useful as knowledge of the code: my diagnostic skills are largely psychic) that the cell essentially takes over the reference from the local namespace of the about-to-terminate lexically surrounding

[issue7423] nested generator expression produces strange results

2014-07-02 Thread Steve Holden
Steve Holden added the comment: In my experience the devs are pretty well in touch with the user base (though they don't always acknowledge its input). If you leave a programming language at the first sign of wart I fear yo may eventually run out of languages. -- nosy: +holdenweb

[issue21074] Too aggressive constant folding

2014-03-28 Thread Steve Holden
Steve Holden added the comment: Is a fix really required? Are we really supposed to protect programmers from their own folly by second-guessing when constant folding might be required and when it might not? How is hte interpreter supposed to know the function isn't called? The simple

[issue19871] json module won't parse a float that starts with a decimal point

2014-03-28 Thread Steve Holden
Steve Holden added the comment: How about: A simple JSON decoder that converts between JSON string representations and Python data structures? -- nosy: +holdenweb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19871

[issue20098] email policy needs a mangle_from setting

2014-03-28 Thread Steve Holden
Steve Holden added the comment: This is an easy issue? -- nosy: +holdenweb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20098 ___ ___ Python-bugs

[issue20809] isabspath receiving path value on None in ditdutils.dist.py

2014-02-28 Thread Steve Holden
Steve Holden added the comment: I hope the title change is helpful. It's not clear from the report what module is being installed, or even whether that is a relevant factor. -- nosy: +holdenweb title: isabspath fails if path is None - isabspath receiving path value on None

[issue20809] isabspath receiving path value of None in ditdutils.dist.py

2014-02-28 Thread Steve Holden
Steve Holden added the comment: Typo, sorry -- title: isabspath receiving path value on None in ditdutils.dist.py - isabspath receiving path value of None in ditdutils.dist.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue20809] isabspath receiving path value of None in distutils.dist.py

2014-02-28 Thread Steve Holden
Steve Holden added the comment: Further typo, sorry again. -- title: isabspath receiving path value of None in ditdutils.dist.py - isabspath receiving path value of None in distutils.dist.py ___ Python tracker rep...@bugs.python.org http

[issue20809] isabspath receiving path value of None in distutils.dist.py

2014-02-28 Thread Steve Holden
Steve Holden added the comment: The submitted patch does not approach the issue, since the real question is WHY is the function being passed a None argument in the first place. Without extensive testing there would be no guarantees that this change would not result in breakage elsewhere

OSCON Call for Participation opens

2013-12-18 Thread Steve Holden
OSCON, the annual Open Source Convention held in Portland OR, will be held next year from July 20-24. The call for participation has now been published, and there will again be a Python track. Please see the full call at http://www.oscon.com/oscon2014/public/cfp/308. Submissions for 3-hour

DjangoCon US 2012

2012-07-24 Thread Steve Holden
Pythonistas: We are happy to remind all Django users that DjangoCon US is in DC this year, from September 3-8 (main conference September 4-6). Early bird pricing is available until August 3, and the schedule will be published shortly after this announcement is made. http://djangocon.us/

DjangoCon US 2012

2012-07-24 Thread Steve Holden
Pythonistas: We are happy to remind all Django users that DjangoCon US is in DC this year, from September 3-8 (main conference September 4-6). Early bird pricing is available until August 3, and the schedule will be published shortly after this announcement is made. http://djangocon.us/

[issue13208] Problems with urllib on windows

2012-05-24 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: I have just tested this against the 2.7.1 release on Windows 7 and it runs fine. I suspect there may have been some transient error with the reporter's system or network, but if this still fails for him then reopening will be appropriate

[issue13208] Problems with urllib on windows

2012-05-24 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: Oops, sorry, meant to close this issue. Hope that's OK. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13208

[issue2801] Py30a5 float.is_integer() raises ValueError

2011-11-04 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: ValueError: (11, 'Resource temporarily unavailable') looks to me like a Cygwin error relating to Windows' DLLs and the difficulty of mapping them to unique memory locations. I very much doubt it's a real issue with Python, so closing

Re: Community Involvement

2011-08-04 Thread Steve Holden
Haven't had much Cc input so far, but this one is definitely worth following up on. Thanks! regards Steve On Aug 4, 2011, at 5:42 PM, Eric Snow wrote: On Wed, Aug 3, 2011 at 9:14 PM, Steve Holden st...@holdenweb.com wrote: [Ccs appreciated] After some three years labor I (@holdenweb

Community Involvement

2011-08-03 Thread Steve Holden
and the thousandth murdered). So I wondered if anyone had any good ideas. regards Steve -- Steve Holden st...@holdenweb.com -- http://mail.python.org/mailman/listinfo/python-list

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Steve Holden
New submission from Steve Holden st...@holdenweb.com: We see in the Quick-Start Tutorial (py3k section 8.4.1) the following example: Decimal(3.14) Decimal('3.140124344978758017532527446746826171875') In actua; fact one would expect an exception from that code, which should

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Steve Holden
Changes by Steve Holden st...@holdenweb.com: -- components: +Documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12580 ___ ___ Python-bugs

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: Sorry about that. I was using 3.1, as you will have gathered. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12580

Re: How to pop the interpreter's stack?

2010-12-26 Thread Steve Holden
no longer believe it. I've been crashing against one bit of cleverness after another in Python's unification of types and classes... Well if you can find a way to implement a class system that doesn't use clever tricks *in its implementation* please let me know. regards Steve -- Steve Holden

Re: Trying to parse a HUGE(1gb) xml file

2010-12-25 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 is the the best style and theory of writing a complier in your language

2010-12-25 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 is the the best style and theory of writing a complier in your language

2010-12-25 Thread Steve Holden
On 12/24/2010 2:21 AM, Juha Nieminen wrote: In comp.lang.c++ small Pox smallpox...@gmail.com wrote: http://... You should take your religion somewhere else. And you should learn that by re-posting their links you assist spammers. -- Steve Holden +1 571 484 6266 +1 800 494 3119

Re: issubclass(dict, Mapping)

2010-12-22 Thread Steve Holden
about having a complete knowledge of the language before you start to use it. That can induce paralysis ... 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: Catching user switching and getting current active user from root on linux

2010-12-22 Thread Steve Holden
on an IRC channel (freenode.net is what I use, but others have their favorites). Maybe #squid? 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: Catching user switching and getting current active user from root on linux

2010-12-20 Thread Steve Holden
as long as you know who to listen to and who to ignore ... 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: Class-override of a sort-key method?

2010-12-20 Thread Steve Holden
delegate to that) gets called every time two objects have to be compared. If cmp is a Python function (or equivalently if __cmp__() is a Python method) then calling it will take much longer than calling hte built-in default routines. regards Steve -- Steve Holden +1 571 484 6266 +1 800

Re: Redundant importing of modules

2010-12-20 Thread Steve Holden
is made to import a module the first thing the interpreter does is to look at sys.modules. If it has the correct key in it then the assumption is that the module has already been imported, and its namespace is made available as the module name immediately. regards Steve -- Steve Holden +1

Re: If/then style question

2010-12-17 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: If/then style question

2010-12-17 Thread Steve Holden
On 12/17/2010 11:13 AM, Tim Golden wrote: On 17/12/2010 15:53, Steve Holden wrote: [... snip example of for-else ...] This construct appears to be unpopular in actual use, and when it comes up in classes and seminars there is always interesting debate as people discuss potential uses

Re: while True or while 1

2010-12-16 Thread Steve Holden
On 12/16/2010 5:44 AM, BartC wrote: On 12/12/2010 2:32 PM, Christian Heimes wrote: Am 12.12.2010 19:31, schrieb Steve Holden: $ python -m timeit -n20 -- i = 0 while 1: i+=1 if i == 100: break 20 loops, best of 3: 89.7 msec per loop $ python -m timeit -n20 -- i = 0 while True

Re: string identity and comparison

2010-12-16 Thread Steve Holden
') 3082385472L id('foo') 3082385472L Anyone has that kind of code ? JM id(foo) 2146743808 id (f+o+o) 2146744096 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: O'Reilly Python Certification

2010-12-16 Thread Steve Holden
://www.oreillyschool.com/certificates/python-programming.php No prerequisites that I could see, and currently they are running a 25% discount promotional. ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta

Re: If/then style question

2010-12-16 Thread Steve Holden
to be altered. 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

Re: Tkinter polling example: file copy with progress bar

2010-12-15 Thread Steve Holden
On 12/14/2010 11:52 PM, JohnWShipman wrote: you know how us ancient Unix weenies are. Indeed we do ... ;-) 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: Proposed changes to logging defaults

2010-12-15 Thread Steve Holden
behavior and analysing a process's stdout for messages it arguably needs fixing anyway, though I agree that breakage of any kind is unfortunate. 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

Re: Links and pointers to basics of soap and suds

2010-12-15 Thread Steve Holden
?. Google for phrases like web services architecture and SOAP WSDL to get some idea of how these technologies are put together. This assumes, of course, that you already possess a fair idea of how the web is put together. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119

Re: Dealing with pywin32 on Linux

2010-12-15 Thread Steve Holden
that really require a Windows environment? If the loading isn't at brutal levels VirtualBox is a very adequate solution, and of course Python user VMWare has a full range of industrial-grade solutions for virtualization. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon

Re: while True or while 1

2010-12-15 Thread Steve Holden
of consciousness for now ;-)) but didn't dare! Yeah, if Hamlet had been a Python programmer that play would have been a light comedy. 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

Re: O'Reilly Python Certification

2010-12-15 Thread Steve Holden
On 12/15/2010 12:54 PM, Ethan Furman wrote: So I just got an e-mail from O'Reilly and their School of Technology about a Python Certification course... anybody have any experience with this? It also says Steve Holden is involved -- is this True? (Steve?) Well, it's not not not False. You

Re: O'Reilly Python Certification

2010-12-15 Thread Steve Holden
basis. 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: O'Reilly Python Certification

2010-12-15 Thread Steve Holden
On 12/15/2010 4:21 PM, Stefan Sonnenberg-Carstens wrote: Am 15.12.2010 22:11, schrieb Steve Holden: On 12/15/2010 3:40 PM, Tim Chase wrote: On a more serious note, it would be interesting to know if it's possible to test out of the certification for those of us that have been using Python

Re: default argument in method

2010-12-13 Thread Steve Holden
a mutable value, but in that case both C.foo and the method's val parameter would still be bound to the same object. 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: while True or while 1

2010-12-12 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: while True or while 1

2010-12-12 Thread Steve Holden
On 12/12/2010 2:32 PM, Christian Heimes wrote: Am 12.12.2010 19:31, schrieb Steve Holden: Would you care to quantify how much CPU time that optimization will typically save for a loop of fair magnitude (say, a billion iterations)? The difference is minimal but measurable for very tight loops

Re: instance has no __call__ method

2010-12-11 Thread Steve Holden
on an instance. 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

Re: 64 bit memory usage

2010-12-11 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 critique

2010-12-11 Thread Steve Holden
(the __builtins__). But classes and instances don't have scopes. They have namespaces. That is, if we are talking about lexical scoping. 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: Python critique

2010-12-11 Thread Steve Holden
On 12/11/2010 6:46 AM, Lie Ryan wrote: Also, class scope and instance scope, though similar, are distinct scopes. Python also have the hidden interpreter-level scope (the __builtins__). Kindly ignore my last post. Class scopes are lexical, instance scopes are not. regards Steve -- Steve

Re: Python distribution recommendation?

2010-12-11 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: little emacs lisp tutorial on turning a url into a link

2010-12-10 Thread Steve Holden
, and not without making the courts free and preventing knowledge monopolies. If a certain group is going up disproportionately, then there is something to look at. I see everyone work as hard as anyone else. This is completely off-topic for c.l.py. Kindly bugger off. regards Steve -- Steve Holden

Re: use of __new__ to permit dynamic completion within (any?) IDE ?

2010-12-08 Thread Steve Holden
answer would be : bad IDE, change IDE but I'm guessing that others IDE can't do a lot better in this case. If you'd told us which IDE you were using we might have offered better advice, but you seem to want to keep that a secret (my IDE tells us nothing). regards Steve -- Steve Holden

Re: is py2exe still active ?

2010-12-07 Thread Steve Holden
what you're looking for. http://cx-freeze.sourceforge.net/ -- 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: Collision of rotated rectangles without pygame

2010-12-07 Thread Steve Holden
Steve This is why you don't write your own collision library. (I once did, for 3D, but that was in 1996, when it was cutting-edge technology.) John Nagle -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See

Re: Perceived inconsistency in py3k documentation

2010-12-07 Thread Steve Holden
. This behavior is common enough that people need to be aware of 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

Re: Exception handling in Python 3.x

2010-12-07 Thread Steve Holden
Shed Skin does, but to the extent that iterators don't raise StopIteration on exhaustion I'd say it is in error. 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: Exception handling in Python 3.x

2010-12-07 Thread Steve Holden
On 12/7/2010 1:48 AM, MRAB wrote: Perhaps Python could use Guido's time machine to check whether the sequence will yield another object in the future. :-) Since there's only one time machine that would effectively be a lock across all Python interpreters. regards Steve -- Steve Holden

Re: completely implicit interpolation based on a frame object

2010-12-07 Thread Steve Holden
pitfalls that people see in implementing it. http://docs.python.org/library/string.html#template-strings 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: Comparison with False - something I don't understand

2010-12-06 Thread Steve Holden
continue or unwind after the continue returns, but doing it in a single-threaded system just seems full of hazards. I seem to remember PL/1 has resumable exceptions, but I don't ever remember finding a real use for them. And it's so long since I used PL/1 I may be mistaken. regards Steve -- Steve

Re: How to add data into exisitng Excel file at next open row?

2010-12-05 Thread Steve Holden
not be as convenient as modifying a spreadsheet in place. In particular, if sh is a spreadsheet then sh.nrows gives you the number of rows currently used in the sheet. 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

Re: class attribute confusion

2010-12-05 Thread Steve Holden
attribute for that instance. 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: Which non SQL Database ?

2010-12-05 Thread Steve Holden
) users to download your app if it were included. Just as a matter of interest where do you get the information that the average user has a 3.9 MB/s path to the Internet? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http

Re: Comparison with False - something I don't understand

2010-12-04 Thread Steve Holden
conditions arises, in which case (presumably) you have to return some error code and test for that ... 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: Comparison with False - something I don't understand

2010-12-02 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: Comparison with False - something I don't understand

2010-12-02 Thread Steve Holden
that will harm your Python development. 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: Comparison with False - something I don't understand

2010-12-02 Thread Steve Holden
On 12/2/2010 1:31 PM, Terry Reedy wrote: It turns out that try block are computationally lighter weight (faster) for normal execution ;-) Though that alone would hardly be sufficient reason to use them. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011

Re: Python's equivalent to Main calling program and subprograms

2010-12-01 Thread Steve Holden
program (from the command line) its __name__ attribute is set to __main__. The main() call just calls a function that (presumably) tests the functions the module provides. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org

Re: SAX unicode and ascii parsing problem

2010-11-30 Thread Steve Holden
(ascii) Again I'm looking for something simple even it's a few more lines of codes...or upgrade(?) Thanks, appreciate any help. mex9.close() I'm just as stumped as I was when you first asked this question 13 minutes ago. ;-) regards Steve -- Steve Holden +1 571 484 6266 +1 800

Re: Change one list item in place

2010-11-30 Thread Steve Holden
(): x, y = sendList() return [Formatting only {0} into a string.format(x), y] 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

  1   2   3   4   5   6   7   8   9   10   >