[issue13390] Hunt memory allocations in addition to reference leaks

2011-11-15 Thread Charles-François Natali
Charles-François Natali added the comment: > Together with -R, it can help chase those memory leaks which aren't > reference leaks (see c6dafa2e2594). Valgrind does a much better job at this: it will also show you where the leaked blocks were allocated. OTOH, Valgrind is Linux-only and slow,

[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2011-11-15 Thread xhantu
xhantu added the comment: Confirmed for Python 2.7.1 on Ubuntu. Problematic are the __reduce__ methods of multiprocessing.process.AuthenticationString and multiprocessing.managers.BaseProxy. Pickling of an authkey in BaseProxy is only done and allowed when Popen.thread_is_spawning() is True.

[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2011-11-15 Thread xhantu
xhantu added the comment: forgot to set version in classification -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-11-15 Thread R. David Murray
R. David Murray added the comment: Yeah, I just haven't found time to do the revert yet (my first naive attempt using hg commands failed and I haven't found time to figure it out or do the reverse-patch method). -- ___ Python tracker

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-11-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti nosy: +benjamin.peterson, georg.brandl priority: normal -> release blocker ___ Python tracker ___ _

[issue13398] _cursesmodule does not build, doesn't find Python.h on Solaris

2011-11-15 Thread Maciej Bliziński
Maciej Bliziński added the comment: I haven't tried building with GCC, Python has always been built with Sun Studio at OpenCSW. I've got very similar build files for Python 2.6, 2.7, 3.0, and 3.1 -- none of them have this problem, so this is a regression in 3.2. What diff would you like to s

[issue13390] Hunt memory allocations in addition to reference leaks

2011-11-15 Thread Nick Coghlan
Nick Coghlan added the comment: This will likely be a decent "you have a problem" indicator, but you may still need tools like Valgrind to actually track down the *cause* of that problem. -- ___ Python tracker __

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-11-15 Thread Peter Funk
Changes by Peter Funk : -- nosy: +pefu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/ma

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: Here is a new patch based on Dan's last patch. Correct me if I'm wrong, but it seems to me that it's not possible for a node to have only text-nodes as children and yet have more than one child; i.e. you can't have two or more adjacent text nodes, because they w

[issue13407] tarfile.getmembers misses members again

2011-11-15 Thread sengels
New submission from sengels : This bug seems to be related to http://bugs.python.org/issue13158 When I try to run the following code: import tarfile tf = tarfile.open("kdelibs-4.7.3.tar.bz2", "r") print(len(tf.getnames())) against this tarball: http://www.winkde.org/pub/kde/ports/win32/repos

[issue13407] tarfile.getnames misses members again

2011-11-15 Thread sengels
Changes by sengels : -- title: tarfile.getmembers misses members again -> tarfile.getnames misses members again ___ Python tracker ___ __

[issue13322] buffered read() and write() does not raise BlockingIOError

2011-11-15 Thread sbt
sbt added the comment: Here is an updated patch which uses the real errno. It also gets rid of the restore_pos argument of _bufferedwriter_flush_unlocked() which is always set to false -- I guess buffered_flush_and_rewind_unlocked() is used instead. -- Added file: http://bugs.python.

[issue13408] Rename packaging.resources back to datafiles

2011-11-15 Thread Éric Araujo
New submission from Éric Araujo : The code dealing with the new resources subsystem used to be called datafiles (module distutils2.datafiles, file dist-info/DATAFILES, etc.). I believe it is a better name and we should use it again: - it would make clear that it’s an evolution of distutils’ d

[issue6501] Fatal error on startup with invalid PYTHONIOENCODING

2011-11-15 Thread Éric Araujo
Éric Araujo added the comment: > Currently different environment variables are treated differently. For > example, > mistakes in PYTHONHOME and PYTHONIOENCODING cause fatal error while an error > in > PYTHONSTARTUP is reported but does not terminate python: If PYTHONSTARTUP is the only envva

[issue13386] Document documentation conventions for optional args

2011-11-15 Thread Baptiste Carvello
Baptiste Carvello added the comment: Le 14/11/2011 20:51, Eric Snow a écrit : > > So would it be worth the effort to identify each such place in the > built-ins/stdlib and eventually change them all? I've seen support for doing > so in other tracker issues and think it's a good idea personal

[issue13405] Add DTrace probes

2011-11-15 Thread lasizoillo
Changes by lasizoillo : -- nosy: +lasizoillo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue13386] Document documentation conventions for optional args

2011-11-15 Thread Éric Araujo
Éric Araujo added the comment: >>> C functions that have optional arguments but don't accept keyword arguments >>> are a bit unusual, >>> and IIUC in most of the cases that's an implementation detail that could be >>> removed. >> So would it be worth the effort to identify each such place in t

[issue12659] Add tests for packaging.tests.support

2011-11-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 659bf2a679d2 by Éric Araujo in branch 'default': Add tests for tests.support (#12659), thanks to Francisco Martín Brugué http://hg.python.org/distutils2/rev/659bf2a679d2 -- ___ Python tracker

[issue13386] Document documentation conventions for optional args

2011-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: > Me too. (Can you give the #ids of these other issues?) See for example #13012. > I think we should fix C functions to accept kwargs for the sake of > Python programmers, not merely to ease documentation (that would just > be a nice side-effect :) And also

[issue13386] Document documentation conventions for optional args

2011-11-15 Thread Éric Araujo
Éric Araujo added the comment: >> I think we should fix C functions to accept kwargs for the sake of Python >> programmers > And also for compatibility for other implementations like PyPy. Good point. > I'm still not sure that is a good idea to do a mass conversion of all the > functions thou

[issue12344] Add **kwargs to reinitialize_command

2011-11-15 Thread Éric Araujo
Éric Araujo added the comment: I’ve noticed that setuptools’ Command class also allows keyword arguments in its constructor. I’m not sure if it would be useful, but I’ve not looked in depth at the packaging codebase to see if there is code that could use that. -- ___

[issue13390] Hunt memory allocations in addition to reference leaks

2011-11-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Valgrind does a much better job at this: it will also show you where > the leaked blocks were allocated. > OTOH, Valgrind is Linux-only and slow, but since I haven't used the > '-R' option much, I don't know how usable this will be in practice > (detecting mem

[issue12659] Add tests for packaging.tests.support

2011-11-15 Thread Éric Araujo
Éric Araujo added the comment: > I've added runTest to Tester It turns out this was the only change needed. Tarek’s repo on bitbucket is not up-to-date, I should have given you the hg.python.org link. (You can edit .hg/hgrc in your repo and run “hg pull -u” to get missing changesets.) When

[issue13407] tarfile.getnames misses members again

2011-11-15 Thread Lars Gustäbel
Lars Gustäbel added the comment: Some testing reveals that the bz2 module < 3.3 cannot fully decompress the file in question. Only the first 900k are decompressed. Thus, this issue is not related to issue13158 or the tarfile module. -- nosy: +lars.gustaebel __

[issue13407] tarfile.getnames misses members again

2011-11-15 Thread Charles-François Natali
Charles-François Natali added the comment: Isn't this a duplicate of issue #1625? -- nosy: +neologix ___ Python tracker ___ ___ Pytho

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-11-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13398] _cursesmodule does not build, doesn't find Python.h on Solaris

2011-11-15 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Can you add the missing library path in CFLAGS and LDFLAGS environment variables?. Something like: (from a fresh source code) ./configure OPTIONS CFLAGS=-Ipath LDFLAGS=-Ipath If that works, we can explore why the path is not detected automatically. Do your

[issue13398] _cursesmodule does not build, doesn't find Python.h on Solaris

2011-11-15 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: BTW, is only curses building failing?. Is the rest of the code built correctly?. That would be a good hint. -- ___ Python tracker ___ ___

[issue13398] _cursesmodule does not build, doesn't find Python.h on Solaris

2011-11-15 Thread Éric Araujo
Éric Araujo added the comment: This module also fails to build on my Debian. I had the libcursesw headers installed and one day it was not enough; installing libcurses headers fixes it. I don’t know if it’s the same problem or something related to Debian multiarch. -- nosy: +eric.ar

[issue13391] string.strip Does Not Remove Zero-Width-Space (ZWSP)

2011-11-15 Thread Dave Mankoff
Dave Mankoff added the comment: "Use regular expressions for more advanced stripping than what the .strip method provides." So I guess this brings me back to my original issue. I'm not looking for particularly advanced stripping. I just want to remove all whitespace and other non-printing ch

[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2011-11-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset c10946a17420 by Éric Araujo in branch 'default': Clean up byte-compilation code in packaging (#11254 followup). http://hg.python.org/cpython/rev/c10946a17420 -- ___ Python tracker

[issue13322] buffered read() and write() does not raise BlockingIOError

2011-11-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks again. Just a nit: the tests should be in MiscIOTest, since they don't directly instantiate the individual classes. Also, perhaps it would be nice to check that the exception's "errno" attribute is EAGAIN. -- stage: needs patch -> patch review

[issue1481032] patch smtplib:when SMTPDataError, rset crashes with sslerror

2011-11-15 Thread kxroberto
kxroberto added the comment: ping! perhaps I forgot to write that I uploaded the cleaned patch also on 2010-08-23. I really think this simple patch is necessary. Just seen the same problem again - as I forgot the patch in one of my recent Python update installations. When SMTPDataError, SMTPR

[issue13391] string.strip Does Not Remove Zero-Width-Space (ZWSP)

2011-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: > So I guess this brings me back to my original issue. I'm not looking > for particularly advanced stripping. I just want to remove all > whitespace and other non-printing characters. .strip only strips whitespace. Stripping non-printing characters and additi

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-11-15 Thread Dan Kenigsberg
Dan Kenigsberg added the comment: Technically, adjacent Text nodes are not illegal, but preserving this oddity in pretty-print is impossible. It is perfectly fine to pretty-print only the simple case of len()==1. -- ___ Python tracker

[issue13238] Add shell command helpers to subprocess module

2011-11-15 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file23694/b267e72c8c10.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13238] Add shell command helpers to subprocess module

2011-11-15 Thread Éric Araujo
Éric Araujo added the comment: >def __init__(self, command, *, **callkwds): Is the '*' marker needed? >self.callkwds = callkwds These aren’t used in the module-level functions. What is the use case? If you forgive me for the nitpick, the docstrings have too much indenting.

[issue10772] Several actions for argparse arguments missing from docs

2011-11-15 Thread ipatrol
ipatrol added the comment: The patch has been submitted, now we just need to apply it and update the online docs accordingly. -- status: open -> pending versions: +Python 3.4 ___ Python tracker __

[issue10772] Several actions for argparse arguments missing from docs

2011-11-15 Thread Brian Curtin
Changes by Brian Curtin : -- status: pending -> open versions: -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue10772] Several actions for argparse arguments missing from docs

2011-11-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10772] Several actions for argparse arguments missing from docs

2011-11-15 Thread Éric Araujo
Éric Araujo added the comment: Ezio made further comments, follow the “review” link. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue2775] Implement PEP 3108

2011-11-15 Thread Brett Cannon
Brett Cannon added the comment: Answers to Eric's questions: yes and yes, but I probably won't bother until I do a final update to the PEP. -- ___ Python tracker ___ ___

[issue13392] Writing a pyc file is not atomic under Windows

2011-11-15 Thread Brett Cannon
Brett Cannon added the comment: I say go with the deletion for importlib. If the failure is a sign of success, then just go with it and not worry about the failure. __pycache__ guarantees that we are not losing out by clobbering some other Python version's pyc file. -- __

[issue11805] package_data only allows one glob per-package

2011-11-15 Thread Éric Araujo
Éric Araujo added the comment: > Looking at sysconfig.cfg makes it all pretty clear, though it was hard to > find this > information a while ago. Yeah, you had to be here when the resources code was committed, or to stumble on it while reading the source code. It’s one of the big things I wil

[issue1486713] HTMLParser : A auto-tolerant parsing mode

2011-11-15 Thread kxroberto
kxroberto added the comment: I looked at the new patch http://hg.python.org/lookup/r86952 for Py3 (regarding the extended tolerance and local backporting to Python2.7): What I miss are the calls of a kind of self.warning(msg,i,k) function in non-strict/tolerant mode (where self.error is calle

[issue13392] Writing a pyc file is not atomic under Windows

2011-11-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset b75b41237380 by Antoine Pitrou in branch 'default': Issue #13392: Writing a pyc file should now be atomic under Windows as well. http://hg.python.org/cpython/rev/b75b41237380 -- ___ Python tracker

[issue13392] Writing a pyc file is not atomic under Windows

2011-11-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, done. Let's see if that fixes the sporadic failures on the buildbots. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue13380] ctypes: add an internal function for reseting the ctypes caches

2011-11-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue13409] Invalid expression error if a regex ends with a backslash

2011-11-15 Thread Michał Leśniewski
New submission from Michał Leśniewski : If a regular expression ends with a backslash, an exception is raised. Of course, the backslash has to be escaped. The simplest example, that causes the error is a regular expression, that should match only a single backslash: import re r = re.co

[issue13409] Invalid expression error if a regex ends with a backslash

2011-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: You either have to double escape it (once for python and then for the regex engine) or use raw strings: >>> re.match("", '\\').group() '\\' >>> re.match(r"\\", '\\').group() '\\' -- assignee: -> ezio.melotti resolution: -> invalid stage: -> commit

[issue1486713] HTMLParser : A auto-tolerant parsing mode

2011-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: The HTMLParser is not suitable for validation, even the strict mode allows some non valid markup (and it might be removed soon). Also I don't think it's easy to call a self.warnings() without trying the strict mode first. The tolerant parsing just allow more th

[issue11805] package_data only allows one glob per-package

2011-11-15 Thread Paul Moore
Paul Moore added the comment: One important point - in the "new world" where data files living alongside code is unsupported, the bdist_msi and bdist_wininst installers need to be updated to install data files as needed. This may work already (I'll do some tests to see how well when I get back t

[issue4442] document immutable type subclassing via __new__

2011-11-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch versions: +Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bug

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

2011-11-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue964437] idle help is modal

2011-11-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +terry.reedy stage: -> patch review versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___

[issue13392] Writing a pyc file is not atomic under Windows

2011-11-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 12940d9f8031 by Antoine Pitrou in branch 'default': Fix regression under Windows following b75b41237380 (from issue #13392) http://hg.python.org/cpython/rev/12940d9f8031 -- ___ Python tracker

[issue13297] xmlrpc.client could accept bytes for input and output

2011-11-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0175883d9513 by Florent Xicluna in branch 'default': Closes #13297: use bytes type to send and receive binary data through XMLRPC. http://hg.python.org/cpython/rev/0175883d9513 -- nosy: +python-dev resolution: -> fixed stage: patch review

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2011-11-15 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11261] urlopen breaks when data parameter is used.

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

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2011-11-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue2979] use_builtin_types in xmlrpc.server

2011-11-15 Thread Florent Xicluna
Florent Xicluna added the comment: Patch updated with documentation. -- nosy: +eric.araujo stage: patch review -> commit review Added file: http://bugs.python.org/file23695/issue2979_xmlrpc_server_v2.diff ___ Python tracker

[issue13215] multiprocessing Manager.connect() aggressively retries refused connections

2011-11-15 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a patch removing the automatic retry on ECONNREFUSED: I tested it on Linux and other Unices, and it seems to work just fine without this hammering. Note that there's a similar mechanism for Windows (ERROR_PIPE_BUSY), but it seems to be necessar

[issue13386] Document documentation conventions for optional args

2011-11-15 Thread Eric Snow
Eric Snow added the comment: > Me too. (Can you give the #ids of these other issues?) #13012 is the one that I was thinking of (msg144328 specifically). However, I'm sure there was one more recently (which I can't find now). -- ___ Python tracker

[issue13386] Document documentation conventions for optional args

2011-11-15 Thread Eric Snow
Eric Snow added the comment: @msg147671 +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue13405] Add DTrace probes

2011-11-15 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file23696/9fcca74ff413.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue13405] Add DTrace probes

2011-11-15 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: New changeset, with testsuite added. Compile the code adding "--with-dtrace" to your "configure" command. After compiling, test the code with """ LD_LIBRARY_PATH=current_path export LD_LIBRARY_PATH ./python Lib/test/regrtest.py -v test_dtrace.py """ It is

[issue13405] Add DTrace probes

2011-11-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > LD_LIBRARY_PATH=current_path > export LD_LIBRARY_PATH Why do you need LD_LIBRARY_PATH? > If you are inside a Solaris/OpenIndiana Zone, the zone *MUST* have > dtrace usermode permissions. If not, you can not use dtrace inside the > zone and, then, the test wi

[issue13238] Add shell command helpers to subprocess module

2011-11-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: I like Nick's original idea for a handful of convenience functions but want to caution against adding a bunch of tools that start guessing at what you want. Adding automatic wildcard expansion, shell quoting/splitting and whatnot can make the module more

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset d42811b93357 by Victor Stinner in branch 'default': Issue #13374: The Windows bytes API has been deprecated in the os module. Use http://hg.python.org/cpython/rev/d42811b93357 -- ___ Python tracker

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-15 Thread Florent Xicluna
Florent Xicluna added the comment: IIUC, it means that the library/application should not use the bytes API if it intends to be supported on major platforms. -- nosy: +flox ___ Python tracker

[issue13410] String formatting bug in interactive mode

2011-11-15 Thread Jayanth Raman
New submission from Jayanth Raman : With file xx.py: class Foo(object): def __init__(self, x): self.x = x def __long__(self): return long(self.x) def __float__(self): return float(self.x) y = Foo(22) print '%d' % y print '%d' % y Interactive mode: $ python

[issue13391] string.strip Does Not Remove Zero-Width-Space (ZWSP)

2011-11-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Thus strip and isspace are now unusable methods in Python for common use > cases. Please recognize that you haven't demonstrated this at all. U+200B is *not* a character that is common, not even remotely. It's a rare, infrequent, unused character. In additi

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: > IIUC, it means that the library/application should not use the bytes API if > it intends to be supported on major platforms. I think you misunderstand; it does not literally mean that. Instead, it means that the library/application either must not use the b

[issue13248] deprecated in 3.2, should be removed in 3.3

2011-11-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13410] String formatting bug in interactive mode

2011-11-15 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue13411] Hashable memoryviews

2011-11-15 Thread Antoine Pitrou
New submission from Antoine Pitrou : This patch allows hashing of memoryviews, as discussed on python-dev. -- components: Interpreter Core files: memhash.patch keywords: patch messages: 147714 nosy: ncoghlan, pitrou, skrah priority: normal severity: normal stage: patch review status: ope

[issue13411] Hashable memoryviews

2011-11-15 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brian.curtin, tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Alex Regueiro
New submission from Alex Regueiro : Python 2.7 has no knowledge of directory symlinks on Windows 7. Listing a directory symlink does not work, nor does accessing a file within one. This is quite a notable missing feature on Windows 7, where symlinks are becoming increasingly prevalent. --

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith, jason.coombs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue13410] String formatting bug in interactive mode

2011-11-15 Thread Eric V. Smith
Eric V. Smith added the comment: I think this must be a change between 2.5 and 2.6. In 2.5.1 non-debug (Linux) I consistently see: >>> print '%d' % y Traceback (most recent call last): File "", line 1, in TypeError: int argument required In 2.6.5 (Windows via activestate) I see the alternat

[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2011-11-15 Thread Eli Bendersky
Eli Bendersky added the comment: Then it appears to me that Sandro's patch is good and can be committed. -- ___ Python tracker ___ __

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +Windows type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue13388] document hg commit hooks in the devguide

2011-11-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 21758f27f98f by Eli Bendersky in branch 'default': document existing hooks for commit messages mentioning issues. Closes issue 13388 http://hg.python.org/devguide/rev/21758f27f98f -- resolution: -> fixed stage: -> committed/rejected stat

[issue13388] document hg commit hooks in the devguide

2011-11-15 Thread Eli Bendersky
Eli Bendersky added the comment: Committed, with the fix suggested by Éric -- resolution: fixed -> stage: committed/rejected -> status: closed -> open ___ Python tracker ___ _

[issue13410] String formatting bug in interactive mode

2011-11-15 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox, mark.dickinson stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2011-11-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Then it appears to me that Sandro's patch is good and can be committed. The doc patch is good. However, if you start exposing SimpleQueue at the top package level, you have to do it in 3.3 only (since that's a new API), and also mention it somehow in the doc.

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: Python 2.7 is not aware of symlinks and treats them like their targets, so it should be able to list a symlink directory or access a file within one. For example: PS C:\Users\jaraco> cmd /c dir Volume in drive C is system Volume Serial Number is 2455-92A0

[issue13410] String formatting bug in interactive mode

2011-11-15 Thread Florent Xicluna
Florent Xicluna added the comment: With Darwin 10.8.0 x86_64, I confirm the behavior described in first message. $ python2.7 -V Python 2.7.2 $ python2.7 -i xx.py 22 22 >>> TypeError: int() argument must be a string or a number, not 'Foo' >>> '%d' % y '22' >>> '%d' % y TypeError: int() argumen

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Brian Curtin
Brian Curtin added the comment: I think we could still make os.listdir work properly. I'll look into a patch for this. One "problem" here is the testability, since we'd need to rely on the mklink CLI app to create the symlinks, which requires that the calling application (python.exe) has ele

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Alex Regueiro
Alex Regueiro added the comment: What are you running? This is not what I get on Win7 x64, and I have had several other users in ##python on FreeNode confirm this inability. As far as Python is concerned, these dir sym links do not even exist. -- _

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: I should mention that there is third-party symlink support in jaraco.windows (http://pypi.python.org/pypi/jaraco.windows). Just easy_install it, and then use jaraco.windows.filesystem.symlink. If there are features you need for symlink support in jaraco.wind

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Alex Regueiro
Alex Regueiro added the comment: Thanks Bryan, that would be great. The elevated privs problem could potentially be avoided by creating symlinks using the Win32 API directly. As long as the appropiate group policy is set, one does not require admin privs to create symlinks. Perhaps symlink c

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: Brian, I'm still not sure I see the problem with os.listdir. It includes symlinks when listing a dir and traverses them naturally when referencing them as part of a path to listdir. Under what conditions does it fail? --

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Alex Regueiro
Alex Regueiro added the comment: Well, at the very least it's a system-dependent issue, since I've tried out listdir and also file access on my system and some other Windows users'. -- ___ Python tracker

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: Some variables could be a missing privilege or role, or perhaps a UAC restriction. What error do you get when you attempt to invoke os.listdir on a symlink directory? -- ___ Python tracker

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Alex Regueiro
Alex Regueiro added the comment: No error whatsoever. Python just thinks it doesn't exist unfortunately. Same report from other users... -- ___ Python tracker ___ _

[issue12988] IDLE on Win7 crashes when saving to Documents Library

2011-11-15 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset afc716e463a1 by Victor Stinner in branch 'default': Issue #13374: Skip deprecation tests for os.symlink() on Windows XP http://hg.python.org/cpython/rev/afc716e463a1 -- ___ Python tracker

[issue13410] String formatting bug in interactive mode

2011-11-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: A debug build displays "XXX undetected error". An error condition was not correctly cleared, see attached patch. -- keywords: +patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file23698/issue13410.patch ___

  1   2   >