[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,

[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

[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

[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

[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

[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 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

[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

[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 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 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

[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.

[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.

[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 Trent Nelson
New submission from Trent Nelson: == ERROR: test_strxfrm (test.test_locale.TestEnUSCollation) -- Traceback (most recent call last): File "/home/cpython/builds

[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

[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

[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

[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 __

[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 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 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

[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.

[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 ___ __

[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:

[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 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 _

[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

[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 ___ __

[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 _

[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

[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? --

[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

[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 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

[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. -- ___

[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: 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

[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

[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

[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

[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

[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 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

[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: Android really should not be breaking the standards that way. We do want to support Android, but have you submitted a bug report to them? -- nosy: +r.david.murray ___ Python tracker

[issue15744] missing tests for {RawIO,BufferedIO,TextIO}.writelines

2012-10-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed a modified version of your patch. Thank you ! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue13572] import _curses fails because of UnicodeDecodeError('utf8' codec can't decode byte 0xb5 ...') on ARM Ubuntu 3.x

2012-10-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I cannot reproduce it with Python 3.3 hg head on my ARM buildbot. _curses builds and imports just fine now. -- ___ Python tracker ___ ___

[issue15744] missing tests for {RawIO,BufferedIO,TextIO}.writelines

2012-10-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5b062bb56037 by Antoine Pitrou in branch '2.7': Also add tests for TextIOWrapper.writelines() (issue #15744). http://hg.python.org/cpython/rev/5b062bb56037 -- ___ Python tracker

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

2012-10-16 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

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

[issue15744] missing tests for {RawIO,BufferedIO,TextIO}.writelines

2012-10-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c204a61bd79 by Antoine Pitrou in branch '3.2': Also add tests for TextIOWrapper.writelines() (issue #15744). http://hg.python.org/cpython/rev/4c204a61bd79 New changeset 2efcaec45697 by Antoine Pitrou in branch '3.3': Merge for issue #15744: add tes

[issue13220] print function unable while multiprocessing.Process is being run

2012-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: *nix has the same difference of behavior between interpreter and IDLE shell. With issue9290 patch the "function f" line also printed. And then the script hangs. -- nosy: +serhiy.storchaka versions: +Python 2.7, Python 3.3, Python 3.4 ___

[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: There doesn't appear to be on FreeBSD. Although, on Solaris, -D__EXTENSIONS__ opens up access to utimensat() (at least on 11), so I'll factor that into configure.ac. -- ___ Python tracker

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

2012-10-16 Thread Ben Rousch
New submission from Ben Rousch: The subprocess.Popen function uses /bin/sh in Unix environments. Android is detected as a Unix environemnt, but has moved that executable to /system/bin/sh. This can be worked around by adding a parameter "executable='/system/bin/sh'" to the call, but it is impr

[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: Is there a different utime family function on these platforms that *can* write atime/mtime with ns resolution? -- ___ Python tracker ___ __

[issue15744] missing tests for {RawIO,BufferedIO,TextIO}.writelines

2012-10-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: needs patch -> patch review versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list ma

[issue1529353] Squeezer - squeeze large output in the interpreter

2012-10-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-li

[issue16105] Pass read only FD to signal.set_wakeup_fd

2012-10-16 Thread Felipe Cruz
Felipe Cruz added the comment: I've followed latest suggestions. Test and code updated. -- Added file: http://bugs.python.org/file27598/issue16105_v4.patch ___ Python tracker __

[issue16254] PyUnicode_AsWideCharString() increases string size

2012-10-16 Thread David Beazley
David Beazley added the comment: I should quickly add, is there any way to simply have this function not keep the wchar_t buffer around afterwards? That would be great. -- ___ Python tracker

[issue10909] thread hang, possibly related to print

2012-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is this issue reproduced now, with Python 2.7.3+? Is this issue reproduced with issue9290 patch? -- nosy: +serhiy.storchaka ___ Python tracker __

[issue16254] PyUnicode_AsWideCharString() increases string size

2012-10-16 Thread David Beazley
New submission from David Beazley: The PyUnicode_AsWideCharString() function is described as creating a new buffer of type wchar_t allocated by PyMem_Alloc() (which must be freed by the user). However, if you use this function, it causes the size of the original string object to permanently

[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: I've figured out what the primary problem is on these platforms: os.stat() returns st_mtime and st_atime values with nanosecond resolution, but without a corresponding utimensat(), we can only affect time with microsecond precision via utimes(). Therefore, the

[issue16252] bytes and bytearray methods are undocumented

2012-10-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: > I couldn't find any doc for bytes.join, etc. One of the contributing factors to this is that bytes doesn't have its own class entry in the same way that, for example, list, dict, and memoryview have. This creates a stumbling block for readers because they ha

[issue7512] shutil.copystat may fail EOPNOTSUPP

2012-10-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, thanks. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ ___ Python

[issue9290] IDLE and Command line present different behavior for sys.stdin

2012-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Unfortunately we have not a unittest framework for IDLE yet. After implementing issue15392 I will make tests for these proxies. -- ___ Python tracker

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

2012-10-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm marking this as a bug rather than a feature since it is a deviation > from the specification for special methods. It may still break some existing code, though (especially for people using proxies). -- nosy: +pitrou

[issue5223] infinite recursion in PyErr_WriteUnraisable

2012-10-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, so I would say this whole issue is out of date now, since maintained branches don't show the issue. -- resolution: -> out of date stage: patch review -> committed/rejected status: open -> closed ___ Python track

[issue16253] Docs for PyArg_ParseTupleAndKeywords say it doesn't accept nested tuples

2012-10-16 Thread Roger Upole
New submission from Roger Upole: The docs for this function state "Nested tuples cannot be parsed when using keyword arguments!" but this restriction was removed some time ago. -- assignee: docs@python components: Documentation messages: 173081 nosy: docs@python, rupole priority: normal

[issue15958] bytes.join() should allow arbitrary buffer objects

2012-10-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > However check at top of Objects/stringlib/join.h does not protect from using > the file with asciilib or ucs1lib. I'm not sure that's a problem. Someone would have to go out of their way to use join.h with only UCS1 unicode strings. Also tests would probably

[issue15958] bytes.join() should allow arbitrary buffer objects

2012-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well done. However check at top of Objects/stringlib/join.h does not protect from using the file with asciilib or ucs1lib. -- ___ Python tracker ___

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

2012-10-16 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- title: some special methods are looked up on the instance rather than the type -> pickle special methods are looked up on the instance rather than the type ___ Python tracker

[issue16252] bytes and bytearray methods are undocumented

2012-10-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, in the SSL socket docs, I listed the supported methods explicitly (http://docs.python.org/dev/library/ssl.html#ssl-sockets). I think it makes things clearer for the reader. -- ___ Python tracker

[issue16252] bytes and bytearray methods are undocumented

2012-10-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, right. I guess a hyperlink to those methods wouldn't hurt, though :) -- ___ Python tracker ___ _

[issue16252] bytes and bytearray methods are undocumented

2012-10-16 Thread Ezio Melotti
Ezio Melotti added the comment: http://docs.python.org/dev/library/stdtypes.html#bytes-and-bytearray-operations """ Due to the common use of ASCII text as the basis for binary protocols, bytes and bytearray objects provide almost all methods found on text strings, with the exceptions of: """

[issue15958] bytes.join() should allow arbitrary buffer objects

2012-10-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue15958] bytes.join() should allow arbitrary buffer objects

2012-10-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Done now. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16252] bytes and bytearray methods are undocumented

2012-10-16 Thread Antoine Pitrou
New submission from Antoine Pitrou: Everything is in the title. I couldn't find any doc for bytes.join, etc. (while str methods are documented in library/stdtypes.html#string-methods). -- assignee: docs@python components: Documentation messages: 173074 nosy: docs@python, pitrou priority

[issue9290] IDLE and Command line present different behavior for sys.stdin

2012-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with the goal. We need an automated test for these proxies. -- nosy: +terry.reedy ___ Python tracker ___

[issue15958] bytes.join() should allow arbitrary buffer objects

2012-10-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16285c1b4dda by Antoine Pitrou in branch 'default': Issue #15958: bytes.join and bytearray.join now accept arbitrary buffer objects. http://hg.python.org/cpython/rev/16285c1b4dda -- nosy: +python-dev ___

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

2012-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Roger, you are partially right -- there are changes, but they were intentional. I updated the idlelib part of my installation to match the repository on July 9 to incorporate the _RPCFile wrapping of of the three stdio files, including this: -sys.stdi

[issue13572] import _curses fails because of UnicodeDecodeError('utf8' codec can't decode byte 0xb5 ...') on ARM Ubuntu 3.x

2012-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are three patches. I think one of them (or any) should fix the issue. The question is what solution returns more suitable result for non-ascii key names. -- keywords: +patch Added file: http://bugs.python.org/file27595/curses_getkey_utf8_surrog

[issue15958] bytes.join() should allow arbitrary buffer objects

2012-10-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I added new comments. :-( Thanks. I think I will commit after adding the missing #undef :-) -- ___ Python tracker ___ ___

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

2012-10-16 Thread Eric Snow
Changes by Eric Snow : -- title: object.__reduce__() -> some special methods are looked up on the instance rather than the type ___ Python tracker ___ __

[issue16251] object.__reduce__()

2012-10-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: pickle and _pickle also look on the instance for __reduce__ and __reduce_ex__. -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue15958] bytes.join() should allow arbitrary buffer objects

2012-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I added new comments. :-( -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16251] object.__reduce__()

2012-10-16 Thread Eric Snow
New submission from Eric Snow: In Objects/typeobject.c, reduce_2() makes _PyObject_GetAttrId() calls to pull some methods for the object in question. This is a problem when the object's type defines __getattr__() or __getattribute__() and returns something like None when the attribute is not

[issue13572] import _curses fails because of UnicodeDecodeError('utf8' codec can't decode byte 0xb5 ...') on ARM Ubuntu 3.x

2012-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Barry, you can reproduce it? The issue obviously in PyUnicode_FromString() call from PyCursesWindow_GetKey(). We can try latin1 encoding, locale encoding or utf-8 with surrogateescape error handler. -- nosy: +serhiy.storchaka status: pending -> open

[issue15958] bytes.join() should allow arbitrary buffer objects

2012-10-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a new patch checking that the sequence size didn't change. I also refactored the join() implementation into a shared function in stringlib. -- Added file: http://bugs.python.org/file27594/bytes_join_buffers3.patch __

[issue5223] infinite recursion in PyErr_WriteUnraisable

2012-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On 2.7 prints two 42, on 3.x fails (RuntimeError: maximum recursion depth exceeded in comparison) on first call. 2.6 out of date for non-security fix. -- nosy: +serhiy.storchaka status: pending -> open ___ Python t

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

2012-10-16 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue2263] struct.pack() + numpy int raises SystemError

2012-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: FYI Py_TPFLAGS_INT_SUBCLASS already not used in Python 3.x. -- nosy: +serhiy.storchaka ___ Python tracker ___ _

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

2012-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is more than 6 months old with no activity. -- nosy: +serhiy.storchaka status: pending -> open ___ Python tracker ___ __

[issue16250] URLError invoked with reason as filename

2012-10-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: > raise URLError('local file error: not on local host') I should also point out that URLError invocations with formats like the above already do occur in Lib/urllib/request.py. For example: raise URLError('ftp error: no host given') exc = URLError('ft

[issue16250] URLError invoked with reason as filename

2012-10-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue16250] URLError invoked with reason as filename

2012-10-16 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2012-10-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: For tracking purposes, I created issue 16250 for what you observed above, which as you said is related to but not the same as Nick's issue 16247. -- ___ Python tracker ___

[issue16250] URLError invoked with reason as filename

2012-10-16 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to fix invocations of URLError so that "reasons" are not passed in for the "filename" argument of the URLError constructor. Ezio found and described this issue when commenting on issue 10836: http://bugs.python.org/issue10836#msg172988 In mo

[issue7512] shutil.copystat may fail EOPNOTSUPP

2012-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tests added in issue14662. This issue can be closed. -- nosy: +serhiy.storchaka status: pending -> open ___ Python tracker ___

[issue16249] unicode name accepts a punctuation glyph

2012-10-16 Thread Ezio Melotti
Ezio Melotti added the comment: The characters with the Other_ID_Continue property are also included, i.e.: 00B7 ; Other_ID_Continue # Po MIDDLE DOT 0387 ; Other_ID_Continue # Po GREEK ANO TELEIA 1369..1371; Other_ID_Continue # No [9] ETHIOPIC DIGIT ONE..ETHIO

[issue16249] unicode name accepts a punctuation glyph

2012-10-16 Thread julien tayon
julien tayon added the comment: http://www.fileformat.info/info/unicode/char/b7/index.htm the unicode category is Po (Ponctuation). Empirically, it cannot start a variable name so according to the rules given in the lexical analyser it should be one of : Mn, Mc, Nd, Pc Which is not the case

  1   2   >