Re: [Python-Dev] Slice as a copy... by design?

2008-05-23 Thread Nick Coghlan

Greg Ewing wrote:

Some way of explicitly requesting a view into another
string might be desirable, but it shouldn't be the
default behaviour for string slicing.


Backporting 3.0's memoryview to 2.6 would be the way to go about that.

Cheers,
Nick.

--
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---
http://www.boredomandlaziness.org
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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

2008-05-23 Thread Georg Brandl

Nick Coghlan schrieb:

Alex Martelli wrote:

On Wed, May 21, 2008 at 1:53 PM, Raymond Hettinger [EMAIL PROTECTED] wrote:

Putting this functionality in 2.6/3.0 would provide a really
nice incentive to update from Py2.5.  It would be a sad
lost opportunity if this module had to wait another couple years.


I feel essentially the same way: it WOULD be sad to waste this
excellent opportunity, so I second the suggestion to put pyprocessing
in the library right now.


Thirded (I think I'm contradicting what I posted earlier in the thread, 
but I've had more of a chance to think about it and 18 months really is 
quite a long time to wait for this functionality...)


This seems to be enough support to put an entry into PEP 361, which I've
just done.

Personally, I'd also find it useful to have such a thing in the stdlib,
since at the moment multiple processes are really the way to go for
parallelism in Python, and Python needs to stress this fact.

Georg

--
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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

2008-05-23 Thread M.-A. Lemburg

On 2008-05-23 01:15, Bill Janssen wrote:

That's all fine, but then I'm missing the OpenSSL license and
attribution notice somewhere in the installer, the README of the
installation or elsewhere.


Good point.  We need this for both the ssl module and the hashlib
module.


FYI: I've opened ticket #2949 to track this.

--
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, May 23 2008)
 Python/Zope Consulting and Support ...http://www.egenix.com/
 mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
 mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


 Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! 


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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

2008-05-23 Thread Trent Nelson
 I just committed bsddb3 4.7.0. Please install Berkeley DB =4.7.25.

I'll be working on this over the weekend.

Trent.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Summary of Tracker Issues

2008-05-23 Thread Tracker

ACTIVITY SUMMARY (05/16/08 - 05/23/08)
Tracker at http://bugs.python.org/

To view or respond to any of the issues listed below, click on the issue 
number.  Do NOT respond to this message.


 1884 open (+40) / 12889 closed (+16) / 14773 total (+56)

Open issues with patches:   559

Average duration of open issues: 702 days.
Median duration of open issues: 1428 days.

Open Issues Breakdown
   open  1861 (+40)
pending23 ( +0)

Issues Created Or Reopened (61)
___

Backport oct() and hex() to use __index__05/17/08
   http://bugs.python.org/issue2337reopened benjamin.peterson 
   patch, 26backport   

Moving lib-tk to tkinter package 05/20/08
CLOSED http://bugs.python.org/issue2839reopened brett.cannon  
   patch   

Write UserDict fixer for 2to305/20/08
   http://bugs.python.org/issue2876reopened brett.cannon  
   

Rename repr to reprlib   05/20/08
CLOSED http://bugs.python.org/issue2880reopened brett.cannon  
   

Create the html package  05/20/08
CLOSED http://bugs.python.org/issue2882reopened brett.cannon  
   

Crash in ParseTupleAndKeywords when passing byte string keywords 05/16/08
CLOSED http://bugs.python.org/issue2895created  scoder
   

cmathmodule.c compilation error  05/16/08
CLOSED http://bugs.python.org/issue2896created  Juno  
   

include structmember.h in Python.h   05/16/08
   http://bugs.python.org/issue2897created  benjamin.peterson 
   

Add memory footprint query   05/17/08
   http://bugs.python.org/issue2898created  okkoto
   patch   

Fixers find, rfind, etc in 'string' module   05/17/08
   http://bugs.python.org/issue2899created  bhy   
   

math.copysign(1, float('nan'))   05/17/08
CLOSED http://bugs.python.org/issue2900created  christian.heimes  
   

error: can't allocate region from mmap() when receiving big ch 05/18/08
   http://bugs.python.org/issue2901created  hwaara
   

tkinter uses MacOS   05/18/08
   http://bugs.python.org/issue2902created  benjamin.peterson 
   

Add __name__ in globals of generated namedtuple namespace05/18/08
   http://bugs.python.org/issue2903created  xilun 
   patch   

Cross-referencing to a method using an alternate title don't wor 05/18/08
   http://bugs.python.org/issue2904created  llucax
   

test_urllib.py crashes with bus error on Darwin  05/18/08
CLOSED http://bugs.python.org/issue2905created  cartman   
   

tkinter, assorted fixes  05/18/08
   http://bugs.python.org/issue2906created  gpolo 
   patch, patch

ZeroDivisionError error message needs clarification  05/18/08
CLOSED http://bugs.python.org/issue2907created  chester   
   

fix_imports new entries for tkinter rename   05/18/08
CLOSED http://bugs.python.org/issue2908reopened gpolo 
   patch   

struct.Struct.unpack to return a namedtuple for easier 

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

2008-05-23 Thread Trent Nelson
 I just committed bsddb3 4.7.0. Please install Berkeley DB =4.7.25.

Oh my.  Just finished plugging 4.7.25 into the Windows build environment.  Upon 
running regrtest.py -v -u bsddb test_bsddb test_bsddb3, I get about 300 lines 
like this printed to stderr:

DB-key_range: method not permitted before handle's open method
illegal flag specified to DB-remove

Then about 15 lines like this:
DB_ENV-rep_start interface requires an environment configured for the 
replication subsystem
DB_ENV-rep_start interface requires an environment configured for the 
replication subsystem
DB_ENV-rep_start interface requires an environment configured for the 
replication subsystem
DB_ENV-rep_start interface requires an environment configured for the 
replication subsystem

Then Python crashes.  Quick perusal of stdout reveals this happening on just 
about every test:

==
ERROR: test__no_deadlock_first (test.test_bsddb.TestBTree)
--
Traceback (most recent call last):
  File O:[EMAIL PROTECTED], line 16, in setUp
self.f = self.openmethod[0](self.fname, self.openflag, cachesize=32768)
  File O:[EMAIL PROTECTED], line 320, in btopen
e = _openDBEnv(cachesize)
  File O:[EMAIL PROTECTED], line 360, in _openDBEnv
e.open('.', db.DB_PRIVATE | db.DB_CREATE | db.DB_THREAD | db.DB_INIT_LOCK | 
db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument')

The last lines before python_d.exe crashes are as follows:

testCheckElapsedTime (test.test_bsddb3.TimingCheck) ... ok
test_pget (bsddb.test.test_cursor_pget_bug.pget_bugTestCase) ... ERROR
testCheckElapsedTime (test.test_bsddb3.TimingCheck) ... ok
test01_both (bsddb.test.test_dbobj.dbobjTestCase) ... ERROR
test02_dbobj_dict_interface (bsddb.test.test_dbobj.dbobjTestCase) ... ERROR
test03_dbobj_type_before_open (bsddb.test.test_dbobj.dbobjTestCase) ... FAIL

Think I'll call it a night for now.

Trent.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com