Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-15 Thread Dirkjan Ochtman
On Fri, May 15, 2009 at 8:32 AM, Jeroen Ruigrok van der Werven
 wrote:
> Agreed. Within FreeBSD's ports the installed package registration gets a MD5
> hash per file recorded. Size is less interesting though, since essentially
> this information is encapsulated within the hash. Remove one byte from the
> file and your hash is already different. And the case of a collision for
> this kind of registration is sufficiently small to need the size
> information.

Size is nice because it's much cheaper to check. I don't know if mass
uninstalls will be so common that this is actually something we have
to worry about, though.

Cheers,

Dirkjan
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] python -m test.regrtest should pass on an installed python

2009-05-15 Thread Nick Coghlan
R. David Murray wrote:
> So this posting is a general reminder that the tests should not make
> assumptions about the writabilty of the test directory (or, for that
> matter, of the CWD).

Indeed - the tempfile module is very helpful in that regard.

Cheers,
Nick.

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
---
___
Python-Dev mailing list
[email protected]
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 Python tracker Issues

2009-05-15 Thread Python tracker

ACTIVITY SUMMARY (05/08/09 - 05/15/09)
Python 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.


 2194 open (+34) / 15658 closed (+26) / 17852 total (+60)

Open issues with patches:   855

Average duration of open issues: 647 days.
Median duration of open issues: 398 days.

Open Issues Breakdown
   open  2165 (+34)
pending28 ( +0)

Issues Created Or Reopened (61)
___

Generator expression bug?05/08/09
CLOSED http://bugs.python.org/issue5968reopened svenrahmann 
  
   

sys.exc_info leaks into a generator  05/08/09
   http://bugs.python.org/issue5970created  jyasskin
  
   patch   

logging.Handler.handlerError() may raise IOError in traceback.pr 05/08/09
CLOSED http://bugs.python.org/issue5971created  ryles   
  
   

Failing test_signal.py on Redhat 4.1.2-4405/08/09
   http://bugs.python.org/issue5972created  dmauldin
  
   

re-usable generators / generator expressions should return itera 05/08/09
CLOSED http://bugs.python.org/issue5973created  svenrahmann 
  
   

unicode decode error due to improperly entered text "Martin v. L 05/08/09
CLOSED http://bugs.python.org/issue5974created  srid
  
   patch   

csv unix file format ('\n' line terminator)  05/08/09
   http://bugs.python.org/issue5975created  jtalbot 
  
   

test_os fails if run after test_distutils05/09/09
CLOSED http://bugs.python.org/issue5976created  tarek   
  
   

distutils build_ext.get_outputs returns wrong result (patch) 05/12/09
   http://bugs.python.org/issue5977reopened ajaksu2 
  
   patch   

cProfile and profile don't work with pygtk/pyqt and sys.exit(0)  05/09/09
   http://bugs.python.org/issue5978created  akkana  
  
   

strptime() gives inconsistent exceptions 05/09/09
   http://bugs.python.org/issue5979created  ryles   
  
   

Add bug tracker tasks to PEP 101 05/09/09
   http://bugs.python.org/issue5980created  ajaksu2 
  
   patch   

float.fromhex bugs   05/09/09
CLOSED http://bugs.python.org/issue5981created  marketdickinson 
  
   patch   

classmethod, staticmethod: expose wrapped function   05/09/09
   http://bugs.python.org/issue5982created  gsakkis 
  
   

boolean.so no more in _xmlplus/utils 05/09/09
CLOSED http://bugs.python.org/issue5983created  schmirrwurst
  
   

distutils.command.build_ext.check_extensions_list broken checkin 05/10/09
CLOSED http://bugs.python.org/issue5984created  tarek   
  
   

Implement os.path.samefile and os.path.sameopenfile on Windows   05/10/09
   http://bugs.python.org/issue5985created  sandberg
  
   

Avoid reversed() in Random.shuffle() 05/10/09
CLOSED http://bugs.python.org/issue5986created  haypo   
  
   patch   

Broken link to "Curses Programming with Python"  05/10/09
CLOSED http://bugs.python.org/issue5987created  ralph.corderoy  
  
 

[Python-Dev] doc error in 2.6.2

2009-05-15 Thread Leo Jay
There is a syntax error in the client side code of
"SocketServer.UDPServer Example" in
http://docs.python.org/library/socketserver.html:
import socket
import sys

HOST, PORT = "localhost"
data = " ".join(sys.argv[1:])

Obviously, it should be:
HOST, PORT = "localhost", 

--
Leo Jay
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] doc error in 2.6.2

2009-05-15 Thread Aahz
On Sat, May 16, 2009, Leo Jay wrote:
>
> There is a syntax error in the client side code of
> "SocketServer.UDPServer Example" in
> http://docs.python.org/library/socketserver.html:

Please follow the directions in http://docs.python.org/bugs.html
to report this on bugs.python.org -- that ensures that it won't get
lost.
-- 
Aahz ([email protected])   <*> http://www.pythoncraft.com/

"In 1968 it took the computing power of 2 C-64's to fly a rocket to the moon.
Now, in 1998 it takes the Power of a Pentium 200 to run Microsoft Windows 98.
Something must have gone wrong."  --/bin/fortune
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-15 Thread P.J. Eby

At 08:32 AM 5/15/2009 +0200, Jeroen Ruigrok van der Werven wrote:
Agreed. Within FreeBSD's ports the installed package registration 
gets a MD5 hash per file recorded. Size is less interesting though, 
since essentially this information is encapsulated within the hash. 
Remove one byte from the file and your hash is already different.


Which also means that in that case you can skip computing the 
MD5.  The size allows you to easily notice an overwrite/corruption 
without further processing. 


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


Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-15 Thread P.J. Eby

At 08:32 AM 5/15/2009 +0200, Tarek Ziadé wrote:

2009/5/15 P.J. Eby :
>  Ideally, a file with identical size/checksum that
> belongs to more than one project should be silently left alone, and a file
> installed by more than one project with *different* size/checksum should be
> warned about and left alone.

I think the path is the info that should be looked at.


By "a file that belongs to more than one project" I meant a single 
file on *disk* (i.e., one absolute path).



But I don't think you want to leave alone a file with identical 
size/checksum that belongs to more than one project when it's not 
the same absolute path.


That wouldn't be "a file" then, would it?  ;-)



Here's an example why : if two different packages includes the
"feedparser.py" module
(from the FeedParser project) for conveniency, and if you remove one package,
you *do* want to remove its "feeparser.py" module even if it exists 
in the other

project.


Right, that would be *two files*, though, not one file.

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


Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-15 Thread Tony Nelson
At 13:52 -0400 05/15/2009, P.J. Eby wrote:
>At 08:32 AM 5/15/2009 +0200, Jeroen Ruigrok van der Werven wrote:
>>Agreed. Within FreeBSD's ports the installed package registration
>>gets a MD5 hash per file recorded. Size is less interesting though,
>>since essentially this information is encapsulated within the hash.
>>Remove one byte from the file and your hash is already different.
>
>Which also means that in that case you can skip computing the
>MD5.  The size allows you to easily notice an overwrite/corruption
>without further processing.

In most cases the files will actually match, so the sizes and dates will be
the same and the checksum must be computed to verify the match.

RPM does this when asked to Verify a package.  It is faster than Removing a
package, and Verifying all installed packages takes a reasonable amount of
time.  I don't think Python would be any worse at verifying its own
packages, and it would normally have less data to verify, so it should be
fast enough.
-- 

TonyN.:'   
  '  
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com