[issue16254] PyUnicode_AsWideCharString() increases string size

2012-10-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: As stated, this is not a bug: there is no memory leak, nor any deviation from documented behavior. You are right that it fills the wstr pointer, by calling PyUnicode_AsUnicodeAndSize in unicode_aswidechar, and then copying the data to a fresh buffer. This i

[issue16254] PyUnicode_AsWideCharString() increases string size

2012-10-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16254] PyUnicode_AsWideCharString() increases string size

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

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2012-10-16 Thread Trent Nelson
Trent Nelson added the comment: This patch (surprisingly) seems to do the job quite nicely: diff -r 1280b38fe583 Lib/test/test_os.py --- a/Lib/test/test_os.py Tue Oct 16 23:14:03 2012 +1000 +++ b/Lib/test/test_os.py Tue Oct 16 21:25:36 2012 + @@ -40,6 +40,20 @@ or (st.st_mti

[issue16238] Automatically remove build directory when build options changed

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

[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2012-10-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: >From the macro posted earlier: Py##child##ArrType_Type.tp_base = &Py##parent2##ArrType_Type; tp_base is *not* PyInt_Type, so I was wrong when I said that the dominant base was int. This is wrong IMO: tp_base should be int, for the type to be correctly

[issue16254] PyUnicode_AsWideCharString() increases string size

2012-10-16 Thread David Beazley
David Beazley added the comment: Maybe it's not a bug, but I still think it's undesirable. Basically, you have a function that allocates a buffer, fills it with data, and allows the buffer to be destroyed. Yet, as a side effect, it allocates a second buffer, fills it, and permanently attac

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-10-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: """To prevent initializing an extension module more than once, we keep a static dictionary 'extensions' keyed by module name (for built-in modules) or by filename (for dynamically loaded modules), containing these modules. """ So there can be only

[issue16254] PyUnicode_AsWideCharString() increases string size

2012-10-16 Thread David Beazley
David Beazley added the comment: Another note: the PyUnicode_AsUTF8String() doesn't leave the UTF-8 encoded byte string behind on the original string object. I got into this thinking that PyUnicode_AsWideCharString() might have similar behavior. -- ___

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-16 Thread Roumen Petrov
Roumen Petrov added the comment: ...Applications should note that the standard PATH to the shell cannot be assumed to be either /bin/sh or /usr/bin/sh, and should be determined by interrogation of the PATH returned by getconf PATH , ensuring that the returned pathname is an absolute pathname a

[issue16256] permissions wrong on Mac doc dir

2012-10-16 Thread Christopher Barker
New submission from Christopher Barker: I just tried to "pip install ipython" and got: error: could not create '/Library/Frameworks/Python.framework/Versions/2.7/share/doc/ipython': Permission denied indeed: $ ls -l /Library/Frameworks/Python.framework/Versions/2.7/share/ total 0 drwxr-xr-x 3

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-16 Thread Ben Rousch
Ben Rousch added the comment: @rpetrov thanks for finding that - I was having trouble hunting down what the standard is. I think you're quoting from http://pubs.opengroup.org/onlinepubs/009695399/utilities/sh.html -- ___ Python tracker

[issue16203] Proposal: add re.fullmatch() method

2012-10-16 Thread Matthew Barnett
Matthew Barnett added the comment: I'm about to add this to my regex implementation and, naturally, I want it to have the same name for compatibility. However, I'm not that keen on "fullmatch" and would prefer "matchall" instead. What do you think? --

[issue16103] sys.stdin.readline 'unsupported' (IDLE 2.7.3, Win7, pythonw)

2012-10-16 Thread Roger Serwy
Roger Serwy added the comment: Terry, your idlelib directory is in an inconsistent state. IDLE 2.7.3 works well on Arch Linux. I rebuilt it from revision 70274d53c1dd. With and without a subprocess, IDLE's sys.stdin.readline works. Let's close this issue and focus on #9290. It's your decision

[issue16250] URLError invoked with reason as filename

2012-10-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: For future reference, this affects 3.2 onwards. It probably makes sense to address this in the same branches in which we plan to address issue 16247 (currently set to 3.3 onwards). -- stage: -> needs patch versions: +Python 3.3 _

[issue16203] Proposal: add re.fullmatch() method

2012-10-16 Thread Tim Peters
Tim Peters added the comment: I like "matchall" fine, but I can't channel Guido on names - he sometimes gets those wrong ;-) -- ___ Python tracker ___ __

[issue16203] Proposal: add re.fullmatch() method

2012-10-16 Thread Guido van Rossum
Guido van Rossum added the comment: re.matchall() would appear to be related to re.findall(), which it isn't. The re2 package has a FullMatch method: http://code.google.com/p/re2/wiki/CplusplusAPI -- ___ Python tracker

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-16 Thread R. David Murray
R. David Murray added the comment: We should do that, then, if /bin/sh doesn't exist. -- nosy: +gregory.p.smith type: crash -> behavior versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker _

[issue16103] sys.stdin.readline 'unsupported' (IDLE 2.7.3, Win7, pythonw)

2012-10-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate status: open -> closed superseder: -> IDLE and Command line present different behavior for sys.stdin ___ Python tracker

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-16 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +asvetlov, chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16203] Proposal: add re.fullmatch() method

2012-10-16 Thread Matthew Barnett
Matthew Barnett added the comment: re2's FullMatch method contrasts with its PartialMatch method, which re doesn't have! -- ___ Python tracker ___ __

[issue16252] bytes and bytearray methods are undocumented

2012-10-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.

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: I wouldn't blame android for this; I doubt Android claims to support whatever standard you are holding it to. It seems simple enough for us to make the default configurable (a public module level constant that anyone can override in their code after importin

[issue16251] pickle special methods are looked up on the instance rather than the type

2012-10-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > It may still break some existing code, though > (especially for people using proxies). I agree this is a significant risk. Before any change gets made, it should be discussed on python-dev (especially if you intend on backporting the change). -- no

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-16 Thread R. David Murray
R. David Murray added the comment: Well, posix; but I was wrong about what posix required, as Roumen pointed out. -- ___ Python tracker ___ __

[issue16251] pickle special methods are looked up on the instance rather than the type

2012-10-16 Thread Eric Snow
Eric Snow added the comment: > Before any change gets made, it should be discussed on python-dev > (especially if you intend on backporting the change). Agreed. -- ___ Python tracker __

[issue16203] Proposal: add re.fullmatch() method

2012-10-16 Thread Guido van Rossum
Guido van Rossum added the comment: But my other argument stands. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue16203] Proposal: add re.fullmatch() method

2012-10-16 Thread Matthew Barnett
Matthew Barnett added the comment: OK, in order to avoid bikeshedding, "fullmatch" it is. -- ___ Python tracker ___ ___ Python-bugs-li

[issue16257] test_socket.test_create_connection tests for wrong errno on Solaris

2012-10-16 Thread Trent Nelson
New submission from Trent Nelson: == FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer) -- Traceback (most recent call last): File "/ho

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2012-10-16 Thread Trent Nelson
New submission from Trent Nelson: == ERROR: test_strxfrm (test.test_locale.TestEnUSCollation) -- Traceback (most recent call last): File "/home/cpython/builds

[issue16248] Security bug in tkinter allows for untrusted code execution.

2012-10-16 Thread Ramchandra Apte
Ramchandra Apte added the comment: I made many mistakes in the original bug report. Here is a fixed one: Because Lib/tkinter/__init__.py:1801 uses exec to execute code from a file, it has a security bug. It searches for the file in the home dir. Apparently, on my system, the $HOME variable is

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2012-10-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.

[issue16257] test_socket.test_create_connection tests for wrong errno on Solaris

2012-10-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.

[issue16259] Replace exec() in test.regrtest with __import__

2012-10-16 Thread Ramchandra Apte
New submission from Ramchandra Apte: In Lib/test/regrtest.py:1336 , exec is used to import an module. I think it could be replaced with an __import__ call. -- components: Library (Lib) messages: 173126 nosy: ramchandra.apte priority: normal severity: normal status: open title: Replace e

[issue12913] Add a debugging howto

2012-10-16 Thread Todd Rovito
Todd Rovito added the comment: I think this is an excellent idea. How about putting in some advanced debugging with IDLE? For example I have read somewhere that IDLE lets you set break points but the documentation for IDLE OS not that clear on debugging. -- nosy: +Todd.Rovito __

[issue16259] Replace exec() in test.regrtest with __import__

2012-10-16 Thread Eric Snow
Eric Snow added the comment: Rather, importlib.import_module(). :) -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list ma

[issue12913] Add a debugging howto

2012-10-16 Thread Ramchandra Apte
Ramchandra Apte added the comment: Right-click to open a menu in which you can set a breakpoint. I don't think debugging in IDLE needs a tutorial. (except the setting breakpoint thing should be documented. -- nosy: +ramchandra.apte ___ Python tracker

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2012-10-16 Thread Larry Hastings
Larry Hastings added the comment: You're a sneaky, naughty bunny. "posix._have_functions" indeed! I guess your back was to the wall. 1) If I follow your code correctly, when one has utimensat, the assertLess calls using _t consider st0.st_mtime_ns < st1.st_mtime_ns even if the left operand i

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2012-10-16 Thread Trent Nelson
Trent Nelson added the comment: Thanks for the feedback Larry; yeah that patch definitely wasn't intended to be "production quality" -- more of a proof of concept. I agree with your points, they'll be factored into the next patch. However, I'm absolutely baffled by the Solaris 10 failure. Th

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2012-10-16 Thread Trent Nelson
Trent Nelson added the comment: Oh, and another "quirk" I noticed yesterday. I usually religiously disable atime on all my filesystems. For whatever reason, it's not disabled on this Solaris 10 box. Turns out os.stat() was updating st_atime, which kind of throws a spanner in the works for a

[issue16160] subclassing types.SimpleNamespace does not work

2012-10-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset c5124145e79e by Eric Snow in branch '3.3': Close #16160: Subclass support now works for types.SimpleNamespace. Thanks to RDM for noticing. http://hg.python.org/cpython/rev/c5124145e79e New changeset 47b9732696eb by Eric Snow in branch 'default': m

[issue16256] permissions wrong on Mac doc dir

2012-10-16 Thread Ned Deily
Changes by Ned Deily : -- assignee: ronaldoussoren -> ned.deily nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-16 Thread Ned Deily
Ned Deily added the comment: I'm still not keen on working around a Tk crash by modifying IDLE especially when we know exactly which Tk change set caused the regression. On the other hand, I sympathize with Kevin regarding the complexity of trying to track down and fix things involving event

[issue10836] urllib.request.urlretrieve calls URLError with 3 args

2012-10-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: @Ezio, regarding msg172988. That's embarrassing. It should be fixed soon. Review on the patch, how about having the strerror and filename from the exception? -raise URLError(e.errno, e.strerror, e.filename) +raise URLError(e.strerror,

<    1   2