[issue12010] Compile fails when sizeof(wchar_t) == 1

2011-05-16 Thread David Coles
David Coles added the comment: Attached is a patch that updates configure.in to make sure that wchar.h is present and that wchar_t is at least 16 bits wide. On android-8 this patch causes the configure step to fail since SIZEOF_WCHAR_T == 1. On android-9 and my Linux desktop the build continu

[issue12077] Harmonizing descriptor protocol documentation

2011-05-16 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12050] unconsumed_tail of zlib.Decompress is not always cleared on decompress() call

2011-05-16 Thread Takeshi Yoshino
Takeshi Yoshino added the comment: Thank you for the fix! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11197] information leakage with SimpleHTTPServer

2011-05-16 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-16 Thread Brian Curtin
Changes by Brian Curtin : -- Removed message: http://bugs.python.org/msg136132 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue12094] Cannot Launch IDLE

2011-05-16 Thread Ezio Melotti
Ezio Melotti added the comment: I can't test this on Windows, but you could try the following things: 1) check that 'python.exe -V' returns 2.6.6; 2) try using the IDLE shortcut in the start menu; 3) try "from abc import ABCMeta" from the interactive interpreter; 4) install Python 2.7 an

[issue12092] Clarify sentence in tutorial

2011-05-16 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue12092] Clarify sentence in tutorial

2011-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset c449d3c3e0da by Ezio Melotti in branch '2.7': #12092: backport rephrasing of a paragraph in the tutorial. http://hg.python.org/cpython/rev/c449d3c3e0da -- nosy: +python-dev ___ Python tracker

[issue12093] Typo in struct unpacking example

2011-05-16 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue12093] Typo in struct unpacking example

2011-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 874309ce6e62 by Ezio Melotti in branch '2.7': #12093: fix typo in struct doc. Patch by Sandro Tosi. http://hg.python.org/cpython/rev/874309ce6e62 -- nosy: +python-dev ___ Python tracker

[issue12088] tarfile.extractall fails to overwrite unresolved symlinks and hard links

2011-05-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Committed the fix. Thank you, Scott. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue12088] tarfile.extractall fails to overwrite unresolved symlinks and hard links

2011-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset b29f0b6fcb76 by Senthil Kumaran in branch '2.7': Fix closes issue #12088 - fixes the tarfile.extractall issue when the http://hg.python.org/cpython/rev/b29f0b6fcb76 -- nosy: +python-dev ___ Python track

[issue11986] Min/max not symmetric in presence of NaN

2011-05-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12077] Harmonizing descriptor protocol documentation

2011-05-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue12086] Tutorial doesn't discourage name mangling

2011-05-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is a venerable section of the tutorial that has been exposed to many, many readers and AFAICT it has never caused a problem. So, I see no need to make a change to it. Also as Georg points out, the docs (especially the tutorial) are not about discour

[issue12086] Tutorial doesn't discourage name mangling

2011-05-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: lukasz.langa -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue3754] cross-compilation support for python build

2011-05-16 Thread René Schümann
Changes by René Schümann : -- nosy: +WhiteTiger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue4709] Mingw-w64 and python on windows x64

2011-05-16 Thread René Schümann
Changes by René Schümann : -- nosy: +WhiteTiger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1006238] cross compile patch

2011-05-16 Thread René Schümann
Changes by René Schümann : -- nosy: +WhiteTiger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-16 Thread Brian Curtin
Brian Curtin added the comment: Looks like I was referring to a different patch from the email - sorry for any confusion. -- ___ Python tracker ___

[issue11614] import __hello__ is broken in Python 3

2011-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47bc3509f76b by Victor Stinner in branch '2.7': Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't exist anymore http://hg.python.org/cpython/rev/47bc3509f76b -- ___ Python tracker

[issue12094] Cannot Launch IDLE

2011-05-16 Thread Nathan
New submission from Nathan : To Whom it may concern – I have suddenly lost my ability to launch IDLE. I am using 2.6 with windows xp. I was using ipython with PyReadline. I have uninstalled and reinstalled just python 2.6.6 with no luck. I get the following error: Thanks in advance C:\Py

[issue12093] Typo in struct unpacking example

2011-05-16 Thread Sandro Tosi
New submission from Sandro Tosi : following up http://mail.python.org/pipermail/docs/2011-April/004154.html and what was done in 1de718a31004, here's a tiny patch to correct that typo in 2.7 too. -- assignee: docs@python components: Documentation files: struct_unpack_record.patch keywo

[issue7443] test.support.unlink issue on Windows platform

2011-05-16 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue12092] Clarify sentence in tutorial

2011-05-16 Thread Sandro Tosi
New submission from Sandro Tosi : following up http://mail.python.org/pipermail/docs/2011-April/004161.html, it would be nice to have changeset 1811eb03ba00 applied in 2.7 (it's already there in 3.1, 3.2 and default). Added Georg to the nosy list since it's the author of the given cs. ---

[issue1615158] POSIX capabilities support

2011-05-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: > "posixcap" sounds ok to me. Bike-sheddingly, it bothers me that these functions are actually *not* defined by POSIX, but have been withdrawn before becoming standard. So I'd rather call it linuxcap. Using _linuxcap, and exposing them from os sounds fine to m

[issue10239] multiprocessing signal defect

2011-05-16 Thread Charles-François Natali
Charles-François Natali added the comment: Closing as duplicate of issue #9205. -- nosy: +neologix resolution: -> duplicate status: open -> closed superseder: -> Parent process hanging in multiprocessing if children terminate unexpectedly ___ Pyth

[issue12045] external shell command executed twice in ctypes.util._get_soname

2011-05-16 Thread Sijin Joseph
Sijin Joseph added the comment: Attaching patch. Removed the second call to os.popen and used the dump variable that was read earlier as the argument to re.search. -- keywords: +patch nosy: +sijinjoseph Added file: http://bugs.python.org/file22010/12045.patch

[issue12034] check_GetFinalPathNameByHandle() suboptimal

2011-05-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, it should be trivial to fix. I've stumbled on this simply because I needed to write similar code for another patch, so studied how it was done in posixmodule.c. -- ___ Python tracker

[issue12034] check_GetFinalPathNameByHandle() suboptimal

2011-05-16 Thread Sijin Joseph
Sijin Joseph added the comment: Is this related to some other issue? The fix seems trivial, however I am curious as to how you stumbled upon this? Is there more to this issue than just performance? -- ___ Python tracker

[issue12091] multiprocessing: simplify ApplyResult and MapResult with threading.Event

2011-05-16 Thread Charles-François Natali
New submission from Charles-François Natali : Multiprocessing's MapResult and ApplyResult use a notification mechanism to signal callers when the underlying value is available. Instead of re-inventing the wheel, we could use threading.Event instead: this leads to cleaner and simpler code (with

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-16 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11882] test_imaplib failed on x86 ubuntu

2011-05-16 Thread Sijin Joseph
Changes by Sijin Joseph : -- nosy: -sijinjoseph ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12045] external shell command executed twice in ctypes.util._get_soname

2011-05-16 Thread Sijin Joseph
Changes by Sijin Joseph : -- nosy: -sijinjoseph ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12018] No tests for ntpath.samefile, ntpath.sameopenfile

2011-05-16 Thread Sijin Joseph
Changes by Sijin Joseph : -- nosy: -sijinjoseph ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11986] Min/max not symmetric in presence of NaN

2011-05-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: rhettinger> Your other tracker item correctly focused on the behavior of rhettinger> float('NaN') itself, You closed issue11949 as well, so it won't help. I disagree that this issue would be resolved by resolving issue11949. Defining max(nan, x) and na

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-16 Thread Nir Aides
Nir Aides added the comment: Steffen, can you explain in layman's terms? On Sun, May 15, 2011 at 8:03 PM, Steffen Daode Nurpmeso wrote: > > @ Charles-François Natali wrote (2011-05-15 01:14+0200): >> So if we really wanted to be safe, the only solution would be to >> forbid fork() in a multi-

[issue11990] redirected output - stdout writes newline as \n in windows

2011-05-16 Thread Brian Curtin
Brian Curtin added the comment: That's already fixed, it'll be in 3.2.1 -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs

[issue11990] redirected output - stdout writes newline as \n in windows

2011-05-16 Thread James Hutchison
James Hutchison added the comment: I would like to add in windows, "input" now adds a \r at the end which wasn't in 3.1. It doesn't do it in idle. This is using just the regular console window that opens up when you double click. I'm guessing this is related to the issue I saw earlier: code:

[issue11949] Make float('nan') unorderable

2011-05-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: A tracker bug has mangled the following paragraph following the IEEE 754 standard quote in my previous post: """ Table 5.2 referenced above lists 10 operations, four of which (>, <, >=, and <=) are given spellings that are identical to the spellings of P

[issue12090] 3.2: build --without-threads fails

2011-05-16 Thread Stefan Krah
Stefan Krah added the comment: A backport of 79fcd71d0356 fixes the problem. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11949] Make float('nan') unorderable

2011-05-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, May 14, 2011 at 3:08 PM, Raymond Hettinger wrote: .. >> Note that the current behaviour does *not* violate IEEE 754, ... > > I agree with Mark. Do we really need a popular vote to determine what a published standard does or does not require? Sec

[issue12090] 3.2: build --without-threads fails

2011-05-16 Thread Stefan Krah
New submission from Stefan Krah : The new Fedora buildbot (--without-threads) fails to compile: http://www.python.org/dev/buildbot/all/builders/AMD64%20Fedora%20without%20threads%203.2/builds/1 I didn't check the release branch yet. -- components: Build keywords: buildbot messages: 13

[issue12089] regrtest.py doesn't check for unexpected output anymore?

2011-05-16 Thread R. David Murray
R. David Murray added the comment: Antoine removed that check as part of the -j support, if I recall correctly. The check for unexpected output was part of the support for the transition between the old pre-unittest test suite and the unittest based test suite, and does seem like it is obsol

[issue6727] ImportError when package is symlinked on Windows

2011-05-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: I decided to investigate further. I created another script to test the call to _wstat to try to recreate the -1 return code, but I was unable to do so. I'm attaching the script, which creates the same 'sample' package, but instead of calling import, calls _w

[issue11949] Make float('nan') unorderable

2011-05-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, May 14, 2011 at 2:50 PM, Mark Dickinson wrote: .. > On the issue itself, I'm -1 on making comparisons with float('nan') raise: I > don't see that there's a real problem here that needs solving. > I probably should have changed the title of this

[issue1748064] inspect.getargspec fails on built-in or slot wrapper methods

2011-05-16 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12087] install_egg_info fails with UnicodeEncodeError depending on locale

2011-05-16 Thread Éric Araujo
Éric Araujo added the comment: The pkg_resources module in setuptools or distribute reads those files. In 3.3, packaging.database reads them too (it’s an implementation of PEP 376 with b/w compat with egg-info). It may work just fine in 3.x (it uses text I/O), but when we backport packaging

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-16 Thread Brian Curtin
Brian Curtin added the comment: Hirokazu contacted me directly with these patches a few days ago but I haven't been able to email him because his host's DNS is apparently down. The tests in this patch do not end up testing anything, so we'll need to start with a proper test. In the brief look

[issue12089] regrtest.py doesn't check for unexpected output anymore?

2011-05-16 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12087] install_egg_info fails with UnicodeEncodeError depending on locale

2011-05-16 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue4966] Improving Lib Doc Sequence Types Section

2011-05-16 Thread Ezio Melotti
Ezio Melotti added the comment: I think it should be OK. The stdtypes page could then mention type-specific behavior in the types' sections (e.g. <, <=, =>, > for sets) and link to the language reference for the general behavior. -- ___ Python tra

[issue11614] import __hello__ is broken in Python 3

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 9a4d4506680a by Victor Stinner in branch '3.1': > Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't exist anymore Oh, these commits are related to #12057, not this one. -- ___ Python tra

[issue12057] HZ codec has no test

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: Oh, I specified the wrong issue number of my last 3 commits: test_linecache failure is related to this issue. New changeset 9a4d4506680a by Victor Stinner in branch '3.1': Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't exist anymore http://hg.p

[issue11614] import __hello__ is broken in Python 3

2011-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9a4d4506680a by Victor Stinner in branch '3.1': Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't exist anymore http://hg.python.org/cpython/rev/9a4d4506680a New changeset 43cbfacae463 by Victor Stinner in branch '3.2': (Merge 3.1) Iss

[issue12057] HZ codec has no test

2011-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1bd697cdd210 by Victor Stinner in branch '2.7': Issue #12057: Convert CJK encoding testcase BLOB into multiple text files http://hg.python.org/cpython/rev/1bd697cdd210 -- ___ Python tracker

[issue12089] regrtest.py doesn't check for unexpected output anymore?

2011-05-16 Thread STINNER Victor
New submission from STINNER Victor : In Python 3.1, a test fails if it writes to stdout/stderr. It is no more the case in Python 3.2 and 3.3. Why? If we decided to not check for unexpected output in Python 3.2+, the following code should be removed: if verbose: capture_stdout = Non

[issue4966] Improving Lib Doc Sequence Types Section

2011-05-16 Thread Ana Sofia Paixão
Ana Sofia Paixão added the comment: I was taking a look into the possibility of splitting this page into several pages, and wondered: could the contents of the Comparisons and the Boolean operations sections just be merged into Python Reference / Expressions, and then deleted from this page a

[issue11614] import __hello__ is broken in Python 3

2011-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9e1d7cd15d2e by Victor Stinner in branch '3.1': Issue #11614: Fix importlib tests for the new __hello__ module http://hg.python.org/cpython/rev/9e1d7cd15d2e New changeset 6119f6cc9b2d by Victor Stinner in branch '3.2': (Merge 3.1) Issue #11614: Fix

[issue6727] ImportError when package is symlinked on Windows

2011-05-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've made some progress on this issue. Thanks to Waldemar's findings, I'm able to selectively reproduce the issue by installing/uninstalling the Visual C++ redistributable that includes KB2467174 on a Windows 7 RTM installation. So I added a patch to cpython

[issue12057] HZ codec has no test

2011-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16503022c4b8 by Victor Stinner in branch '3.1': Issue #12057: Convert CJK encoding testcase BLOB into multiple text files http://hg.python.org/cpython/rev/16503022c4b8 New changeset 370db8da308f by Victor Stinner in branch '3.2': (Merge 3.1) Issue

[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-05-16 Thread Alex Lai
Alex Lai added the comment: I install the Python package compiled by sunfreeware. Alex Lai Senior System Support Specialist TAG-IPM Application Support, Scotia Capital, 720 King St. West, 6th Floor, Toronto, Ontario M5V 2T3 Tel: (416) 607-4789 -Original Message- From: dario frascatani

[issue1615158] POSIX capabilities support

2011-05-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: "posixcap" sounds ok to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11614] import __hello__ is broken in Python 3

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: Thanks Andreas for your fix! Python 3 is now better than Python 2: it prints "Hello World!" instead of "Hello World...". -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue11614] import __hello__ is broken in Python 3

2011-05-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 44fd95cead7b by Victor Stinner in branch '3.1': Issue #11614: import __hello__ prints "Hello World!". Patch written by Andreas http://hg.python.org/cpython/rev/44fd95cead7b New changeset 2c5736e8a221 by Victor Stinner in branch '3.2': (Merge 3.1) I

[issue1615158] POSIX capabilities support

2011-05-16 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Another possibility is to make it a private module _posixcapabilities, which would be used in os module: try: from _posixcapabilities import * except ImportError: pass -- ___ Python tra

[issue12088] tarfile.extractall fails to overwrite unresolved symlinks and hard links

2011-05-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: I looked at your message and the patch, seems okay for the case of testing if the symlink is broken and performing the next steps. I shall commit it soon. -- assignee: -> orsenthil nosy: +orsenthil ___ Python trac

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: > In which case can it be None? Oh, I misunderstood threading.py. current_thread().ident cannot be None. During the bootstrap of a thread, Thread._ident is None, but current_thread().ident is not None because current_thread() creates a dummy thread object ha

[issue12088] tarfile.extractall fails to overwrite unresolved symlinks and hard links

2011-05-16 Thread Scott Leerssen
New submission from Scott Leerssen : I'm opening this as a continuation of issue10761 since it was closed as fixed, and there's a bit more work to do there. The fix for issue10761 was incomplete. It did not handle the case where the symlink being overwritten did not resolve to another file (i

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-05-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Thus, > Connection.recv_bytes() will be called: > > def _recv_bytes(self, maxsize=None): > buf = self._recv(4) > size, = struct.unpack("=i", buf.getvalue()) > if maxsize is not None and size > maxsize: > return None >

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I think that threading._get_ident() is more reliable than > threading.current_thread().ident because Thread.ident can be None in > some cases. In which case can it be None? -- ___ Python tracker

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: The threading API changed in Python 3 with the PEP 3108, especially and issue #2875. Extract of the PEP: "thread [done] * People should use 'threading' instead. * Rename 'thread' to _thread. * Deprecate dummy_thread and rename _dummy_thread. * Move

[issue12040] Expose a Process.sentinel property (and fix polling loop in Process.join())

2011-05-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Just a detail, but with the last version, select is retried with the > full timeout (note that the signal you're the most likely to receive > is SIGCHLD and since it's ignored by default it won't cause EINTR, so > this shouldn't happen too often). Indeed, it

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: @pitrou: What do you think Antoine? -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list ma

[issue12081] Remove distributed copy of libffi

2011-05-16 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12075] python3.2 memory leak when setting integer key in dictionary

2011-05-16 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12087] install_egg_info fails with UnicodeEncodeError depending on locale

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: install_egg_info.run() uses f = open(target, 'w') to create the .egg-info file and so the file uses the locale encoding. I don't know which module/program reads the file, so I don't know if the "locale encoding" is a good choice. -- nosy: +haypo

[issue12087] install_egg_info fails with UnicodeEncodeError depending on locale

2011-05-16 Thread Hagen Fürstenau
New submission from Hagen Fürstenau : With issue 10419 fixed, I've run into the next distutils unicode bug: The command "install_egg_info" doesn't specify an encoding when opening the ".egg-info" file for writing. Depending on the locale, this may result in something like the following: $ pyt

[issue1748064] inspect.getargspec fails on built-in or slot wrapper methods

2011-05-16 Thread Nick Coghlan
Nick Coghlan added the comment: The challenge with C functions is that this becomes *additional* metadata that somehow needs to be provided to the method and function creation process. None of our APIs are set up to accept that information (and obviously no code is set up to provide it, eithe

[issue9938] Documentation for argparse interactive use

2011-05-16 Thread Ezio Melotti
Ezio Melotti added the comment: FWIW unittest had a similar issue and it's been solved adding an 'exit' argument to unittest.main() [0]. I think using an attribute here might be fine. The patch contains some trailing whitespace that should be removed, also it might be enough to name the attri

[issue1748064] inspect.getargspec fails on built-in or slot wrapper methods

2011-05-16 Thread Michael Foord
Michael Foord added the comment: Sorry, *could* fix / obsolete this issue. i.e. builtin functions / methods could support pep 362 - the reference implementation is in pure python and doesn't work for C functions. -- ___ Python tracker

[issue1748064] inspect.getargspec fails on built-in or slot wrapper methods

2011-05-16 Thread Michael Foord
Michael Foord added the comment: If PEP 362 is implemented it would either fix or obsolete this issue: http://www.python.org/dev/peps/pep-0362/ -- ___ Python tracker ___

[issue12038] assertEqual doesn't display newline differences quite well

2011-05-16 Thread Michael Foord
Michael Foord added the comment: Yep, ensuring the truncated repr includes at least the *first* difference sounds like the right approach. -- assignee: -> michael.foord ___ Python tracker ___

[issue1748064] inspect.getargspec fails on built-in or slot wrapper methods

2011-05-16 Thread Michael Foord
Changes by Michael Foord : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12077] Harmonizing descriptor protocol documentation

2011-05-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue6715] xz compressor support

2011-05-16 Thread Nadeem Vawda
Nadeem Vawda added the comment: Also, if I'm reading the documentation correctly, there isn't any support for incremental in-memory coding, so it wouldn't be possible to implement classes analogous to BZ2Compressor/BZ2Decompressor. -- assignee: -> nadeem.vawda

[issue12086] Tutorial doesn't discourage name mangling

2011-05-16 Thread Łukasz Langa
Łukasz Langa added the comment: I'd like to see that section gone altogether. The tutorial is designed to be the first point of contact with the language. In that context name mangling is an obscure detail with an unlikely use case. If anything, the tutorial should simply state that private v

[issue12086] Tutorial doesn't discourage name mangling

2011-05-16 Thread Ezio Melotti
Ezio Melotti added the comment: I think the main problem here is that they are called "private" and people coming from other languages assume that the double underscore is the Python way to mark variables as private, whereas the appearance of being private is just a side effect of the name ma

[issue12086] Tutorial doesn't discourage name mangling

2011-05-16 Thread Radomir Dopieralski
Radomir Dopieralski added the comment: "In the unlikely case that you specifically need to avoid name clashes with subclasses, there is limited support..." ;) -- ___ Python tracker ___

[issue12086] Tutorial doesn't discourage name mangling

2011-05-16 Thread Tim Golden
Tim Golden added the comment: But at the least, the start of the para might be slightly reworded to something like: "If you specifically need to avoid name clashes with subclasses, there is limited support..." which avoids the phrase "Since there is a valid use-case for class-private members"

[issue12086] Tutorial doesn't discourage name mangling

2011-05-16 Thread Georg Brandl
Georg Brandl added the comment: No warnings, please. See http://docs.python.org/documenting/style.html#affirmative-tone and related sections. -- nosy: +georg.brandl ___ Python tracker __

[issue12086] Tutorial doesn't discourage name mangling

2011-05-16 Thread Łukasz Langa
Changes by Łukasz Langa : -- assignee: docs@python -> lukasz.langa nosy: +lukasz.langa stage: -> needs patch versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___

[issue12086] Tutorial doesn't discourage name mangling

2011-05-16 Thread Radomir Dopieralski
New submission from Radomir Dopieralski : In the tutorial, at http://docs.python.org/tutorial/classes.html#private-variables you can read: 9.6. Private Variables “Private” instance variables that cannot be accessed except from inside an object don’t exist in Python. However, there is a co

[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-05-16 Thread dario frascatani
dario frascatani added the comment: I have some problem to compile python source code to my server, I can't install make. My problem is only when import the smtplib. -- ___ Python tracker

[issue6715] xz compressor support

2011-05-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: > maybe it'd be better to add support for libarchive That wouldn't be better. We want the C dependency as small and low-level as possible, so that the dependency is small and the functionality flexible to implement stuff in Python on top of it. -- __