[issue23860] Failure to check return value from lseek() in Modules/mmapmodule.c
Bill Parker added the comment: At the moment, I'm not sure if it's needed or not, but if it's only an issue with XP, then it might not be worth fixing...:) On Thu, Apr 9, 2015 at 1:35 PM, STINNER Victor rep...@bugs.python.org wrote: STINNER Victor added the comment: /* Win9x appears to need us seeked to zero */ lseek(fileno, 0, SEEK_SET); Hum, is it still needed in 2015 with Python 3.5? We even dropped support for Windows XP. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23860 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23860 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6818] remove/delete method for zipfile/tarfile objects
Matthew Gamble added the comment: Hi, I've recently been working on a Python module for the Adobe universal container format (UCF) which extends the zip specification - as part of this I wanted to be able to remove and rename files in an archive. I discovered this issue when writing the module so realised there wasn't currently a solution - so I went down the rabbit hole. I've attached a patch which supports the removal and renaming of files in a zip archive. You can also look at this python module in a git-repo which is a the same code but separated out into a class that extends ZipFile: https://github.com/gambl/zipextended. The patch provides 4 main new public functions for the zipfile library: - remove(self, zinfo_or_arcname): - rename(self, zinfo_or_arcname, filename): - commit(self): - clone(self, file, filenames_or_infolist=None, ignore_hidden_files=False) The patch is in part modelled on the rubyzip solution. Remove and rename will initially only update the ZipFile's infolist. Changes are then persisted via a commit function which can be called manually - or will be called automatically upon close. Commit will then clone the zipfile with the necessary changes to a temporary file and replace the original file when that operation has completed successfully. An alternative to remove files without modifying the original is via the clone method directly. This is in the spirit of Serhiy's suggestion of filtering the content and not modifying the original. You can pass a list of filenames or fileinfos of the files to be included in the clone. So that clone can be performed without decompressing and then recompressing the files in the archive I have added two functions write_compressed and read_compressed. I have also attempted to address Serhiy's concern with respect to the tricky.zip - hidden files in between members of the archive. The clone method will by default retain any hidden files and maintain the same relative order in the archive. You can also elect to ignore the hidden files, and clone with just the files listed in the central directory. I did have to modify the tricky.zip attached to this issue manually as the CRC of file two (with file three embedded) was incorrect - and would therefore fail testzip(). I'm not actually sure how one would create such an archive - but I think that it's valid according to the zip spec. I've actually included the modified version in the patch for a few of the tests. I appreciate that this is a large-ish patch and may take some time to review - but as suggested in the comments - this wasn't as straight forward as is seems! Look forward to your comments. The signatures of the main functions are described below: remove(self, zinfo_or_arcname): Remove a member from the archive. Args: zinfo_or_arcname (ZipInfo, str) ZipInfo object or filename of the member. Raises: RuntimeError: If attempting to modify an Zip archive that is closed. --- rename(self, zinfo_or_arcname, filename): Rename a member in the archive. Args: zinfo_or_arcname (ZipInfo, str): ZipInfo object or filename of the member. filename (str): the new name for the member. Raises: RuntimeError: If attempting to modify an Zip archive that is closed. clone(self, file, filenames_or_infolist=None, ignore_hidden_files=False): Clone the a zip file using the given file (filename or filepointer). Args: file (File, str): file-like object or filename of file to write the new zip file to. filenames_or_infolist (list(str), list(ZipInfo), optional): list of members from this zip file to include in the new zip file. ignore_hidden_files (boolean): flag to indicate wether hidden files (data inbetween managed memebers of the archive) should be included. Returns: A new ZipFile object of the cloned zipfile open in append mode. If copying hidden files then clone will attempt to maintain the relative order between the files and members in the archive commit(self): Commit any inline modifications (removal and rename) to the zip archive. This makes use of a temporary file to create a new zip archive with the required modifications and then replaces the original. This therefore requires write access to either the directory where the original zipfile lives, or to python's default tempfile location. -- nosy: +gambl Added file: http://bugs.python.org/file38878/zipfile.remove_rename.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6818 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20021] modernize makeopcodetargets.py
R. David Murray added the comment: The comment about staying compatibler with 2.3 is now clearly out of date :) -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20021 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19247] Describe surrogateescape algorithm in the Library Reference
Nick Coghlan added the comment: The last round of updates to the codecs module docs covered the relevant details in the new error handlers section: https://docs.python.org/3/library/codecs.html#error-handlers -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19247 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23496] Steps for Android Native Build of Python 3.4.2
Cyd Haselton added the comment: Perhaps the 'include androidfn.h' should be removed from pythonrun.c? Or the function definition added to the androidfn.h? (IANACC) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5885] uuid.uuid1() is too slow
Serhiy Storchaka added the comment: And issue15206. Python implementation has a drawback. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5885 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21795] smtpd.SMTPServer should announce 8BITMIME when supported and accept SMTPUTF8 without it
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21795 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20021] modernize makeopcodetargets.py
Berker Peksag added the comment: I think makeopcodetargets.py should still be compatible with Python 2 (2.6 or 2.7 at least) since it uses the system Python. I'd suggest closing this as rejected (or just commit the ``with open(...):`` part of the patch and update the outdated comment). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20021 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23575] MIPS64 needs ffi's n32.S
Simon Hoinkis added the comment: Could someone review this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23575 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23199] libpython27.a in amd64 release is 32-bit
Steve Dower added the comment: Yep -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23199 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23894] lib2to3 doesn't recognize rb'...' as a raw byte string in Python 3
Changes by Joshua Bronson jabron...@gmail.com: -- nosy: +jab ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23894 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23496] Steps for Android Native Build of Python 3.4.2
Cyd Haselton added the comment: FYI, running 'make clean' make does not resolve the last reported issue. Trying 'make distclean' ./configure make. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23901] Force console stdout to use UTF8 on Windows
Paul Moore added the comment: Doh. That latter approach (a RawIOBase implementation) is *precisely* what win_unicode_console does for stdout (using utf16le rather than utf8 as that's the native Windows encoding used by WriteConsole). So (a) yes it would work, and (b) it has already demonstrated in the wild that the approach is viable. (Actually, a C implementation of this approach might be a better way of implementing this anyway, rather than relying on a relatively obscure C runtime feature). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23901 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23901] Force console stdout to use UTF8 on Windows
New submission from Paul Moore: Console code page issues are a consistent source of problems on Windows. It would be nice, given that the Windows console has Unicode support, if Python could write the full range of Unicode to the console by default. The MSVC runtime appears to have a flag that can be set via _setmode(), _O_U8TEXT, which enables Unicode mode (see https://msdn.microsoft.com/en-us/library/tw4k6df8%28v=vs.100%29.aspx?f=255MSPPError=-2147217396, in particular the second example). It seems as if Python could set U8TEXT mode on sys.stdout on startup (assuming it's a console) and set the encoding to UTF8, and then Unicode output would just work. I don't have code that implements this yet, but if I can get my head round the IO stack and the Python startup code, I'll give it a go. Steve - any comments on whether this might work? I've never seen any real-world code using U8TEXT which makes me wonder if it's reliable (doing msvcrt.setmode(sys.stdout.fileno(), 0x4) in Python 3.4 causes Python to crash, which is worrying, but it works in 3.5...). -- assignee: paul.moore components: Windows messages: 240354 nosy: paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Force console stdout to use UTF8 on Windows versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23901 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18965] 2to3 can produce illegal bytes literals
R. David Murray added the comment: Sorry, I meant the addition of the -3 warning. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18965 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23496] Steps for Android Native Build of Python 3.4.2
Cyd Haselton added the comment: H. That patch failed to apply: Possibly reversed hunk 1 at 1582 Hunk 1 failed 35/35 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6818] remove/delete method for zipfile/tarfile objects
Terry J. Reedy added the comment: All of you who have or might submit patches -- Victorlee, Troy, Mathew, or anyone else, please sign a PSF contributor agreement. We should not even look at a patch from you before you do. Info: https://www.python.org/psf/contrib/ Form: https://www.python.org/psf/contrib/contrib-form/ Receipt is official when a * appears after your name. This usually takes about a week. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6818 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19835] Add a MemoryError singleton to fix an unlimited loop when the memory is exhausted
STINNER Victor added the comment: Serhiy recently worked on MemoryError, maybe he wants to work on this issue? I'm no more interested to work on this issue. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19835 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5885] uuid.uuid1() is too slow
R. David Murray added the comment: The original report says the ctypes call is slower than the python code used as a fallback. Would it not, then, be a performance improvement just to drop the ctypes call, without creating a new C module? Creating a C module would then be a separate enhancement issue if someone thought the performance improvement was enough to justify the module. Or maybe it could live in the os module? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5885 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23860] Failure to check return value from lseek() in Modules/mmapmodule.c
STINNER Victor added the comment: /* Win9x appears to need us seeked to zero */ lseek(fileno, 0, SEEK_SET); Hum, is it still needed in 2015 with Python 3.5? We even dropped support for Windows XP. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23860 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23900] Add a default docstring to Enum subclasses
New submission from Nick Coghlan: Issue #15582 added docstring inheritance to the inspect module. This means that Enum subclasses without their own docstring now inherit the generic docstring from the base class definition: import enum, inspect class MyEnum(enum.Enum): ... a = 1 ... inspect.getdoc(MyEnum) 'Generic enumeration.\n\nDerive from this class to define new enumerations.' Perhaps the metaclass could automatically derive a more suitable docstring if the subclass doesn't set one of its own? -- messages: 240348 nosy: barry, eli.bendersky, ethan.furman, ncoghlan, serhiy.storchaka priority: normal severity: normal stage: needs patch status: open title: Add a default docstring to Enum subclasses type: enhancement versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23900 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23496] Steps for Android Native Build of Python 3.4.2
Ryan Gonzalez added the comment: Whoops. Updated the patch. -- Added file: http://bugs.python.org/file38881/rjmatthews64_fixes2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23893] Forward-port future_builtins
Antoine Pitrou added the comment: Already exists on PyPI: https://pypi.python.org/pypi/future/ -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23893 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7159] Urllib2 authentication memory.
R. David Murray added the comment: See also issue 19494. I think this would be a new feature, and it may be that it should leverge the feature added in issue 19494. The difference here is that we are proposing to allow it to happen automatically after the initial 401, whereas in 19494 we send it pre-emptively even on the first call. -- nosy: +r.david.murray stage: - needs patch type: resource usage - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7159 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15582] Enhance inspect.getdoc to follow inheritance chains
Nick Coghlan added the comment: I filed issue #23900 to consider the question of the default docstring for Enum subclasses. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15582 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23496] Steps for Android Native Build of Python 3.4.2
Ryan Gonzalez added the comment: Ack...I feel smart. Attached is kind of a part 2 to the rjmatthews patch. Apply and the errors shall be solved. :) -- Added file: http://bugs.python.org/file38880/rjmatthews64_fixes2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19738] pytime.c loses precision under Windows
R. David Murray added the comment: Victor, is this issue still relevant given your recent work on time? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19738 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23496] Steps for Android Native Build of Python 3.4.2
Ryan Gonzalez added the comment: Maybe it's conflicted with the last one... Try: git checkout Python/pythonrun.c git apply rjmatthews... On Thu, Apr 9, 2015 at 12:28 PM, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: H. That patch failed to apply: Possibly reversed hunk 1 at 1582 Hunk 1 failed 35/35 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23834] socketmodule.c: add sock_call() to fix how the timeout is recomputed
Roundup Robot added the comment: New changeset 462680f4e8af by Victor Stinner in branch 'default': Issue #23834: Fix the default socket timeout https://hg.python.org/cpython/rev/462680f4e8af -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23834 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9248] multiprocessing.pool: Proposal: waitforslot
R. David Murray added the comment: Closed per OP's request. -- nosy: +r.david.murray resolution: - out of date stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9248 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19835] Add a MemoryError singleton to fix an unlimited loop when the memory is exhausted
R. David Murray added the comment: Victor, do you still want to champion this, or shall we close it? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19835 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5885] uuid.uuid1() is too slow
Serhiy Storchaka added the comment: See also issue11063 and issue20519. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5885 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23863] Fix EINTR Socket Module issues in 2.7
Changes by STINNER Victor victor.stin...@gmail.com: Added file: http://bugs.python.org/file38874/test_connect_eintr4.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23863 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18383] test_warnings modifies warnings.filters when running with -W default
Martin Panter added the comment: I tried issue18383_remove_dups_and_test.patch, but it doesn’t seem to fix the problem, and causes new test failures and warnings. Let me know if you want more info. Existing messages that I thought this was meant to fix: [372/393/5] test_warnings /media/disk/home/proj/python/cpython/Lib/test/test_warnings.py:100: UserWarning: FilterTests.test_ignore_after_default self.module.warn(message, UserWarning) /media/disk/home/proj/python/cpython/Lib/test/test_warnings.py:100: UserWarning: FilterTests.test_ignore_after_default self.module.warn(message, UserWarning) Warning -- warnings.filters was modified by test_warnings [. . .] 1 test altered the execution environment: test_warnings Three new failures: [ 12/393/1] test___all__ test test___all__ failed -- Traceback (most recent call last): File /media/disk/home/proj/python/cpython/Lib/test/test___all__.py, line 105, in test_all self.check_all(modname) File /media/disk/home/proj/python/cpython/Lib/test/test___all__.py, line 28, in check_all raise FailedImport(modname) File /media/disk/home/proj/python/cpython/Lib/contextlib.py, line 66, in __exit__ next(self.gen) File /media/disk/home/proj/python/cpython/Lib/test/support/__init__.py, line 1124, in _filterwarnings raise AssertionError(unhandled warning %s % reraise[0]) AssertionError: unhandled warning {message : DeprecationWarning('stat_float_times() is deprecated',), category : 'DeprecationWarning', filename : '/media/disk/home/proj/python/cpython/Lib/test/test_os.py', lineno : 75, line : None} [. . .] [147/393/3] test_global test test_global failed -- multiple errors occurred; run in verbose mode for details [. . .] [240/393/5] test_pkgutil test test_pkgutil failed -- Traceback (most recent call last): File /media/disk/home/proj/python/cpython/Lib/test/test_pkgutil.py, line 327, in test_importer_deprecated x = pkgutil.ImpImporter() File /media/disk/home/proj/python/cpython/Lib/contextlib.py, line 66, in __exit__ next(self.gen) File /media/disk/home/proj/python/cpython/Lib/test/support/__init__.py, line 1124, in _filterwarnings raise AssertionError(unhandled warning %s % reraise[0]) AssertionError: unhandled warning {message : PendingDeprecationWarning(the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses,), category : 'PendingDeprecationWarning', filename : '/media/disk/home/proj/python/cpython/Lib/importlib/_bootstrap.py', lineno : 321, line : None} [. . .] 5 tests failed: test___all__ test_distutils test_gdb test_global test_pkgutil (Ignore distutils and GDB; they normally fail for me.) New warnings, though I suspect they may be a side effect and not entirely the fault of the patch: [ 18/393/1] test_unittest [163/393/4] test_imp [169/393/4] test_importlib [205/393/4] test_modulefinder [220/393/4] test_os [241/393/5] test_platform [329/393/5] test_threaded_import [354/393/5] test_unicode -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18383 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22144] ellipsis needs better display in lexer documentation
R. David Murray added the comment: I agree that there is nothing to do here. The ... does not belong in the table, since as Martin says it is a literal, not a delimiter. In theory you could create a whole new section named 'elipsis literal' above the delmiiters section, but that hardly seems worthwhile, specially since the mention of the special elipsis literal makes more *sense* exactly where it is, after one learns that the period is a delimiter. -- nosy: +r.david.murray resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22144 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23863] Fix EINTR Socket Module issues in 2.7
STINNER Victor added the comment: Ok, since you look to want to fix Python 2.7, I can help you to handle EINTR in socket.connect() since I fixed Python 3.5. If Python 2.7 is fixed, Python 3.4 should also be fixed. connect_eintr-py27.patch: Patch for Python 2.7 to handle EINTR in socket.connect() for blocking socket or socket with a timeout. The patch calls select() to wait until the connection completes or fails. Use attached test_connect_eintr4.py to test it. I only tested my patch on Linux yet. -- Added file: http://bugs.python.org/file38873/connect_eintr-py27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23863 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23898] inspect() changes in Python3.4 are not compatible with objects that implement special __bool__, __eq__
mike bayer added the comment: hi Yury - I did sign it earlier today. It should have been sent off to the person that manages that, at least that's what the email receipt said. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23898 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12082] Python/import.c still references fstat even with DONT_HAVE_FSTAT/!HAVE_FSTAT
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - resolved status: open - closed superseder: - Drop HAVE_FSTAT: require fstat() to compile/use Python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12082 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23893] Forward-port future_builtins
Brett Cannon added the comment: There's no need for the ImportError catch. If a builtin is missing then there is something seriously wrong and it shouldn't be made silent. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23893 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23898] inspect() changes in Python3.4 are not compatible with objects that implement special __bool__, __eq__
Changes by R. David Murray rdmur...@bitdance.com: -- stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23898 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23496] Steps for Android Native Build of Python 3.4.2
Ryan Gonzalez added the comment: ARGH! Fixed. Re-apply rjmatthews64_fixes2.patch. -- Added file: http://bugs.python.org/file38884/rjmatthews64_fixes2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23893] Forward-port future_builtins
Serhiy Storchaka added the comment: try: from future_builtins import ascii, filter, hex, map, oct, zip except ImportError: pass -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23893 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23496] Steps for Android Native Build of Python 3.4.2
Cyd Haselton added the comment: Hello Ryan, Error from latest patch: Python/pythonrun.c:44:8: error: conflicting types for 'android_mbstowcs' size_t android_mbstowcs(wchar_t *dest, char * in, int maxlen) { ^ In file included from Python/pythonrun.c:18:0: Include/androidfn.h:10:8: note: previous declaration of 'android_mbstowcs' was here size_t android_mbstowcs(wchar_t *dest, const char * source, int maxlen); ^ Python/pythonrun.c:61:8: error: conflicting types for 'android_wcstombs' size_t android_wcstombs(char * dest, wchar_t *source, int maxlen) ^ In file included from Python/pythonrun.c:18:0: Include/androidfn.h:9:8: note: previous declaration of 'android_wcstombs' was here size_t android_wcstombs(char * dest, const wchar_t *source, int maxlen); ^ Python/pythonrun.c: In function 'android_wcstombs': Python/pythonrun.c:68:5: error: expected ';' before 'if' if (c = 0xdc800 c = 0xdcff) ^ Python/pythonrun.c:63:11: warning: variable 'c' set but not used [-Wunused-but-set-variable] wchar_t c; ^ make: *** [Python/pythonrun.o] Error 1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23890] assertRaises increases reference counter
Vjacheslav Fyodorov added the comment: It seems, as a minimum it must be noticed in docs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23890 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15011] Change Scripts to bin on Windows
R. David Murray added the comment: Per Steve, closing as rejected. (Rejecting this patch, any change would be part of a larger patch dealing also with other issues). -- nosy: +r.david.murray resolution: - rejected stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15011 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23731] Implement PEP 488
Eric Snow added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23731 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23618] PEP 475: handle EINTR in the socket module (connect)
Roundup Robot added the comment: New changeset bff88c866886 by Victor Stinner in branch 'default': Issue #23618: Fix internal_select() for negative timeout (blocking socket) when https://hg.python.org/cpython/rev/bff88c866886 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23618 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23897] Update Python 3 extension module porting guide
New submission from Nick Coghlan: The extension module porting guide at https://docs.python.org/dev/howto/cporting.html should be updated with Linux distro porting experience. Barry's notes: https://wiki.python.org/moin/PortingToPy3k/BilingualQuickRef#Python_extension_modules Petr's compatibility helper tools: https://py3c.readthedocs.org -- assignee: barry messages: 240328 nosy: barry, bkabrda, doko, encukou, kushal.das, ncoghlan priority: normal severity: normal status: open title: Update Python 3 extension module porting guide ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23897 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12160] codecs doc: what is StreamCodec?
Changes by R. David Murray rdmur...@bitdance.com: -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12160 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18383] test_warnings modifies warnings.filters when running with -W default
Alex Shkop added the comment: So, there are actually two issues, both of them causing the original warning. First issue was pointed out by Florent Xicluna. warnings.filterwarnings() method can create duplicates in warnings.filters. Second issue is that assertWarns() works incorrectly in test_warnings.py due to use of import_fresh_module(). This produced original warning even without -Wd flag. I attached a patch that fixes both issues for review. It includes a fix of previous patch, so no new warnings are produced. But perhaps we should separate these issues and create two patches. -- Added file: http://bugs.python.org/file38876/issue18383_assert_warns_and_dups.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18383 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23686] Update Windows and OS X installer OpenSSL to 1.0.2a
Roundup Robot added the comment: New changeset 05a502da108f by Zachary Ware in branch '2.7': Issue #23686: Update Windows build to use OpenSSL 1.0.2a https://hg.python.org/cpython/rev/05a502da108f New changeset 404e4adf492c by Zachary Ware in branch '3.4': Issue #23686: Update Windows build to use OpenSSL 1.0.2a. https://hg.python.org/cpython/rev/404e4adf492c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23686 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule
STINNER Victor added the comment: I reviewed 23524_5.patch, I made some comments, but I now agree with the overall change (disable temporary the validation of invalid fd, set errno to EBADF instead). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23524 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22970] asyncio: Cancelling wait() after notification leaves Condition in an inconsistent state
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Cancelling wait() after notification leaves Condition in an inconsistent state - asyncio: Cancelling wait() after notification leaves Condition in an inconsistent state ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22970 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express
Zachary Ware added the comment: Considering the consensus somewhere in the middle of this discussion that this is not a Python bug, the unavailability of VS2008 Express, and the availability of the Visual C++ Compiler for Python 2.7 package, I'm closing this as 'wont fix'. If anyone just absolutely can't be satisfied by Visual C++ Compiler for Python 2.7, you can reopen. -- resolution: - wont fix stage: patch review - resolved status: open - closed versions: -Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7511 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18965] 2to3 can produce illegal bytes literals
Serhiy Storchaka added the comment: The addition of the warning in python3 is not related to this issue, because produced code even is not compiled in Python 3. But the addition of the warning in Python 2 made this issue less important. -- resolution: - rejected stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18965 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23898] inspect() changes in Python3.4 are not compatible with objects that implement special __bool__, __eq__
R. David Murray added the comment: This looks reasonable to me. It would be great if the patch could be attached to the issue as a patch file, including some tests. -- nosy: +r.david.murray stage: - needs patch versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23898 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15582] Enhance inspect.getdoc to follow inheritance chains
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15582 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21411] Enable Treat Warning as Error on 32-bit Windows
Tim Golden added the comment: Sounds good to me. It's really a question as to the point where practicality beats purity... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21411 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2276] distutils out-of-date for runtime_library_dirs flag on OS X
R. David Murray added the comment: Since no example was forthcomming, let's close this. -- nosy: +r.david.murray resolution: - rejected stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2276 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23898] inspect() changes in Python3.4 are not compatible with objects that implement special __bool__, __eq__
Yury Selivanov added the comment: The patch looks good, Mike. Could you please sign PSF Contributor Agreement? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23898 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23899] HTTP regression in distutils uploads to chishop
New submission from Jason R. Coombs: Beginning with Python 2.7.9 and 3.4.3, distutils uploads to chishop (https://pypi.python.org/pypi/chishop) now fail with a 501 NOT IMPLEMENTED. This error looks very similar to the error that Twine triggered in https://github.com/pypa/twine/issues/27. I acknowledge that chishop is old and probably abandoned, but I also expect that a minor update (such as 3.4.2 to 3.4.3) should not break. I understand that 2.7.9 may have special consideration in this regard, so I'll focus on 3.4.3. I expect these changes in protocol may also affect other HTTP services, though it may be isolated to distutils uploads. Donald, can you speak to changes in Python 3.4.3 that might have behavior in common with Twine that would have affected distutils uploads? -- components: Distutils keywords: 3.4regression messages: 240341 nosy: dstufft, eric.araujo, jason.coombs priority: normal severity: normal status: open title: HTTP regression in distutils uploads to chishop versions: Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23899 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23863] Fix EINTR Socket Module issues in 2.7
STINNER Victor added the comment: socket_eintr.2.patch has an issue with timeout. socket_eintr.2.patch retries a socket method when it is interrupted, but it doesn't recompute the timeout. If a program is interrupted every second by a signal, the signal handler doesn't raise an exception and the socket has a timeout longer than 1 second, the socket method will hang. Internally, socket method uses select() using the socket timeout. I had to modify deeply the socket module to handle correctly EINTR and respect the timeout in Python 3.5. By the way, I changed the behaviour of socket.sendall(), the timeout is now more strict (it's now the maximum total duration, the timeout is no reset each time some bytes are sent). Since Python applications of the last 20 years already had to handle EINTR theirself, it's maybe safer to leave Python 2.7 with its bugs and let application developers workaround them? Anyway, if you have to handle EINTR in your application, you will have to handle EINTR explicitly to support Python 2.7.9 and older, no? It's hard to require an exact minor version on all platforms. The PEP 475 is wider than just the socket module: https://docs.python.org/dev/whatsnew/3.5.html#changes-in-the-python-api Impacted Python modules: io, os, select, socket, time. (Python 2.7 don't have faulthandler and don't have signal.sigtimedwait() nor signal.sigwaitinfo() functions, so faulthandler and signal are not impacted in Python 2.7.) Do you want to fix all these modules? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23863 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23668] Support os.ftruncate on Windows
STINNER Victor added the comment: 23668_3.patch looks good to me. I agree that handling EINTR is not needed on Windows, and so there is no need for an helper function like _Py_open_noraise(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23668 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23901] Force console stdout to use UTF8 on Windows
Paul Moore added the comment: Generally, my understanding is that the console does pretty badly at supporting Unicode via the normal WriteFile APIs and the code page support (mainly because support for the UTF8 code page is rubbish). But the WriteConsole API does, I believe, have pretty solid Unicode support (it's what Powershell uses, for example). Typically, attempts to support Unicode for Python console output (e.g., win_unicode_console on PyPI) deal with this by making a file-like object that calls WriteConsole under the hood, and replaces sys.stdout with this. The problem with this approach is that it isn't a normal text stream object (there's no underlying raw bytes buffer), so the result isn't seamless (although win_unicode_console is pretty good). What I noticed is that the C runtime supports an _O_U8TEXT mode for console file descriptors, at the (bytes) write() level. So that could be seamlessly integrated into the bytes IO layer of the Python IO stack. As far as I can tell from the description, the way it works is to treat a block of bytes written via write() as a UTF8 string, encode it to Unicode and write it to the console via WriteConsole(). (I haven't checked the CRT source, but that seems like the most likely implementation). Code speaks louder than words, obviously, and I do intend to produce a trial implementation. But that'll take a bit of time because I need to understand how the IO stack hangs together first. An alternative approach would be a RawIOBase implementation that wrote bytes to the console by (re-)decoding them from UTF8 and using WriteConsole, then wrapping that in the usual buffered IO and text IO layers (with the text IO layer using UTF8 encoding). That may well be implementable in pure Python, and make a good prototype implementation. Hmm... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23901 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23898] inspect() changes in Python3.4 are not compatible with objects that implement special __bool__, __eq__
mike bayer added the comment: It would be great if the patch could be attached to the issue as a patch file, including some tests. the mantra we all share. I'll take a look. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23898 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6818] remove/delete method for zipfile/tarfile objects
Changes by Matthew Gamble matthew.gam...@gmail.com: Added file: http://bugs.python.org/file38879/zip_hiddenfiles.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6818 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17247] int and float should detect inconsistent format strings
R. David Murray added the comment: This would need a deprecation preriod if we want to do it. -- nosy: +r.david.murray versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17247 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23902] let exception react to being raised or the setting of magic properties (like __cause__) within Python
New submission from Travis Everett: I've been working on a testing tool which raises its own exceptions from those thrown by code under test. The tool's exceptions do some analysis to categorize and add additional information to the underlying exceptions, and they need access to the __cause__ property in order to build this information. Unfortunately, because the __cause__ property isn't available on the exception objects at init time, some number of workarounds must be employed which make the exception harder to use properly and code handling it less intuitive. While the workarounds are fine at the moment, it would be ideal if the exceptions could be notified instead of burdening the site of each use with workarounds. It seems sufficient to call a magic method on the exception immediately after these the traceback/cause/context parameters have been set while it is being raised, allowing the exception to perform any essential work. A bells-and-whistles implementation might be a magic method called at raise time with all of these properties as arguments (and the responsibility to deal with them)--but I assume there are reasons exception objects don't already have this level of control. -- messages: 240377 nosy: abathur priority: normal severity: normal status: open title: let exception react to being raised or the setting of magic properties (like __cause__) within Python type: enhancement versions: Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23902 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23902] let exception react to being raised or the setting of magic properties (like __cause__) within Python
R. David Murray added the comment: Can't you use a __setattr__ hook? Your use case seems pretty specialized. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23902 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23863] Fix EINTR Socket Module issues in 2.7
Jeff McNeil added the comment: Updated to recalculate timeout at Python level. The current module already works this way on recv() calls. See attached. I'd be happy to churn through and fix the other modules (using the 3.5 work as a guide), though I think only addressing the higher level abstractions makes sense (I think that's been noted elsewhere). For example, the _fileobject wrappers, but not the recv from sock_recv_guts. -- Added file: http://bugs.python.org/file38883/socket_eintr.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23863 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23377] HTTPResponse may drop buffer holding next response
Martin Panter added the comment: http-buffer.v2.patch: * Merged with recent changes * Made the changes to the test suite slightly less intrusive. Unfortunately there are still a lot of changes left where mock sockets were being sent into the HTTPResponse constructor. -- Added file: http://bugs.python.org/file38875/http-buffer.v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23377 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21411] Enable Treat Warning as Error on 32-bit Windows
Steve Dower added the comment: I think we should fix all the warnings, but turning this on is a great way to make the build bots red often. I believe they already go yellow for warnings, so people are somewhat informed, but I don't think we want to be more aggressive than that. Also, I know someone who has a patch coming that fixes most of these, so we can ignore this for a bit more and just get the fix that way if we want. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21411 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12932] filecmp.dircmp does not allow non-shallow comparisons
Changes by R. David Murray rdmur...@bitdance.com: -- stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12932 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23898] inspect() changes in Python3.4 are not compatible with objects that implement special __bool__, __eq__
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23898 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23901] Force console stdout to use UTF8 on Windows
R. David Murray added the comment: There are a lot of issues in this tracker (for some definition of a lot) that indicate that the console does *not* support unicode. So if you are writing utf-8 I wouldn't expect this to work. (If it were an API taking unicode directly, that might be a different story). But the amount I know about windows is pretty small, so I sure hope you are right -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23901 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21859] Add Python implementation of FileIO
STINNER Victor added the comment: What's the status of the patch? Is it ready to be commited? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21859 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23894] lib2to3 doesn't recognize rb'...' as a raw byte string in Python 3
New submission from Eli Bendersky: lib2to3 tokenizes br'abc' as a single STRING token, but rb'abc' as two separate tokens (NAME rb and STRING 'abc') This is because pgen2/tokenize.py doesn't list rb'' as a viable prefix for a string, even though according to https://docs.python.org/3/reference/lexical_analysis.html it is -- keywords: easy messages: 240322 nosy: benjamin.peterson, eli.bendersky priority: normal severity: normal status: open title: lib2to3 doesn't recognize rb'...' as a raw byte string in Python 3 versions: Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23894 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8841] getopt errors should be specialized
R. David Murray added the comment: A python-ideas discussion was requested, but none has been linked to. So let's close this as uneeded. It can always be reopened if there is renewed interest. -- nosy: +r.david.murray resolution: - rejected stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8841 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23817] Consider FreeBSD like any other OS in SOVERSION
Roundup Robot added the comment: New changeset 7444ac6d93c3 by Victor Stinner in branch 'default': Issue #23817: FreeBSD now uses 1.0 the the SOVERSION as other operating https://hg.python.org/cpython/rev/7444ac6d93c3 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23817 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23817] Consider FreeBSD like any other OS in SOVERSION
STINNER Victor added the comment: Let's just do it for next python Ok. I don't understand the purpose of SOVERSION, nor why it is an issue to not use dots on FreeBSD. So I don't want to change it in minor Python relases (2.7.x, 3.4.y). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23817 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23898] inspect() changes in Python3.4 are not compatible with objects that implement special __bool__, __eq__
mike bayer added the comment: patch w/ test -- keywords: +patch Added file: http://bugs.python.org/file38882/issue23898.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23898 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23895] PATCH: python socket module fails to build on Solaris when -zignore is in LDFLAGS
New submission from Andrew Stormont: The socket module fails to build when -zignore is in LDFLAGS. This option changes the linker behaviour so it will only resolve against the libraries linked in explicitly instead of doing resolution recursively against their dependencies too. -- components: Build files: solaris-socket-zignore.diff keywords: patch messages: 240325 nosy: andy_js priority: normal severity: normal status: open title: PATCH: python socket module fails to build on Solaris when -zignore is in LDFLAGS type: compile error versions: Python 2.7 Added file: http://bugs.python.org/file38877/solaris-socket-zignore.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23895 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23893] Forward-port future_builtins
Eric V. Smith added the comment: I think Serhiy is saying that you don't need to implement future_builtins in 3.x, if your 2.7 and 3.x compatible code catches the ImportError. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23893 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18965] 2to3 can produce illegal bytes literals
R. David Murray added the comment: Does the addition of the warning in python3 make the fixer obsolete? In other words, should we close this issue? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18965 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23898] inspect() changes in Python3.4 are not compatible with objects that implement special __bool__, __eq__
Yury Selivanov added the comment: Mike, please ping me when they process it. I'll commit your patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23898 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23896] lib2to3 doesn't provide a grammar where exec is a function
New submission from Eli Bendersky: lib2to3 helpfully provides pygram.python_grammar_no_print_statement for parsing Python 3 ('print' has the semantics of an identifier, not a keyword) However, the same courtesy is not extended to 'exec', which also turns from a statement to an identifier in Python 3. I'd propose adding something like python_grammar_no_print_and_exec_statement The name's a handful, but it's explicit and I can't think of anything else, given that we don't want to change the lib2to3 API at this time to rename these grammars using some other convention. -- components: Library (Lib) messages: 240326 nosy: eli.bendersky priority: normal severity: normal stage: needs patch status: open title: lib2to3 doesn't provide a grammar where exec is a function type: behavior versions: Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23896 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23894] lib2to3 doesn't recognize rb'...' as a raw byte string in Python 3
Changes by Eli Bendersky eli...@gmail.com: -- stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23894 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23496] Steps for Android Native Build of Python 3.4.2
Ryan Gonzalez added the comment: I put a fix in the patch; I don't know why the heck it didn't apply. Just go to Python/pythonrun.c, line 66 and put a semicolon (;) at the end of the line. On Thu, Apr 9, 2015 at 1:51 PM, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: Done, but got this error: Python/pythonrun.c: In function 'android_wcstombs': Python/pythonrun.c:67:5: error: expected ';' before 'if' if (c = 0xdc800 c = 0xdcff) ^ Python/pythonrun.c:62:11: warning: variable 'c' set but not used [-Wunused-but-set-variable] wchar_t c; ^ make: *** [Python/pythonrun.o] Error 1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23496] Steps for Android Native Build of Python 3.4.2
Cyd Haselton added the comment: Done, but got this error: Python/pythonrun.c: In function 'android_wcstombs': Python/pythonrun.c:67:5: error: expected ';' before 'if' if (c = 0xdc800 c = 0xdcff) ^ Python/pythonrun.c:62:11: warning: variable 'c' set but not used [-Wunused-but-set-variable] wchar_t c; ^ make: *** [Python/pythonrun.o] Error 1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23496] Steps for Android Native Build of Python 3.4.2
Cyd Haselton added the comment: Thanks Ryan. (Probably should remove original androidfn.h patch; patch complains with 'file already exists' if I don't delete Include/androidfn.h before applying the latest patch) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23863] Fix EINTR Socket Module issues in 2.7
STINNER Victor added the comment: I'd be happy to churn through and fix the other modules (using the 3.5 work as a guide), It is risky to modify so much code. The PEP 475 also has an impact on backward compatibility: https://www.python.org/dev/peps/pep-0475/#backward-compatibility IMO it must be discussed on python-dev. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23863 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23901] Force console stdout to use UTF8 on Windows
STINNER Victor added the comment: There are a lot of issues in this tracker (for some definition of a lot) that indicate that the console does *not* support unicode. The main issue is the issue #1602. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23901 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23686] Update Windows and OS X installer OpenSSL to 1.0.2a
Zachary Ware added the comment: I've updated 2.7 and 3.4, but 3.5 is a different matter. Steve, I'll want to take a look at it with you at the sprints; 1.0.2 changed enough that the projects you wrote for OpenSSL broke. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23686 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13238] Add shell command helpers to subprocess module
R. David Murray added the comment: Having reviewed this issue, I don't see any point to leaving it open. If any additional shell command helpers are added to the stdlib, it should be an ab-initio discussion based on what exists in the field, and start on python-ideas. But given current sentiments about the stdlib, I doubt this is something we are likely to do in any case. -- resolution: - out of date stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13238 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23890] assertRaises increases reference counter
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23890 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21411] Enable Treat Warning as Error on 32-bit Windows
Zachary Ware added the comment: Steve Dower added the comment: I think we should fix all the warnings, but turning this on is a great way to make the build bots red often. That is the obvious downside. On the other hand, we do have a very old open issue (though I don't have the number handy) in which Guido made clear that a build with no warnings on every possible platform would be ideal and is desired, and this would help make sure we stay there when we reach that point. I believe they already go yellow for warnings, so people are somewhat informed, but I don't think we want to be more aggressive than that. The individual step is colored yellow, but not the whole build. So if you're just looking at the headings on the waterfall page, you'll never notice. I'm not sure if we can change that setting, but that might be a nicer solution. Also, I know someone who has a patch coming that fixes most of these, so we can ignore this for a bit more and just get the fix that way if we want. Ok, that sounds good. When that issue opens, would you mind linking it as a dependency of this one? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21411 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23817] Consider FreeBSD like any other OS in SOVERSION
koobs added the comment: @haypo, if you could take care of the change in default, 3.4 and 2.7, we can backport the rest downstream. Thank you :) @bapt, can you create a separate issue to cover the create foo.so.X' symlink request, so python@ (freebsd team) can work to patch locally with an upstream reference -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23817 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20660] Starting a second multiprocessing.Manager causes INCREF on all object created by the first one.
R. David Murray added the comment: Based on Richard's comments I'm closing this won't fix. If someone comes up with a clever solution, we can reopen. -- nosy: +r.david.murray resolution: - wont fix stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20660 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14218] include rendered output in addition to markup
Changes by Carol Willing willi...@willingconsulting.com: -- nosy: +willingc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14218 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23898] inspect() changes in Python3.4 are not compatible with objects that implement special __bool__, __eq__
New submission from mike bayer: this bug appeared in Python 3.4.The inspect.classify_class_attrs compares the identity objects of unknown type using the `==` operator unnecessarily and also evaluates objects of unknown type assuming they return `True` for a straight boolean evaluation. This breaks among other things the ability to use the help() function with SQLAlchemy mapped objects. Demo: class MySpecialObject(object): def __eq__(self, other): return MySpecialObject() def __bool__(self): raise NotImplementedError( This object does not specify a boolean value) class MyClass(object): some_thing = MySpecialObject() import inspect print(inspect.classify_class_attrs(MyClass)) # ultimate goal: help(MyClass) A patch here would be to compare unknown objects for identity using the `is` operator as well as using `is not None` when asserting that an object of unknown type is non-None. This patch resolves: --- inspect_orig.py 2015-04-09 10:28:46.0 -0400 +++ inspect.py 2015-04-09 10:29:37.0 -0400 @@ -380,7 +380,7 @@ # first look in the classes for srch_cls in class_bases: srch_obj = getattr(srch_cls, name, None) -if srch_obj == get_obj: +if srch_obj is get_obj: last_cls = srch_cls # then check the metaclasses for srch_cls in metamro: @@ -388,7 +388,7 @@ srch_obj = srch_cls.__getattr__(cls, name) except AttributeError: continue -if srch_obj == get_obj: +if srch_obj is get_obj: last_cls = srch_cls if last_cls is not None: homecls = last_cls @@ -402,7 +402,7 @@ # unable to locate the attribute anywhere, most likely due to # buggy custom __dir__; discard and move on continue -obj = get_obj or dict_obj +obj = get_obj if get_obj is not None else dict_obj # Classify the object or its descriptor. if isinstance(dict_obj, staticmethod): kind = static method -- components: Library (Lib) messages: 240331 nosy: zzzeek priority: normal severity: normal status: open title: inspect() changes in Python3.4 are not compatible with objects that implement special __bool__, __eq__ versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23898 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com