[issue27631] .exe is appended to python executable based on filesystem case insensitivity

2016-07-27 Thread Eryk Sun
Changes by Eryk Sun : -- stage: -> resolved ___ Python tracker ___ ___

[issue16353] add function to os module for getting path to default shell

2016-07-27 Thread Xavier de Gaye
Xavier de Gaye added the comment: > After several years there is still no consenus, so make it simple - the popen > and subprocess shell is one of /bin/sh, cmd.exe, or some other "hard-coded" > shell. I agree, the last patch that is being reviewed in issue 16255 attempts to do that.

[issue27632] build on AIX fails when builddir != srcdir, more than bad path to ld_so_aix

2016-07-27 Thread Michael Felt
New submission from Michael Felt: Note: - Only examined on Python 2.7, but expect the same issue (from Python 3.4.X, 3.5.X and 3.6.X based on earlier attempts to use a separate builddir SUMMARY: * when builddir==srcdir build completes normally, (see DETAILS2:) * when builddir!=srcdir ... **

[issue27631] .exe is appended to python executable based on filesystem case insensitivity

2016-07-27 Thread Ammar Askar
New submission from Ammar Askar: I encountered some odd behavior today, I compiled python inside VirtualBox, however, I compiled it inside a shared folder. The OS outside of VirtualBox is Windows, so the shared folder naturally is case-insensitive. The actual virtual OS is Debian Linux. Upon

[issue17594] mingw: preset configure defaults

2016-07-27 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue18500] mingw: detect winsock2 and setup _socket module

2016-07-27 Thread Martin Panter
Martin Panter added the comment: The patch extends Misc/config_mingw, which is added by another patch in Issue 17594. -- dependencies: +mingw: preset configure defaults nosy: +martin.panter ___ Python tracker

[issue27631] .exe is appended to python executable based on filesystem case insensitivity

2016-07-27 Thread Ammar Askar
Ammar Askar added the comment: Aah, you're completely correct. Renaming it to python and doing ./python causes it to confuse it with the directory. Sorry. -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue17602] mingw: default sys.path calculations for windows platforms

2016-07-27 Thread Martin Panter
Martin Panter added the comment: I wonder if the PYTHONPATH preprocessor definition can just be moved from PC/pyconfig.h. It is a shame to duplicate it, and it only seems to be used in PC/getpathp.c (if you ignore Modules/getpath.c which is unused on Windows). -- components: +Windows

[issue17594] mingw: preset configure defaults

2016-07-27 Thread Martin Panter
Martin Panter added the comment: Interesting approach. Why two separate files, for cross-compiling and native compiling? Why not merge them together? Some of the other Min GW patches add stuff like the following to the configure.ac checks. Would it make more sense to add e.g.

[issue17594] mingw: preset configure defaults

2016-07-27 Thread Martin Panter
Changes by Martin Panter : -- stage: -> patch review ___ Python tracker ___ ___

[issue27631] .exe is appended to python executable based on filesystem case insensitivity

2016-07-27 Thread Martin Panter
Martin Panter added the comment: My guess is it was to avoid a conflict between the “Python/” source directory, and the “./python” executable that may be built in the same directory. Wouldn’t that be a problem in your case too? -- nosy: +martin.panter

[issue27633] Doc: Add missing version info to email.parser

2016-07-27 Thread Florian Preinstorfer
New submission from Florian Preinstorfer: The versionchanged field has no version info for message_from_string(). -- files: email-parser-add_version_info.patch keywords: patch messages: 271442 nosy: notizblock priority: normal severity: normal status: open title: Doc: Add missing

[issue27633] Doc: Add missing version info to email.parser

2016-07-27 Thread Berker Peksag
Berker Peksag added the comment: Good catch, thanks! -- nosy: +berker.peksag resolution: -> fixed stage: commit review -> resolved status: open -> closed type: enhancement -> behavior versions: -Python 3.3, Python 3.4 ___ Python tracker

[issue27633] Doc: Add missing version info to email.parser

2016-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f2e37e705d3 by Berker Peksag in branch '3.5': Issue #27633: Fix usage of versionchanged directive in email.parser.rst https://hg.python.org/cpython/rev/3f2e37e705d3 New changeset 8224ad99842e by Berker Peksag in branch 'default': Issue #27633:

[issue27633] Doc: Add missing version info to email.parser

2016-07-27 Thread SilentGhost
SilentGhost added the comment: LGTM -- assignee: -> docs@python components: +Documentation nosy: +SilentGhost, docs@python stage: -> commit review ___ Python tracker

[issue11048] "import ctypes" causes segfault on read-only filesystem

2016-07-27 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I'm unable to reproduce the crash using the read-only filesystem. But an assertion confirmed me that the restype is not initialized which is an obvious bug. ctypes-erofs-crash.diff: LGTM. By the way, the flags field is not initialized neither, but

[issue27634] selectors.SelectSelectors fails if select.select was patched

2016-07-27 Thread STINNER Victor
STINNER Victor added the comment: Monkey-patching is a bad programming practice. I don't think that Python should promote this... *But* selectors.diff LGTM. I will wait one or two weeks to let others review the patch and give their opinion. -- nosy: +haypo

[issue27626] Spelling fixes

2016-07-27 Thread R. David Murray
R. David Murray added the comment: LGTM as well. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27629] Cannot create ssl.SSLSocket without existing socket

2016-07-27 Thread STINNER Victor
STINNER Victor added the comment: The change introducing the != SOCK_STREAM check (change a00842b783cf) was made in 2013. It looks like the case was not tested since at least 3 years... > This will need a test in Lib/test/test_ssl.py to check for this particular > case. Yes, this new test is

[issue1521950] shlex.split() does not tokenize like the shell

2016-07-27 Thread Vinay Sajip
Vinay Sajip added the comment: Okay, I've updated with a new patch addressing SilentGhost's comments, and addressed the comments on that patch. If I don't hear any objections by Friday, I plan to commit this change. -- ___ Python tracker

[issue27630] Generator._encoded_EMTPY misspelling in email package

2016-07-27 Thread R. David Murray
R. David Murray added the comment: The former is kept (IIRC) for backward compatibility, the latter should be investigated. Since I wrote that code I'll have to add this to my todo list. -- ___ Python tracker

[issue23085] update internal libffi copy to 3.2.1

2016-07-27 Thread R. David Murray
R. David Murray added the comment: See msg243261, I think. On linux and freebsd we could theoretically leave that to the distros, but on OSX we have to deal with it ourselves. -- nosy: +r.david.murray ___ Python tracker

[issue11048] "import ctypes" causes segfault on read-only filesystem

2016-07-27 Thread Emanuel Barry
Changes by Emanuel Barry : -- stage: test needed -> resolved ___ Python tracker ___ ___

[issue27624] unclear documentation on Queue.qsize()

2016-07-27 Thread Doug Hoskisson
Doug Hoskisson added the comment: More explicit is ok, if that's what people want, but just not in the first sentence, because that stuff has nothing to do with what is being documented specifically (as evidenced by referencing a wikipedia article that doesn't even mention python). I don't

[issue17605] mingw-meta: build interpeter core

2016-07-27 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +mingw: use main() to start execution ___ Python tracker ___

[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2016-07-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> patch review versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue27621] incorrectly works in IDLE Query dialogs

2016-07-27 Thread Mark Roseman
Mark Roseman added the comment: Side note that on Mac OS X, buttons normally don't get the focus, so that this isn't an issue. Well except that buttons are getting the focus here. :-) Also since we're reinventing the wheel, please note that alternative keyboard shortcuts (e.g.

[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2016-07-27 Thread STINNER Victor
Changes by STINNER Victor : -- title: Exception with utf-8, surrogatepass and incremental decoding -> UTF-8 incremental decoder doesn't support surrogatepass correctly ___ Python tracker

[issue27634] selectors.SelectSelectors fails if select.select was patched

2016-07-27 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch, Przemyslaw, but I'm going to close this. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue27635] pickle documentation says that unpickling may not call __new__

2016-07-27 Thread July Tikhonov
New submission from July Tikhonov: A note just below object.__setstate__() documentation https://docs.python.org/3.6/library/pickle.html#object.__setstate__ says that """ … the type should implement __getnewargs__() or __getnewargs_ex__() to establish such an invariant; otherwise, neither

[issue27634] selectors.SelectSelectors fails if select.select was patched

2016-07-27 Thread Brett Cannon
Brett Cannon added the comment: I agree with Victor: monkeypatching is the wrong way to deal with this. Since SelectSelector is a class you are better off exposing something in the constructor or some method that can be overridden if this kind of flexibility is really necessary. --

[issue24214] Exception with utf-8, surrogatepass and incremental decoding

2016-07-27 Thread STINNER Victor
STINNER Victor added the comment: Attached patch fixes the UTF-8 decoder to support correctly incremental decoder using surrogatepass error handler. The bug occurs when b'\xed\xa4\x80' is decoded in two parts: the first two bytes (b'\xed\xa4'), and then the last byte (b'\x80'). It works as

[issue18304] ElementTree -- provide a way to ignore namespace in tags and seaches

2016-07-27 Thread Stefan Behnel
Stefan Behnel added the comment: Here is a proposed patch for a new function "strip_namespaces(tree)" that discards all namespaces from tags and attributes in a (sub-)tree, so that subsequent processing does not have to deal with them. The "__all__" test is failing (have to figure out how to

[issue27624] unclear documentation on Queue.qsize()

2016-07-27 Thread Doug Hoskisson
Doug Hoskisson added the comment: My suggestion was not to delete the "approximate" entirely. Just move it out of the first sentence to make it more consistent with the other documentation. This is the model I'm seeing in empty() and full(): The first sentence is something simple and direct

[issue18304] ElementTree -- provide a way to ignore namespace in tags and seaches

2016-07-27 Thread Stefan Behnel
Stefan Behnel added the comment: On second thought, I think it should be supported (also?) in the parser. Otherwise, using it with an async parser would be different from (and more involved than) one-shot parsing. That seems wrong. -- ___ Python

[issue27624] unclear documentation on Queue.qsize()

2016-07-27 Thread R. David Murray
R. David Murray added the comment: The subsequent text specifies the behavior. You *could* delete the 'approximately' from the qsize documentation to be parallel, but I think that would be a disservice to the reader. You could also use the phrase "at the moment of the call" in all three,

[issue27624] unclear documentation on Queue.qsize()

2016-07-27 Thread R. David Murray
R. David Murray added the comment: The current wording is, IMO, better than the suggested wording, especially if you don't want to be "teaching stuff". The current wording is a specification of the method's behavior. I really don't know what you could replace "approximate" with that would

[issue27624] unclear documentation on Queue.qsize()

2016-07-27 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like Ruby folks encountered the Morocco issue [1] before us. They closed the issue on their bug tracker blaming glibc. This tells us, I guess, that we should skip this transition on the affected systems. Unfortunately, it is not just 32-bit

[issue1521950] shlex.split() does not tokenize like the shell

2016-07-27 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: -> vinay.sajip ___ Python tracker ___ ___

[issue11048] "import ctypes" causes segfault on read-only filesystem

2016-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab4975520c7d by Victor Stinner in branch '3.5': ctypes: fix CThunkObject_new() https://hg.python.org/cpython/rev/ab4975520c7d New changeset da9898e7e90d by Victor Stinner in branch 'default': Merge 3.5 (issue #11048)

[issue27624] unclear documentation on Queue.qsize()

2016-07-27 Thread STINNER Victor
STINNER Victor added the comment: """ Return the number of items in the queue. Note, in multi-threading this mostly just serves as an approximation, and information from this doesn’t guarantee that a subsequent get() or put() will not block. """ I dislike this description. If I understand

[issue27623] int.to_bytes() and int.from_bytes(): raise ValueError when bytes count is zero

2016-07-27 Thread Lucas Morales
Lucas Morales added the comment: This is actually a problem in Objects/longobject.c, in the _PyLong_AsByteArray function. It should have given an overflow error, because -1 cannot be encoded in 0 bytes. -- nosy: +lucasem ___ Python tracker

[issue18304] ElementTree -- provide a way to ignore namespace in tags and seaches

2016-07-27 Thread Martin Panter
Martin Panter added the comment: Perhaps it would make more sense to use rpartition() or rstrip(). It seems possible to have a closing curly bracket in a namespace, but not in a element tag or attribute name. My guess is the __all__ failure is just a sign to add the new function to the

[issue23085] update internal libffi copy to 3.2.1

2016-07-27 Thread Zachary Ware
Zachary Ware added the comment: OSX and Windows are both exempt from this discussion. Each has its own private copy of an ancient version of libffi: Modules/_ctypes/libffi_osx/ and Modules/_ctypes/libffy_msvc/. I would be in favor of switching to --with-system-ffi by default for 3.6 and

[issue23085] update internal libffi copy to 3.2.1

2016-07-27 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +ned.deily ___ Python tracker ___ ___

[issue27634] selectors.SelectSelectors fails if select.select was patched

2016-07-27 Thread Przemyslaw Wegrzyn
New submission from Przemyslaw Wegrzyn: The SelectSelector makes a local copy of select.select() built-in and calls it via self._select later on. It no longer works if select.select() built-in is replaced with function (something gevent's monkey patching does). Currently gevent employs a

[issue27634] selectors.SelectSelectors fails if select.select was patched

2016-07-27 Thread Przemyslaw Wegrzyn
Przemyslaw Wegrzyn added the comment: Possible workaround in the patch attached. -- keywords: +patch Added file: http://bugs.python.org/file43910/selectors.diff ___ Python tracker

[issue27623] int.to_bytes() and int.from_bytes(): raise ValueError when bytes count is zero

2016-07-27 Thread Марк Коренберг
Марк Коренберг added the comment: I think, we should deny: * Passing `0` to `to_bytes` (even if integer is equal to zero) * Passing empty string to `from_bytes` I do not see any use cases for this to work. It was never guaranteed to work earlier. Everyone pass constant to `to_bytes` that is >

[issue27636] Refactor IDLE htest

2016-07-27 Thread Terry J. Reedy
New submission from Terry J. Reedy: idlelib.idle_test.htest Extract a App(Tk) subclass from run function and nested function. Pass that as master instead of bare root. Extract HTest(Toplevel) class with the common code in files with an htest function. Attach HTest to App as an attribute so

[issue27623] int.to_bytes() and int.from_bytes(): raise ValueError when bytes count is zero

2016-07-27 Thread Emanuel Barry
Emanuel Barry added the comment: I don't use this feature enough to have a clear opinion, however it's specifically accounted for in the code and has a test for it. It might be a good idea to bring this up on Python-ideas. It's very likely to break some code, but I wonder if said code wasn't

[issue27637] int.to_bytes(-1, ...) should automatically choose required count of bytes

2016-07-27 Thread Марк Коренберг
New submission from Марк Коренберг: It will be nice if `int.to_bytes` be able to automatically choose number of bytes to serialize. If so, I could write serialisation code: def serialize(value: int, signed=True) -> bytes: x = value.to_bytes(-1, 'big', signed=signed) l =

[issue27637] int.to_bytes(-1, ...) should automatically choose required count of bytes

2016-07-27 Thread Марк Коренберг
Марк Коренберг added the comment: Oops. def serialize(value: int, signed=True) -> bytes: x = value.to_bytes(-1, 'big', signed=signed) l = len(x).to_bytes(4, 'big', signed=False) return l + x assert len(serialize(0)) == 4 + 0 # see Issue27623 assert len(serialize(120)) == 4 + 1

[issue27638] int.to_bytes() and int.from_bytes() should support 'net' and 'host' byte orders

2016-07-27 Thread Марк Коренберг
New submission from Марк Коренберг: int.to_bytes() and int.from_bytes() should support 'net' and 'host' byte orders. I will provide a patch. -- messages: 271490 nosy: mmarkk priority: normal severity: normal status: open title: int.to_bytes() and int.from_bytes() should support 'net'

[issue27638] int.to_bytes() and int.from_bytes() should support 'net' and 'host' byte orders

2016-07-27 Thread Марк Коренберг
Changes by Марк Коренберг : -- components: +Library (Lib) type: -> enhancement versions: +Python 3.6 ___ Python tracker ___

[issue27638] int.to_bytes() and int.from_bytes() should support 'net' and 'host' byte orders

2016-07-27 Thread Emanuel Barry
Emanuel Barry added the comment: Since this is a new feature addition, this should first go through Python-ideas. However, I don't think that network-related features should go into builtin types, -1 from me. -- nosy: +ebarry ___ Python tracker

[issue27626] Spelling fixes

2016-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset c8c1ea94379a by Martin Panter in branch '2.7': Issue #27626: Spelling fixes in docs, comments and internal names https://hg.python.org/cpython/rev/c8c1ea94379a -- ___ Python tracker

[issue23943] Misspellings in a few files

2016-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset b0addbbc7671 by Martin Panter in branch '2.7': Issue #23943: Fix typos. Patch by Piotr Kasprzyk. https://hg.python.org/cpython/rev/b0addbbc7671 New changeset 48f074e2afcf by Martin Panter in branch '3.5': Issue #23943: Restore extra fixes lost in

[issue27490] Do not run pgen when it is not going to be used (cross-compiling)

2016-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset ec27886f675f by Martin Panter in branch '2.7': Issue #27490: Do not build pgen when cross-compiling https://hg.python.org/cpython/rev/ec27886f675f -- ___ Python tracker

[issue17602] mingw: default sys.path calculations for windows platforms

2016-07-27 Thread Steve Dower
Steve Dower added the comment: Can MinGW build against Modules/getpath.c? I'd rather just use the posix implementation than scatter ifdefs throughout the non-posix one. -- ___ Python tracker

[issue17599] mingw: detect REPARSE_DATA_BUFFER

2016-07-27 Thread Steve Dower
Steve Dower added the comment: Worth checking if the headers in VC14 have the structure now, as it may simplify the whole thing. If not, I'd add a leading underscore to the name so nobody confuses it for public API in the future. -- ___ Python

[issue27623] int.to_bytes() and int.from_bytes(): raise ValueError when bytes count is zero

2016-07-27 Thread Anders Lorentsen
Changes by Anders Lorentsen : -- nosy: +Phaqui ___ Python tracker ___ ___ Python-bugs-list

[issue27626] Spelling fixes

2016-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6080d720cbf5 by Martin Panter in branch '3.5': Issue #27626: Spelling fixes in docs, comments and internal names https://hg.python.org/cpython/rev/6080d720cbf5 New changeset 3f337cce758c by Martin Panter in branch 'default': Issue #27626: Merge

[issue27623] int.to_bytes() and int.from_bytes(): raise ValueError when bytes count is zero

2016-07-27 Thread Anders Lorentsen
Anders Lorentsen added the comment: Isn't it possible to just add a small line of code that checks if length is less than or equal to 0, and if it is, call the necessary c functions to have python raise a valueerror...? Sorry if this is giving a solution without actually submitting the patch

[issue27620] IDLE: Add keyboard equivalents for mouse actions.

2016-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2468581846da by Terry Jan Reedy in branch 'default': Issue #27620: Mark the default action button as the default. https://hg.python.org/cpython/rev/2468581846da -- ___ Python tracker

[issue27621] Finish IDLE Query dialog appearance and behavior.

2016-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I meant to direct the focus ring fix here instead #27620. To me, this issue is done, at least for now. -- ___ Python tracker

[issue27623] int.to_bytes() and int.from_bytes(): raise ValueError when bytes count is zero

2016-07-27 Thread Emanuel Barry
Emanuel Barry added the comment: Here's a patch that fixes this. -- components: +Interpreter Core -Library (Lib) keywords: +patch nosy: +ebarry stage: -> patch review Added file: http://bugs.python.org/file43913/int_to_bytes_overflow_1.patch ___

[issue26942] android: test_ctypes crashes on armv7 and aarch64

2016-07-27 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- title: android: test_ctypes crashes on armv7 -> android: test_ctypes crashes on armv7 and aarch64 ___ Python tracker

[issue27490] Do not run pgen when it is not going to be used (cross-compiling)

2016-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6476003e67f by Martin Panter in branch '3.5': Issue #27490: Do not build pgen when cross-compiling https://hg.python.org/cpython/rev/c6476003e67f New changeset 98df00834c58 by Martin Panter in branch 'default': Issue #27490: Merge pgen

[issue27621] Finish IDLE Query dialog appearance and behavior.

2016-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not trying to re-invent the wheel. I am trying to bring IDLE up to uniform standards. In particular, make all dialogs usable from the keyboard. The config dialog is the worst. See #27620, the master issue. For a two button messagebox, I went back to

[issue27620] IDLE: Add keyboard equivalents for mouse actions.

2016-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset e4a2d78aa6cc by Terry Jan Reedy in branch 'default': Issue #27620: Make htest box respond to and . https://hg.python.org/cpython/rev/e4a2d78aa6cc -- ___ Python tracker

[issue18304] ElementTree -- provide a way to ignore namespace in tags and seaches

2016-07-27 Thread jonathan miller
jonathan miller added the comment: A flexible and pretty simple way opf loosening up handling namespaces would be to OPTIONALLY change what is done at parse time: 1. Don't handle xmlns declarations specially. Leave them as normal attributes, and the Element.attrib would have a normal entry

[issue27490] Do not run pgen when it is not going to be used (cross-compiling)

2016-07-27 Thread Martin Panter
Martin Panter added the comment: FWIW I suspect this technique could be expanded to prevent Programs/_freeze_importlib from being cross-compiled, if anyone was interested. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue18304] ElementTree -- provide a way to ignore namespace in tags and searches

2016-07-27 Thread Martin Panter
Changes by Martin Panter : -- title: ElementTree -- provide a way to ignore namespace in tags and seaches -> ElementTree -- provide a way to ignore namespace in tags and searches ___ Python tracker

[issue27638] int.to_bytes() and int.from_bytes() should support 'net' and 'host' byte orders

2016-07-27 Thread Martin Panter
Martin Panter added the comment: I wouldn’t mind the “host” byte order, assuming it just means use sys.byteorder. I think I have done this a few times, both when I really wanted the native byte order, and when I didn’t care, but assumed the native order might be slightly more efficient (e.g.

[issue27638] int.to_bytes() and int.from_bytes() should support 'net' and 'host' byte orders

2016-07-27 Thread Berker Peksag
Berker Peksag added the comment: There is no need to go to python-ideas for this. Adding domain experts to nosy list is enough. -- nosy: +berker.peksag, mark.dickinson, serhiy.storchaka ___ Python tracker

[issue27637] int.to_bytes(-1, ...) should automatically choose required count of bytes

2016-07-27 Thread Martin Panter
Martin Panter added the comment: I don’t like special values. A length of minus one makes no sense, so should trigger an exception, not some unexpected behaviour. A different data type like None would be a bit better. But I’m not sure this would be widely used. If you really need it you could

[issue27623] int.to_bytes() and int.from_bytes(): raise ValueError when bytes count is zero

2016-07-27 Thread Martin Panter
Martin Panter added the comment: I agree that the signed conversion cases should be an error. However the unsigned case would break working code that I have written for bijective numeration. See _bytes_to_int() and _int_to_bytes() in Issue 20132, inc-codecs.diff, for example. Since non-zero

[issue27626] Spelling fixes

2016-07-27 Thread Martin Panter
Martin Panter added the comment: Thanks for the patch -- resolution: -> fixed stage: commit review -> resolved status: open -> closed versions: +Python 2.7 ___ Python tracker