[issue10217] python-2.7.amd64.msi install fails

2010-11-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: IIUC, Manfred's pythonInstallLog.zip is now from a successful installation, so it is unfortunately of little help. We really would need a log of a failed installation. -- ___ Python tracker

[issue10325] PY_LLONG_MAX & co - preprocessor constants or not?

2010-11-08 Thread Hallvard B Furuseth
Hallvard B Furuseth added the comment: Mark Dickinson writes: > Here's a patch (against py3k) incorporating your suggestions. Would you > be willing to review? Looks fine to me. (Actually the gcc branch makes the same assumptions as the final branch, but then I expect gcc itself does too.) -

[issue10350] errno is read too late

2010-11-08 Thread Hallvard B Furuseth
New submission from Hallvard B Furuseth : errno is sometimes read too late after the error: After another call may have modified it. Here's a patch against py3k. Most of it or a variant applies to 2.7 too, but I haven't really looked at that. I've not looked at math code, where I don't even k

[issue10325] PY_LLONG_MAX & co - preprocessor constants or not?

2010-11-08 Thread Hallvard B Furuseth
Hallvard B Furuseth added the comment: I wrote: >> BTW, do you know of any modern non-Windows platforms that don't define >> LLONG_MIN and LLONG_MAX? It may well be that the "two's complement" >> fallback hasn't been exercised in recent years. > > Anyting compiled with strict ANSI pre-C99 mode

[issue10351] to introduce autocompletion for keys in dictionaries (patch attached)

2010-11-08 Thread Valery Khamenya
New submission from Valery Khamenya : 1. The patch introduces autocompletion for keys in dictionaries (patch attached) 2. The patched rlcompleter as such works OK for unicode dictionary keys as well. All tests pass OK. HOWEVER, readline's completion mechanism seem to be confused with unicode s

[issue10352] rlcompleter.py has no tests in trunk

2010-11-08 Thread Valery Khamenya
New submission from Valery Khamenya : rlcompleter.py has no test_rlcompleter in trunk, see http://svn.python.org/view/python/trunk/Lib/test/ There is one in 2.7 though. Remark: the issue http://bugs.python.org/issue10351 introduces autocompletion patch and comes with new tests. So, one may wan

[issue2001] Pydoc interactive browsing enhancement

2010-11-08 Thread Ron Adam
Ron Adam added the comment: > What about http://bugs.python.org/issue2001#msg114326 ? Thanks for the reminder. To Nick: >However, the public (albeit undocumented) nature of the APIs >implementing the >old Tk GUI means I'm not comfortable committing the >patch in a form that >simply drops t

[issue10352] rlcompleter.py has no tests in trunk

2010-11-08 Thread Georg Brandl
Georg Brandl added the comment: trunk is no longer active. The real "trunk" is the py3k branch, which does have test_rlcompleter. -- nosy: +georg.brandl resolution: -> invalid status: open -> closed ___ Python tracker

[issue10329] trace.py and unicode in Python 3

2010-11-08 Thread Walter Dörwald
Walter Dörwald added the comment: Using the original encoding of the Python source file might be the politically correct thing to do, but it complicates handling of the output of trace.py. For each file you have to do the encoding detection dance again. It would be great if I could specify wh

[issue10329] trace.py and unicode in Python 3

2010-11-08 Thread STINNER Victor
STINNER Victor added the comment: > ... it complicates handling of the output of trace.py. > For each file you have to do the encoding detection dance again ... What? You just have to call one function! tokenize.open() :-) Well, ok, it's not commited yet, but it looks like most people agree:

[issue2304] subprocess under windows fails to quote properly when shell=True

2010-11-08 Thread Weeble
Weeble added the comment: Is there any way to write code that's safe with or without this fix? If I have code that currently does this: subprocess.check_call('""c:\some path with spaces" arg1 arg2 "a quoted arg""', shell=True) ...will it break when running on a version of Python with this fi

[issue10353] 2to3 and places argument in unitests assertAlmostEqual

2010-11-08 Thread Peter
New submission from Peter : Consider the following example unit test using assertAlmostEqual which uses the places argument as a positional argument, call this places.py: import unittest class Tests(unittest.TestCase): def test_equal_to_five_decimal_places(self): """Check assertAlmo

[issue10354] tempfile.template is broken

2010-11-08 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : >>> import tempfile >>> tempfile.template = 'XXX' >>> tempfile.mkdtemp() '/tmp/tmpPf5lML' >>> Functions that use template use it as an argument default, so changing it afterwards has no effect. -- components: Library (Lib) messages: 120729 nosy:

[issue10354] tempfile.template is broken

2010-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch in attachment. -- keywords: +patch Added file: http://bugs.python.org/file19541/tempfile.patch ___ Python tracker ___

[issue2001] Pydoc interactive browsing enhancement

2010-11-08 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, I'll ask for feedback on python-dev regarding the API breakage. If we decide not to break the existing API, I'd suggest the following: - keep both the old serve() and the old gui() (with DeprecationWarning added to both) (I'd forgotten your point in the p

[issue10354] tempfile.template is broken

2010-11-08 Thread Eric Smith
Eric Smith added the comment: The patch looks good to me, but it needs a test. -- nosy: +eric.smith stage: -> unit test needed ___ Python tracker ___ __

[issue10228] Refleak run of test_dbm fails when several dbm modules are available

2010-11-08 Thread Michael Foord
Changes by Michael Foord : -- nosy: -michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10327] Abnormal SSL timeouts when using socket timeouts - once again

2010-11-08 Thread Pascal Chambon
Pascal Chambon added the comment: Allright, it actually looks more like a pathological latency behaviour of my target platforms than a ssl bug... I was mislead by the heavy history of socket.settimeout(), sorry. >_< -- status: open -> closed ___ Py

[issue10354] tempfile.template is broken

2010-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch including tests is in attachment. I think I've just found two further bugs though: >>> tempfile.TemporaryFile().name '' >>> tempfile.TemporaryFile(prefix='xxx').name '' >>> tempfile.SpooledTemporaryFile().name Traceback (most recent call last): File

[issue10354] tempfile.template is broken

2010-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Adding georg.brandl to nosy list as per misc/maintainers.rst. -- nosy: +georg.brandl ___ Python tracker ___

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : >>> import tempfile >>> tempfile.SpooledTemporaryFile().name Traceback (most recent call last): File "", line 1, in File "/home/giampaolo/svn/python-2.7/Lib/tempfile.py", line 574, in name return self._file.name AttributeError: 'cStringIO.StringO'

[issue10354] tempfile.template is broken

2010-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Created issue 10355 for SpooledTemporaryFile bug while TemporaryFile having no name seems to be rightful. -- ___ Python tracker ___ ___

[issue10356] decimal.py: hash of -1

2010-11-08 Thread Stefan Krah
New submission from Stefan Krah : When the __hash__ method is called directly, the hash of -1 is -1: >>> from decimal import * >>> Decimal(-1).__hash__() -1 >>> hash(Decimal(-1)) -2 I've a patch, which also sneaks in a ValueError. -- components: Library (Lib) files: decimal_hash.patch

[issue10357] ** and "mapping" are poorly defined in python docs

2010-11-08 Thread Fergal Daly
New submission from Fergal Daly : According to the index, the only place that mentions ** in argument lists is http://docs.python.org/tutorial/controlflow.html#index-1099 and gives no indication of what an object must support to allow **. When you attempt to ** an object the real attribute exc

[issue10357] ** and "mapping" are poorly defined in python docs

2010-11-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10350] errno is read too late

2010-11-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2010-11-08 Thread Peter Hall
Peter Hall added the comment: There seems some similarity between this issue and issue #10316 which occurs on Linux. -- nosy: +pfhall ___ Python tracker ___

[issue10358] Doc styles for print should only use dark colors

2010-11-08 Thread Fred L. Drake, Jr.
New submission from Fred L. Drake, Jr. : The HTML version of the documentation should include style settings for printing that use fairly dark colors, so that printed copies of pages are more readable. Using a printer that reduces colors to grays causes the light colors in code examples (or i

[issue10359] ISO C cleanup

2010-11-08 Thread Hallvard B Furuseth
New submission from Hallvard B Furuseth : Here are some ISO C conformance patches, and a minor cleanup I encountered along the way. Lib/distutils/tests/test_config_cmd.py // comment --> /* comment */. Lib/distutils/tests/test_build_ext.py, Objects/weakrefobject.c, Modules/_pickle.c, Modules/_tes

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
New submission from Tres Seaver : Because application code which tests for the presence of an object in a WeakSet may not be able to ensure that the object is weak-referenceable, the set should just return False for any object passed to '__contains__' which causes 'ref' to raise a TypeError. Pat

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Changes by Tres Seaver : -- components: +Library (Lib) keywords: +patch Added file: http://bugs.python.org/file19545/issue10360.patch ___ Python tracker ___ _

[issue10325] PY_LLONG_MAX & co - preprocessor constants or not?

2010-11-08 Thread Hallvard B Furuseth
Hallvard B Furuseth added the comment: Hallvard B Furuseth writes: > Looks fine to me. Hold on.. #elif defined SIZEOF_LONG_LONG would be a bit safer than #else. -- ___ Python tracker _

[issue10353] 2to3 and places argument in unitests assertAlmostEqual

2010-11-08 Thread R. David Murray
Changes by R. David Murray : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue10353] 2to3 and places argument in unitests assertAlmostEqual

2010-11-08 Thread R. David Murray
R. David Murray added the comment: The change of places to a keyword-only argument in 3.x was reverted last week in py3k trunk. -- nosy: +michael.foord, r.david.murray resolution: -> out of date stage: -> committed/rejected status: open -> closed versions: -Python 2.6, Python 2.7, P

[issue10354] tempfile.template is broken

2010-11-08 Thread R. David Murray
R. David Murray added the comment: Shouldn't the global template variable just be deleted in python3? It is no longer documented except for what is probably an overlooked mention in the introduction. -- nosy: +r.david.murray ___ Python tracker

[issue10359] ISO C cleanup

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: If it’s not too much trouble for you, please post diffs as text files rather than binary. You can also use “svn diff” to produce one file with all differences. -- nosy: +eric.araujo ___ Python tracker

[issue10359] ISO C cleanup

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: By the way, do these changes actually fix errors or are they just cleanups and pedantic (not a slight) fixes? If the latter, I think they won’t go into stable branches. I don’t do C though, so I won’t be the one to judge. Thanks for the patches! --

[issue10359] ISO C cleanup

2010-11-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2010-11-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +asksol ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9873] urllib.parse: Allow bytes in some APIs that use string literals internally

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Related issue in msg120647. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue10336] test_xmlrpc fails if gzip is not supported by client

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: No problem :) I’ve had a look at the test and don’t understand the problem. What’s the client you’re referring to? I thought that in the tests, client-side and server-side were both under control. Is the problem related to *python* being built without gzip s

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10354] tempfile.template is broken

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10353] 2to3 and places argument in unitests assertAlmostEqual

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Is 3.1 incompatible with 2.7 and 3.2? If so, is it best to have 3.2 compatible with 3.1 or to have 3.1 buggy? -- nosy: +eric.araujo ___ Python tracker _

[issue10353] 2to3 and places argument in unitests assertAlmostEqual

2010-11-08 Thread Michael Foord
Michael Foord added the comment: It's fixed in release31-maint as well. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue10351] Add autocompletion for keys in dictionaries

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Thank you for the report and patch. This is a new feature, thus targetting the py3k branch (future 3.2). If your patch is not against this branch, can you refresh it? Also, please attach it as text file(s), and generally follow guidelines outlined at http://w

[issue10225] Fix doctest runable examples in python manual

2010-11-08 Thread Łukasz Langa
Changes by Łukasz Langa : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue8919] python should read ~/.pythonrc.py by default

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: > the .pythonrc.py file is not deprecated. only the user module is deprecated. Which amounts to the same IMO. > the problem i have with the PYTHONSTARTUP variable is that i find it > is an unecessary intermediate step to set up an initialization file. Okay, I se

[issue10335] tokenize.open_python(): open a Python file with the right encoding

2010-11-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Nov 7, 2010 at 4:24 AM, STINNER Victor wrote: .. > Ok, the new patch (tokenize_open-2.patch) uses tokenize.open() name and adds a > test for BOM without coding cookie (test utf-8-sig encoding). Here are my comments on the new patch: 1. A nit-pic

[issue10335] tokenize.open(): open a Python file with the right encoding

2010-11-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Changing the title to make the latest choice of function name more visible. -- stage: -> patch review title: tokenize.open_python(): open a Python file with the right encoding -> tokenize.open(): open a Python file with the right encoding type:

[issue10335] tokenize.open(): open a file with encoding detected from a coding cookie

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: 1. Agreed on both. Extraneous blank lines seem to be favored by people who need to work around bugs in their editor. 2. Yes, “_” is recommended for a discarded object. 3. Agreed. 4. Even better: print('# coding:', encoding, file=fp). No intermediary string!

[issue10356] decimal.py: hash of -1

2010-11-08 Thread Mark Dickinson
Mark Dickinson added the comment: Are there situations where this is a problem? I don't think that there's any requirement that the __hash__ method for a user-defined Python type not return -1. (It's also allowed to return values outside the range of hash values; these get automatically reh

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread R. David Murray
R. David Murray added the comment: What makes you think SpooledTemporaryFile *has* a name attribute? :) Seriously, though, I presume this bug report is asking for either a better error message or for .name to raise an attribute error on a SpooledTemporaryFile? -- nosy: +r.david.murra

[issue10357] ** and "mapping" are poorly defined in python docs

2010-11-08 Thread R. David Murray
R. David Murray added the comment: I think the Glossary entry needs to be updated to point to the authoritative source for 'mapping' methods: http://docs.python.org/library/collections.html#abcs-abstract-base-classes (and yes, I realize that info is not located in a particularly intuitive lo

[issue10356] decimal.py: hash of -1

2010-11-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: It's not about the hash value, but about consistency: help(Decimal.__hash__) says "x.__hash__() <==> hash(x)", but this is not true for x=Decimal(-1). -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Yes, sorry, I should have been less concise. =) > Seriously, though, I presume this bug report is asking for either a > better error message or for .name to raise an attribute error on a > SpooledTemporaryFile? I'm not sure what's better. I must be honest

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: >From the doc of tempfile.NamedTemporaryFile: “This function operates exactly >as TemporaryFile() does, except that the file is guaranteed to have a visible >name in the file system (on Unix, the directory entry is not unlinked). That >name can be retrieved from

[issue10224] Build 3.x documentation using python3.x

2010-11-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As discussed on #python-dev, building 3.x documentation using python3.x will require Sphinx 1.1 which will not be released in time for 3.2. I am adding #10225 as a dependency because I feel that fixing actual errors in ReST doctests is more important t

[issue1195] Problems on Linux with Ctrl-D and Ctrl-C during raw_input

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue10224] Build 3.x documentation using python3.x

2010-11-08 Thread Georg Brandl
Georg Brandl added the comment: I agree that 3.2 should eventually be independent of a 2.x Python. Since the "port to 3.x" part of Sphinx 1.1 is basically done, I might just do an early alpha release and use that for Doc/tools before 3.2 final. -- ___

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Michael Foord
Changes by Michael Foord : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread R. David Murray
R. David Murray added the comment: Éric: right, but we're talking about *Spooled*Temprorary file, which doesn't say anything about a name, and in fact says that the data is kept in memory (which implies it has no name). -- ___ Python tracker

[issue1236] subprocess is not thread-safe

2010-11-08 Thread Chris Gerhard
Changes by Chris Gerhard : -- nosy: +Chris.Gerhard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10357] ** and "mapping" are poorly defined in python docs

2010-11-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: d...@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Georg Brandl
Georg Brandl added the comment: A result from IRC is that to be consistent with normal sets, only TypeErrors coming from ref() should be caught, but not those TypeErrors from the actual membership test (i.e. the hash functioon of the value). -- assignee: -> rhettinger nosy: +georg.br

[issue10356] decimal.py: hash of -1

2010-11-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Good catch Stefan. This is a regression from Py2.6. The behavior for decimal should match that for int. IDLE 2.6.2 >>> hash(-1) -2 >>> (-1).__hash__() -2 >>> from decimal import * >>> hash(Decimal(-1)) -2 >>> Decimal(-1).__hash__() -2 -- no

[issue5819] Add PYTHONPREFIXES environment variable

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +barry, eric.araujo versions: +Python 3.2 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mai

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Changes by Tres Seaver : Removed file: http://bugs.python.org/file19545/issue10360.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Tres Seaver added the comment: A new version of the patch, which only traps TypeErrors raises by ref(item). The test now ensures that hashing errors are propagated, for compatibility with standard sets. -- Added file: http://bugs.python.org/file19546/issue10360-redux.patch ___

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Changes by Tres Seaver : Removed file: http://bugs.python.org/file19546/issue10360-redux.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Tres Seaver added the comment: "One more time, with feeling." Sorry for the noise, the last patch was not against the 2.7 trunk. -- Added file: http://bugs.python.org/file19547/issue10360-redux.patch ___ Python tracker

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Tres Seaver added the comment: FTR, the patch applies cleanly to the py3k branch, too. (Michael pointed out that the original code was copied directly from there). -- ___ Python tracker ___

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Changes by Tres Seaver : -- versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Wow, brain fail. What I actually wanted to say: SpooledTemporaryFile “operates exactly as TemporaryFile() does”, which is not guaranteed to have a name. The definition of file-like object (linked from tempfile docs) says nothing about a name either. Therefor

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: What is the behaviour of WeakKeyDictionary here? I don't really agree that TypeError should be silenced. -- nosy: +pitrou versions: +Python 3.2 ___ Python tracker ___

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Also "encoding" and "mode" properties fail in the same manner. -- ___ Python tracker ___ ___ Pyt

[issue10361] Fix issue 9995 - distutils forces developers to store password in cleartext (issue2874041)

2010-11-08 Thread Éric Araujo
New submission from Éric Araujo : Looks globally good to me. http://codereview.appspot.com/2874041/diff/2001/cmd.py File cmd.py (right): http://codereview.appspot.com/2874041/diff/2001/cmd.py#newcode55 cmd.py:55: :param distutils.dist.Distribution dist: distribution to work with Please don’t in

[issue9995] "setup.py register sdist upload" requires pass to be saved

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch. Review on Rietveld. What are “other Python distributions”? -- components: +Distutils2 versions: +3rd party, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker

[issue10321] Add support for Message objects and binary data to smtplib.sendmail

2010-11-08 Thread R. David Murray
R. David Murray added the comment: Committed in r86327. -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Tres Seaver added the comment: WeakKeyDictionary's __contains__: def __contains__(self, key): try: wr = ref(key) except TypeError: return 0 return wr in self.data -- ___ Python tracker

[issue10361] Fix issue 9995 - distutils forces developers to store password in cleartext (issue2874041)

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Yay for obscure email interfaces. Sorry for the noise. -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread ProgVal
New submission from ProgVal : Hello, I had this traceback: Traceback (most recent call last): ... File "/home/progval/workspace/Supybot/Supybot-plugins/Packages/plugin.py", line 123, in extractData file = tarfile.open(fileobj=file_) File "/usr/lib/python2.6/tarfile.py", line 1651, in o

[issue10363] Embedded python, handle (memory) leak

2010-11-08 Thread Martin Dunschen
New submission from Martin Dunschen : I found a number of 'handle leaks' in the core code to embed python into a C/C++ application on windows. To reproduce: The simplest possible embedded application only calls: #include void entry() { Py_Initialize(); Py_Finalize(); } I found (but

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: With a socket file you cannot rely on autodetection of the format. I suggest to try tarfile.open(fileobj=file_, mode='r:') or tarfile.open(fileobj=file_, mode='r:gz') -- nosy: +amaury.forgeotdarc ___ Py

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread ProgVal
ProgVal added the comment: Thanks for your answer. Sorry, no change... -- components: +Library (Lib) versions: +Python 2.6 ___ Python tracker ___ __

[issue10364] Color coding fails after running program.

2010-11-08 Thread Typo
New submission from Typo : Whenever I run a program in Python 3.1.2 (windows), the color coding disappears. print() is no longer purple, def is no longer orange, etc. It all turns black, and there doesn't seem to be a way to repair this. I've installed and uninstalled Python 3.1.2 several time

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I'm sure the traceback changed then? mode='r:' uses a different code path. -- ___ Python tracker ___

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread ProgVal
ProgVal added the comment: Here is the new traceback: Traceback (most recent call last): ... File "/home/progval/workspace/Supybot/Supybot-plugins/Packages/plugin.py", line 123, in extractData file = tarfile.open(fileobj=file_, mode='r:') File "/usr/lib/python2.6/tarfile.py", line 1671,

[issue10361] Fix issue 9995 - distutils forces developers to store password in cleartext (issue2874041)

2010-11-08 Thread anatoly techtonik
anatoly techtonik added the comment: Reviewers: merwok, Message: I don't know when where will be time to redo the patch, but it would be nice to get some answers in meanwhile. http://codereview.appspot.com/2874041/diff/2001/cmd.py File cmd.py (right): http://codereview.appspot.com/2874041/dif

[issue10364] Color coding fails after running program.

2010-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is an editor rather than Python problem. Are you using the IDLE editor or something else. Which version of Windows? Orange and purple are IDLE's default for keywords and built-in names. But running 3.1.2 under XP, I have no problem as you describe, eithe

[issue9995] "setup.py register sdist upload" requires pass to be saved

2010-11-08 Thread anatoly techtonik
anatoly techtonik added the comment: This fix is needed for 2.6 releases also to be able to upload packages from Linux. -- ___ Python tracker ___ ___

[issue10361] Fix issue 9995 - distutils forces developers to store password in cleartext (issue2874041)

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Further replies. There’s still one comment in test_register you haven’t addressed yet. Tarek, I’d like to have your decision about one line in the upload command. (Don’t read the diff in this mail, it’s incomplete, go to Rietveld.) Thanks in advance. http://co

[issue10364] Color coding fails after running program.

2010-11-08 Thread Typo
Typo added the comment: I am using Windows Vista. The problem is not within Idle but within the screen where you create and save coding to use in Idle. -- ___ Python tracker __

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2010-11-08 Thread William Barr
New submission from William Barr : Steps for reproduction: 1. Open IDLE (Python 3.1.2) 2. Open a .py file 3. With the code window (not the shell window) in focus, Ctrl + O to bring up the open file dialog. Do not select a file or press open. 4. Close the code window. 5. Select a file a

[issue10327] Abnormal SSL timeouts when using socket timeouts - once again

2010-11-08 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> invalid stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mail

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2010-11-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Reproduced in a console window: C:\>c:\python31\python.exe -m idlelib.idle Exception in Tkinter callback Traceback (most recent call last): File "c:\python31\lib\tkinter\__init__.py", line 1399, in __call__ return self.func(*args) File "c:\python31

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-08 Thread Terry J. Reedy
New submission from Terry J. Reedy : In 3.x, "(object)" is now superfluous in class statements. Reference manual 7.7. Class definitions has simply class Foo: pass In library manual 2. Built-in Functions, class examples for classmethod and staticmethod are the same. Class examples for dir,

[issue5819] Add PYTHONPREFIXES environment variable

2010-11-08 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'll look at this in more detail, but I can at least answer one question right now: "The bona-fide known bug: the Debian package mantainer for Python decided to change "site-packages" to "dist-packages" in 2.6, for reasons I still don't quite understand."

[issue10364] Color coding fails after running program.

2010-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: If it is an editor window that you launch from IDLE, with a red script Tk in the upper left corner, with 'About IDLE' on the help menu, then it is an IDLE editor window and part of IDLE -- and appropriate for bug reports here ;-). This could be something spec

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Other unneeded uses of object, courtesy of grep: library/sqlite3.rst:713: class Point(object): library/multiprocessing.rst:1335: class MathsClass(object): library/functions.rst:281: >>> class Foo(object): library/functions.rst:897: class C(object): l

  1   2   >