[issue19842] selectors: refactor BaseSelector implementation

2013-12-01 Thread Charles-François Natali
Charles-François Natali added the comment: > Guido van Rossum added the comment: > > LGTM, although I wish that you had time to implement the comment "TODO: > Subclasses can probably optimize this even further" rather than just > shuffling the existing code around. :-) I will look a this, but

[issue19840] The is no way to tell shutil.move to ignore metadata

2013-12-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed

2013-12-01 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: fixed -> stage: committed/rejected -> commit review status: closed -> open ___ Python tracker ___ __

[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed

2013-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset efcdf2a70f2a by Gregory P. Smith in branch '3.3': Undo supposed fix for Issue #15798 until I understand why this is http://hg.python.org/cpython/rev/efcdf2a70f2a New changeset ddbf9632795b by Gregory P. Smith in branch 'default': Undo supposed fix f

[issue18885] handle EINTR in the stdlib

2013-12-01 Thread Charles-François Natali
Charles-François Natali added the comment: Just for the record, I was initially in favor of recomputing the timeout and retrying upon EINTR, but Guido prefers to return empty lists, and since that's a better compromise than the current situation (I've seen *many* people complaining on EINTR poppi

[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed

2013-12-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19840] The is no way to tell shutil.move to ignore metadata

2013-12-01 Thread Claudiu.Popa
Changes by Claudiu.Popa : -- nosy: +Claudiu.Popa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19840] The is no way to tell shutil.move to ignore metadata

2013-12-01 Thread Claudiu.Popa
Claudiu.Popa added the comment: Hi. Here's a patch which adds `copy_function` parameter to `shutil.move`. -- keywords: +patch Added file: http://bugs.python.org/file32917/shutil.patch ___ Python tracker ___

[issue19831] tracemalloc: stop the module later at Python shutdown

2013-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset cc8953ea3c7e by Victor Stinner in branch 'default': Closes #19831: Stop tracemalloc later at Python shutdown to be able to use http://hg.python.org/cpython/rev/cc8953ea3c7e -- nosy: +python-dev resolution: -> fixed stage: -> committed/reje

[issue5885] uuid.uuid1() is too slow

2013-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Instead hexadecimals in _long_from_uuid_t you can use _PyLong_FromByteArray. However adding new C implemented module has hight cost. I doubt that the speed up of UUID generation is worth this cost. -- nosy: +serhiy.storchaka

[issue19834] Unpickling exceptions pickled by Python 2

2013-12-01 Thread Walter Dörwald
Walter Dörwald added the comment: Here's an updated version of the patch, addressing most of Alexandre's comments. -- Added file: http://bugs.python.org/file32918/python-2-exception-pickling-2.diff ___ Python tracker

[issue19842] selectors: refactor BaseSelector implementation

2013-12-01 Thread STINNER Victor
STINNER Victor added the comment: > I think that's a cleaner design. For common containers like Sequence or Mapping, ABC are useful. But I don't expect new implementations of BaseSelector. Is it just for purity? :-p -- nosy: +haypo ___ Python tracke

[issue19842] selectors: refactor BaseSelector implementation

2013-12-01 Thread STINNER Victor
STINNER Victor added the comment: (I'm not opposed to the change, I'm just asking.) -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue19776] Provide expanduser() on Path objects

2013-12-01 Thread Claudiu.Popa
Claudiu.Popa added the comment: Hello. Here's a patch for `expanduser()`. -- keywords: +patch nosy: +Claudiu.Popa Added file: http://bugs.python.org/file32919/pathlib.patch ___ Python tracker __

[issue19842] selectors: refactor BaseSelector implementation

2013-12-01 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: In those protocols where client and server exchange a lot of commands and responses in a single session, such as FTP, modify() is going to be called many times. I don't have actual numbers but I remember that using epoll.modify() was one of those relatively

[issue19848] Misleading error on creating already existed symlink

2013-12-01 Thread Vajrasky Kok
New submission from Vajrasky Kok: Steps to reproduce the bug: 1. Download cute cat picture from internet. Name it CuteCat.jpg. >>> import os >>> os.listdir('.') ['CuteCat.jpg'] 2. Create symbolic link. >>> os.symlink('CuteCat.jpg', 'Aaawww.lnk') >>> os.listdir('.') ['Aaawww.lnk', 'CuteCat.jpg'

[issue19848] Misleading error on creating already existed symlink

2013-12-01 Thread Vajrasky Kok
Vajrasky Kok added the comment: Python 2.7 on Windows does not have symlink. Python 3.3 on Windows got the same symptom as Python 3.4. Do we need to fix it? -- ___ Python tracker __

[issue19842] selectors: refactor BaseSelector implementation

2013-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset f48f302f54aa by Charles-François Natali in branch 'default': Issue #19842: Refactor BaseSelector to make it an actual usable ABC. http://hg.python.org/cpython/rev/f48f302f54aa -- nosy: +python-dev ___ Pyt

[issue19842] selectors: refactor BaseSelector implementation

2013-12-01 Thread Charles-François Natali
Charles-François Natali added the comment: > STINNER Victor added the comment: > >> I think that's a cleaner design. > > For common containers like Sequence or Mapping, ABC are useful. But I don't > expect new implementations of BaseSelector. Is it just for purity? :-p There are already impleme

[issue19506] subprocess.communicate() should use a memoryview

2013-12-01 Thread Charles-François Natali
Charles-François Natali added the comment: Impressive speedup :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue19837] Wire protocol encoding for the JSON module

2013-12-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The problem with adding new APIs with different names to the JSON > module is that it breaks symmetry with other wire protocols. The > quartet of module level load, loads, dump and dumps functions has > become a de facto standard API for wire protocols. Breaki

[issue18885] handle EINTR in the stdlib

2013-12-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Guido's point was that it is already a bug in code to not check the elapsed > time after a select call returns rather than assuming the full timeout time > has elapsed. I don't understand how it's a bug. You're assuming select() has unreliable timing, but it d

[issue10803] ctypes: better support of bytearray objects

2013-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is preliminary patch which makes bytearray support in ctypes better. -- keywords: +patch nosy: +amaury.forgeotdarc, belopolsky, meador.inge, serhiy.storchaka stage: -> patch review versions: +Python 3.5 -Python 3.2 Added file: http://bugs.python.

[issue18885] handle EINTR in the stdlib

2013-12-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: On dim., 2013-12-01 at 08:14 +, Charles-François Natali wrote: > So really, I'm like Gregory: I don't care which solution we chose, but > I just don't want to have to let the user handle EINTR. Well this is wishing thinking, since by returning an empty list

[issue17397] ttk::themes missing from ttk.py

2013-12-01 Thread klappnase
klappnase added the comment: > Are 'unloaded but available' themes really available to use? Yes. > Does Style.theme_use(available_name) work? Yes. > If so, it seems to me that available_name should > be reported by theme_names. I agree, one should think so. I am not 100% certain about that,

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2013-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Arfrever. Does this patch fix the test? -- Added file: http://bugs.python.org/file32922/test_json_surrogates.patch ___ Python tracker __

[issue19804] test_uuid.TestUUID.test_find_mac() fails

2013-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Where ifconfig is located? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue16549] regression: -m json.tool module is broken

2013-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This doesn't look related to json tests. Are there other tests failures with similar symptoms (_assert_python is None)? -- ___ Python tracker ___

[issue18885] handle EINTR in the stdlib

2013-12-01 Thread Charles-François Natali
Charles-François Natali added the comment: > Well this is wishing thinking, since by returning an empty list you > force the user to handle EINTR - just in a different way. I know that returning an empty list changes the semantics: I just think that's better - or not as bad - than the current po

[issue18885] handle EINTR in the stdlib

2013-12-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I know that returning an empty list changes the semantics: I just > think that's better - or not as bad - than the current possibility of > having any single piece of code possibly die upon EINTR. > > If you want to implement retry with timeout re-computation,

[issue19849] selectors behaviour on EINTR undocumented

2013-12-01 Thread Antoine Pitrou
New submission from Antoine Pitrou: Selector.Select() may return an empty list when interrupted, but the doc doesn't say so. The reader will probably trust the statement that """If timeout is None, the call will block until a monitored file object becomes ready""". -- assignee: docs@py

[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

2013-12-01 Thread Charles-François Natali
New submission from Charles-François Natali: asyncio makes heavy use of SIGCHLD for subprocesses. A consequence of this if that a lot of syscalls can fail with EINTR (see e.g. issue #18885). The attached patch uses SA_RESTART (through signal.siginterrupt()) to limit EINTR occurrences, e.g. : "

[issue19849] selectors behaviour on EINTR undocumented

2013-12-01 Thread Charles-François Natali
Charles-François Natali added the comment: How about this? -- keywords: +needs review, patch stage: -> patch review Added file: http://bugs.python.org/file32924/selectors_select_signal.diff ___ Python tracker

[issue19849] selectors behaviour on EINTR undocumented

2013-12-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue19849] selectors behaviour on EINTR undocumented

2013-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset b0c4c7f04f05 by Charles-François Natali in branch 'default': Issue #19849: selectors: Document the possibility of early select() wakeup upon http://hg.python.org/cpython/rev/b0c4c7f04f05 -- nosy: +python-dev

[issue19849] selectors behaviour on EINTR undocumented

2013-12-01 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.2 -Python 3.4 ___ Python tracker __

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-12-01 Thread Charles-François Natali
Changes by Charles-François Natali : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1611154] os.path.exists("file/") failure on Solaris 9

2013-12-01 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> rejected stage: patch review -> committed/rejected status: pending -> closed ___ Python tracker ___

[issue19848] Misleading error on creating already existed symlink

2013-12-01 Thread Vajrasky Kok
Vajrasky Kok added the comment: This is the patch for Python 3.3. -- Added file: http://bugs.python.org/file32925/fix_python_33_windows_create_existed_symlink.patch ___ Python tracker _

[issue19851] imp.reload problem with submodule

2013-12-01 Thread Ronald Oussoren
New submission from Ronald Oussoren: To reproduce: * create a package with the following structure: pkg/ __init__.py _sub.py * __init__.py contains: from pkg._sub import * * the contents of _sub.py is not important * in a python shell do: >>> import pkg._sub as s >>> imp

[issue19804] test_uuid.TestUUID.test_find_mac() fails

2013-12-01 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: /bin/ifconfig (/bin is in ${PATH}.) -- ___ Python tracker ___ ___ Python-bugs-l

[issue19828] test_site fails with -S flag

2013-12-01 Thread Vajrasky Kok
Vajrasky Kok added the comment: Before patch: $ ./python -S Lib/test/test_site.py Traceback (most recent call last): File "Lib/test/test_site.py", line 28, in raise unittest.SkipTest("importation of site.py suppressed") unittest.case.SkipTest: importation of site.py suppressed After patc

[issue19804] test_uuid.TestUUID.test_find_mac() fails

2013-12-01 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: This test passes (on all branches) after adding "/bin" to hardcoded list in uuid._find_mac(). Minimal solution: Add "/bin" and "/usr/bin" to that list. Better solution: Search ${PATH}+['/sbin/', '/usr/sbin'] for "ifconfig". In >=3.2 os.get

[issue19775] Provide samefile() on Path objects

2013-12-01 Thread Vajrasky Kok
Vajrasky Kok added the comment: Updated grammar according to Arfrever's review. Thanks! Anyway, should samefile accepts only string? Or should it accept Path object as well? -- Added file: http://bugs.python.org/file32927/pathlib_samefile_v2.patch _

[issue16549] regression: -m json.tool module is broken

2013-12-01 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: No other tests fail in this way. -- ___ Python tracker ___ ___ Python-bugs-list

[issue19852] Misplaced private API method in pathlib.py

2013-12-01 Thread Vajrasky Kok
New submission from Vajrasky Kok: In class Path, line 942, you have this comment: # Public API but down there, in line 1048, you have this private method: def _raw_open(self, flags, mode=0o777): """ Open the file pointed by this path and return a file descriptor, as

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2013-12-01 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: test_json_surrogates.patch fixes these tests. -- ___ Python tracker ___ ___ Pyt

[issue18994] Inside fcntl module, we does not check the return code of all_ins function

2013-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 84148898a606 by Charles-François Natali in branch 'default': Issue #18994: Add a missing check for a return value in fcntmodule. Patch by http://hg.python.org/cpython/rev/84148898a606 -- nosy: +python-dev ___

[issue19848] Misleading error on creating already existed symlink

2013-12-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue18994] Inside fcntl module, we does not check the return code of all_ins function

2013-12-01 Thread Charles-François Natali
Charles-François Natali added the comment: Vajrasky, thanks for the patch! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue19851] imp.reload problem with submodule

2013-12-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19853] Add support for Bitrig

2013-12-01 Thread Martin Natano
New submission from Martin Natano: This patch adds support for Bitrig to 2.7. -- components: Build files: cpython2.7-bitrig.patch keywords: patch messages: 204930 nosy: Martin.Natano priority: normal severity: normal status: open title: Add support for Bitrig versions: Python 2.7 Added f

[issue19854] Add support for Bitrig to 3.4

2013-12-01 Thread Martin Natano
New submission from Martin Natano: This patch adds support for Bitrig to 3.4. -- components: Build files: cpython3.4-bitrig.patch keywords: patch messages: 204931 nosy: Martin.Natano priority: normal severity: normal status: open title: Add support for Bitrig to 3.4 versions: Python 3.4

[issue19853] Add support for Bitrig to 2.7

2013-12-01 Thread Martin Natano
Changes by Martin Natano : -- title: Add support for Bitrig -> Add support for Bitrig to 2.7 ___ Python tracker ___ ___ Python-bugs-li

[issue19855] uuid._find_mac fails if an executable not in /sbin or /usr/sbin

2013-12-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The uuid._find_mac() function tests that executable file exist before run it. First it tries to run unmodified executable name (i.e. from $PATH) and then from the /sbin or /usr/sbin directories. However test for unmodified executable name is wrong, actuall

[issue19855] uuid._find_mac fails if an executable not in /sbin or /usr/sbin

2013-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Initially the issue was reported in msg204881. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue19804] test_uuid.TestUUID.test_find_mac() fails

2013-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is different issue. See issue19855. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19804] test_uuid.TestUUID.test_find_mac() fails

2013-12-01 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The test currently uses: @unittest.skipUnless(os.name == 'posix', 'requires Posix') Maybe this test should be skipped also on posix systems with ifconfig not available at all? -- ___ Python trac

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2013-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 02d186e3af09 by Serhiy Storchaka in branch '2.7': Fixed JSON tests on wide build when ran from *.pyc files (issue #11489). http://hg.python.org/cpython/rev/02d186e3af09 -- ___ Python tracker

[issue10976] json.loads() raises TypeError on bytes object

2013-12-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Bike-shedding: instead of jsonb, make it json.bytes. Else, it may get confused with other protocols, such as "JSONP" or "BSON". -- nosy: +loewis ___ Python tracker __

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2013-12-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue18716] Deprecate the formatter module

2013-12-01 Thread Brett Cannon
Brett Cannon added the comment: On Sun, Dec 1, 2013 at 12:36 AM, Larry Hastings wrote: > > Larry Hastings added the comment: > > They're not on Python 3. I think we should keep the deprecation and let > them roll their own when they upgrade. It's not like the module provides > much functionali

[issue19837] Wire protocol encoding for the JSON module

2013-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree that adding a new module is very bad idea. I think that the reviving the encoding parameter is a lest wrong way. json.dumps() should return bytes when the encoding argument is specifiead and str otherwise. json.dump() should write binary data when th

[issue19853] Add support for Bitrig to 2.7

2013-12-01 Thread Brett Cannon
Brett Cannon added the comment: To prevent lesser-used OSs from being poorly serviced by Python we do not accept patches to add support for them. We suggest alternative OSs keep their own set of patches external to Python for ease of updating. We have mirrors on both bitbucket and github if yo

[issue19854] Add support for Bitrig to 3.4

2013-12-01 Thread Brett Cannon
Brett Cannon added the comment: As I said on the similar bug for adding support in Python 2.7: To prevent lesser-used OSs from being poorly serviced by Python we do not accept patches to add support for them. We suggest alternative OSs keep their own set of patches external to Python for ease

[issue19848] Misleading error on creating already existed symlink

2013-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are several similar issues on the tracker. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue19848] Misleading error on creating already existed symlink

2013-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue16074. -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> bad error message in os.rename ___ Python tracker __

[issue16074] bad error message in os.rename

2013-12-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +3.3regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

2013-12-01 Thread Guido van Rossum
Guido van Rossum added the comment: Do you haven an example of a program using asyncio that fails because of this? Adding gps because he seems to agree that EINTR must die. -- nosy: +gregory.p.smith ___ Python tracker

[issue19828] test_site fails with -S flag

2013-12-01 Thread R. David Murray
R. David Murray added the comment: That's not relevant, though. In fact, the existing error message for running the module directly is exactly correct: the entire test module fails to run, which is a more accurate reflection of the reality than showing all of the individual tests as skipped.

[issue19839] bz2: regression wrt supporting files with trailing garbage after EOF

2013-12-01 Thread Nadeem Vawda
Nadeem Vawda added the comment: I'll have a patch for this in the next couple of days (and a similar one for the lzma module, which has the same issue (even though it's not a regression in that case)). In the meanwhile, you can work around this by feeding the compressed data to a BZ2Decompressor

[issue19804] test_uuid.TestUUID.test_find_mac() fails

2013-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: When someone will report about failures on such systems. -- ___ Python tracker ___ ___ Python-bugs

[issue19856] Possible bug in shutil.move() on Windows

2013-12-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Perhaps following code fails on Windows (while successes on Linux): import os, shutil os.makedirs('foo') os.makedirs('bar/boo') shutil.move('foo/', 'bar/') However shutil.move('foo', 'bar/') and shutil.move('foo\\', 'bar/') should work. -- compone

[issue18885] handle EINTR in the stdlib

2013-12-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: I do not consider this a feature; that EINTR is exposed as an exception from the API is a bug. But Larry is the only one who can actually make that decision as the 3.4 release manager (+nosy'd). > by returning an empty list you force the user to handle EINT

[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

2013-12-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: It sounds like doing this is fine (as Glyph suggests in the email thread) but it isn't magically going to solve all EINTR problems, just reduce the number of calls that could encounter them. http://man7.org/linux/man-pages/man7/signal.7.html see the "Interru

[issue6477] Pickling of NoneType raises PicklingError

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I thought it over. I don't think the fix is appropriate for 2.x, as it seems closer to being an extra feature than a bug fix. Thanks Antoine for calling me out on this one. -- resolution: -> wont fix stage: patch review -> committed/rejected sta

[issue19100] Use backslashreplace in pprint

2013-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Any review? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue18885] handle EINTR in the stdlib

2013-12-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I do not consider this a feature; that EINTR is exposed as an > exception from the API is a bug. select() currently works as specified; you are proposing a compatibility-breaking change to the API, not a bugfix. We're left with the fact that the API is inconv

[issue18897] Illegal instruction at Python-2.7.5/Modules/_sre.c:1173

2013-12-01 Thread Martin Mokrejs
Martin Mokrejs added the comment: The issue could have been caused the malfunctioning memory or CPU. http://bugs.python.org/issue18843#msg204954 -- ___ Python tracker ___ ___

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-12-01 Thread Martin Mokrejs
Martin Mokrejs added the comment: Hi, I think I should report back what I found on the hardware side. While memory testing tools like memtest86+ and other did not find any error, the built in Dell ePSA test suite likely does compute a checksum of tested memory regions. It reported some addre

[issue18845] 2.7.5-r2: Fatal Python error: Segmentation fault

2013-12-01 Thread Martin Mokrejs
Martin Mokrejs added the comment: The issue could have been caused the malfunctioning memory or CPU. http://bugs.python.org/issue18843#msg204954 -- ___ Python tracker ___ ___

[issue3657] pickle can pickle the wrong function

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: This was fixed in 3.4 with the introduction of method pickling. I don't think it would be appropriate to backport this to 2.7. Thus, I am closing this as a won't fix for 2.x. -- assignee: -> alexandre.vassalotti resolution: -> wont fix stage: n

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-12-01 Thread Charles-François Natali
Charles-François Natali added the comment: Thanks for the feedback! -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue19848] Misleading error on creating already existed symlink

2013-12-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: -Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue10976] json.loads() raises TypeError on bytes object

2013-12-01 Thread Nick Coghlan
Nick Coghlan added the comment: json.bytes would also work for me. It wouldn't need to replicate the full main module API, just combine the text transform with UTF-8 encoding and decoding (as well as autodetected UTF-16 and UTF-32 decoding) for the main 4 functions (dump[s], load[s]). If people

[issue19837] Wire protocol encoding for the JSON module

2013-12-01 Thread Nick Coghlan
Nick Coghlan added the comment: Changing return type based on argument *values* is still a bad idea in general. It also makes it hard to plug the API in to generic code that is designed to work with any dump/load based serialisation protocol. MvL suggested a json.bytes submodule (rather than a

[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

2013-12-01 Thread Charles-François Natali
Charles-François Natali added the comment: > It sounds like doing this is fine (as Glyph suggests in the email thread) but > it isn't magically going to solve all EINTR problems, just reduce the number > of calls that could encounter them. Indeed, hence "*limit* EINTR occurrences" :-) > Note

[issue18885] handle EINTR in the stdlib

2013-12-01 Thread Larry Hastings
Larry Hastings added the comment: I don't want this checked in to 3.4. (Congratulations, this is my first "no" as a release manager!) -- ___ Python tracker ___ _

[issue19837] Wire protocol encoding for the JSON module

2013-12-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > MvL suggested a json.bytes submodule (rather than a separate top level > module) in the other issue and that sounds reasonable to me, especially > since json is already implemented as a package. I don't really find it reasonable to add a phantom module entirel

[issue5885] uuid.uuid1() is too slow

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I agree that there is a maintenance cost associated with C extension modules. However, I would certainly be glad if it allowed us to eliminate uses of ctypes in this module because ctypes is quite unsafe and doesn't work well across platforms (though it

[issue11480] Cannot copy a class with a metaclass other than type

2013-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6bb6f304f75 by Alexandre Vassalotti in branch '3.3': Issue #11480: Fixed copy.copy to work with classes with custom metaclasses. http://hg.python.org/cpython/rev/c6bb6f304f75 New changeset c4715c9f442f by Alexandre Vassalotti in branch 'default': I

[issue11480] Cannot copy a class with a metaclass other than type

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Thank you for the patch! -- assignee: -> alexandre.vassalotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.4 -Python 3.1, Python 3.2 ___ Python trac

[issue18885] handle EINTR in the stdlib

2013-12-01 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18473] some objects pickled by Python 3.x are not unpicklable in Python 2.x because of incorrect REVERSE_IMPORT_MAPPING

2013-12-01 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- assignee: -> alexandre.vassalotti priority: normal -> high stage: -> needs patch type: -> behavior versions: +Python 3.4 ___ Python tracker __

[issue19857] test_imaplib doesn't always reap SocketServer thread

2013-12-01 Thread Charles-François Natali
New submission from Charles-François Natali: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%203.x/builds/5901/steps/test/logs/stdio """ [134/387/1] test_signal Timeout (1:00:00)! Thread 0x000801e24800 (most recent call first): File "/usr/home/buildbot/buildarea/3.x.krah-fre

[issue11299] Allow deepcopying paused generators

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Allowing generators to be deepcopied via their code object should be fine. -- stage: test needed -> needs patch title: Allow deepcopying and pickling paused generators -> Allow deepcopying paused generators versions: +Python 3.5 -Python 3.3 _

[issue3208] function annotation for builtin and C function

2013-12-01 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- nosy: -alexandre.vassalotti stage: -> needs patch versions: +Python 3.5 -Python 3.0 ___ Python tracker ___ _

[issue19707] Check if unittest.mock needs updating for PEP 451

2013-12-01 Thread Michael Foord
New submission from Michael Foord: It shouldn't do, so long as __import__ supports PEP 451. unittest.mock.patch uses __import__ to find modules specified by name. -- ___ Python tracker

[issue2295] cPickle corner case - docs or bug?

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: We can't fix this without a working test case. Feel free to re-open if you find one. -- assignee: docs@python -> alexandre.vassalotti components: -Documentation resolution: -> works for me status: open -> closed versions: +Python 2.7 -Python 2.6

[issue11349] _pickle should implement the module finalisation protocol

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I have implemented PEP 3121 module finalization for _pickle in 64c6d52793be. -- assignee: -> alexandre.vassalotti nosy: +alexandre.vassalotti resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed __

  1   2   >