Re: [Python-Dev] license issues with profiler.py and md5.h/md5c.c

2005-02-08 Thread Gregory P. Smith
The md5.h/md5c.c files allow copy and use, but no modification of the files. There are some alternative implementations, i.e. in glibc, openssl, so a replacement should be sage. Any other requirements when considering a replacement? Matthias I believe the plan for md5 and sha1 and

Re: [Python-Dev] license issues with profiler.py and md5.h/md5c.c

2005-02-11 Thread Gregory P. Smith
I think it would be cleaner and simpler to modify the existing md5module.c to use the openssl md5 layer API (this is just a search/replace to change the function names). The bigger problem is deciding what/how/whether to include the openssl md5 implementation sources so that win32 can use

Re: [Python-Dev] license issues with profiler.py and md5.h/md5c.c

2005-02-12 Thread Gregory P. Smith
On Sat, Feb 12, 2005 at 08:37:21AM -0500, A.M. Kuchling wrote: On Sat, Feb 12, 2005 at 01:54:27PM +1100, Donovan Baarda wrote: Are there any potential problems with making the md5sum module availability optional in the same way as this? The md5 module has been a standard module for a long

[Python-Dev] Re: OpenSSL sha module / license issues with md5.h/md5c.c

2005-02-13 Thread Gregory P. Smith
On Mon, Feb 14, 2005 at 11:02:23AM +1100, Donovan Baarda wrote: On Sat, 2005-02-12 at 17:35 -0800, Gregory P. Smith wrote: I've created an OpenSSL version of the sha module. trivial to modify to be a md5 module. Its a first version with cleanup to be done and such. being managed

Re: [Python-Dev] license issues with profiler.py and md5.h/md5c.c

2005-02-16 Thread Gregory P. Smith
fyi - i've updated the python sha1/md5 openssl patch. it now replaces the entire sha and md5 modules with a generic hashes module that gives access to all of the hash algorithms supported by OpenSSL (including appropriate legacy interface wrappers and falling back to the old code when compiled

Re: [Python-Dev] license issues with profiler.py and md5.h/md5c.c

2005-02-18 Thread Gregory P. Smith
On Fri, Feb 18, 2005 at 10:06:24AM +0100, Martin v. L?wis wrote: Donovan Baarda wrote: This patch keeps the current md5c.c, md5module.c files and adds the following; _hashopenssl.c, hashes.py, md5.py, sha.py. [...] If all we wanted to do was fix the md5 module If we want to fix the

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

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

2005-03-16 Thread Gregory P. Smith
[Gregory P. Smith] or make it even uglier to hide from pychecker by writing that as: exec( try: set except NameError: from sets import Set as set ) I presume that was somewhat tongue-in-cheek, but if it wasn't, please reconsider. Modulefinder isn't able to realise

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] 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

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

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] 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] _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] 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] 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] 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] Python 2.4 extensions require VC 7.1?

2006-06-17 Thread Gregory P. Smith
On Sat, Jun 17, 2006 at 03:27:36PM +0200, Martin v. L?wis wrote: Scott Dial wrote: For fopen(3), you are right. For signal(3), VS2005 is in clear violation with ISO C I'm nobody but I don't find your argument compelling. I suggest you go read:

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

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

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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

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

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] 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] 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-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] 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

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] 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] 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] 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

[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

[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

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

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] 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] 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] 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

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

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] 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] 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] 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] 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] 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] 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] 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] 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] __del__ and tp_dealloc in the IO lib

2009-01-18 Thread Gregory P. Smith
+1 on getting rid of the IOBase __del__ in the C rewrite in favor of tp_dealloc. On Sun, Jan 18, 2009 at 11:53 PM, Christian Heimes li...@cheimes.de wrote: Brett Cannon schrieb: Fine by me. People should be using the context manager for guaranteed file closure anyway IMO. Yes they should.

Re: [Python-Dev] stuck with dlopen...

2009-01-19 Thread Gregory P. Smith
If you run your python.exe under gdb you should be able to set a future breakpoint on your _PyEval_EvalMiniFrameEx function and debug from there. On Wed, Jan 14, 2009 at 8:28 PM, s...@pobox.com wrote: I've recently been working on generating C functions on-the-fly which inline the C code

Re: [Python-Dev] Subversion upgraded to 1.5

2009-01-31 Thread Gregory P. Smith
I'm seeing the following when trying to svn commit: Transmitting file data ...Read from remote host svn.python.org: Operation timed out svn: Commit failed (details follow): svn: Connection closed unexpectedly ... That was with subversion 1.4.4; copying my changes to a different host with

Re: [Python-Dev] Subversion upgraded to 1.5

2009-01-31 Thread Gregory P. Smith
I'm just trying to commit the following to trunk: SendingLib/test/test_socket.py SendingMisc/NEWS SendingModules/socketmodule.c Transmitting file data ... I have another svn commit attempt which appesrs to be hanging and destined to timeout running right now. ssh -v

Re: [Python-Dev] Subversion upgraded to 1.5

2009-01-31 Thread Gregory P. Smith
upgrade. I don't think I've done any commits from these hosts since I got IPv6 connectivity, only updates. -gps On Sat, Jan 31, 2009 at 2:49 PM, Gregory P. Smith g...@krypto.org wrote: I'm just trying to commit the following to trunk: SendingLib/test/test_socket.py Sending

Re: [Python-Dev] Are buffer overflows in modules deleted in py3k ignorable?

2009-03-29 Thread Gregory P. Smith
It'd be worthy of fixing in 2.6 since the module exists. Though honestly... who cares about Irix? On Sat, Mar 28, 2009 at 8:53 PM, R. David Murray rdmur...@bitdance.comwrote: I'm reviewing http://bugs.python.org/issue2591, which is marked as 'security' because it is a potential buffer

Re: [Python-Dev] Proposed: a new function-based C API for declaring Python types

2009-04-30 Thread Gregory P. Smith
On Tue, Apr 28, 2009 at 8:03 PM, Larry Hastings la...@hastings.org wrote: EXECUTIVE SUMMARY I've written a patch against py3k trunk creating a new function-based API for creating extension types in C. This allows PyTypeObject to become a (mostly) private structure. THE PROBLEM Here's

Re: [Python-Dev] PEP 383 update: utf8b is now the error handler

2009-05-03 Thread Gregory P. Smith
On Sun, May 3, 2009 at 10:39 AM, Martin v. Löwis mar...@v.loewis.dewrote: If the error handler is supposed to be used for codecs other than utf-8, perhaps it should renamed something more generic, e.g. surrogate-escape? Perhaps. However, utf-8b doesn't really have to do anything with utf-8

Re: [Python-Dev] PEP 383 update: utf8b is now the error handler

2009-05-03 Thread Gregory P. Smith
On Sun, May 3, 2009 at 1:27 PM, Martin v. Löwis mar...@v.loewis.dewrote: If the error handler is supposed to be used for codecs other than utf-8, perhaps it should renamed something more generic, e.g. surrogate-escape? Perhaps. However, utf-8b doesn't really have

Re: [Python-Dev] turtle.py update for 3.1

2009-05-04 Thread Gregory P. Smith
On Mon, May 4, 2009 at 7:33 AM, Gregor Lingl gregor.li...@aon.at wrote: Hi, Encouraged by a conversation with Martin at PyCon 2009 I've prepared a version 1.1b of the turtle module and I'd like to get some advice or assistance to get it into the beta as explained below. Thus I'd appreciate

Re: [Python-Dev] PEP 383 update: utf8b is now the error handler

2009-05-07 Thread Gregory P. Smith
On Thu, May 7, 2009 at 12:39 PM, Martin v. Löwis mar...@v.loewis.de wrote: Given your explanation of what the new 'surrogates' handler does (pass rather than reject erroneous surrogates), I think 'surrogates_pass' is fine.  Thus, I considoer that and 'surrogates_excape' the best proposal the

Re: [Python-Dev] Issues with Py3.1's new ipaddr

2009-06-02 Thread Gregory P. Smith
On Tue, Jun 2, 2009 at 1:11 PM, Jake McGuire mcgu...@google.com wrote: The minimal demonstration of the problem of representing networks and addresses using the same class: fwiw, that (hosts vs networks in the same class) is not what you are demonstrating below. What you demonstrate is that

Re: [Python-Dev] Issues with Py3.1's new ipaddr

2009-06-02 Thread Gregory P. Smith
On Tue, Jun 2, 2009 at 7:39 PM, Guido van Rossum gu...@python.org wrote: I'm disappointed in the process -- it's as if nobody really reviewed the API until it was released with rc1, and this despite there being a significant discussion about its inclusion and alternatives months ago. (Don't

Re: [Python-Dev] [Fwd: [issue6397] Implementing Solaris poll in the select module]

2009-07-02 Thread Gregory P. Smith
On Thu, Jul 2, 2009 at 2:52 AM, Jesus Ceaj...@jcea.es wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexandre Vassalotti wrote: On Wed, Jul 1, 2009 at 10:05 PM, Guido van Rossumgu...@python.org wrote: The select module already supports the poll() system call. Or is there a special

  1   2   3   4   5   6   >