[Python-Dev] kill the cbsoutdoor.co.uk autoresponder

2007-01-04 Thread Gregory P. Smith
Whoever is subscribed to python-dev with a broken corporate autoresponder that sends everyone who posts to the list this useless response multiple times please unsubscribe yourself. Its highly annoying and entirely useless since its not even identifying the list subscriber(s) deserving the blame.

Re: [Python-Dev] Rationale for NamedTemporaryFile?

2007-03-19 Thread Gregory P. Smith
On Mon, Mar 19, 2007 at 12:20:59PM +1200, Greg Ewing wrote: > Damien Miller wrote: > > > That annoyed me too, so I submitted a patch[1] that was recently > > committed. > > That looks good. Seems to me it should really be the > default behaviour, but I suppose that would break > code that was rel

Re: [Python-Dev] r87010 - in python/branches/py3k: Doc/library/subprocess.rst Lib/subprocess.py Lib/test/test_subprocess.py

2010-12-04 Thread Gregory P. Smith
On Sat, Dec 4, 2010 at 3:45 AM, Antoine Pitrou wrote: > On Sat, 4 Dec 2010 10:10:44 +0100 (CET) > gregory.p.smith wrote: > > Author: gregory.p.smith > > Date: Sat Dec 4 10:10:44 2010 > > New Revision: 87010 > > > > Log: > > issue7213 + issue2320: Cause a DeprecationWarning if the close_fds > a

Re: [Python-Dev] r87010 - in python/branches/py3k: Doc/library/subprocess.rst Lib/subprocess.py Lib/test/test_subprocess.py

2010-12-04 Thread Gregory P. Smith
On Sat, Dec 4, 2010 at 11:28 AM, Paul Moore wrote: > On 4 December 2010 18:14, Gregory P. Smith wrote: > > > > > > On Sat, Dec 4, 2010 at 3:45 AM, Antoine Pitrou > wrote: > >> > >> On Sat, 4 Dec 2010 10:10:44 +0100 (CET) > >> gregory.p.smith

Re: [Python-Dev] r87010 - in python/branches/py3k: Doc/library/subprocess.rst Lib/subprocess.py Lib/test/test_subprocess.py

2010-12-05 Thread Gregory P. Smith
On Sun, Dec 5, 2010 at 4:45 AM, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 12/04/2010 03:13 PM, Gregory P. Smith wrote: > > > > Making the change was intended to force the discussion. I'm glad that > > worked. :) > >

Re: [Python-Dev] r87010 - in python/branches/py3k: Doc/library/subprocess.rst Lib/subprocess.py Lib/test/test_subprocess.py

2010-12-05 Thread Gregory P. Smith
On Sun, Dec 5, 2010 at 11:12 AM, Antoine Pitrou wrote: > On Sun, 5 Dec 2010 11:08:43 -0800 > "Gregory P. Smith" wrote: > > Sleeping on the issue some more and pondering it... > > > > Is there any _good_ reason not to just make the close_fds default change >

Re: [Python-Dev] Using logging in the stdlib and its unit tests

2010-12-09 Thread Gregory P. Smith
On Tue, Dec 7, 2010 at 5:51 PM, Vinay Sajip wrote: > Nick Coghlan gmail.com> writes: > > > Indeed - I was very surprised to find just now that calling > > "logging.warn('Whatever')" is not the same as doing "log = > > logging.getLogger(); log.warn('Whatever')". > > Don't know why you'd be surpri

Re: [Python-Dev] Using logging in the stdlib and its unit tests

2010-12-09 Thread Gregory P. Smith
On Wed, Dec 8, 2010 at 9:51 AM, Glenn Linderman > wrote: > On 12/8/2010 4:15 AM, Vinay Sajip wrote: > > You're complaining about too much documentation?! Don't measure it by weight! > > On 12/8/2010 5:57 AM, Vinay Sajip wrote: > > Of course I understand I could be wrong > about this, but I don'

Re: [Python-Dev] PEP 393: Flexible String Representation

2011-01-26 Thread Gregory P. Smith
On Mon, Jan 24, 2011 at 3:20 PM, Antoine Pitrou wrote: > Le mardi 25 janvier 2011 à 00:07 +0100, "Martin v. Löwis" a écrit : >> >> I'd like to propose PEP 393, which takes a different approach, >> >> addressing both problems simultaneously: by getting a flexible >> >> representation (one that can

Re: [Python-Dev] PEP 393: Flexible String Representation

2011-01-27 Thread Gregory P. Smith
BTW, has anyone looked at what other languages with a native unicode type do for their implementations if any of them attempt to conserve ram? ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] Devguide: "Can I make commits from machines other than the one I generated the keys on?"

2011-03-05 Thread Gregory P. Smith
On Sat, Mar 5, 2011 at 7:54 PM, Jesus Cea wrote: > > In > < > http://docs.python.org/devguide/faq.html#can-i-make-commits-from-machines-other-than-the-one-i-generated-the-keys-on > > > I would rather prefer to promote the "-A" parameter to SSH (to use the > local SSH agent be used from the remote

Re: [Python-Dev] NetBSD and curses

2011-03-15 Thread Gregory P. Smith
Would you please post this to bugs.python.org so that it doesn't get lost? thanks! -gps On Mon, Mar 14, 2011 at 8:51 PM, Bill Green wrote: > Hi all, > > I ran across this issue several months ago and filed a bug report (#9667). > It just came up again, and it doesn't look like anything's been

Re: [Python-Dev] NetBSD and curses

2011-03-15 Thread Gregory P. Smith
ith it as a platform so patches are a great help. Any chance you can also make a version of the patch that applies against hg cpython tip (3.3)? -gps 2011/3/15 Gregory P. Smith > Would you please post this to bugs.python.org so that it doesn't get lost? > thanks! > > -gps >

Re: [Python-Dev] Hg: inter-branch workflow

2011-03-16 Thread Gregory P. Smith
On Wed, Mar 16, 2011 at 10:14 PM, R. David Murray wrote: > On Thu, 17 Mar 2011 05:11:23 +0100, Jesus Cea wrote: > > On 17/03/11 04:41, R. David Murray wrote: > > > Dealing with a null merge when someone else has committed between the > > > time I started the merge dance (I always pull just before

Re: [Python-Dev] Security implications of pep 383

2011-03-30 Thread Gregory P. Smith
On Tue, Mar 29, 2011 at 4:07 PM, Terry Reedy wrote: > On 3/29/2011 2:23 PM, Michael Foord wrote: > > Not sure how real the security risk is here: >> >> http://blog.omega-prime.co.uk/?p=107 >> >> Basically he is saying that if you store a list of blacklisted files >> with names encoded in big-5 (

Re: [Python-Dev] Linus on garbage collection

2011-05-06 Thread Gregory P. Smith
On Fri, May 6, 2011 at 9:18 AM, wrote: > >    Antoine> Since we're sharing links, here's Matt Mackall's take: >    Antoine> > http://www.selenic.com/pipermail/mercurial-devel/2011-May/031055.html > > >From that note: > >    1: You can't have meaningful destructors, because when destruction >    

Re: [Python-Dev] The socket HOWTO

2011-05-29 Thread Gregory P. Smith
On Sun, May 22, 2011 at 11:22 PM, Nick Coghlan wrote: > On Sun, May 22, 2011 at 3:38 AM, Georg Brandl wrote: > > On 05/21/11 18:01, Senthil Kumaran wrote: > >> So a rewrite with good pointers would be more appropriate. > > > > Even then, it's better off in the Wiki until the rewrite is complete.

Re: [Python-Dev] cpython: Issue #12469: replace assertions by explicit if+raise

2011-07-04 Thread Gregory P. Smith
On Mon, Jul 4, 2011 at 9:23 AM, Antoine Pitrou wrote: > On Mon, 04 Jul 2011 18:06:53 +0200 > victor.stinner wrote: > > http://hg.python.org/cpython/rev/7eef821ab20d > > changeset: 71197:7eef821ab20d > > user:Victor Stinner > > date:Mon Jul 04 18:06:35 2011 +0200 > > summary: >

[Python-Dev] Adding NetworkIOError for bug 1706815

2007-07-04 Thread Gregory P. Smith
In response to bug 1706815 and seeing messy code to catch errors in network apps I've implemented most of the ideas in the bug and added a NetworkIOError exception (child of IOError). With this, socket.error would now inherit from NetworkIOError instead of being its own thing (the old one didn't e

Re: [Python-Dev] Adding NetworkIOError for bug 1706815

2007-07-04 Thread Gregory P. Smith
this in many places though i haven't audited that it does everywhere). -greg PS for the person complaining that the url didn't work. blame sourceforge and go look the bug up by id yourself. nothing i can do about that. > On 7/4/07, Gregory P. Smith <[EMAIL PROTECTED]>

Re: [Python-Dev] Adding NetworkIOError for bug 1706815

2007-07-06 Thread Gregory P. Smith
On Thu, Jul 05, 2007 at 12:05:01PM +0200, Guido van Rossum wrote: > On 7/5/07, Gregory P. Smith <[EMAIL PROTECTED]> wrote: > >On Wed, Jul 04, 2007 at 11:03:42AM +0200, Guido van Rossum wrote: > >> Why not simply inherit socket.error from EnvironmentError? > > > &g

Re: [Python-Dev] Avoiding cascading test failures

2007-08-25 Thread Gregory P. Smith
On Wed, Aug 22, 2007 at 07:44:02PM -0400, Alexandre Vassalotti wrote: > When I was fixing tests failing in the py3k branch, I found the number > duplicate failures annoying. Often, a single bug, in an important > method or function, caused a large number of testcase to fail. So, I > thought of a si

Re: [Python-Dev] New bug tracker is active now

2007-08-25 Thread Gregory P. Smith
On Thu, Aug 23, 2007 at 10:06:01PM +0200, Erik Forsberg wrote: > "Martin v. L?wis" <[EMAIL PROTECTED]> writes: > > >> When editing my details I saw there is a field for my timezone. The > >> comment says: "this is a numeric hour offset, the default is UTC", so > >> I'm assuming it counts in whole

Re: [Python-Dev] Other SSL issues in the tracker have been marked

2007-08-26 Thread Gregory P. Smith
apt-get install openssl will fix that on those systems. on windows you're unlikely to ever have an openssl binary present and available to execute. On 8/26/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > > Now it looks as if both the Debian and Ubuntu failures are failing > because they can't crea

Re: [Python-Dev] Other SSL issues in the tracker have been marked

2007-08-27 Thread Gregory P. Smith
nope, not on many package based distributions. libssl0.9.8, libssl-dev and openssl are all separate packages (with appropriate dependencies). /usr/bin/openssl comes from the openssl package. Regardless, building a fixed test certificate and checking it in sounds like the better option. Then the

[Python-Dev] BerkeleyDB 4.6.19 is buggy and causes test_bsddb3 to hang

2007-09-09 Thread Gregory P. Smith
BerkeleyDB 4.6.19 is a buggy release, the DB_HASH access method databases can lockup the process. This is why several of the bleeding edge distro buildbots are timing out while running test_bsddb3. I've created a simple C test case and made sleepycat^Woracle aware of the problem. I have a change

Re: [Python-Dev] re-using the Python setup.py file?

2007-09-11 Thread Gregory P. Smith
On 9/11/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > > I see that the setup.py at the top level of the Python distribution > does a lot of things wrt sensing compiler options, etc, that I'd like > to re-use in my SSL setup.py distribution file. I'm a bit curious > as to why this framework isn't i

Re: [Python-Dev] urllib exception compatibility

2007-09-27 Thread Gregory P. Smith
On 9/27/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > How about making IOError, OSError and EnvironmentError all aliases for > the same thing? The distinction is really worthless historical > baggage. > +1 on that. ___ Python-Dev mailing list Pytho

Re: [Python-Dev] urllib exception compatibility

2007-09-27 Thread Gregory P. Smith
Is IOError is the right name to use? OSError is raised for things that are not IO such as subprocess, dlopen, system. Nobody likes typing out EnvironmentError and dislike the suggestion of EMError, should it just be OSError? errno values are after all OS specific. -gps On 9/27/07, Guido van Ro

Re: [Python-Dev] GC Changes

2007-10-02 Thread Gregory P. Smith
On 10/2/07, Hrvoje Nikšić <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-10-02 at 10:50 +0100, Gustavo Carneiro wrote: > > Correct. And that reminds me of the limitation of the the Python GC: > > it doesn't take into account how much memory is being indirectly > > retained by a Python Object. Like i

Re: [Python-Dev] C Decimal - is there any interest?

2007-10-15 Thread Gregory P. Smith
+1 from me. If you update it to the most recent Decimal standard I think its worth it. anyone else agree? On 10/15/07, Mateusz Rukowicz <[EMAIL PROTECTED]> wrote: > > Hi! > > I've been working on C decimal project during gSoC 2006. After year > of idling (I had extremely busy first year on U

Re: [Python-Dev] SSL 1.8

2007-10-15 Thread Gregory P. Smith
+1 from me. sounds like a good idea. On 10/15/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > > I've added in some code that Chris Stawarz contributed to allow the > use of non-blocking sockets, with the program thread allowed to do > other things during the handshake while waiting for the peer to

[Python-Dev] hex() and oct() still include the trailing L - change this in 2.6?

2007-11-08 Thread Gregory P. Smith
I thought the hell of stripping trailing Ls off of stringed numbers was gone but it appears that the hex() and oct() builtins still leave the trailing 'L' on longs: Python 2.6a0 (trunk:58846M, Nov 4 2007, 15:44:12) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 Type "help", "copyright", "credits"

Re: [Python-Dev] Slow tests involving bsddb - timeout

2007-12-05 Thread Gregory P. Smith
I'd expect 4.5 to work fine but I don't know why you're getting such a strange error, i've never seen that. fwiw i suggest people avoid berkeleydb 4.6 for now. On 12/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I noticed that test_anydbm and test_bsddb seemed to hang, so I -x'd them. >

[Python-Dev] tstate_delete_current infinite loop from PyThreadState_DeleteCurrent

2007-12-06 Thread Gregory P. Smith
Has anyone else ever encountered a situation where a python process gets stuck in an infinite loop within Python/pystate.c tstate_delete_current() called from PyThreadState_DeleteCurrent() when a thread is exiting? (revealed by attaching to the looping process with a debugger) I'm seeing this (ve

Re: [Python-Dev] Signals+Threads (PyGTK waking up 10x/sec).

2007-12-08 Thread Gregory P. Smith
On 12/8/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > On Dec 8, 2007 9:55 AM, Johan Dahlin <[EMAIL PROTECTED]> wrote: > > Guido van Rossum wrote: > > > > Hm. How about making that an option? I don't think on the OLPC XO this > > > is a valid use case (end users never have a console where they

Re: [Python-Dev] Signals+Threads (PyGTK waking up 10x/sec).

2007-12-13 Thread Gregory P. Smith
On 12/12/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > On Dec 12, 2007 2:42 PM, Greg Ewing <[EMAIL PROTECTED]> wrote: > > But there's no excuse for using CPU when the application > > truly isn't doing anything other than waiting for > > something to happen. > > There are tons of situations wh

Re: [Python-Dev] epoll() and kqueue wrapper for the select module

2007-12-20 Thread Gregory P. Smith
On 12/20/07, Ross Cohen <[EMAIL PROTECTED]> wrote: > > On Thu, Dec 20, 2007 at 06:08:47PM +0100, Christian Heimes wrote: > > > I've written wrappers for both mechanisms. Both wrappers are inspired > > from Twisted and select.poll()'s API. The interface is more Pythonic > > than the available wrappe

Re: [Python-Dev] Repeatability of looping over dicts

2008-01-04 Thread Gregory P. Smith
On 1/4/08, A.M. Kuchling <[EMAIL PROTECTED]> wrote: > This post describes work aimed at getting Django to run on Jython: > http://zyasoft.com/pythoneering/2008/01/django-on-jython-minding-gap.html > > One outstanding issue is whether to use Java's ConcurrentHashMap type > to underly Jython's dict t

Re: [Python-Dev] PEP: per user site-packages directory

2008-01-12 Thread Gregory P. Smith
On 1/12/08, Christian Heimes <[EMAIL PROTECTED]> wrote: > > Christian Heimes wrote: > > MA Lemburg has suggested a per user site-packages directory in the > > "pkgutil, pkg_resource and Python 3.0 name space packages" thread. I've > > written a short PEP about it for Python 2.6 and 3.0. > > Additio

Re: [Python-Dev] PEP: per user site-packages directory

2008-01-13 Thread Gregory P. Smith
On 1/13/08, Christian Heimes <[EMAIL PROTECTED]> wrote: > > Gregory P. Smith wrote: > > My main suggestion was going to be the ability to turn it off as you > already > > mentioned. However, please consider leaving it off by default to avoid > > problems for i

[Python-Dev] struct module docs vs reality

2008-01-23 Thread Gregory P. Smith
The documentation for the struct module says: http://docs.python.org/dev/library/struct.html#module-struct "short is 2 bytes; int and long are 4 bytes; long long (__int64 on Windows) is 8 bytes" and lists 'l' and 'L' as the pack code for a C long. As its implemented today, the documentation i

Re: [Python-Dev] struct module docs vs reality

2008-01-23 Thread Gregory P. Smith
On 1/23/08, Thomas Heller <[EMAIL PROTECTED]> wrote: > > Gregory P. Smith schrieb: > > The documentation for the struct module says: > > > > http://docs.python.org/dev/library/struct.html#module-struct > > > > "short is 2 bytes; int and long are 4 b

Re: [Python-Dev] struct module docs vs reality

2008-01-24 Thread Gregory P. Smith
Oh good. Reading the Modules/_struct.c code I see that is indeed what happens. There are still several instances of misused struct pack and unpack strings in Lib but the problem is less serious, I'll make a new patch that just addresses those. ___ Pytho

Re: [Python-Dev] Upcoming 2.5.2 release

2008-02-01 Thread Gregory P. Smith
On 1/31/08, Christian Heimes <[EMAIL PROTECTED]> wrote: > > Jesus Cea wrote: > > My guess is that 2.5 branch is still open to more patches than pure > > security/stability patches, so "backporting" BerkeleyDB 4.6 support > > seems reasonable (to me). If I'm wrong, please educate me :-). > > I think

Re: [Python-Dev] Small RFEs and the Bug Tracker

2008-02-18 Thread Gregory P. Smith
> > > > > > PEP: -1 > > > tracker: +1 > > > > I agree. Then we can set some status/keyword when the subject of a RFE > > is accepted by core developers, saying "if someone proposes a patch, > > it has a chance to be reviewed and applied". > > It may incite occasional contributors to work on some of

Re: [Python-Dev] Small RFEs and the Bug Tracker

2008-02-18 Thread Gregory P. Smith
> > Which is why I propose to have a mechanism to close bugs and RFE > > nobody cares about. over *1000* out of those 1700 open issues are 6+ > > months old. > > > I'm not sure we should be throwing RFE's away with such casual abandon > just because nobody had time to pay them any attention in six

Re: [Python-Dev] Small RFEs and the Bug Tracker

2008-02-21 Thread Gregory P. Smith
On 2/21/08, Steve Holden <[EMAIL PROTECTED]> wrote: > > Guido van Rossum wrote: > > On Wed, Feb 20, 2008 at 11:59 PM, Virgil Dupras <[EMAIL PROTECTED]> > wrote: > > >> What would be the difference between accepted and fixed for a closed > ticket? > > > > I don't know what others do, but I use acce

Re: [Python-Dev] optimizing out local variables

2008-02-24 Thread Gregory P. Smith
On 2/24/08, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Let's only do it for -O; the optimization may interfere with debugging the > code. Does anyone ever actually bother to use -O? On Sun, Feb 24, 2008 at 6:27 PM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > > > Short description (see http://

Re: [Python-Dev] Buildbots for trunk are all red

2008-02-26 Thread Gregory P. Smith
On 2/26/08, Brett Cannon <[EMAIL PROTECTED]> wrote: > > On Tue, Feb 26, 2008 at 1:52 PM, Facundo Batista > <[EMAIL PROTECTED]> wrote: > > 2008/2/26, "Martin v. Löwis" <[EMAIL PROTECTED]>: > > > > > > > They check out bsddb from subversion, see Tools/buildbot/external. > > > If you don't trust th

Re: [Python-Dev] C-API status of Python 3?

2008-03-02 Thread Gregory P. Smith
On 3/2/08, Christian Heimes <[EMAIL PROTECTED]> wrote: > > Alex Martelli wrote: > > Yep, but please do keep the PyUnicode for str and PyString for bytes > > (as macros/synonnyms of PyStr and PyBytes if you want!-) to help the > > task of porting existing extensions... the bytearray functions should

Re: [Python-Dev] BSDDB3 (was: Re: Buildbots for trunk are all red)

2008-03-05 Thread Gregory P. Smith
On 3/4/08, Jesus Cea <[EMAIL PROTECTED]> wrote: > That said, it is my aim to keep bsddb in stdlib, providing a stable and > featureful module. I think keeping bsddb development inside python svn > is not appropiate. Currently (I could change idea), my approach will be > keeping pybssdb as a separa

Re: [Python-Dev] Windows x64 & bsddb 4.4.20 woes

2008-03-13 Thread Gregory P. Smith
I haven't built the bsddb stuff on windows myself in a few years and have never had access to a windows x64 system so I'm no silver bullet. Making the BerkeleyDB compile and link options match with those of python is the first place I'd start. Also you should be able to make a debug build of Berk

Re: [Python-Dev] Windows x64 & bsddb 4.4.20 woes

2008-03-13 Thread Gregory P. Smith
. Regarding the db_static build and conflicting compile/link options -- I'm > going to bring the db_static source directly into the _bsddb project (for > now) which should make this a lot easier to debug. > > Trent. > > > From: Gregory P. Smith [EMAIL PROTECTED] >

Re: [Python-Dev] difference between diff string implementations

2008-03-15 Thread Gregory P. Smith
Shouldn't isnumeric and isdecimal apply to 8-bit strings as well? Are there localization issues with them that I'm blissfully unaware of? why not just add the methods there for consistency instead? -gps On 3/15/08, Neal Norwitz <[EMAIL PROTECTED]> wrote: > > This inconsistency goes back to 2.3 a

Re: [Python-Dev] 2.6 and 3.0 tasks

2008-03-16 Thread Gregory P. Smith
On 3/16/08, Travis Oliphant <[EMAIL PROTECTED]> wrote: > > Guido van Rossum wrote: > > Moving this to a new subject to keep the discussion of tasks and the > > discussion of task tracking tools separate. > > > > On Sun, Mar 16, 2008 at 9:42 AM, Christian Heimes <[EMAIL PROTECTED]> > wrote: > >> I

Re: [Python-Dev] [Python-3000] 2.6 and 3.0 project management

2008-03-16 Thread Gregory P. Smith
On 3/16/08, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > I don't see a lot of objections left against using the bug tracker. I > just talked to Neal and he's going to transfer all tasks from the 2.6 > spreadsheet to the bug tracker. > > I'll also be adding various other tasks., as I think of the

[Python-Dev] pre-checkin test suggestion for python repository

2008-03-18 Thread Gregory P. Smith
The tabs/spaces checker that is run before doing a svn ci on the python repository spits out an error message about which files have problems. Could someone please update this error message to say something to the effect of "run Tools/scripts/reindent.py on every file listed above and rerun your

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2008-03-21 Thread Gregory P. Smith
I'm following up on this thread without checking if there were other following negating a need to respond... If so, ignore as needed. +1 from me. Always build on windows into an architecture specific PCBuild/XXX directory. A bonus if the directory name matches the return value of platform.machin

Re: [Python-Dev] Two questions about jump opcodes

2008-03-25 Thread Gregory P. Smith
This across the board speedup of the python byte code looks promising! I'm not familiar enough with that part of the code to review it but here's a big +1 to make sure someone else takes a look. On Sat, Mar 22, 2008 at 4:07 PM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > > Wow, thanks to both

Re: [Python-Dev] Thread-safe file objects, the return

2008-04-01 Thread Gregory P. Smith
On Tue, Apr 1, 2008 at 5:09 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > This is not something that keeps me awake at night, but I am aware of > it. Your solution (a counter) seems fine except I think perhaps the > close() call should not raise IOError -- instead, it should set a flag > so th

Re: [Python-Dev] fixing tests on windows

2008-04-01 Thread Gregory P. Smith
On Tue, Apr 1, 2008 at 9:13 AM, Tim Golden <[EMAIL PROTECTED]> wrote: > Tim Golden wrote: > > Steven Bethard wrote: > >> At the sprints, I ran into a bunch of similar errors running the test > >> suite on my Windows Vista box, even on tests that were properly > >> cleaning up after themselves in t

Re: [Python-Dev] Thread-safe file objects, the return

2008-04-05 Thread Gregory P. Smith
I've reviewed the patch on http://bugs.python.org/issue815646 and have uploaded my modified version (mostly test improvements and some formatting to keep C code under 80 columns with proper 8 space tabs). I would have committed it already but I have a sneaking suspicion that its unit test will bar

Re: [Python-Dev] Changing all network-oriented tests to facilitate (virtually unlimited) parallel test execution [Issue#: 2550]

2008-04-08 Thread Gregory P. Smith
On Tue, Apr 8, 2008 at 5:00 AM, Trent Nelson <[EMAIL PROTECTED]> wrote: > > I've forwarding my most recent update to issue 2550 here such that the > proposed patch (and in general, the approach to network-oriented test cases) > can be vetted by a wider audience: > > http://bugs.python.org/file9980

Re: [Python-Dev] generated NEWS files

2008-04-10 Thread Gregory P. Smith
On Thu, Apr 10, 2008 at 6:24 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Also, there's the issue of which section of the NEWS file an entry > should be added. That's often subjective. > Agreed. For example we have both Library and Extension Module categories in the NEWS file. I always e

[Python-Dev] strange import encodings error in trunk?

2008-04-11 Thread Gregory P. Smith
has anyone ever seen this error? this is a pristine --with-pydebug build of trunk: >>> msg = 'ABC' >>> x = msg.decode('utf8') Traceback (most recent call last): File "", line 1, in File "/home/gps/python/trunk/Lib/encodings/__init__.py", line 100, in search_function level=0) TypeError: S

[Python-Dev] thoughts on having EOFError inherit from EnvironmentError?

2008-04-12 Thread Gregory P. Smith
http://bugs.python.org/issue1481036 Basically as things are now EOFError is on its own but often wants to be handled the same as other I/O errors that EnvironmentError currently covers. Many uses of EOFError in our code base do not provide it any arguments so it doesn't really fit the (errno, mes

Re: [Python-Dev] Python 2.6a2 execution times with various compilers

2008-04-12 Thread Gregory P. Smith
On Sat, Apr 12, 2008 at 11:09 AM, Jeroen Ruigrok van der Werven < [EMAIL PROTECTED]> wrote: > I did some more tests concentrating on GCC, partly based on the feedback I > got, results at > http://www.in-nomine.org/2008/04/12/python-26-compiler-options-results/ > > Executive summary: Python needs t

Re: [Python-Dev] thoughts on having EOFError inherit from EnvironmentError?

2008-04-16 Thread Gregory P. Smith
On Mon, Apr 14, 2008 at 7:11 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > But what operations raise EOFError? Surely you're not using > raw_input()? It's really only there for teaching. > > There are quite a few things in Lib/ that raise EOFError on their own. Most look like reasonable use

Re: [Python-Dev] very bad network performance

2008-04-21 Thread Gregory P. Smith
On Mon, Apr 14, 2008 at 4:41 PM, Curt Hagenlocher <[EMAIL PROTECTED]> wrote: > On Mon, Apr 14, 2008 at 4:19 PM, Guido van Rossum <[EMAIL PROTECTED]> > wrote: > > > > But why was imaplib apparently specifying 10MB? Did it know there was > > that much data? Or did it just not want to bother looping

Re: [Python-Dev] BSDDB3

2008-04-23 Thread Gregory P. Smith
On Tue, Apr 22, 2008 at 8:09 PM, Jesus Cea <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Trent Nelson wrote: > | I remember those rampant BSDDB crashes on Windows well. > [...] > | basically, the tests weren't cleaning up their environment in > | the right order,

Re: [Python-Dev] socket.try_reuse_address()

2008-05-01 Thread Gregory P. Smith
On Wed, Apr 30, 2008 at 10:42 AM, Trent Nelson <[EMAIL PROTECTED]> wrote: > > if os.name == "nt": > > _socketmethods = _socketmethods + ('ioctl',) > > +_is_windows = True > > +elif os.name == 'java': > > +from java.lang import System > > +_is_windows = 'windows' in System.getProp

[Python-Dev] tracker issues? server error

2008-05-02 Thread Gregory P. Smith
trying to update a bug I get: Fri May 2 07:17:17 2008: An error occurred. Please check the server log for more infomation. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.pyth

Re: [Python-Dev] [Python-3000] Invitation to try out open source code review tool

2008-05-03 Thread Gregory P. Smith
> > To try it out, go here: > >http://codereview.appspot.com > > Please use the Help link in the top right to read more on how to use > the app. Please sign in using your Google Account (either a Gmail > address or a non-Gmail address registered with Google) to interact > more with the app (you

Re: [Python-Dev] Invitation to try out open source code review tool

2008-05-04 Thread Gregory P. Smith
On Sun, May 4, 2008 at 9:36 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Sun, May 4, 2008 at 2:58 AM, Stefan Behnel <[EMAIL PROTECTED]> wrote: > > Personally, I would consider the following sufficient: > > > > 1) people who have authenticated themselves against the underlying VCS > (i.e.

[Python-Dev] heads up on svn.python.org ssh keys - debian/ubuntu users may need new ones

2008-05-13 Thread Gregory P. Smith
Heads up. Debian screwed up. As a result all ssh and ssl keys generated in the last 18 months on debian and ubuntu systems may be compromised due to not using a good random number generator seed. http://lists.debian.org/debian-security-announce/2008/msg00152.html and http://www.links.org/?p=327

Re: [Python-Dev] Committing bsddb 4.6.4, and where can I put testsuite temp files?

2008-05-13 Thread Gregory P. Smith
btw, I fixed the Lib/test/test_bsddb3.py file for the updated Lib/bsddb/test/ modules. Thats how the test suite gets run by the buildbots (run the test suite from a python trunk sandbox using "./python Lib/test/regrtest.py -v -u bsddb test_bsddb test_bsddb3" to reproduce exactly how it is run your

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-14 Thread Gregory P. Smith
On Wed, May 14, 2008 at 6:48 PM, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 12:19 PM 5/15/2008 +1200, Greg Ewing wrote: >> >> Andrew McNabb wrote: >> >>> If it made people feel better, maybe it should be called threading2 >>> instead of multiprocessing. >> >> I think that errs in the other dire

Re: [Python-Dev] Importing bsddb 4.6.21; with or without AES encryption?

2008-05-15 Thread Gregory P. Smith
In the past I believe we've built it with encryption. Regardless, we already ship encryption with Python thanks to the ssl module and I'm assuming the PSF has taken care of the necessary silly export document filing for the US so I see no reason to exclude it from bsddb. On Wed, May 14, 2008 at 8

Re: [Python-Dev] Distutils & configparser rename

2008-05-15 Thread Gregory P. Smith
On Thu, May 15, 2008 at 4:04 PM, Brett Cannon <[EMAIL PROTECTED]> wrote: > On Thu, May 15, 2008 at 1:33 PM, A.M. Kuchling <[EMAIL PROTECTED]> wrote: >> Python 2.6 renames the ConfigParser module to be configparser. >> >> Distutils imports ConfigParser in various places. I just made a >> commit upd

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-16 Thread Gregory P. Smith
On Fri, May 16, 2008 at 1:32 AM, Ulrich Berning <[EMAIL PROTECTED]> wrote: > > As long as the ctypes extension doesn't build on major Un*x platforms (AIX, > HP-UX), I don't like to see ctypes dependend modules included into the > stdlib. Please keep the stdlib as portable as possible. Nice in theo

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-17 Thread Gregory P. Smith
On Sat, May 17, 2008 at 7:59 AM, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: > Another solution would be to write a 2to3 pickle converter using the > pickletools module. It is surely not the most elegant or robust > solution, but I could work. This could be done even for 2.x <--> 2.6 to be tr

Re: [Python-Dev] Importing bsddb 4.6.21; with or without AES encryption?

2008-05-21 Thread Gregory P. Smith
On Wed, May 21, 2008 at 5:12 PM, Trent Nelson <[EMAIL PROTECTED]> wrote: >> Trent Nelson wrote: >> | Gah. I just went and visited the Berkeley DB download site as >> | I was preparing my commit message so I could refer to the >> | exact .tar.gz being imported, only to notice that the latest >> | v

Re: [Python-Dev] Any PEP about 2.6 -> 3000 code transition?

2008-05-25 Thread Gregory P. Smith
Of particular interest to bsddb is the pep3118 buffer API. I updated the existing bsddb module found in the py3k branch to use it last fall; you may want to use the changes made to it as an example. I agree, a single C code base is the only sane way forward for bsddb. The interesting part is that

Re: [Python-Dev] Committing bsddb 4.6.4, and where can I put testsuite temp files?

2008-05-25 Thread Gregory P. Smith
On Thu, May 22, 2008 at 1:32 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >> I would like to print the Berkeley DB release used, also. > > Could that be done at build time as well? > > Martin I just added that to python's setup.py as well as made test_bsddb3 print the version to stderr when it

Re: [Python-Dev] [Python-3000] Stabilizing the C API of 2.6 and 3.0

2008-05-28 Thread Gregory P. Smith
On Wed, May 28, 2008 at 3:12 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > I'm beginning to wonder whether I'm the only one who cares about > the Python 2.x branch not getting cluttered up with artifacts caused > by a broken forward merge strategy. > > How can it be that we allow major C API chang

Re: [Python-Dev] [Python-3000] Stabilizing the C API of 2.6 and 3.0

2008-05-30 Thread Gregory P. Smith
On Thu, May 29, 2008 at 3:57 PM, Nick Coghlan <[EMAIL PROTECTED]> wrote: > M.-A. Lemburg wrote: >> * Why should the 2.x code base turn to hacks, just because 3.x wants >> to restructure itself ? > > With the better explanation from Greg of what the checked in approach > achieves (i.e. preserving ex

Re: [Python-Dev] [Python-3000] Stabilizing the C API of 2.6 and 3.0

2008-06-01 Thread Gregory P. Smith
On Fri, May 30, 2008 at 1:37 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > On 2008-05-30 00:57, Nick Coghlan wrote: >> >> M.-A. Lemburg wrote: >>> >>> * Why can't we have both PyString *and* PyBytes exposed in 2.x, >>> with one redirecting to the other ? >> >> We do have that - the PyString_* name

Re: [Python-Dev] [Python-3000] Stabilizing the C API of 2.6 and 3.0

2008-06-02 Thread Gregory P. Smith
On Mon, Jun 2, 2008 at 5:33 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > >> Okay, how about this? http://codereview.appspot.com/1521 >> >> Using that patch, both PyString_ and PyBytes_ APIs are available using >> function stubs similar to the above. I opted to define the stub >> functions righ

Re: [Python-Dev] [Python-3000] Stabilizing the C API of 2.6 and 3.0

2008-06-02 Thread Gregory P. Smith
-cc: python-3000 I believe those APIs are already there in the existing interface. Why does that concern you? On Mon, Jun 2, 2008 at 9:17 AM, Lisandro Dalcin <[EMAIL PROTECTED]> wrote: > Are you completelly sure of adding those guys: PyBytes_InternXXX ??? > > > On 6/1/08

Re: [Python-Dev] [Python-3000] Stabilizing the C API of 2.6 and 3.0

2008-06-02 Thread Gregory P. Smith
On Mon, Jun 2, 2008 at 4:09 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I will freely admit that I haven't followed this thread in any detail, > but if it were up to me, I'd have the 2.6 internal code use PyString ... Should we read this as a BDFL pronouncement and make it so? All that wo

Re: [Python-Dev] wrt the beta deadline and freelist management

2008-06-07 Thread Gregory P. Smith
On Wed, Jun 4, 2008 at 7:32 PM, Andrew MacIntyre < [EMAIL PROTECTED]> wrote: > There are 2 disparate approaches to clearing/compacting free lists for > basic types: > - APIs of the form Py_ClearFreeList() called from gc.collect() > [class, frame, method, tuple & unicode types]; > - APIs of the fo

Re: [Python-Dev] [Python-3000] Stabilizing the C API of 2.6 and 3.0

2008-06-08 Thread Gregory P. Smith
On Fri, Jun 6, 2008 at 2:19 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > On 2008-06-03 01:29, Gregory P. Smith wrote: > >> On Mon, Jun 2, 2008 at 4:09 PM, Guido van Rossum <[EMAIL PROTECTED]> >> wrote: >> >> I will freely admit that I haven't fo

Re: [Python-Dev] [Python-3000] Stabilizing the C API of 2.6 and 3.0

2008-06-10 Thread Gregory P. Smith
On Mon, Jun 9, 2008 at 1:44 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > On 2008-06-09 07:20, Gregory P. Smith wrote: > >> On Fri, Jun 6, 2008 at 2:19 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: >> >> On 2008-06-03 01:29, Gregory P. Smith wrote: >>&g

Re: [Python-Dev] segfault in struct module

2008-06-10 Thread Gregory P. Smith
On Tue, Jun 10, 2008 at 9:04 AM, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED]:~$ ~/Projects/python/trunk/python > Python 2.6a3+ (trunk:63964, Jun 5 2008, 16:49:12) > [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2 > Type "help", "copyright", "credits" or "license" fo

Re: [Python-Dev] segfault in struct module

2008-06-11 Thread Gregory P. Smith
On Wed, Jun 11, 2008 at 1:19 AM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > Martin, since you committed 60793 in Feb, any others like this that need > > merging from release25-maint to trunk off the top of your head? > > That's the entire chunk of "Google bug fixes", and yes, all of it needs

Re: [Python-Dev] bogus comment in Python.h

2008-06-11 Thread Gregory P. Smith
On Tue, Jun 10, 2008 at 10:13 AM, Doug Evans <[EMAIL PROTECTED]> wrote: > I spent a bit of time trying to figure out what's going on here > (was getting errors regarding missing uintptr_t while trying to compile > an external module with Python 2.4). > pyport.h now includes stdint.h but can we fix

Re: [Python-Dev] [Python-3000] Second betas tomorrow

2008-07-05 Thread Gregory P. Smith
On Tue, Jul 1, 2008 at 8:29 PM, Barry Warsaw <[EMAIL PROTECTED]> wrote: > On Jul 1, 2008, at 10:42 PM, Benjamin Peterson wrote: > >> On Tue, Jul 1, 2008 at 8:44 PM, Barry Warsaw <[EMAIL PROTECTED]> wrote: >> >>> On Jul 1, 2008, at 7:27 PM, Brett Cannon wrote: >>> Is a Google Calendar kep

[Python-Dev] Search broken on the python dev docs?

2008-07-20 Thread Gregory P. Smith
http://docs.python.org/dev/ the search box worked for earlier releases but has been broken and returns nothing useful of late. If I enter simple terms like 'time' or 'os' or 'os.walk' what is returned is pathetic. how does this work? is an index corrupt or not being regenerated? -gps _

Re: [Python-Dev] Python 3.0b3 documentation typo

2008-09-03 Thread Gregory P. Smith
thanks. in general report all issues even ones like this on bugs.python.org rather than on a mailing list where they can get lost. i've fixed this trivial one in py3k svn r66207. On Wed, Sep 3, 2008 at 8:16 PM, Reed O'Brien <[EMAIL PROTECTED]> wrote: > I was reading through the Dictionary views

<    1   2   3   4   5   6   7   >