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 theory

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

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 updating the

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 direction, making it

[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

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 need to

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

2008-05-02 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

[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:

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, so BSDDB

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 over all

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 uses.

[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,

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 to be

[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 stdin, line 1, in module File /home/gps/python/trunk/Lib/encodings/__init__.py, line 100, in search_function level=0) TypeError:

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 end up

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:

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

2008-04-06 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

Re: [Python-Dev] fixing tests on windows

2008-04-02 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 tearDown(). I

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 of

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

[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] 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 did a quick

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 them.

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

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

2008-03-13 Thread Gregory P. Smith
-- 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] Sent: 13 March 2008 22:00 To: Trent Nelson Cc: python-dev@python.org; Jesus Cea Subject: Re: Windows x64

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 separate

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 no

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 that they did so

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

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 accepted for a patch

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 these tasks,

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 you are

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. ___

[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 is

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 bytes; long long (__int64 on Windows) is 8 bytes

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 installed python scripts importing user supplied

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. Addition: An user

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 type.

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 wrappers and it

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 where polling

[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

[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 or

Re: [Python-Dev] SSL 1.8

2007-10-16 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

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

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 in the

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

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

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 in the

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

2007-09-10 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

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

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 create a

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

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 hours (fine for

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? True, that would be simpler; is it enough

[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

Re: [Python-Dev] Rationale for NamedTemporaryFile?

2007-03-20 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 relying on

Re: [Python-Dev] crashing on shutdown due to warning at shutdown

2007-01-04 Thread Gregory P. Smith
On Thu, Jan 04, 2007 at 09:35:16PM -0800, Neal Norwitz wrote: I fixed the crash that was due to raising a warning on shutdown. I have heard about crashes at shutdown and wonder if this was the cause. There might be similar bugs lurking that assume PyModule_GetDict() always returns a valid

[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] Renaming Include/object.h

2007-01-03 Thread Gregory P. Smith
On Wed, Jan 03, 2007 at 02:54:34PM -0500, Barry Warsaw wrote: On Jan 3, 2007, at 2:29 PM, Martin v. L?wis wrote: Guido van Rossum schrieb: Maybe this should be done in a more systematic fashion? E.g. by giving all internal header files a py_ prefix? Yet another alternative would be

Re: [Python-Dev] a feature i'd like to see in python #2: indexing of match objects

2006-12-04 Thread Gregory P. Smith
On Sun, Dec 03, 2006 at 07:38:21PM +0100, Martin v. L?wis wrote: Aahz schrieb: this one is fairly simple. if `m' is a match object, i'd like to be able to write m[1] instead of m.group(1). (similarly, m[:] should return the same as list(m.groups()).) this would remove some of the verbosity

Re: [Python-Dev] Python and the Linux Standard Base (LSB)

2006-11-28 Thread Gregory P. Smith
I question whether a distro built on Python can even afford to allow 3rd party packages to be installed in their system's site-packages. Maybe Python needs to extend its system-centric view of site-packages with an application-centric and/or user-centric view of extensions? Agreed,

Re: [Python-Dev] 2.3.6 for the unicode buffer overrun

2006-10-12 Thread Gregory P. Smith
On Fri, Oct 13, 2006 at 06:43:40AM +1000, Anthony Baxter wrote: On Friday 13 October 2006 06:25, Barry Warsaw wrote: On Oct 12, 2006, at 3:27 PM, Anthony Baxter wrote: Mostly it is easy for me, with the one huge caveat. As far as I know, the Mac build is a single command to run for

Re: [Python-Dev] 2.3.6 for the unicode buffer overrun

2006-10-12 Thread Gregory P. Smith
On Thu, Oct 12, 2006 at 09:30:49PM +0200, Georg Brandl wrote: Barry Warsaw wrote: I've offered in the past to dust off my release manager cap and do a 2.3.6 release. Having not done one in a long while, the most daunting part for me is getting the website updated, since I have none

Re: [Python-Dev] Python 2.5 performance

2006-10-12 Thread Gregory P. Smith
On Thu, Oct 12, 2006 at 11:00:09PM +0200, Martin v. L?wis wrote: Kristj?n V. J?nsson schrieb: This is an improvement of another 3.5 %. In all, we have a performance increase of more than 10%. Granted, this is from a single set of runs, but I think we should start considering to make

Re: [Python-Dev] 2.4 vs Windows vs bsddb

2006-10-10 Thread Gregory P. Smith
On Mon, Oct 09, 2006 at 08:11:59PM -0400, Tim Peters wrote: [Tim] I just noticed that the bsddb portion of Python fails to compile on the 2.4 Windows buildbots, but for some reason the buildbot machinery doesn't notice the failure: But it does now. This is the revision that broke the

Re: [Python-Dev] PATCH submitted: Speed up + for string concatenation, now as fast as .join(x) idiom

2006-10-05 Thread Gregory P. Smith
I've never liked the .join([]) idiom for string concatenation; in my opinion it violates the principles Beautiful is better than ugly. and There should be one-- and preferably only one --obvious way to do it.. (And perhaps several others.) To that end I've submitted patch #1569040 to

Re: [Python-Dev] Caching float(0.0)

2006-10-03 Thread Gregory P. Smith
It would be instructive to understand how much, if any, python code would break if we lost -0.0. I'm do not believe that there is any reliable way for python code to tell the difference between all of the different types of IEEE 754 zeros and in the special case of -0.0 the best

Re: [Python-Dev] openSSL and windows binaries - license

2006-08-09 Thread Gregory P. Smith
Strictly speaking, it is dropping a feature: a connection that can get established with 2.5b3 might not get established with 2.5c1, assuming a server that requires some IDEA-based cipher. (any sane SSL connection will negotiate AES or 3DES as its cipher; IDEA isn't required) Ok, I'll

Re: [Python-Dev] windows 2.5 build: use OpenSSL for hashlib [bug 1535502]

2006-08-08 Thread Gregory P. Smith
I have supplied a patch that does everything needed to both make the windows build process build OpenSSL with x86 assembly optimizations on Win32 and to build the _hashlib.pyd module. It works for me. The only thing the patch doesn't do is add _hashlib.pyd to the .msi windows installer because

Re: [Python-Dev] windows 2.5 build: use OpenSSL for hashlib [bug 1535502]

2006-08-08 Thread Gregory P. Smith
On Tue, Aug 08, 2006 at 08:26:08AM +0200, Martin v. L?wis wrote: Gregory P. Smith schrieb: Widely deployed popular applications use python for both large scale hashing and ssl communications. Yet, nobody has worried about performance in all these years to notice that the assembler code

Re: [Python-Dev] openSSL and windows binaries - license

2006-08-08 Thread Gregory P. Smith
On Tue, Aug 08, 2006 at 04:54:44PM -0400, Jim Jewett wrote: On 8/8/06, Martin v. L?wis [EMAIL PROTECTED] wrote: Jim Jewett schrieb: The OpenSSL library implements some algorithms that are patented. The source code should be fine to (re)distribute, but but there may be a slight legal

Re: [Python-Dev] windows 2.5 build: use OpenSSL for hashlib [bug 1535502]

2006-08-07 Thread Gregory P. Smith
On Mon, Aug 07, 2006 at 03:16:22PM +0200, Martin v. L?wis wrote: Gregory P. Smith schrieb: Whoever knows how the windows build process works and controls the python 2.5 windows release builds could you please make sure the hashlib module gets built + linked with OpenSSL rather than falling

Re: [Python-Dev] windows 2.5 build: use OpenSSL for hashlib [bug 1535502]

2006-08-07 Thread Gregory P. Smith
On Tue, Aug 08, 2006 at 03:25:46AM +1000, Anthony Baxter wrote: I'm nervous about this change being made at this stage of the release process. It seems to me to have a chance of causing breakages - admittedly a small chance, but one that's higher than I'd like. Sigh. Half the reason I did

Re: [Python-Dev] windows 2.5 build: use OpenSSL for hashlib [bug 1535502]

2006-08-07 Thread Gregory P. Smith
On Tue, Aug 08, 2006 at 01:46:13AM +0200, Martin v. L?wis wrote: Gregory P. Smith schrieb: hashlib's OpenSSL implementation on windows comes in the form of a 300k _hashlib.pyd library. What do you mean by comes? I can't find any _hashlib.vcproj file inside the PCbuild directory. I'll see

Re: [Python-Dev] windows 2.5 build: use OpenSSL for hashlib [bug 1535502]

2006-08-07 Thread Gregory P. Smith
On Tue, Aug 08, 2006 at 02:23:02AM +0200, Martin v. L?wis wrote: Gregory P. Smith schrieb: Sigh. Half the reason I did the hashlib work was to get much faster optimized versions of the hash algorithms into python. I'll be disappointed if that doesn't happen. Sad as it sounds

[Python-Dev] windows 2.5 build: use OpenSSL for hashlib [bug 1535502]

2006-08-06 Thread Gregory P. Smith
Whoever knows how the windows build process works and controls the python 2.5 windows release builds could you please make sure the hashlib module gets built + linked with OpenSSL rather than falling back to its much slower builtin implementations.

Re: [Python-Dev] httplib and bad response chunking

2006-07-30 Thread Gregory P. Smith
On Tue, Jul 25, 2006 at 10:32:13PM -0400, Greg Ward wrote: what I discovered in the wild the other day was a response like this: 0005\r\nabcd\n\r\n0004\r\nabc\n\r\n\r\n i.e. the chunk-size for the terminating empty chunk was missing. This cause httplib.py to blow up with ValueError

Re: [Python-Dev] [Windows, buildbot] kill_python.c mystery

2006-07-28 Thread Gregory P. Smith
Didn't you know that you signed in to run arbitrary viruses, worms, and trojan horses when you added your machine to the buildbot infrastructure :-? You just haven't seen buildbot erasing your hard disk and filling your coffee machine with tea, yet. VMware Server is free. Run buildbots in a

[Python-Dev] os.getmtime now returns a float?

2006-06-19 Thread Gregory P. Smith
os.path.getmtime returns a float on linux (2.5a2/b1 HEAD); in 2.4 it returned an int. this change makes sense, its what time.time returns. should there be a note in Misc/NEWS or whatsnew mentioning this minor change (or did i miss it)? It breaks code that unintentionally depended on it

Re: [Python-Dev] request for review: patch 1446489 (zip64 extensions in zipfile)

2006-06-13 Thread Gregory P. Smith
As I mentioned earlier I'd like to get patch 1446489 (support for zip64 extensions in the zipfile module) in python 2.5. The patch should be perfectly safe, it comes with unittests and a documentation update. I'm also using this version of zipfile in (closed-source) projects to handle

Re: [Python-Dev] need info for externally maintained modules PEP

2006-04-12 Thread Gregory P. Smith
On Sat, Apr 08, 2006 at 02:47:28PM -0700, Brett Cannon wrote: OK, I am going to write the PEP I proposed a week or so ago, listing all modules and packages within the stdlib that are maintained externally so we have a central place to go for contact info or where to report bugs on issues.

Re: [Python-Dev] building sql queries in python

2006-03-30 Thread Gregory P. Smith
Getting off on a tangent here, but I would actually like some decent way of writing SQL queries in Python -- not for importing, but for database access. Constructing bits of SQL out of character strings sucks *extremely* badly. Have you looked at SqlObject? (and its associated modules

Re: [Python-Dev] _bsddb.c ownership

2006-03-29 Thread Gregory P. Smith
On Wed, Mar 08, 2006 at 03:03:48AM +0100, Thomas Wouters wrote: On 3/7/06, Martin v. L??wis [EMAIL PROTECTED] wrote: Thomas Wouters wrote: Who 'owns' Modules/_bsddb.c, if anyone? It's a fork of pybsddb, originally contributed by Gregory Smith (*). For all practical purposes, he also

Re: [Python-Dev] Still looking for volunteer to run Windows buildbot

2006-03-29 Thread Gregory P. Smith
On Sat, Mar 11, 2006 at 07:08:14PM +0100, Thomas Heller wrote: Martin v. L?wis wrote: Josiah Carlson told me had has given up getting a Windows buildbot running, because every time he installed VS.NET on his machine, the installation would immediately crash. So if anybody wants to

Re: [Python-Dev] Still looking for volunteer to run Windows buildbot

2006-03-29 Thread Gregory P. Smith
On Sun, Mar 12, 2006 at 06:48:13PM -0500, Tim Peters wrote: [Trent] :) Did you apply the Berkeley DB patches to your db-4.2.52 sources? Ah, _which_ patches? As with my buildbot Wiki page, I write down everything I do if there's a good chance I may need to do it again. So, e.g., these

Re: [Python-Dev] I'm not getting email from SF when assignedabug/patch

2006-03-29 Thread Gregory P. Smith
The language choice should only be used as an argument if all else is equal. Of course, hackability of a particular solution may be a criterion too, and there the language choice could matter. But the above response sounded like a knee-jerk to me, and IMO needs to be rebutted. -- --Guido

Re: [Python-Dev] pysqlite for 2.5?

2006-03-29 Thread Gregory P. Smith
On Wed, Mar 29, 2006 at 03:35:48PM +0200, Gerhard H?ring wrote: Barry Warsaw wrote: On Wed, 2006-03-29 at 19:47 +1100, Anthony Baxter wrote: My only concern about this is that it wouldn't be possible for other authors to provide 3rd party packages as (for instance) db.mysqldb because of

Re: [Python-Dev] pysqlite for 2.5?

2006-03-29 Thread Gregory P. Smith
On Wed, Mar 29, 2006 at 11:47:10PM +0200, Thomas Wouters wrote: Con: * Competing Python wrappers exist * SQLite itself is updated frequently, let alone the wrappers * Build integration risks unknown, possible delay of 2.5? * Another external library to track and maybe have emergency

Re: [Python-Dev] stabilizing builds

2006-01-24 Thread Gregory P. Smith
On Sun, Jan 22, 2006 at 11:01:36PM -0800, Neal Norwitz wrote: rather than later. There are a bunch of tests that are not stable. It would really help to get people knowledgeable about a particular subdomain to provide input into bugs/patches and produce patches too! The areas that are

Re: [Python-Dev] hashlib - faster md5/sha, adds sha256/512 support

2005-12-21 Thread Gregory P. Smith
On Fri, Dec 16, 2005 at 02:50:36PM -0800, Brett Cannon wrote: On 12/16/05, Tim Peters [EMAIL PROTECTED] wrote: [SNIP] python-dev'ers: I failed to find anything in the trunk's NEWS file about this (neither about `hashlib`, nor about any of the specific new hash functions). It's not like

Re: [Python-Dev] Incorporation of zlib sources into Python subversion

2005-12-21 Thread Gregory P. Smith
On Sun, Dec 18, 2005 at 11:09:54AM +0100, Martin v. L?wis wrote: Thomas (Heller) and I have been discussing whether the zlib module should become builtin, atleast on Win32 (i.e. part of python25.dll). This would simplify py2exe, which then could bootstrap extraction from the compressed file

Re: [Python-Dev] hashlib - faster md5/sha, adds sha256/512 support

2005-12-21 Thread Gregory P. Smith
A new core `hashlib` module will be included in Python 2.5, but will not be backported to older Python versions. It includes new implementations for SHA-224, -256, -384 and -512. The code and tests are already written, and can be gotten from Python's SVN trunk. Another thing I intended to

Re: [Python-Dev] [Python-checkins] python/dist/src setup.py, 1.219, 1.220

2005-08-23 Thread Gregory P. Smith
On Mon, Aug 22, 2005 at 08:46:27AM -0400, Raymond Hettinger wrote: A new hashlib module to replace the md5 and sha modules. It adds support for additional secure hashes such as SHA-256 and SHA-512. The hashlib module uses OpenSSL for fast platform optimized implementations of algorithms

Re: [Python-Dev] [Python-checkins] python/dist/src/Modules _hashopenssl.c, NONE, 2.1 sha256module.c, NONE, 2.1 sha512module.c, NONE, 2.1 md5module.c, 2.35, 2.36 shamodule.c, 2.22, 2.23

2005-08-23 Thread Gregory P. Smith
This patch should be reverted or fixed so that the Py2.5 build works again. It contains a disasterous search and replace error that prevents it from compiling. Hence, it couldn't have passed the test suite before being checked in. Also, all of the project and config files need to be

Re: [Python-Dev] [Python-checkins] python/dist/src/Modules _hashopenssl.c, NONE, 2.1 sha256module.c, NONE, 2.1 sha512module.c, NONE, 2.1 md5module.c, 2.35, 2.36 shamodule.c, 2.22, 2.23

2005-08-23 Thread Gregory P. Smith
The project files are just text files and can be updated simply and directly. But yes, that is no big deal and I'll just do it for him once the code gets to a compilable state. I just checked in an update removing all of the ULLs. Could you check that it compiles on windows and passes

[Python-Dev] request for code review - hashlib - patch #1121611

2005-08-14 Thread Gregory P. Smith
https://sourceforge.net/tracker/index.php?func=detailaid=1121611group_id=5470atid=305470 This is the hashlib module that speeds up python's md5 and sha1 support by using openssl (when available) as well as adding sha224/256 + sha384/512 support (plus anything openssl provides). I believe it is

Re: [Python-Dev] problem installing current cvs - TabError

2005-06-07 Thread Gregory P. Smith
On Tue, Jun 07, 2005 at 08:49:11PM +0200, Irmen de Jong wrote: furthermore the 'make install' of current cvs fails halfway trough with the following errors: . . Compiling /opt/python25/lib/python2.5/bsddb/test/test_associate.py ... Sorry: TabError: ('inconsistent use of tabs

Re: [Python-Dev] threading (GilState) question

2005-04-08 Thread Gregory P. Smith
Under Limitations and Exclusions it specifically disowns responsibility for worrying about whether Py_Initialize() and PyEval_InitThreads() have been called: [snip quote] This suggests that I should call PyEval_InitThreads() in initreadline(), which seems daft. fwiw, Modules/_bsddb.c

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-16 Thread Gregory P. Smith
On Fri, Mar 11, 2005 at 06:47:11PM -0500, Bob Ippolito wrote: On Mar 11, 2005, at 2:26 PM, Skip Montanaro wrote: Bob try: Bob set Bob except NameError: Bob from sets import Set as set Bob You don't need the rest. Sure, but then pychecker bitches about

<    1   2   3   4   5   6   7   >