[issue2733] mmap resize fails on anonymous memory (Windows)

2008-05-02 Thread Kathryn M Kowalski

Kathryn M Kowalski <[EMAIL PROTECTED]> added the comment:

sorry

Added file: http://bugs.python.org/file10170/testofResize.py.txt

__
Tracker <[EMAIL PROTECTED]>

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



[issue2733] mmap resize fails on anonymous memory (Windows)

2008-05-02 Thread Trent Nelson

Changes by Trent Nelson <[EMAIL PROTECTED]>:


--
nosy: +Trent.Nelson

__
Tracker <[EMAIL PROTECTED]>

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



[issue2632] performance problem in socket._fileobject.read

2008-05-02 Thread Gregory P. Smith

Gregory P. Smith <[EMAIL PROTECTED]> added the comment:

I fixed the min vs max use that Ralf noted and have submitted this as
r62627.  all tests pass for me but I believe it deserves a wider
audience and testing outside of just the test suite.

could those who reported the original problems (both the memory use
issue and the speed issue) run their tests with this applied?

... watching the buildbots ...

 http://codereview.appspot.com/621/diff/61/81

__
Tracker <[EMAIL PROTECTED]>

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



[issue2632] performance problem in socket._fileobject.read

2008-05-02 Thread Gregory P. Smith

Changes by Gregory P. Smith <[EMAIL PROTECTED]>:


--
priority: critical -> release blocker

__
Tracker <[EMAIL PROTECTED]>

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



[issue2722] os.getcwd fails for long path names on linux

2008-05-02 Thread Gregory P. Smith

Changes by Gregory P. Smith <[EMAIL PROTECTED]>:


--
keywords: +easy
nosy: +gregory.p.smith
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2735] range: lean and mean

2008-05-02 Thread Alexander Belopolsky

Alexander Belopolsky <[EMAIL PROTECTED]> added the comment:

One more nit: you don't need to zero out trailing range_as_sequence
members explicitly.

static PySequenceMethods range_as_sequence = {
(lenfunc)range_length,  /* sq_length */
};

should be enough.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2728] Failing decimal doctest

2008-05-02 Thread Facundo Batista

Facundo Batista <[EMAIL PROTECTED]> added the comment:

Commited, r62638. Thank you both!

--
resolution:  -> accepted
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

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



[issue2740] Cmd module doesn't support readline completion on OSX Leopard

2008-05-02 Thread Ruben Kerkhof

New submission from Ruben Kerkhof <[EMAIL PROTECTED]>:

Hi,

Leopard ships with libedit, which is almost the same as readline, but 
has another way to configure completion keys. To enable tab completion 
you have to use rl.parse_and_bind("bind ^I complete") instead of 
rl.parse_and_bind("bind ^I rl_complete") instead of rl.parse_and_bind("tab: 
complete").

The guys from IPython patched around it, see 
http://ipython.scipy.org/moin/InstallationOSXLeopard/LeopardPythonReadli
ne, but is seems to me this is better solved in the python readline 
module itself.

--
components: Library (Lib)
messages: 66101
nosy: ruben
severity: normal
status: open
title: Cmd module doesn't support readline completion on OSX Leopard
type: behavior
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>

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



[issue2741] documentation -- do serversockets work with ipv6

2008-05-02 Thread Mike MacFaden

New submission from Mike MacFaden <[EMAIL PROTECTED]>:

the url
   http://docs.python.org/lib/node633.html
states 
   1)   address_family
   The family of protocols to which the server's socket belongs. 
 socket.AF_INET and socket.AF_UNIX are two possible values.

would suggest including socket.AF_INET6 as well if it is supported
or what criteria makes a socket not usable with this class.

--
assignee: georg.brandl
components: Documentation
messages: 66102
nosy: georg.brandl, mrm
severity: normal
status: open
title: documentation -- do serversockets work with ipv6
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>

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



[issue2742] example code does not work

2008-05-02 Thread Mike MacFaden

New submission from Mike MacFaden <[EMAIL PROTECTED]>:

the url 
  http://docs.python.org/lib/socket-example.html
gives an example that uses socket.getaddrinfo that has this code

   HOST=''
   ...
   for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC,
 socket.SOCK_STREAM, 0, socket.AI_PASSIVE)

but this fails on freebsd 6.1/python 2.5 as follows

> /usr/home/mrm/s2.py(30)()
-> for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC, 
socket.SOCK_STREAM, 0, socket.AI_PASSIVE):
(Pdb) p HOST
''
(Pdb) n
gaierror: (8, 'hostname nor servname provided, or not known')
> /usr/home/mrm/s2.py(30)()

but setting 
  HOST=None
works fine.

either this is a doc bug or a code bug, your pick.

--
assignee: georg.brandl
components: Documentation
messages: 66103
nosy: georg.brandl, mrm
severity: normal
status: open
title: example code does not work
type: behavior
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>

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



[issue2735] range: lean and mean

2008-05-02 Thread Guido van Rossum

Guido van Rossum <[EMAIL PROTECTED]> added the comment:

See also comments published on the code review site:

http://codereview.appspot.com/602

__
Tracker <[EMAIL PROTECTED]>

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



[issue2741] documentation -- do serversockets work with ipv6

2008-05-02 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

I fail to see the issue. There are many other address families supported
as well, such as AF_BLUETOOTH, AF_PACKET, AF_TIPC, and AF_NETLINK,
depending on the system. The documentation just lists some examples.

--
nosy: +loewis

__
Tracker <[EMAIL PROTECTED]>

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



[issue2742] example code does not work

2008-05-02 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

What operating system are you using? It could be a bug in the operating
system as well.

--
nosy: +loewis

__
Tracker <[EMAIL PROTECTED]>

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



[issue2573] Can't change the framework name on OS X builds

2008-05-02 Thread Ronald Oussoren

Ronald Oussoren <[EMAIL PROTECTED]> added the comment:

This functionality is enabled as of revision 62644

The actual patch is slightly more involved than the attached patches, 
the patch forgot to add a variable to Mac/Makefile.in and doesn't patch 
Mac/IDLE/Makefile.in at all.

I've also made the Info.plist inside applications and the framework 
dynamic (that is, patched by configure), that way the Python version is 
automaticly patched into these files.


Furthermore the framework identifier is changed when you use the --with-
framework-name argument to configure.


There is one minor open issue with this patch, which I won't fix: 
site.py adds ~/Library/Python/... to sys.path, but only if 
"Python.framework" is in sys.prefix. That code won't trigger when 
building a framework with another name (such as --with-framework-
name=Stackless). I don't think that can be fixed without modifying 
site.py during configure or installation. (see site.py, line 199)

--
resolution:  -> fixed

__
Tracker <[EMAIL PROTECTED]>

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



[issue2573] Can't change the framework name on OS X builds

2008-05-02 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

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



[issue2507] Exception state lives too long in 3.0

2008-05-02 Thread Antoine Pitrou

Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

A new patch with just an updated comment in ceval.c.

Added file: http://bugs.python.org/file10171/exc_cleanup3.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2735] range: lean and mean

2008-05-02 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

Attaching a new patch from reviews. __len__ has been removed. I'll post
it to Guido's Codereview tool when it's active (I'm getting 500 server
errors when I try to upload.)

Added file: http://bugs.python.org/file10172/range_lean_and_mean3.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2695] Ignore case when checking algorithm in urllib2

2008-05-02 Thread Terry J. Reedy

Terry J. Reedy <[EMAIL PROTECTED]> added the comment:

What module is this in that you want to change?

Note 1: hashlib checks upper and lower case versions of names.
So this seems like reasonable request.

Note 2: I would start hashlib.__get_builtin_constructor(name):
with 'name = name.lower()'
and replace first two 'name in' constructions with 'name =='
and shrink 2nd two lists.

Note 3. I would do same with get_algorithm_impls():
   algorithm = algorithm.lower()
Instead of possibly calling .lower twice.

--
nosy: +tjreedy

__
Tracker <[EMAIL PROTECTED]>

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



[issue2735] range: lean and mean

2008-05-02 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

Are you sure you want to remove len of range? It breaks quite a few tests.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2349] Py3K warn against assigning to True/False

2008-05-02 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
dependencies: +make compiling struct be passed around to all ast helpers

__
Tracker <[EMAIL PROTECTED]>

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



[issue2743] Fix module output for warnings from the interpreter

2008-05-02 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

In svn, the module name is lost if you raise an exception at the 
interpreter::

 >>> import warnings
 >>> warnings.warn("foo")
 :1: UserWarning: foo

It should be::

 >>> import warnings
 >>> warnings.warn("foo")
 __main__:1: UserWarning: foo

Notice how '__main__' is missing in svn.

--
assignee: brett.cannon
components: Interpreter Core
messages: 66112
nosy: brett.cannon
priority: critical
severity: normal
status: open
title: Fix module output for warnings from the interpreter
type: behavior
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2695] Ignore case when checking algorithm in urllib2

2008-05-02 Thread Terry J. Reedy

Terry J. Reedy <[EMAIL PROTECTED]> added the comment:

Whoops, just checked the title.
Function is about 2/3rds down in urllib2.
comments still apply 

Note 4: I consider 'name = lambda ...' inferior to 'def name...'
but I am not the one who will edit this.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2695] Ignore case when checking algorithm in urllib2

2008-05-02 Thread Terry J. Reedy

Changes by Terry J. Reedy <[EMAIL PROTECTED]>:


__
Tracker <[EMAIL PROTECTED]>

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



[issue2695] Ignore case when checking algorithm in urllib2

2008-05-02 Thread Terry J. Reedy

Changes by Terry J. Reedy <[EMAIL PROTECTED]>:


__
Tracker <[EMAIL PROTECTED]>

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



[issue2695] Ignore case when checking algorithm in urllib2

2008-05-02 Thread Terry J. Reedy

Terry J. Reedy <[EMAIL PROTECTED]> added the comment:

Function is about 2/3rds down in urllib2.

Note 1: hashlib checks upper and lower case versions of names.
So this seems like reasonable request.

Note 2: I would start hashlib.__get_builtin_constructor(name):
with 'name = name.lower()'
and replace first two 'name in' constructions with 'name =='
and shrink 2nd two lists.

Note 3. I would do same with get_algorithm_impls():
   algorithm = algorithm.lower()
Instead of possibly calling .lower twice.

Note 4: I consider 'name = lambda ...' inferior to 'def name...'
but I am not the one who will edit this.

Keyword says patch, but I do not see one.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2695] Ignore case when checking algorithm in urllib2

2008-05-02 Thread david reid

david reid <[EMAIL PROTECTED]> added the comment:

The patch is inline. There's not much to it :-)

Agree with your suggestion to avoid calling lower() twice.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2735] range: lean and mean

2008-05-02 Thread Guido van Rossum

Guido van Rossum <[EMAIL PROTECTED]> added the comment:

Show me which tests break and I'll decide.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1905] PythonLauncher not working correctly on OS X 10.5/Leopad

2008-05-02 Thread Ronald Oussoren

Ronald Oussoren <[EMAIL PROTECTED]> added the comment:

Python Launcher assumes that Terminal.app has a specific creator code, 
that's no longer true in Leopard.

The code in doscript.m was already rather hackish, I've replaced it by
a more modern way to use AppleEvents.

I've committed a fix in rev. 62648 (trunk) and 62649 (2.5 branch). 

A side effect of that patch is that PythonLauncher no longer works on OS 
X 10.2 or earlier, IMHO supporting that release wouldn't be worth the 
trouble.

--
resolution:  -> fixed
status: open -> pending

__
Tracker <[EMAIL PROTECTED]>

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



[issue2520] macerrors.py cannot be imported due to non-ascii characters in comments

2008-05-02 Thread Ronald Oussoren

Ronald Oussoren <[EMAIL PROTECTED]> added the comment:

Fixed in revision 62651 (trunk) and 62650 (2.5 branch)

The fix doesn't use the attached patch, but explicitly sets a file 
encoding for this module.

--
nosy: +ronaldoussoren
resolution:  -> fixed
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

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



[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-05-02 Thread Terry J. Reedy

Terry J. Reedy <[EMAIL PROTECTED]> added the comment:

I like the two changes: jump to command line and scroll previous command
lines without having to search back up through the output.  Just don't
imitate the Windows terminal too closely with its inability to just
select previous output (without Symbol/Edit/Mark).

--
nosy: +tjreedy

__
Tracker <[EMAIL PROTECTED]>

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



[issue984242] Support "hybrid" framework/unix style

2008-05-02 Thread Ronald Oussoren

Ronald Oussoren <[EMAIL PROTECTED]> added the comment:

I don't think this issue is relevant at this point in time.

Apple now ships a regular framework and furthermore I don't think this 
build style is useful to have.

--
nosy: +ronaldoussoren
resolution:  -> rejected
status: open -> closed


Tracker <[EMAIL PROTECTED]>


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



[issue1087737] Mac: make frameworkinstall skips docs, scripts

2008-05-02 Thread Ronald Oussoren

Changes by Ronald Oussoren <[EMAIL PROTECTED]>:


--
status: open -> closed

_
Tracker <[EMAIL PROTECTED]>

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



[issue835790] MacPython builds with DESTROOT need fixup

2008-05-02 Thread Ronald Oussoren

Ronald Oussoren <[EMAIL PROTECTED]> added the comment:

This is definitly not an issue anymore, the official releases get build 
with a DESTROOT and don't suffer from this problem.

--
resolution:  -> fixed
status: open -> closed


Tracker <[EMAIL PROTECTED]>


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



[issue1666952] terminalcommand doesn't work under Darwin

2008-05-02 Thread Ronald Oussoren

Ronald Oussoren <[EMAIL PROTECTED]> added the comment:

I cannot reproduce this issue with Python 2.5 or 2.6.

There was a bug in terminalcommand when running on Leopard, I fixed that 
earlier tonight.

--
resolution:  -> works for me
status: open -> pending

_
Tracker <[EMAIL PROTECTED]>

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



[issue2735] range: lean and mean

2008-05-02 Thread Terry J. Reedy

Terry J. Reedy <[EMAIL PROTECTED]> added the comment:

Does this/will this supercede
http://bugs.python.org/issue2690
?

--
nosy: +tjreedy

__
Tracker <[EMAIL PROTECTED]>

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



[issue1770190] platform.mac_ver() returning incorrect patch version

2008-05-02 Thread Ronald Oussoren

Ronald Oussoren <[EMAIL PROTECTED]> added the comment:

See also http://www.cocoabuilder.com/archive/message/cocoa/2006/11/18/174677

The attached patch should fix this issue.

Jack, could you please check if the patch is sane? The patch works on 
10.5.2, I haven't checked on 10.4 yet (I'll have to reboot to do that)

--
keywords: +patch
nosy: +ronaldoussoren
versions: +Python 2.6
Added file: http://bugs.python.org/file10173/mac-platform.patch

_
Tracker <[EMAIL PROTECTED]>

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



[issue1602133] non-framework built python fails to define environ properly

2008-05-02 Thread Ronald Oussoren

Ronald Oussoren <[EMAIL PROTECTED]> added the comment:

The patch looks sane, I'm assigning the bug to myself to help me remember 
that I should take a closer look.

--
assignee: jackjansen -> ronaldoussoren
nosy: +ronaldoussoren

_
Tracker <[EMAIL PROTECTED]>

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



[issue1621111] IDLE crashes on OS X 10.4 when "Preferences" selected

2008-05-02 Thread Ronald Oussoren

Changes by Ronald Oussoren <[EMAIL PROTECTED]>:


--
assignee: ronaldoussoren -> 

_
Tracker <[EMAIL PROTECTED]>

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



[issue2735] range: lean and mean

2008-05-02 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

16 tests failed:
test_ctypes test_datetime test_deque test_enumerate test_heapq
test_itertools test_list test_mutants test_operator test_pickle
test_pickletools test_random test_richcmp test_set test_trace
test_userlist

__
Tracker <[EMAIL PROTECTED]>

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



[issue2158] confusing exception when opening a filename with nonprintable characters

2008-05-02 Thread Ronald Oussoren

Ronald Oussoren <[EMAIL PROTECTED]> added the comment:

AFAIK this is fixed in the trunk, you'll get a message that the filename 
or mode is incorrect (but not which one).

That's the best open() can do because the underlying C API doesn't give 
enough information to decide which argument is unacceptable.

(I'm changing this to the library component instead of the Macintosh one 
because this was a buglet in the platform-independent stdlib).

The trunk was fixed in r61468, that might be a backport candidate, 
adding gregory.p.smith to the nosy list because he commited that 
revision.

--
components: +Library (Lib) -Macintosh
nosy: +gregory.p.smith, ronaldoussoren

__
Tracker <[EMAIL PROTECTED]>

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



[issue778799] scripts destination directory not on default path

2008-05-02 Thread Ronald Oussoren

Changes by Ronald Oussoren <[EMAIL PROTECTED]>:


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


Tracker <[EMAIL PROTECTED]>


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



[issue2735] range: lean and mean

2008-05-02 Thread Guido van Rossum

Guido van Rossum <[EMAIL PROTECTED]> added the comment:

We need to look at more details why those fail.  Perhaps there's one
common place where this is used?  Did you add __length_hint__ yet?

__
Tracker <[EMAIL PROTECTED]>

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



[issue2325] isinstance(anything, MetaclassThatDefinesInstancecheck) raises instead of returning False

2008-05-02 Thread Pedro Werneck

Pedro Werneck <[EMAIL PROTECTED]> added the comment:

In 3.0 it happens with any class. Just the cls argument missing on the
call to instancecheck.

--
keywords: +patch
nosy: +werneck
Added file: http://bugs.python.org/file10174/issue2325.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2735] range: lean and mean

2008-05-02 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

On Fri, May 2, 2008 at 5:46 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote:
>
>  Guido van Rossum <[EMAIL PROTECTED]> added the comment:
>
>  We need to look at more details why those fail.  Perhaps there's one
>  common place where this is used?  Did you add __length_hint__ yet?

I added __length_hint__ in the last patch.

Many of the failures are the result of failings in seq_tests.py.

As test_random points out, you can't pick a random integer from a set.

Some of these failures are also the result of removing range slicing.
(I'm not proposing we bring that back, though.)

Overall though, I think it's more practical to have a length
implementation that works in 99.78% cases than not and force people to
to convert it to a list first.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2744] Fix test_cProfile

2008-05-02 Thread Benjamin Peterson

New submission from Benjamin Peterson <[EMAIL PROTECTED]>:

test_cProfile has been disabled in Py3k for a while now. It should be
fixed before release.

--
messages: 66131
nosy: benjamin.peterson
priority: critical
severity: normal
status: open
title: Fix test_cProfile
versions: Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2325] isinstance(anything, MetaclassThatDefinesInstancecheck) raises instead of returning False

2008-05-02 Thread Pedro Werneck

Changes by Pedro Werneck <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file10174/issue2325.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2742] example code does not work

2008-05-02 Thread Mike MacFaden

Mike MacFaden <[EMAIL PROTECTED]> added the comment:

Martin v. Löwis wrote:
> Martin v. Löwis <[EMAIL PROTECTED]> added the comment:
> 
> What operating system are you using? It could be a bug in the
> operating system as well. 

hi martin,

what i've tested so far...

  freebsd 6.2 - release 12 jan 2007
socket.gaierror: (8, 'hostname nor servname provided, or not known')

  Red Hat Enterprise Linux Client release 5.1 (Tikanga), gnu/linux
2.6.18-53.el5
 socket.gaierror: (-2, 'Name or service not known')

mike

__
Tracker <[EMAIL PROTECTED]>

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



[issue2741] documentation -- do serversockets work with ipv6

2008-05-02 Thread Mike MacFaden

Mike MacFaden <[EMAIL PROTECTED]> added the comment:

Martin v. Löwis wrote:
> Martin v. Löwis <[EMAIL PROTECTED]> added the comment:
> 
> I fail to see the issue. There are many other address
> families supported as well, such as AF_BLUETOOTH, AF_PACKET,
> AF_TIPC, and AF_NETLINK, depending on the system. The
> documentation just lists some examples.

the way i read the text, i gathered that it might not work
with sockets belonging to a subset of address families.

thanks,
mike

__
Tracker <[EMAIL PROTECTED]>

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



[issue2325] isinstance(anything, MetaclassThatDefinesInstancecheck) raises instead of returning False

2008-05-02 Thread Pedro Werneck

Pedro Werneck <[EMAIL PROTECTED]> added the comment:

Seems like that's the wrong usage and the PEP 3119 notices that it's
hard to get the right semantics. To use it that way you need to define
the methods as a classmethod().

http://www.python.org/dev/peps/pep-3119/#one-trick-ponies

__
Tracker <[EMAIL PROTECTED]>

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



[issue2745] Add support for IsWow64Process

2008-05-02 Thread Mark Hammond

New submission from Mark Hammond <[EMAIL PROTECTED]>:

As per a thread on python-dev, I offered to add sys.iswow64process.  I'm
attaching a patch that does this (including news, docs and tests).  I'm
adding Martin to the nosy list as he has expressed reservations ("It
sounds like clutter of the sys module to me"), so I expect this to be
rejected.

--
assignee: mhammond
components: Windows
files: iswow64process.patch
keywords: patch
messages: 66137
nosy: loewis, mhammond
severity: normal
status: open
title: Add support for IsWow64Process
type: feature request
versions: Python 2.6
Added file: http://bugs.python.org/file10175/iswow64process.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2735] range: lean and mean

2008-05-02 Thread Guido van Rossum

Guido van Rossum <[EMAIL PROTECTED]> added the comment:

Fair enough.  Let's keep __len__.  Did you upload the patch to the codde
review site yet?  Hopefully I have time to look at it tonight.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2581] Vista UAC/elevation support for bdist_wininst

2008-05-02 Thread Mark Hammond

Mark Hammond <[EMAIL PROTECTED]> added the comment:

Checked in as r62636

--
resolution:  -> fixed
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

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



[issue2736] datetime needs and "epoch" method

2008-05-02 Thread Pedro Werneck

Pedro Werneck <[EMAIL PROTECTED]> added the comment:

That's expected as mktime is just a thin wrapper over libc mktime() and
it does not expect microseconds. Changing time.mktime doesn't seems an
option, so the best alternative is to implement a method in datetime
type. Is there a real demand for C code implementing this to justify it?

--
nosy: +werneck

__
Tracker <[EMAIL PROTECTED]>

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



[issue2735] range: lean and mean

2008-05-02 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

I brought __len__ back, and tried to fix the tests failing because they
were indexing range. I couldn't figure out how to fix test_itertools.
(It's on codereview, too).

Added file: http://bugs.python.org/file10176/range_lean_and_mean4.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2743] Fix module output for warnings from the interpreter

2008-05-02 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

So I found the problem. The C implementation of 'warnings' is not handling 
the case where the module that triggered the exception does not define 
__file__, __name__ == '__main__', and sys.argv[0] is a false value in the 
same way as the Python implementation.

Rather obscure to say the least. =)

__
Tracker <[EMAIL PROTECTED]>

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



[issue2743] Fix module output for warnings from the interpreter

2008-05-02 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

r62656 has the fix.

--
resolution:  -> fixed
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

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



[issue2741] documentation -- do serversockets work with ipv6

2008-05-02 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

> the way i read the text, i gathered that it might not work
> with sockets belonging to a subset of address families.

I still cannot see anything wrong with that text, but then,
English is not my native language. Can you suggest a different
formulation?

__
Tracker <[EMAIL PROTECTED]>

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