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

2010-11-08 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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 h.b.furus...@usit.uio.no 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

[issue10350] errno is read too late

2010-11-08 Thread Hallvard B Furuseth
New submission from Hallvard B Furuseth h.b.furus...@usit.uio.no: 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

[issue10325] PY_LLONG_MAX co - preprocessor constants or not?

2010-11-08 Thread Hallvard B Furuseth
Hallvard B Furuseth h.b.furus...@usit.uio.no 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

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

2010-11-08 Thread Valery Khamenya
New submission from Valery Khamenya khame...@gmail.com: 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

[issue10352] rlcompleter.py has no tests in trunk

2010-11-08 Thread Valery Khamenya
New submission from Valery Khamenya khame...@gmail.com: 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

[issue2001] Pydoc interactive browsing enhancement

2010-11-08 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net 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

[issue10352] rlcompleter.py has no tests in trunk

2010-11-08 Thread Georg Brandl
Georg Brandl ge...@python.org 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 wal...@livinglogic.de 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

[issue10329] trace.py and unicode in Python 3

2010-11-08 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2010-11-08 Thread Weeble
Weeble clockworksa...@gmail.com 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

[issue10353] 2to3 and places argument in unitests assertAlmostEqual

2010-11-08 Thread Peter
New submission from Peter p.j.a.c...@googlemail.com: 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):

[issue10354] tempfile.template is broken

2010-11-08 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: 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

[issue10354] tempfile.template is broken

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

[issue2001] Pydoc interactive browsing enhancement

2010-11-08 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue10354] tempfile.template is broken

2010-11-08 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: The patch looks good to me, but it needs a test. -- nosy: +eric.smith stage: - unit test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10354

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

2010-11-08 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- nosy: -michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10228 ___ ___

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

2010-11-08 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com 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

[issue10354] tempfile.template is broken

2010-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Patch including tests is in attachment. I think I've just found two further bugs though: tempfile.TemporaryFile().name 'fdopen' tempfile.TemporaryFile(prefix='xxx').name 'fdopen' tempfile.SpooledTemporaryFile().name Traceback (most

[issue10354] tempfile.template is broken

2010-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Adding georg.brandl to nosy list as per misc/maintainers.rst. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10354

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: import tempfile tempfile.SpooledTemporaryFile().name Traceback (most recent call last): File stdin, line 1, in module File /home/giampaolo/svn/python-2.7/Lib/tempfile.py, line 574, in name return self._file.name AttributeError:

[issue10354] tempfile.template is broken

2010-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Created issue 10355 for SpooledTemporaryFile bug while TemporaryFile having no name seems to be rightful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10354

[issue10356] decimal.py: hash of -1

2010-11-08 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: 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:

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

2010-11-08 Thread Fergal Daly
New submission from Fergal Daly ferg...@gmail.com: 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

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

2010-11-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10357 ___ ___

[issue10350] errno is read too late

2010-11-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10350 ___ ___

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

2010-11-08 Thread Peter Hall
Peter Hall peter.f.h...@nasa.gov added the comment: There seems some similarity between this issue and issue #10316 which occurs on Linux. -- nosy: +pfhall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5712

[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. fdr...@acm.org: 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

[issue10359] ISO C cleanup

2010-11-08 Thread Hallvard B Furuseth
New submission from Hallvard B Furuseth h.b.furus...@usit.uio.no: 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,

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

2010-11-08 Thread Tres Seaver
New submission from Tres Seaver tsea...@agendaless.com: 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

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

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

[issue10325] PY_LLONG_MAX co - preprocessor constants or not?

2010-11-08 Thread Hallvard B Furuseth
Hallvard B Furuseth h.b.furus...@usit.uio.no 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 rep...@bugs.python.org

[issue10353] 2to3 and places argument in unitests assertAlmostEqual

2010-11-08 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10353 ___ ___

[issue10353] 2to3 and places argument in unitests assertAlmostEqual

2010-11-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue10354] tempfile.template is broken

2010-11-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue10359] ISO C cleanup

2010-11-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue10359] ISO C cleanup

2010-11-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue10359] ISO C cleanup

2010-11-08 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10359 ___ ___

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2010-11-08 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10348 ___ ___ Python-bugs-list mailing

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

2010-11-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Related issue in msg120647. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9873 ___ ___

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

2010-11-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10355 ___ ___ Python-bugs-list

[issue10354] tempfile.template is broken

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10354 ___ ___ Python-bugs-list

[issue10353] 2to3 and places argument in unitests assertAlmostEqual

2010-11-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

[issue10353] 2to3 and places argument in unitests assertAlmostEqual

2010-11-08 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: It's fixed in release31-maint as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10353 ___

[issue10351] Add autocompletion for keys in dictionaries

2010-11-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue10225] Fix doctest runable examples in python manual

2010-11-08 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10225 ___ ___ Python-bugs-list

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

2010-11-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2010-11-08 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Sun, Nov 7, 2010 at 4:24 AM, STINNER Victor rep...@bugs.python.org 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).

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

2010-11-08 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

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

2010-11-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue10356] decimal.py: hash of -1

2010-11-08 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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?

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

2010-11-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue10356] decimal.py: hash of -1

2010-11-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com 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.

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2010-11-08 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

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

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1195 ___ ___ Python-bugs-list mailing

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

2010-11-08 Thread Georg Brandl
Georg Brandl ge...@python.org 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 mich...@voidspace.org.uk: -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10360 ___ ___

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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). -- ___

[issue1236] subprocess is not thread-safe

2010-11-08 Thread Chris Gerhard
Changes by Chris Gerhard chris.gerh...@oracle.com: -- nosy: +Chris.Gerhard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1236 ___ ___

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

2010-11-08 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: d...@python - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10357 ___

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

2010-11-08 Thread Georg Brandl
Georg Brandl ge...@python.org 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

[issue10356] decimal.py: hash of -1

2010-11-08 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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__()

[issue5819] Add PYTHONPREFIXES environment variable

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +barry, eric.araujo versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5819 ___

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

2010-11-08 Thread Tres Seaver
Changes by Tres Seaver tsea...@agendaless.com: Removed file: http://bugs.python.org/file19545/issue10360.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10360 ___

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

2010-11-08 Thread Tres Seaver
Tres Seaver tsea...@agendaless.com 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:

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

2010-11-08 Thread Tres Seaver
Changes by Tres Seaver tsea...@agendaless.com: Removed file: http://bugs.python.org/file19546/issue10360-redux.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10360 ___

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

2010-11-08 Thread Tres Seaver
Tres Seaver tsea...@agendaless.com 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 tsea...@agendaless.com 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 rep...@bugs.python.org

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

2010-11-08 Thread Tres Seaver
Changes by Tres Seaver tsea...@agendaless.com: -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10360 ___ ___

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2010-11-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Also encoding and mode properties fail in the same manner. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10355 ___

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

2010-11-08 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: 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

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

2010-11-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rdmur...@bitdance.com added the comment: Committed in r86327. -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10321

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

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

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

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

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

2010-11-08 Thread ProgVal
New submission from ProgVal prog...@gmail.com: 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,

[issue10363] Embedded python, handle (memory) leak

2010-11-08 Thread Martin Dunschen
New submission from Martin Dunschen mdunsc...@gmail.com: 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 Python.h void entry() { Py_Initialize();

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

2010-11-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

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

2010-11-08 Thread ProgVal
ProgVal prog...@gmail.com added the comment: Thanks for your answer. Sorry, no change... -- components: +Library (Lib) versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10362

[issue10364] Color coding fails after running program.

2010-11-08 Thread Typo
New submission from Typo lol.rab...@yahoo.com: 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

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

2010-11-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I'm sure the traceback changed then? mode='r:' uses a different code path. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10362

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

2010-11-08 Thread ProgVal
ProgVal prog...@gmail.com 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

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

2010-11-08 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com 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):

[issue10364] Color coding fails after running program.

2010-11-08 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

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

2010-11-08 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: This fix is needed for 2.6 releases also to be able to upload packages from Linux. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9995

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

2010-11-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue10364] Color coding fails after running program.

2010-11-08 Thread Typo
Typo lol.rab...@yahoo.com 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 rep...@bugs.python.org

[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 webmaster...@gmail.com: 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

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

2010-11-08 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - invalid stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10327 ___

[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 amaur...@gmail.com 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)

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

2010-11-08 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: 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

[issue5819] Add PYTHONPREFIXES environment variable

2010-11-08 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org 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

[issue10364] Color coding fails after running program.

2010-11-08 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

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

2010-11-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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:

  1   2   >