[issue2281] Enhanced cPython profiler with high-resolution timer

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- priority: normal -> low versions: +Python 3.5 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-l

[issue2799] Remove _PyUnicode_AsString(), rework _PyUnicode_AsStringAndSize(), add PyUnicode_AsChar()

2013-11-30 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: With PEP 393 implemented, there doesn't seem to anything left to be done here. Closing as fixed. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue19845] Compiling Python on Windows docs

2013-11-30 Thread Zachary Ware
Changes by Zachary Ware : -- keywords: +easy stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list

[issue19845] Compiling Python on Windows docs

2013-11-30 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue19846] print() and write() are relying on sys.getfilesystemencoding() instead of sys.getdefaultencoding()

2013-11-30 Thread STINNER Victor
STINNER Victor added the comment: "Filesystem encoding" is not a good name. You should read "OS encoding" or maybe "locale encoding". This encoding is the best choice for interopability with other (python2 or non python) programs. If you don't care of interoperabilty, force the encoding using PY

[issue19847] Setting the default filesystem-encoding

2013-11-30 Thread Sworddragon
New submission from Sworddragon: sys.getfilesystemencoding() says for Unix: On Unix, the encoding is the user’s preference according to the result of nl_langinfo(CODESET), or 'utf-8' if nl_langinfo(CODESET) failed. In my opinion relying on the locale environment is risky since filesystem-enco

[issue19789] Improve wording of how to "undo" a call to logging.disable(lvl)

2013-11-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset b6377ca8087a by Vinay Sajip in branch '2.7': Issue #19789: Clarified documentation for logging.disable. http://hg.python.org/cpython/rev/b6377ca8087a New changeset 5c8130b85c17 by Vinay Sajip in branch '3.3': Issue #19789: Clarified documentation fo

[issue18885] handle EINTR in the stdlib

2013-11-30 Thread Armin Rigo
Armin Rigo added the comment: Am I correct in thinking that you're simply replacing the OSError(EINTR) with returning empty lists? This is bound to subtly break code, e.g. the code that expects reasonably that a return value of three empty lists means the timeout really ran out (i.e. the vers

[issue19845] Compiling Python on Windows docs

2013-11-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset a239897084bf by Zachary Ware in branch '3.3': Issue #19845: Updated the Compiling Python on Windows docs. http://hg.python.org/cpython/rev/a239897084bf New changeset f4eedd29706b by Zachary Ware in branch 'default': Issue #19845: Updated the Compili

[issue19845] Compiling Python on Windows docs

2013-11-30 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the report; I could have sworn I had submitted a patch for this several months ago, but it seems like I didn't and had completely forgotten about it. -- assignee: docs@python -> zach.ware resolution: -> fixed stage: needs patch -> committed/r

[issue18885] handle EINTR in the stdlib

2013-11-30 Thread Guido van Rossum
Guido van Rossum added the comment: I wouldn't call that "being the most careful". I've always had an implicit understanding that calls with timeouts may, for whatever reason, return sooner than requested (or later!), and the most careful approach is to re-check the clock again. --

[issue19726] BaseProtocol is not an ABC

2013-11-30 Thread Guido van Rossum
Guido van Rossum added the comment: You're right, I commented previously without reading the context. The classes defined in protocol.py are not ABCs, they are just base classes (and not mandatory, just convenient, because the transport *will* assume all methods are implemented, and call them

[issue19726] BaseProtocol is not an ABC

2013-11-30 Thread Guido van Rossum
Changes by Guido van Rossum : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue19726] BaseProtocol is not an ABC

2013-11-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5469e1a68dbd by Guido van Rossum in branch 'default': asyncio: Use Interface instead of ABC. Fixes issue 19726. http://hg.python.org/cpython/rev/5469e1a68dbd -- ___ Python tracker

[issue19842] selectors: refactor BaseSelector implementation

2013-11-30 Thread Guido van Rossum
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. :-) -- ___ Python tracker

[issue17909] Autodetecting JSON encoding

2013-11-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2013-11-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +3.2regression priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue6477] Pickling of NoneType raises PicklingError

2013-11-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16eba94d3cfe by Alexandre Vassalotti in branch '3.3': Issue #6477: Added support for pickling the types of built-in singletons. http://hg.python.org/cpython/rev/16eba94d3cfe New changeset ff56f48b3277 by Alexandre Vassalotti in branch 'default': Iss

[issue18885] handle EINTR in the stdlib

2013-11-30 Thread Richard Oudkerk
Richard Oudkerk added the comment: > I've always had an implicit understanding that calls with timeouts may, > for whatever reason, return sooner than requested (or later!), and the > most careful approach is to re-check the clock again. I've always had the implicit understanding that if I use a

[issue19837] Wire protocol encoding for the JSON module

2013-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm -1 for a new module doing almost the same thing. Let's add distinct APIs in the existing json module. -- ___ Python tracker ___ ___

[issue18885] handle EINTR in the stdlib

2013-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > I've always had an implicit understanding that calls with timeouts may, > > for whatever reason, return sooner than requested (or later!), and the > > most careful approach is to re-check the clock again. > > I've always had the implicit understanding that i

[issue6477] Pickling of NoneType raises PicklingError

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- assignee: docs@python -> alexandre.vassalotti resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue6477] Pickling of NoneType raises PicklingError

2013-11-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset fbb97f6eb3b3 by Alexandre Vassalotti in branch '2.7': Issue #6477: Added pickling support for singletons and their types. http://hg.python.org/cpython/rev/fbb97f6eb3b3 -- ___ Python tracker

[issue6477] Pickling of NoneType raises PicklingError

2013-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Uh... Your commits make PyNone_Type and PyNotImplemented_Type public APIs, which I don't think is ok, especially not in bugfix releases. Also, it would be nice to post patches on the tracker before committing (not for trivial patches of course, but it's genera

[issue18885] handle EINTR in the stdlib

2013-11-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: > I've always had an implicit understanding that calls with timeouts may, for > whatever reason, return sooner than requested (or later!), and the most > careful approach is to re-check the clock again. exactly. at the system call level you can be interrupt

[issue6477] Pickling of NoneType raises PicklingError

2013-11-30 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Would you be okay with removing the static declaration of PyNotImplemented_Type and PyNone_Type if we prefix their name with an underscore? There isn't any other way to fix this without making the types linkable. I might revert the 2.7 change anyway as i

[issue6477] Pickling of NoneType raises PicklingError

2013-11-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset d964d7023aa4 by Alexandre Vassalotti in branch '2.7': Issue #6477: Revert fbb97f6eb3b3 as it broke test_xpickle. http://hg.python.org/cpython/rev/d964d7023aa4 -- ___ Python tracker

[issue6477] Pickling of NoneType raises PicklingError

2013-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yeah, adding an underscore is a fine way of dealing with this if the symbol has to be exported. -- ___ Python tracker ___ __

[issue18885] handle EINTR in the stdlib

2013-11-30 Thread Guido van Rossum
Guido van Rossum added the comment: We went through this whole discussion before. Returning immediately with three empty lists is better than raising InterruptedError. Retrying is not always better. -- ___ Python tracker

[issue19837] Wire protocol encoding for the JSON module

2013-11-30 Thread Nick Coghlan
Nick Coghlan 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. If it wasn't

[issue6477] Pickling of NoneType raises PicklingError

2013-11-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9fcba15d7685 by Alexandre Vassalotti in branch '3.3': Issue #6477: Keep PyNotImplemented_Type and PyNone_Type private. http://hg.python.org/cpython/rev/9fcba15d7685 New changeset 7d6c27fa7f32 by Alexandre Vassalotti in branch 'default': Issue #6477:

[issue18885] handle EINTR in the stdlib

2013-11-30 Thread Armin Rigo
Armin Rigo added the comment: Modules/socketmodule.c is using a simple style to implement socket timeouts using select(). If I were to naively copy this style over to pure Python, it would work in current Pythons; I'd get occasionally an OSError(EINTR), which I would have presumably been anno

[issue19728] PEP 453: enable pip by default in the Windows binary installers

2013-11-30 Thread Nick Coghlan
Nick Coghlan added the comment: Oops, fumble fingered the issue number in one of the commits. This was the commit for the missing hg add Ned pointed above: http://hg.python.org/cpython/rev/04088790c077 -- ___ Python tracker

[issue19822] PEP process entrypoint

2013-11-30 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19726] BaseProtocol is not an ABC

2013-11-30 Thread Nick Coghlan
Changes by Nick Coghlan : -- Removed message: http://bugs.python.org/msg204783 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue19726] BaseProtocol is not an ABC

2013-11-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- versions: +Python 3.4 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mail

[issue6477] Pickling of NoneType raises PicklingError

2013-11-30 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Antoine, are you okay with applying this fix to 2.7? Or should we just mark this as a won't fix? -- keywords: +patch priority: low -> normal resolution: fixed -> stage: committed/rejected -> patch review versions: -Python 3.2, Python 3.3, Python

[issue18885] handle EINTR in the stdlib

2013-11-30 Thread Gregory P. Smith
Gregory P. Smith 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. Correct code today already needs to deal with both situations (OSError(EINTR) and select returni

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

2013-11-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset c4cd891cf167 by Gregory P. Smith in branch '3.3': Fixes Issue #15798 - subprocess.Popen() no longer fails if file http://hg.python.org/cpython/rev/c4cd891cf167 New changeset 0387054b2038 by Gregory P. Smith in branch 'default': Fixes Issue #15798 -

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

2013-11-30 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ _

[issue19775] Provide samefile() on Path objects

2013-11-30 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch. -- keywords: +patch nosy: +vajrasky Added file: http://bugs.python.org/file32916/pathlib_samefile.patch ___ Python tracker ___

[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers

2013-11-30 Thread Nick Coghlan
Changes by Nick Coghlan : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19804] test_uuid.TestUUID.test_find_mac() fails

2013-11-30 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I see the same failure of this test on my system (Gentoo Linux, amd64, ifconfig available) on all branches (2.7, 3.3, default). -- nosy: +Arfrever resolution: fixed -> stage: committed/rejected -> status: closed -> open title: tes

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

2013-11-30 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: New tests fail on 2.7 branch, at least with Python configured with --enable-unicode=ucs4 (which is default in Gentoo): == FAIL: test_surrogates (json.tests.test_scanstring.

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

2013-11-30 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: ... when code is loaded from .pyc files (i.e. when `make test` runs tests the second time). -- ___ Python tracker ___

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

2013-11-30 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: 2 tests fail (only on 2.7 branch) when `make test` runs test suite the second time: == ERROR: test_infile_outfile (json.tests.test_tool.TestTool) --

[issue18716] Deprecate the formatter module

2013-11-30 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: formatter module is used by (Python-3-compatible) Portage (package manager for Gentoo): http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=summary Maybe deprecation should be reverted. -- nosy: +Arfrever resolution: fixed

[issue18716] Deprecate the formatter module

2013-11-30 Thread Larry Hastings
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 functionality in the first place. -- ___ Python tracker

[issue19775] Provide samefile() on Path objects

2013-11-30 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: About doc string in patch: 1. s/same/the same/ 2. "same" is usually used with "as", not "with": https://books.google.com/ngrams/graph?content=same+as%2Csame+with%2Csame+to&year_start=1800&year_end=2000&corpus=15&smoothing=3 -- _

<    1   2