Re: [Python-Dev] Hash collision security issue (now public)

2012-01-09 Thread Stefan Behnel
Jim Jewett, 08.01.2012 23:33: Stefan Behnel wrote: Admittedly, this may require some adaptation for the PEP393 unicode memory layout in order to produce identical hashes for all three representations if they represent the same content. They SHOULD NOT represent the same content; comparing

Re: [Python-Dev] [Python-checkins] cpython: Backed out changeset 36f2e236c601: For some reason, rewinddir() doesn't work as

2012-01-09 Thread Charles-François Natali
Can rewinddir() end up touching the filesystem to retrieve data? I noticed that your previous change (the one this checkin reverted) moved it outside the GIL release macros. It just resets a position count. (in glibc). Actually, it also calls lseek() on the directory FD:

Re: [Python-Dev] py3benchmark not working

2012-01-09 Thread Mark Shannon
Christian Heimes wrote: Hello, I tried to compare the py3k baseline with my randomhash branch but the benchmark suite is failing. I've follewed the instruction # hg clone http://hg.python.org/benchmarks/ py2benchmarks # mkdir py3benchmarks; # cd py3benchmarks #

Re: [Python-Dev] Hash collision security issue (now public)

2012-01-09 Thread Victor Stinner
That said, I don't think smallest-format is actually enforced with anything stronger than comments (such as in unicodeobject.h struct PyASCIIObject) and asserts (mostly calling _PyUnicode_CheckConsistency).  I don't have any insight on how prevalent non-conforming strings will be in practice,

Re: [Python-Dev] Compiling 2.7.2 on OS/2

2012-01-09 Thread Victor Stinner
-        if os.name in ('nt', 'os2'): +        if os.name in ('nt'): This change is wrong: it should be os.name == 'nt'. Victor ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] Compiling 2.7.2 on OS/2

2012-01-09 Thread Steven D'Aprano
Victor Stinner wrote: -if os.name in ('nt', 'os2'): +if os.name in ('nt'): This change is wrong: it should be os.name == 'nt'. Or possibly os.name in ('nt', ) (note the comma). -- Steven ___ Python-Dev mailing list

Re: [Python-Dev] [Python-checkins] cpython: Backed out changeset 36f2e236c601: For some reason, rewinddir() doesn't work as

2012-01-09 Thread Benjamin Peterson
2012/1/9 Charles-François Natali neolo...@free.fr: Can rewinddir() end up touching the filesystem to retrieve data? I noticed that your previous change (the one this checkin reverted) moved it outside the GIL release macros. It just resets a position count. (in glibc). Actually, it also

[Python-Dev] Python C API: Problem sending tuple to a method of a python Class

2012-01-09 Thread pasparis
Hello,I am trying to send a tuple to a method of a python class and I got a Run failed from netbeans compilerwhen I want to send a tuple to a simple method in a module it works,when I want to send a simple parameter to a method of a clas it works also but not a tuple to a method of a classI put

[Python-Dev] descriptor as instance attribute

2012-01-09 Thread Jon Wells
I can't find an answer to this grovelling through get user info. on descriptors. Assuming desc() is a data descriptor class why are the following not the same??? class poop(object): var = desc() and class poop(object): def __init__(self): self.var =

Re: [Python-Dev] descriptor as instance attribute

2012-01-09 Thread Oleg Broytman
Hello. We are sorry but we cannot help you. This mailing list is to work on developing Python (adding new features to Python itself and fixing bugs); if you're having problems learning, understanding or using Python, please find another forum. Probably python-list/comp.lang.python mailing

Re: [Python-Dev] Python C API: Problem sending tuple to a method of a python Class

2012-01-09 Thread Amaury Forgeot d'Arc
Good evening, 2012/1/9 paspa...@noos.fr ** I am trying to send a tuple to a method of a python class and I got a Run failed from netbeans compiler when I want to send a tuple to a simple method in a module it works,when I want to send a simple parameter to a method of a clas it works also

Re: [Python-Dev] Python as a Metro-style App

2012-01-09 Thread Dino Viehland
We spent some time investigating Python/Win8 projections but we don't really have anything else to say right now, but it is certainly possible. I haven't been following this thread so maybe this was already discussed, but on the whole new OS target thing - if people want to write immersive apps

Re: [Python-Dev] devguide: Backporting is obsolete. Add details that I had to learn.

2012-01-09 Thread Antoine Pitrou
On Mon, 09 Jan 2012 21:58:29 +0100 terry.reedy python-check...@python.org wrote: -Different branches are used at a time to represent different *minor versions* -in which development is made. All development should be done **first** in the -:ref:`in-development indevbranch` branch, and

[Python-Dev] svn.python.org certificate expired

2012-01-09 Thread Charles-François Natali
Hi, All the buildbots are turning red because of test_ssl: == ERROR: test_connect (test.test_ssl.NetworkedTests) -- Traceback (most recent call last): File

Re: [Python-Dev] devguide: Backporting is obsolete. Add details that I had to learn.

2012-01-09 Thread Nick Coghlan
On Tue, Jan 10, 2012 at 7:59 AM, Antoine Pitrou solip...@pitrou.net wrote: Please avoid using the terms minor version and major version, they are confusing. Indeed. Feature release (2.7, 3.2, 3.3) and release series (2.x, 3.x) are the least confusing terms we have available. Cheers, Nick. --

Re: [Python-Dev] devguide: Backporting is obsolete. Add details that I had to learn.

2012-01-09 Thread Terry Reedy
On 1/9/2012 8:52 PM, Nick Coghlan wrote: On Tue, Jan 10, 2012 at 7:59 AM, Antoine Pitrousolip...@pitrou.net wrote: Please avoid using the terms minor version and major version, they are confusing. Indeed. Feature release (2.7, 3.2, 3.3) and release series (2.x, 3.x) are the least confusing