[issue5032] itertools.count step

2009-01-26 Thread steve21

steve21 steve872929...@yahoo.com.au added the comment:

Here's a couple of functions I use with count and step:

def cf_e():
'''return: (iterator) the infinite continued fraction for e
e=[2; 1, 2, 1, 1, 4, 1, 1, 6, 1 , ... , 1, 2k, 1, ...]
'''
yield 2
for k in itertools.count(2, 2):
yield 1
yield k
yield 1


def prime_factors(n):
'''n: (int  1)
return: (list) the sorted list of tuples (p,e) of prime factors of n
p is a prime factor, e is the number of times the factor is used
'''
ret = []
if n = 1:
return ret

# factors: use known (small) primes, then possible primes (odd numbers)
for factor in itertools.chain([2,3,5,7,11], itertools.count(13, 2)):
if factor*factor  n:
if n != 1:
ret += [(n, 1)]
break
for e in itertools.count(0):
div, mod = divmod(n, factor)
if mod != 0:
break
n = div
if e = 1:
ret += [(factor, e)]
return ret

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



[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2009-01-26 Thread Mike Watkins

Mike Watkins pyt...@mikewatkins.ca added the comment:

Re diffs, noted for the future. 
Re tests:

# py3k-devel/Lib/test % grep -r getallmatchingheaders *

... Returns nothing, so not only does the email package need a test for 
this but so does http.client. 

Incidentally test_mailbox.py has a test for the proposed alternative - 
get_all(), which I noted above. That's another good reason for ridding 
the world of getallmatchingheaders() or at least simply calling 
get_all() from within getallmatchingheaders() if compatibility is a 
legitimate concern.

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



[issue5058] stop pgen.exe from generating CRLF-ended files and causing mayhem with win32-based patch submissions

2009-01-26 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

I don't understand the issue. Those files *are* text files, and have 
CRLF on Windows as expected, like all other text files.

I think you should fix your build process, or your environment, or your 
diff utility, or whatever is causing you a problem -- but not pgen.

--
nosy: +gagenellina

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



[issue5065] IDLE improve Subprocess Startup Error message

2009-01-26 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

#1529142 would fix this issue also, if it were accepted.

--
nosy: +gagenellina

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



[issue5032] itertools.count step

2009-01-26 Thread David W. Lambert

David W. Lambert lamber...@corning.com added the comment:

Nice.  Now I know that $e$ is a least transcendental number.  But I 
can't figure out why inserting this code into your file (and removing 
some itertools.) is difficult or unreadable.  I maintain a personal 
library of modules that I don't actually expect Guido to include in the 
python standard library.


import itertools

def count(offset=0,stride=1):
for i in itertools.count():
yield offset+i*stride


# this version probably performs faster
def count(offset=0,stride=1):
while True:
yield offset
offset += stride

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



[issue1529142] Allowing multiple instances of IDLE with sub-processes

2009-01-26 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

If this patch were accepted, #5065 would be a non-issue then.

--
nosy: +gagenellina

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



[issue5065] IDLE improve Subprocess Startup Error message

2009-01-26 Thread Raymond Hettinger

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


--
nosy: +rhettinger

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



[issue5074] python3 and ctypes, script causes crash

2009-01-26 Thread Poor Yorick

New submission from Poor Yorick pooryor...@users.sourceforge.net:

the following script causes python3 to crash on my Windows XP Pro  Machine:

import ctypes

b = ctypes.windll.Kernel32
var1 = 'TEMP'
out = ctypes.create_string_buffer(40) 
c = b.GetEnvironmentVariableW(var1,out,40)
print('ones', c, out, out.raw)
print('two: ', dir(out))

--
assignee: theller
components: ctypes
messages: 80611
nosy: pooryorick, theller
severity: normal
status: open
title: python3 and ctypes, script causes crash
type: crash
versions: Python 3.0

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



[issue5069] Use sets instead of list in posixpath._resolve_link

2009-01-26 Thread Benjamin Peterson

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

Thanks for the patch! Applied in r69003.

--
nosy: +benjamin.peterson
resolution:  - accepted
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5069
___
___
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-01-26 Thread Benjamin Peterson

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

I don't like the change of API to PyTokenizer_FromString. I would prefer
another function like PyTokenizer_IgnoreCodingCookie() blows up when
parsing has already started.

The (char *) cast in PyTokenizer_FromString is unneeded.

You need to indent the else clause after you test for ignore_cookie.

I'd like to see a test that shows that byte strings still have their
cookies examined.

--
nosy: +benjamin.peterson

___
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



[issue5032] itertools.count step

2009-01-26 Thread steve21

steve21 steve872929...@yahoo.com.au added the comment:

I already use the second version of the count function you give (without
default arguments which I am not a big fan of). I'm not saying its
difficult or unreadable to bypass itertools.count and write your own
enhanced count function. But if I use a custom count function, you use a
custom count function, and possibly many others too, then there could be
a common requirement for a step argument and it might be a good idea too
make it more widely available. 

Haskell has a powerful and concise list notation, some of which Python
has already borrowed from:
multiple3 = [3,6..]

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



[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

This is not a bug in rlcompleter; __dir__ is returning bogus items, and 
rlcompleter checks whether there exist actually an attribute with such 
name.

Defining __getattr__ (or __getattribute__) and a matching __dir__ works 
fine:

 class B(object):
...   def __dir__(self):
... return dir(object) + [xa,xb,xc]
...   def __getattr__(self, name):
... if name in [xa,xb,xc]:
...   return None
... raise AttributeError, name
...
 b = B()
 import rlcompleter
 c = rlcompleter.Completer()
 c.complete(b., 0)
'b.__class__('
 c.matches
['b.__class__(', 'b.__delattr__(', 'b.__doc__', 'b.__format__(', 
'b.__getattribute__(', 
...
'b.xa', 'b.xb', 'b.xc', 'b.__class__(', 'b.__class__(', 
...]
 c.complete(b.x, 0)
'b.xa'
 c.matches
['b.xa', 'b.xb', 'b.xc']

Now, looking at this I saw there *is* a bug in rlcompleter, as it may 
return many duplicate items:

 c.complete(b.__c, 0)
'b.__class__('
 c.matches
['b.__class__(', 'b.__class__(', 'b.__class__(', 'b.__class__(']

The attached patch fixes that.

--
keywords: +patch
nosy: +gagenellina
Added file: http://bugs.python.org/file12872/rlcompleter.patch

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



[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2009-01-26 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

I *did* have /bin/sh in a Windows box some time ago.
Probably the test should check sys.platform in addition to /bin/sh 
existence.

--
nosy: +gagenellina

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



[issue5048] Extending itertools.combinations

2009-01-26 Thread Raymond Hettinger

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

FWIW, I added combinations_with_replacement() in r69001 and r69004 .

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



[issue5032] itertools.count step

2009-01-26 Thread David W. Lambert

David W. Lambert lamber...@corning.com added the comment:

Probably a better prime factor algorithm uses Sieve of E. to generate
primes through int(1+sqrt(n)) and test these.

The other algorithm uses a custom generator anyway.  Oh well, good luck,
I'll shut up.
You do have use cases that I couldn't think of.

Dave.

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



[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Carl Johnson

Carl Johnson c...@carlsensei.com added the comment:

It seems to me that it isn't tab completion's place to out think the
__dir__ method. A) Because the documentation doesn't tell you that it
does (although you are warned that it may call some stuff) and B)
because if someone set up a __dir__ method, they probably are listing
the things that they want listed for a particular reason. I think that
it would be less confusing for rlcompleter to follow the __dir__ method
when it exists and only do its own poking and prodding when it does not.

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



[issue5075] bdist_wininst should not depend on the vc runtime?

2009-01-26 Thread Mark Hammond

New submission from Mark Hammond mhamm...@users.sourceforge.net:

After consideration of issue 4120 and issue 4566, it seems to me that
executables created by bdist_wininst will have a manifest referencing
the MSVC9 assembly, and thus will be in a similar position to the .pyd
files in issue 4120 - that unless the assembly is installed globally or
next to the executable itself, the executable will not start.  Note that
I have not verified this, but have verified the final installer
executable references the CRT assembly, and given those other bugs,
expect it to be true.

It seems to me a reasonable solution would be to have the bdist_wininst
stub use a static copy of the C runtime library.  While this means 2
copies of the CRT will eventually be loaded and would otherwise be
considered evil, the way the stub dynamically loads Python and the few
API functions it uses means it might be reasonable in this case.  Would
the trivial patch which achieves this be desired?

--
assignee: mhammond
components: Distutils
messages: 80620
nosy: mhammond
severity: normal
status: open
title: bdist_wininst should not depend on the vc runtime?
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1

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



[issue1498370] Improve itertools.starmap

2009-01-26 Thread Raymond Hettinger

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

This was fixed in r60013.

--
resolution:  - out of date
status: open - closed

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



[issue5034] itertools.fixlen

2009-01-26 Thread Raymond Hettinger

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


--
resolution:  - rejected
status: open - closed

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



[issue2527] Pass a namespace to timeit

2009-01-26 Thread Raymond Hettinger

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


--
assignee:  - rhettinger
nosy: +rhettinger

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



[issue1242657] list(obj) can swallow KeyboardInterrupt

2009-01-26 Thread Raymond Hettinger

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


--
assignee:  - rhettinger

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



[issue4920] Inconsistent usage of next/__next__ in ABC collections; collections.Iterator is not compatible with Python 2.6 iterators.

2009-01-26 Thread Raymond Hettinger

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


--
assignee:  - rhettinger

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



[issue5021] doctest.testfile should set __name__, can't use namedtuple

2009-01-26 Thread Raymond Hettinger

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


--
assignee:  - rhettinger
nosy: +rhettinger

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



[issue5076] bdist_wininst fails on py3k

2009-01-26 Thread Mark Hammond

New submission from Mark Hammond mhamm...@users.sourceforge.net:

bdist_wininst installers created by py3k fail due to PySys_SetArgv and
Py_SetProgramName both being passed 'char *' strings instead of wide
strings.

The patch is against the svn trunk as currently Python 2.x and 3.x share
the same bdist_wininst stub.  The patch doesn't change the behaviour on
Python 2.x, and continues to allow the same executable stub to be
shared, as the appropriate signature is determined at runtime based on
the Python version.

The patch does not include the 2 new stub executables required
(wininst-9.0.exe and wininst-9.0-amd64.exe), but the patch *and* the new
stub executables should be merged into whatever py3k branches are
appropriate.  I've tested (pywin32) installers based on the new stub on
python 2.6 32bit, and python 3.0 32 and 64bit.

--
assignee: mhammond
components: Distutils
files: wininst_py3k.patch
keywords: needs review, patch, patch
messages: 80622
nosy: mhammond
priority: high
severity: normal
stage: commit review
status: open
title: bdist_wininst fails on py3k
type: behavior
versions: Python 3.0, Python 3.1
Added file: http://bugs.python.org/file12873/wininst_py3k.patch

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



[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

This is what rlcompleter does; it uses dir() to find out what names to 
return.
Or do you mean that it should not iterate along __bases__ because this 
has already been done by dir()?

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



[issue5077] 2to3 fixers for the removal of operator functions

2009-01-26 Thread Alexandre Vassalotti

New submission from Alexandre Vassalotti alexan...@peadrop.com:

This is a 2to3 fixer for the removal of obsolete functions in r68962.

--
components: 2to3 (2.x to 3.0 conversion tool)
files: fix_operator.py
messages: 80624
nosy: alexandre.vassalotti
severity: normal
stage: patch review
status: open
title: 2to3 fixers for the removal of operator functions
versions: Python 3.0, Python 3.1
Added file: http://bugs.python.org/file12874/fix_operator.py

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



[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Carl Johnson

Carl Johnson c...@carlsensei.com added the comment:

I think that checking to see which things really exist with
getattr/hasattr made sense back in the days before the __dir__, since in
those days the real API for an object could diverge wildly from what was
reported by dir(object), but nowadays, if someone goes to the trouble of
defining the __dir__ method, then we should just trust that as being
the API and not do any other checking.

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



[issue5077] 2to3 fixers for the removal of operator functions

2009-01-26 Thread Alexandre Vassalotti

Changes by Alexandre Vassalotti alexan...@peadrop.com:


Added file: http://bugs.python.org/file12875/fix_operator.py

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



[issue5077] 2to3 fixers for the removal of operator functions

2009-01-26 Thread Alexandre Vassalotti

Changes by Alexandre Vassalotti alexan...@peadrop.com:


Removed file: http://bugs.python.org/file12874/fix_operator.py

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



[issue5077] 2to3 fixer for the removal of operator functions

2009-01-26 Thread Alexandre Vassalotti

Changes by Alexandre Vassalotti alexan...@peadrop.com:


--
title: 2to3 fixers for the removal of operator functions - 2to3 fixer for the 
removal of operator functions

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




[issue1397474] timeit execution enviroment

2009-01-26 Thread Raymond Hettinger

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


--
assignee: fdrake - rhettinger
nosy: +rhettinger

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



[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

The check is made to decide whether the attribute is a method or not 
(because methods get a ( appended) -- for names that fail to exist, 
one could just omit the ( and include the name anyway.

rlcompleter does nothing special with __dir__, it always uses dir() 
only.

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



[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Carl Johnson

Carl Johnson c...@carlsensei.com added the comment:

Ah, I see. It does a dir(obj) then tests things to see which are
callable and while it is at that, it removes the names that don't really
exist according to getattr.

Actually, can we go back to the Python 2.5 behavior? I really hate those
auto-added parentheses. For one thing, it screws it up when you do
help(nameTAB. Am I missing some really obvious switch that would
turn the behavior back to the old style of ignoring the
callable/non-callable thing?

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



[issue5074] python3 and ctypes, script causes crash

2009-01-26 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

3rd argument to GetEnvironmentVariableW is the buffer size in 
*characters*, not bytes. Your buffer has room for 20 characters only, 
not 40. You should use create_unicode_buffer instead.

Probably the names create_unicode_buffer/create_string_buffer should be 
revised in 3.x

--
nosy: +gagenellina

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



[issue5074] python3 and ctypes, script causes crash

2009-01-26 Thread Martin v. Löwis

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

Why do you think this is a bug in ctypes? *Of course* it is possible to
crash Python by using ctypes incorrectly.

--
nosy: +loewis
resolution:  - invalid
status: open - closed

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



[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

The current behaviour is actually a requested feature: see #449227

I see your point, it may be annoying sometimes -- but calling a method 
is far more common than just getting a reference to it, so I think the 
current behaviour is fine (I'm talking about the added (, not the 
repeated entries, nor the unneeded __bases__ recursion, nor the deleted 
entries)

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



[issue5075] bdist_wininst should not depend on the vc runtime?

2009-01-26 Thread Martin v. Löwis

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

I think it would be even better if it didn't link with the CRT at all,
but until somebody provides a patch for that, linking statically sounds
fine to me.

--
nosy: +loewis

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



[issue5076] bdist_wininst fails on py3k

2009-01-26 Thread Martin v. Löwis

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

Is it really useful to be have the same stub for 2.x and 3.x? I think it
would be better if they mutually ignore each other, and be different.

--
nosy: +loewis

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



[issue4673] Distutils should provide an uninstall command

2009-01-26 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

philobyte, this means you have to keep the source somewhere to be able
to run setup.py uninstall. This is not handy imho.

What about a uninstall registery in Python that keeps track of the files
installed for each package ? this would let us have an uninstall command
that could run on its own.

uninstall packagename

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



[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2009-01-26 Thread Mike Watkins

Mike Watkins pyt...@mikewatkins.ca added the comment:

Further investigation ( grep -r getallmatchingheaders Lib/* ) reveals 
that in addition to having no tests, and being implemented incorrectly 
in http.client, getallmatchingheaders() is called only once, in 
http.server; that code is also broken (I reported this yesterday in  
#5053).

Maybe Python 3 is where getallmatchingheaders can make a graceful 
goodbye (and a 2to3 conversion added?).

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



<    1   2   3