[issue5389] Uninitialized variable may be used in PyUnicode_DecodeUTF7Stateful()

2009-03-02 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

The UTF-7 codec implementation has a few problems (one of them is that
it is hardly being used, so bugs only get detected very slowly).

issue4426 has a patch with cleaned up and more standards compliant
implementation. Perhaps that also fixes the problem with uninitialized
variables.

--
nosy: +lemburg

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5389
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5404] Cross-compiling Python

2009-03-02 Thread Joshua Kinard

New submission from Joshua Kinard ku...@gentoo.org:

I'm attempting to get Python to cross-compile, and I'm not sure if this
is an actual flaw in the build system or not, but thought I'd detail
what I can here and seek comment from those in the know.

What happens is under a cross-environment setup on a Gentoo installation
(using our sys-devel/crossdev and sys-devel/crossdev-wrappers package),
when cross-compiling from x86_64-pc-linux-gnu to
mipsel-unknown-linux-gnu, the Python build process fails to build
several modules/extensions.

I believe that part of the problem with building the extensions is on
our end, and is a separate item I'll track down myself.  But there is
one module in particular that looks tied to Python's core that's getting
a cross-compile error: _socket.

What happens is, somehow, the configure script (or setup.py) is defining
HAVE_SYS_PARAM_H, which pulls in sys/param.h -- I think this is normal,
but for socketmodule.c, that particular call by the Makefile passes in
-I/usr/include along with the other -I calls defining the cross-include
directories.  The mipsel cross-compiler then references x86_64-specific
assembler code within the sys/param.h copy in /usr/include, and fails.

Generally, our crossdev-wrappers package sets up the buil environment
and overrides a lot of the common variables to use the cross-toolchain.
 So far, it looks like only socketmodule.c is affected with the rogue
-I/usr/include getting pulled in.  I haven't had much luck trying to
track down just how Python's build system is tied into autotools to see
where it's picking up /usr/include from.  Already tried patching
setup.py some, as well as passing --oldincludedir to configure, but
neither approach worked.

I'm hoping that this is either a minor bug in the build system, or we're
missing a specific variable to be passed to the make process so that
-I/usr/include doesn't get defined.  Not sure which, so if there's any
other ideas to try, I'm all ears!

--
components: Build
messages: 83008
nosy: kumba
severity: normal
status: open
title: Cross-compiling Python
type: compile error
versions: Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5404
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5135] Expose simplegeneric function in functools module

2009-03-02 Thread Kevin Teague

Kevin Teague ke...@bud.ca added the comment:

The problem with generic functions supporting ABCs is it's a bug with
the way ABCs work and not a problem with the generic function
implementation. The register() method of an ABC only fakes out
isinstance checks, it doesn't actually make the abstract base class a
base class of the class. It doesn't make any sense for a class to say it
is an instance of an ABC, but not have that ABC in it's MRO. It's not a
base class if it's not in the MRO!

The documentation for lack of ABC support should read something like:

+ Note that generic functions do not work with classes which have
+ been declared as an abstract base class using the
+ abc.ABCMeta.register() method because this method doesn't make
+ that abstract base class a base class of the class - it only fakes
+ out instance checks.

Perhaps a bug should be opened for the abc.ABCMeta.register() method.

However, I'd say that just because virtual abstract base classes are
wonky doesn't mean that a solid generic function implementation
shouldn't be added to standard library.

--
nosy: +kteague

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5135
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5402] MutableMapping code smell (see OrderedDict)

2009-03-02 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

FWIW, I'm happy with Guido's design of MutableMapping.  It parallels all
the other ABCs in its design and it succeeds completely at its primary
role as a defining an interface.  Its secondary role is to provide some
mixin capability.  It does well in this role when used as documented
(just filling-in the abstract methods as letting the mixin do the rest).

The case with OrderedDict is not a typical use of mixins because the
primary class (dict) already provides all of methods demanded by the
interface.  I explicitly overwrite some of dict's methods because that
is part of the behavior that OrderedDict wants to define differently
than dict.  It is appropriate that the primary class gets first dibs on
defining a method and that intentional overrides are done explicitly (as
they are in the OrderedDict example).

With OrderedDict, the only reason we subclassed from dict was to provide
interoperability with third-party tools that may have been hardwired to
work only with dicts.   In general, the preferred approach is to not
subclass both dict and OrderedDict and to let the MutableMapping
interface do its job.

The proposed splitting of MutableMapping looks unhealthy and overly
complex to me.  It makes ABCs harder to use in the general case just to
make one special case look a little prettier and do more of its magic
implicitly.

If this *really* bugs you, OrderedDict doesn't have to inherit from
MutableMapping at all.  We can throw code reuse out the window and just
duplicate the relevant code fragments.  To my eyes, either way is an
explicit override of the dict's methods which is the intended effect.

FWIW, the UserDict class in Py3.x was relocated to the collections
module.  It isn't gone.  We made an effort to kill it but found that
there were compelling use cases that were not a cleanly solved by any
other approach.

--
resolution:  - wont fix
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5402
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5402] MutableMapping code smell (see OrderedDict)

2009-03-02 Thread Raymond Hettinger

Changes by Raymond Hettinger rhettin...@users.sourceforge.net:


___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5402
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5405] There is no way of determining which ABCs a class is registered against

2009-03-02 Thread Paul Moore

New submission from Paul Moore p.f.mo...@gmail.com:

There is no way to determine the list of classes for which issubclass(C,
x) is true. The MRO of the class is fine for normal inheritance, but for
ABCs it is possible to register classes which don't inherit from the
ABC, so that you have a situation where issubclass (C, MyABC) can be
true without MyABC being in C.__mro__:

 import abc
 class MyABC(object):
... __metaclass__ = abc.ABCMeta
...
 class C(object):
... pass
...
 MyABC.register(C)
 issubclass(C, MyABC)
True
 C.__mro__
(class '__main__.C', type 'object')


This means that ABCs do not play well with the type of introspection
required to implement such features as generic functions - namely
enumeration of the (logical) superclasses of a class.

--
components: Interpreter Core
messages: 83011
nosy: pmoore
priority: normal
severity: normal
status: open
title: There is no way of determining which ABCs a class is registered against
type: behavior
versions: Python 2.7, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5405
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2459] speedup for / while / if with better bytecode

2009-03-02 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 I've updated for_iter.patch to the latest trunk, merging in issue 4715.
 I also changed tracing a bit so that the first line of a loop doesn't
 get traced twice in the first iteration, and added to test_dis to check
 that decreasing line numbers work there.

Thanks a lot!

By the way, why do you bench cPickle? Does your test call Python code
significantly?

Overall, the results look positive although not overwhelming.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2459
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3924] cookielib chokes on non-integer cookie version, should ignore it instead

2009-03-02 Thread Henrik Olsson

Henrik Olsson henr...@wip.se added the comment:

The cookiejar workaround in the first comment did not work for me. The
cookies didn't stick in it. I guess version needs to be set.. this
worked for me:

class ForgivingCookieJar(cookielib.CookieJar):
def _cookie_from_cookie_tuple(self, tup, request):
name, value, standard, rest = tup
version = standard.get(version, None)
if version is not None:
# Some servers add  around the version number, this module
expects a pure int.
standard[version] = version.strip('')
return cookielib.CookieJar._cookie_from_cookie_tuple(self, tup,
request)

--
nosy: +henriko

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3924
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5135] Expose simplegeneric function in functools module

2009-03-02 Thread Paul Moore

Paul Moore p.f.mo...@gmail.com added the comment:

I raised issue 5405. Armin Roachner commented over there that it's not
even possible in principle to enumerate the ABCs a class implements
because ABCs can do semantic checks (e.g., checking for the existence of
a special method).

So documenting the limitation is all we can manage, I guess.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5135
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5135] Expose simplegeneric function in functools module

2009-03-02 Thread Paul Moore

Changes by Paul Moore p.f.mo...@gmail.com:


___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5135
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1355826] shutil.move() does not preserve ownership

2009-03-02 Thread Armin Ronacher

Armin Ronacher armin.ronac...@active-4.com added the comment:

While this is surprising, this is documented behavior:

If the destination is on the current filesystem, then simply use
rename. Otherwise, copy src (with copy2()) to the dst and then remove src.

And copy2() uses copystat() and does not copy contents, owner, and group.

--
nosy: +aronacher

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1355826
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5405] There is no way of determining which ABCs a class is registered against

2009-03-02 Thread Armin Ronacher

Armin Ronacher armin.ronac...@active-4.com added the comment:

I don't think this can be solved.  Not only do registered classes not
show up (which could be fixed by providing something like
inspect.getfakemro) but ABCs can also perform duck-type checks.

For example a class with an __iter__ method is an instance of
collections.Iterable or how it's called thanks to the __subclasscheck__
magic method.

--
nosy: +aronacher

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5405
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5405] There is no way of determining which ABCs a class is registered against

2009-03-02 Thread Armin Ronacher

Armin Ronacher armin.ronac...@active-4.com added the comment:

I suppose it would be a good idea to fix part of that problem in Sphinx
(and probably also in pydoc) by adding something like :implements:
MutableMapping in the docstring.

So that this is explicitly added to the docstring and conforming tools
can use this documentation hints.

Similar things are currently implemented in Sphinx for :param:
:return: etc.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5405
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5135] Expose simplegeneric function in functools module

2009-03-02 Thread Paul Moore

Paul Moore p.f.mo...@gmail.com added the comment:

I raised issue 5405. Armin Ronacher commented over there that it's not
even possible in principle to enumerate the ABCs a class implements
because ABCs can do semantic checks (e.g., checking for the existence of
a special method).

So documenting the limitation is all we can manage, I guess.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5135
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5405] There is no way of determining which ABCs a class is registered against

2009-03-02 Thread Paul Moore

Paul Moore p.f.mo...@gmail.com added the comment:

Good point! So a documentation patch, to the effect that there is no way
of determining which ABCs a given class is an instance of, would be an
appropriate resolution, I guess.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5405
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2009-03-02 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Whether VC++ 2008 is required very much depends on what precisely you do
in your extension. If you use a different compiler (in particular, a
different CRT), chances are fair that the resulting extension crashes
the interpreter. Users using a different compiler must understand the
issues, and understand why it is safe to use a different CRT.

Hence, I'm not sure that simplifying switching to a different compiler
is a good thing - it will likely lead to more frustration because the
resulting binaries fail in strange ways.

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5404] Cross-compiling Python

2009-03-02 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

In short: cross-compilation is not supported at all, and it will be very
very difficult to implement. Search this tracker for proposed solutions,
and comment in each proposed solution whether it would help in your case.

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5404
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2459] speedup for / while / if with better bytecode

2009-03-02 Thread Jeffrey Yasskin

Jeffrey Yasskin jyass...@gmail.com added the comment:

No particular reason for cPickle. It sometimes shows when we've caused
problems by increasing the code size, and shows the size of any random
effects that the compiler causes by moving code around. Could you
double-check the patch to see if I did anything dumb?

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2459
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4308] repr of httplib.IncompleteRead is stupid

2009-03-02 Thread Skip Montanaro

Skip Montanaro s...@pobox.com added the comment:

Can't be applied to 2.5 at this point.  I agree it's dumb to
report the entire partial read and that reporting just the
number of bytes read is a much better solution.  Your patch
looks fine to me as well, except you call resp.close() twice
in test_incomplete_read().  Assigning to Benjamin for
application.  (He's going to get the merge stuff right. I
almost certainly will not.)

--
assignee:  - benjamin.peterson
nosy: +skip.montanaro
versions: +Python 3.0 -Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4308
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4308] repr of httplib.IncompleteRead is stupid

2009-03-02 Thread Skip Montanaro

Changes by Skip Montanaro s...@pobox.com:


--
stage: needs patch - commit review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4308
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5404] Cross-compiling Python

2009-03-02 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


--
nosy: +rpetrov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5404
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2009-03-02 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


--
nosy: +rpetrov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4308] repr of httplib.IncompleteRead is stupid

2009-03-02 Thread Chris Withers

Chris Withers ch...@simplistix.co.uk added the comment:

Why can't it be applied to 2.5?

No problem with the 2nd resp.close() being removed...

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4308
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5397] PEP 372: OrderedDict

2009-03-02 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

At Antoine's request, strengthened the tests in test_copying.

--
assignee:  - rhettinger
Added file: http://bugs.python.org/file13229/od6.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4308] repr of httplib.IncompleteRead is stupid

2009-03-02 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

The Python 2.5 branch is closed for bug fixes; no further bug fix
releases of Python 2.5 will be made. Only security fixes can be accepted
on the 2.5 branch.

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4308
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5385] mmap can crash after resize failure (windows)

2009-03-02 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

Or, use NULL as invalid handle value for map handle instead of
INVALID_HANDLE_VALUE. Maybe this is simpler.

--
keywords: +patch
Added file: http://bugs.python.org/file13230/fix_mmap_resize_v2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5385
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5404] Cross-compiling Python

2009-03-02 Thread Joshua Kinard

Joshua Kinard ku...@gentoo.org added the comment:

Gotcha, I'll poke around and see what I can find.  Are you guys open to
patches for 2.5.x still if we find something that needs patching (versus
passing lots of variables to the make process)?

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5404
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5404] Cross-compiling Python

2009-03-02 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 Gotcha, I'll poke around and see what I can find.  Are you guys open to
 patches for 2.5.x still if we find something that needs patching (versus
 passing lots of variables to the make process)?

No. The Python 2.5 branch is closed; the 2.6 branch doesn't accept new
features. So any cross-compiling support can only go into the trunk
(i.e. 2.7).

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5404
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4308] repr of httplib.IncompleteRead is stupid

2009-03-02 Thread Skip Montanaro

Skip Montanaro s...@pobox.com added the comment:

Chris Why can't it be applied to 2.5?

Benjamin can correct me if I'm wrong, but I thought the last 2.5 release was
the last full release planned.  Certainly if another full 2.5 release is in
the cards then the patch should go there as well.

Skip

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4308
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4308] repr of httplib.IncompleteRead is stupid

2009-03-02 Thread Skip Montanaro

Skip Montanaro s...@pobox.com added the comment:

Martin The Python 2.5 branch is closed for bug fixes; no further bug
Martin fix releases of Python 2.5 will be made. Only security fixes can
Martin be accepted on the 2.5 branch.

So all Chris has to do to get this applied to 2.5 is craft an exploit based
on the current behavior, right? ;-)

S

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4308
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5404] Cross-compiling Python

2009-03-02 Thread Joshua Kinard

Joshua Kinard ku...@gentoo.org added the comment:

Gotcha.  Not sure how far off Gentoo is from supporting 2.6 -- our
primary package manager relies on it, so the updates tend to be slow.
for moving to new versions.

Do you guys maintain any kind of an internals guide to the build
system anywhere?  Like an outline or such of what happens from start to
finish when you run setup.py (I think that's the start, anyways)?  I see
there's quite a bit of autotools components plugged in, but it's
intermixed with some of the python code itself.

Looking at some of the other bugs, there definitely seems to be some
cross-compiling capability that's made it in -- as evidenced by a good
chunk of the core build cross-compiling fine (the _Socket extension is
the one glaring error I'm after at the moment).  So it looks like it
just needs some better touch upon 2.5 at least.

Currently, we're using the patch from Issue #1115, and I'm going to take
a stab at adapting the 2.5.1 patch in Issue #1597850 to see if it takes
me any farther.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5404
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5406] asyncore doc issue

2009-03-02 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola' billiej...@users.sourceforge.net:

About asyncore.loop()'s count parameter:

 The count parameter defaults to None, resulting in the loop 
 terminating only when all channels have been closed

This is incorrect and it's not what count parameter actually does.
I'd come up with a patch but I'm sure a native English speaker can do a
lot better than me.

--
messages: 83033
nosy: giampaolo.rodola, josiah.carlson, josiahcarlson
severity: normal
status: open
title: asyncore  doc issue
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5406
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4308] repr of httplib.IncompleteRead is stupid

2009-03-02 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 So all Chris has to do to get this applied to 2.5 is craft an exploit based
 on the current behavior, right? ;-)

Right :-) Of course, security patches should see a much more careful
review than regular bug fixes.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4308
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5404] Cross-compiling Python

2009-03-02 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 Do you guys maintain any kind of an internals guide to the build
 system anywhere?  Like an outline or such of what happens from start to
 finish when you run setup.py (I think that's the start, anyways)?

Besides the code, and besides the very high-level configure;make;make
install instructions? No - use the source, Luke.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5404
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5403] test_md5 segfault

2009-03-02 Thread Greg Bakker

Changes by Greg Bakker gbak...@gmail.com:


--
nosy: +gregb

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5403
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5135] Expose simplegeneric function in functools module

2009-03-02 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

Given the point Armin raised, I once again agree that documenting the
limitation is a reasonable approach. Longer-term, being able to subcribe
to ABCs (and exposing the registration list if it isn't already visible)
is likely to be the ultimate solution.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5135
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5405] There is no way of determining which ABCs a class is registered against

2009-03-02 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

While a complete solution isn't possible, at least supporting querying
of explicit registrations would be an improvement over the status quo
(since an implicit registration can always be turned into an explicit
one, but a registration can't always be turned into inheritance).

For this to work in practice, I believe a PEP would be needed to add a
subscribe method to ABCMeta instances - this method would accept two
callbacks, one that was called whenever register() was invoked, and a
second when unregister() was invoked. Generic functions which add ABCs
registered could then subscribe to them and update their type caches
appropriately.

--
nosy: +ncoghlan

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5405
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5397] PEP 372: OrderedDict

2009-03-02 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Attaching update reflecting Guido's change to __eq__().

Added file: http://bugs.python.org/file13231/od7.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5397] PEP 372: OrderedDict

2009-03-02 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Checked-in r70101 and r70102

--
resolution:  - accepted
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5397] PEP 372: OrderedDict

2009-03-02 Thread Raymond Hettinger

Changes by Raymond Hettinger rhettin...@users.sourceforge.net:


___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-03-02 Thread Martin v. Löwis

Changes by Martin v. Löwis mar...@v.loewis.de:


--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1533164
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5397] PEP 372: OrderedDict

2009-03-02 Thread Armin Ronacher

Armin Ronacher armin.ronac...@active-4.com added the comment:

Maybe premature optimization but maybe it would make sense to implement
__eq__ like this:

def __eq__(self, other):
if isinstance(other, OrderedDict):
if not dict.__eq__(self, other):
return False
return all(p == q for p, q in _zip_longest(self.items(),
   other.items()))
return dict.__eq__(self, other)

For the most likely case (that dicts are different) this should give a
speedup.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5389] Uninitialized variable may be used in PyUnicode_DecodeUTF7Stateful()

2009-03-02 Thread Guido van Rossum

Guido van Rossum gu...@python.org added the comment:

It looks like it was fixed in 2.6 by adding an assignment to startinpos
to this block:

   else if (SPECIAL(ch,0,0)) {
   startinpos = s-starts; /* -- This was added */
   errmsg = unexpected special character;
   s++;
   goto utf7Error;
   }

Are we going to release another 2.5, ever?

--
versions:  -Python 2.6, Python 2.7, Python 3.0, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5389
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5407] Broken Py3.1 release build in Visual Studio 2005

2009-03-02 Thread Raymond Hettinger

New submission from Raymond Hettinger rhettin...@users.sourceforge.net:

The build crashes and it seems related to io.py.  This started about two
weeks ago.  Before that, it built fine.


-- Build started: Project: _ssl, Configuration: Release Win32 --
Performing Pre-Build Event...
Traceback (most recent call last):
  File C:\py31\lib\io.py, line 222, in open
  File C:\py31\lib\io.py, line 619, in __init__
OSError: [Errno 9] Bad file descriptor
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Project : error PRJ0019: A tool returned an error code from Performing
Pre-Build Event...
Build log was saved at
file://C:\py31\PC\VS8.0\Win32-temp-Release\_ssl\BuildLog.htm
_ssl - 1 error(s), 0 warning(s)
-- Skipped Build: Project: bdist_wininst, Configuration: Release
Win32 --
Project not selected to build for this solution configuration 
-- Build started: Project: _hashlib, Configuration: Release Win32 --
Performing Pre-Build Event...
Traceback (most recent call last):
  File C:\py31\lib\io.py, line 222, in open
  File C:\py31\lib\io.py, line 619, in __init__
OSError: [Errno 9] Bad file descriptor
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Project : error PRJ0019: A tool returned an error code from Performing
Pre-Build Event...
Build log was saved at
file://C:\py31\PC\VS8.0\Win32-temp-Release\_hashlib\BuildLog.htm
_hashlib - 1 error(s), 0 warning(s)

--
assignee: pitrou
components: Library (Lib)
messages: 83042
nosy: pitrou, rhettinger
severity: normal
status: open
title: Broken Py3.1 release build in Visual Studio 2005
type: compile error
versions: Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5407] Broken Py3.1 release build in Visual Studio 2005

2009-03-02 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

I can't reproduce under Visual Studio Express 2008, release mode.
I suspect it may be due to r69560/r69793 (introduction of a
Windows-specific function named _PyVerify_fd()).

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5407] Broken Py3.1 release build in Visual Studio 2005

2009-03-02 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +krisvale

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5407] Broken Py3.1 release build in Visual Studio 2005

2009-03-02 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +ocean-city

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1641] asyncore delayed calls feature

2009-03-02 Thread Forest Wilkinson

Forest Wilkinson for...@users.sourceforge.net added the comment:

I'm looking forward to having this functionality in asyncore.  It would
help me remove some unwanted hackery from my own code.

Giampaolo, I'm concerned that your patch uses a global 'tasks' list
which cannot be overriden.  Shouldn't loop() accept an optional task
list argument, as it already does with the socket map?  That would keep
with the spirit of asyncore and make things easier for those of us who
use multiple event loops in multiple threads.

Josiah, is your updated sched module the one described in this blog
post?  Is there an issue in the bug tracker about it?
http://chouyu-31.livejournal.com/316112.html

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1641
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5407] Broken Py3.1 release build in Visual Studio 2005

2009-03-02 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
assignee: pitrou - krisvale

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5408] test_osx_env failing

2009-03-02 Thread Benjamin Peterson

New submission from Benjamin Peterson benja...@python.org:

Mac OS 10.4 PPC debug build

test_osx_env
[31492 refs]
Could not find platform independent libraries prefix
Could not find platform dependent libraries exec_prefix
Consider setting $PYTHONHOME to prefix[:exec_prefix]
Fatal Python error: Py_Initialize: can't initialize sys standard streams
ImportError: No module named encodings.utf_8
test test_osx_env failed -- Traceback (most recent call last):
  File /temp/python/py3k/Lib/test/test_osx_env.py, line 27, in
test_pythonexecutable_sets_sys_executable
self._check_sys('PYTHONEXECUTABLE', '==', 'sys.executable')
  File /temp/python/py3k/Lib/test/test_osx_env.py, line 24, in _check_sys
self.assertEqual(rc, 2, expected %s %s %s % (ev, cond, sv))
AssertionError: expected PYTHONEXECUTABLE == sys.executable

--
assignee: ronaldoussoren
components: Tests
messages: 83046
nosy: benjamin.peterson, ronaldoussoren
severity: normal
status: open
title: test_osx_env failing
versions: Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5408
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-03-02 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Fixed in r70112.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4626
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-03-02 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Should this be backported?

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4626
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1580] Use shorter float repr when possible

2009-03-02 Thread Noam Raphael

Noam Raphael noamr...@gmail.com added the comment:

Do you mean msg58966?

I'm sorry, I still don't understand what's the problem with returning
f_15(x) if eval(f_15(x)) == x and otherwise returning f_17(x). You said
(msg69232) that you don't care if float(repr(x)) == x isn't
cross-platform. Obviously, the simple method will preserve eval(repr(x))
== x, no matter what rounding bugs are present on the platform.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1580
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1580] Use shorter float repr when possible

2009-03-02 Thread Guido van Rossum

Guido van Rossum gu...@python.org added the comment:

I changed my mind on the cross-platform requirement.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1580
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4565] Rewrite the IO stack in C

2009-03-02 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Reviewers: ,

Description:
The diff between the py3k and io-c branches, for whoever wants to review
it.

Please review this at http://codereview.appspot.com/22061

Affected files:
   Doc/library/io.rst
   Lib/_pyio.py
   Lib/importlib/__init__.py
   Lib/importlib/_bootstrap.py
   Lib/io.py
   Lib/test/test_bufio.py
   Lib/test/test_descr.py
   Lib/test/test_file.py
   Lib/test/test_fileio.py
   Lib/test/test_io.py
   Lib/test/test_largefile.py
   Lib/test/test_memoryio.py
   Lib/test/test_univnewlines.py
   Lib/test/test_uu.py
   Makefile.pre.in
   Modules/Setup.dist
   Modules/_bufferedio.c
   Modules/_bytesio.c
   Modules/_fileio.c
   Modules/_iobase.c
   Modules/_iomodule.h
   Modules/_stringio.c
   Modules/_textio.c
   Modules/io.c
   PC/VC6/pythoncore.dsp
   PC/config.c
   PCbuild/pythoncore.vcproj
   Python/pythonrun.c
   setup.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4565
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1597850] Cross compiling patches for MINGW

2009-03-02 Thread Joshua Kinard

Joshua Kinard ku...@gentoo.org added the comment:

Anyone gotten farther on getting Python-2.5.x to cross-compile?  I'm
trying to get x86_64-pc-linux-gnu -- mipsel-unknown-linux-gnu, and
after some hacking at the last updated cross-2.5.1.patch, plus a fix for
the %zd printf bugaboo, plus adding in config.sub/config.guess files,
I'm able to get it moving a little.  But I'm running into the same
failure as described in Message #56846 and I'm not quite sure how to
properly work around that.

Can't hack around it -- the entire build is automated from a Gentoo
ebuild, so I need to be able to tweak something in Makefile.pre.in or
configure.in to fix this...somehow.

Ran some quick checks, and even with passing -I/usr/include to
CPPFLAGS_FOR_BUILD, and running the host compiler directly on the
command line, It's picking up wrong values for LONG_BIT and SIZEOF_LONG
(I think).

LONG_BIT = 64
SIZEOF_LONG = 4

So the test LONG_BIT != (SIZEOF_LONG * 8) succeeds and hits the #error
in pyport.h

Can't use a newer Python, including 2.6, 2.7-trunk, or even 3.0. 
Gentoo's primary package manager, portage, is currently dependent on
2.5.x (we're using 2.5.4 specifically right now).  So Roumen's patch
doesn't work at all (I've already tried backporting).

Ideas perhaps?

--
nosy: +kumba

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1597850
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5407] Broken Py3.1 release build in Visual Studio 2005

2009-03-02 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

I didn't know that VS2005 was supported.  We jumped from 2003 to 2008, 
didn't we?  Anyway, I'll fix this, we can't have things crashing.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5364] documentation in epub format

2009-03-02 Thread Keith Fahlgren

Keith Fahlgren ke...@oreilly.com added the comment:

 I got the same impression: xhtml + extra markup for mobile readers.

ePub is indeed based heavily on XHTML 1.1 and CSS and uses a fairly
simple ZIP container. Having written DocBook-ePub tools, I'm happy to
help anyone interested in doing rst2epub.

--
nosy: +abdelazer

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5364
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5409] ConfigParser getint/float/boolean methods broken

2009-03-02 Thread Sylvain Rabot

New submission from Sylvain Rabot nihil...@free.fr:

Python 3.0 (r30:67507, Dec  3 2008, 20:14:27) [MSC v.1500 32 bit
(Intel)] on win32
Type copyright, credits or license() for more information.


Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface.  This connection is not visible on any external
interface and no data is sent to or received from the Internet.


IDLE 3.0  
 from configparser import ConfigParser
 config = ConfigParser()
 config.add_section(popo)
 config.set(popo, int, 123)
 config.getint(popo, int)
Traceback (most recent call last):
  File pyshell#4, line 1, in module
config.getint(popo, int)
  File c:\Python30\lib\configparser.py, line 340, in getint
return self._get(section, int, option)
  File c:\Python30\lib\configparser.py, line 337, in _get
return conv(self.get(section, option))
  File c:\Python30\lib\configparser.py, line 545, in get
return self._interpolate(section, option, value, d)
  File c:\Python30\lib\configparser.py, line 585, in _interpolate
if %( in value:
TypeError: argument of type 'int' is not iterable
 config.set(popo, bool, True)
 config.getboolean(popo, bool)
Traceback (most recent call last):
  File pyshell#6, line 1, in module
config.getboolean(popo, bool)
  File c:\Python30\lib\configparser.py, line 349, in getboolean
v = self.get(section, option)
  File c:\Python30\lib\configparser.py, line 545, in get
return self._interpolate(section, option, value, d)
  File c:\Python30\lib\configparser.py, line 585, in _interpolate
if %( in value:
TypeError: argument of type 'bool' is not iterable
 config.set(popo, float, 3.21)
 config.getfloat(popo, float)
Traceback (most recent call last):
  File pyshell#8, line 1, in module
config.getfloat(popo, float)
  File c:\Python30\lib\configparser.py, line 343, in getfloat
return self._get(section, float, option)
  File c:\Python30\lib\configparser.py, line 337, in _get
return conv(self.get(section, option))
  File c:\Python30\lib\configparser.py, line 545, in get
return self._interpolate(section, option, value, d)
  File c:\Python30\lib\configparser.py, line 585, in _interpolate
if %( in value:
TypeError: argument of type 'float' is not iterable

Same things with python 2.6

--
components: Library (Lib)
messages: 83055
nosy: Absynthe
severity: normal
status: open
title: ConfigParser getint/float/boolean methods broken
type: crash
versions: Python 2.6, Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5409
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5409] ConfigParser getint/float/boolean methods broken

2009-03-02 Thread Sylvain Rabot

Sylvain Rabot nihil...@free.fr added the comment:

My bad, ConfigParser.set() needs string values apparently.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5409
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5408] test_osx_env failing

2009-03-02 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Is this a standard unix build or a framework build?

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5408
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5407] Broken Py3.1 release build in Visual Studio 2005

2009-03-02 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Okay, I have submitted revision 70119 that fixes this.
This is most weird, though.  It is as though the non-_DEBUG crt doesn't 
match the headers supplied with the CRT sources that come with visual 
studio 2005.

One possible reason is that there is some extra data in VC8.0 SP1 that 
isn't reflected in the headers.  We need to test this with a compile by 
vanilla VC8.0, one without the service packs.

--
resolution:  - fixed
stage:  - test needed
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5408] test_osx_env failing

2009-03-02 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

It appears the test doesn't work correctly for non-framework builds, 
something I didn't test.  A patch is forthcoming.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5408
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5407] Broken Py3.1 release build in Visual Studio 2005

2009-03-02 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

The fix works for me.  It all builds once again :-)

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5407] Broken Py3.1 release build in Visual Studio 2005

2009-03-02 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

Sorry for interruption. Maybe is this CRT internal hack needed for debug
build only? I believe _ASSERTE is only enabled for debug build.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5407] Broken Py3.1 release build in Visual Studio 2005

2009-03-02 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

For me, it was the release builds that were failing.  With the fix just
added, all is well now.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5403] test_md5 segfault

2009-03-02 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

This one was fixed in r70119.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5403
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5407] Broken Py3.1 release build in Visual Studio 2005

2009-03-02 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

no, r69560/r69793 also removed the call to 
_set_invalid_parameter_handler().  The default parameter handling is now 
left alone in the crt which will throw up a dialogue box both in the 
release and debug versions.

Anyway, the issue (strange block layout) was only present in Release 
builds.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5336] collections.namedtuple generates code causing PyChecker warnings

2009-03-02 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Fixed in r70106 and r70121 as part of converting _asdict() to return an
OrderedDictionary.

Leaving 2.6 and 3.0 as-is.

--
resolution:  - fixed
status: open - closed
versions: +Python 2.7, Python 3.1 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5336
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5407] Broken Py3.1 release build in Visual Studio 2005

2009-03-02 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

OK, sorry for interruption.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5408] test_osx_env failing

2009-03-02 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

ANALYSISIn a non-framework build, when PYTHONEXECUTABLE is set to a
invalid value, getpath.c is unable to determine appropriate
values for sys.prefix and sys.path so the interpreter fails
in initialization.

SOLUTIONSimplify the test and supply appropriate values so the test
works for both framework and non-framework builds.

APPLIES py3k, 3.0

Added file: http://bugs.python.org/file13232/patch-nad0021-py3k-30.txt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5408
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com