[issue20884] importlib/__init__.py can not be loaded without __file__ - breaks cxFreeze
Nick Coghlan added the comment: OK, that sounds reasonable. That means I think we need to: 1. add an explicit porting note to the What's New for 3.4.0 final about frozen modules no longer defining __file__ 2. fix importlib.__init__ to tolerate freezing again in 3.4.1 3. remove _frozen_importlib.__file__ in 3.4.1 (or 3.5?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20884 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14747] Classifiers are missing from distutils2-generated metadata
Changes by Éric Araujo mer...@netwok.org: -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14747 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14830] pysetup fails on non-ascii filenames
Changes by Éric Araujo mer...@netwok.org: -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14830 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2403] Add figleaf coverage metrics
Éric Araujo added the comment: Indeed, the devguide documents how to use coverage.py, and there is even a pure-stdlib solution with regrtest. I recommend closing this. -- resolution: - rejected stage: test needed - committed/rejected status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2403 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13400] packaging: build command should have options to control byte-compilation
Changes by Éric Araujo mer...@netwok.org: -- dependencies: -Add tests for files byte-compiled by distutils[2] resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13400 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14733] Custom commands don't work
Changes by Éric Araujo mer...@netwok.org: -- resolution: - fixed stage: - committed/rejected status: open - closed versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14733 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14651] pysetup run cmd can't handle option values in the setup.cfg
Changes by Éric Araujo mer...@netwok.org: -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14651 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14517] distutils always recompiles all C source files
Changes by Éric Araujo mer...@netwok.org: -- resolution: - works for me stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14517 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k
New submission from Andreas Schwab: m68k has the same problem as x86 with excess floating point precision. The attached patch implements the necessary support for HAVE_PY_SET_53BIT_PRECISION. -- components: Interpreter Core files: m68k-float-prec.patch keywords: patch messages: 213359 nosy: schwab priority: normal severity: normal status: open title: HAVE_PY_SET_53BIT_PRECISION for m68k type: enhancement versions: Python 3.3 Added file: http://bugs.python.org/file34387/m68k-float-prec.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20904 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20902] Which operand is preferred by set operations? Missing information in the documentation
Giacomo Alzetta added the comment: I asked this because, for example, in Haskell it *is* a well-defined behaviour (see its documentation at: http://hackage.haskell.org/package/containers-0.5.4.0/docs/Data-Set.html): the left operand is preferred by all operations. In fact, working with Haskell, I also have used such behaviour in the past. For example when writing a simple type-checker it's quite convenient to use such behaviour when handling environments where you want inner blocks to hide outer variables. Not defining such behaviour means that you must re-implement the wheel in order to achieve the correct behaviour. In any case, this information should be made explicit in the docs, whether we want to make the behaviour defined or not. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20902 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8254] write a configure command
Changes by Éric Araujo mer...@netwok.org: -- resolution: accepted - out of date stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8254 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +mark.dickinson, skrah, tim.peters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20904 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20905] Adapt heapq push/pop/replace to allow passing a comparator.
New submission from Prashant Sharma: It would be more convenient to extend heapq to support user defined comparators. Default can be cmp_lt in which case they behave as they do now. Caveat: What happens if uses switches comparator between calls to push or pop. The expected behavior can be unpredictable and should be obvious to the user of the API. It might also be good to state this obvious, if people here agree. P.S. I am really new to python world, forgive me for any kind of stupidity. Criticism and comments is what I am looking for here ! -- components: Library (Lib) files: heapq_com.patch keywords: patch messages: 213361 nosy: Prashant.Sharma priority: normal severity: normal status: open title: Adapt heapq push/pop/replace to allow passing a comparator. versions: Python 2.7, Python 3.4 Added file: http://bugs.python.org/file34388/heapq_com.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20905 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8357] Add a --show-installation-paths in the install command
Changes by Éric Araujo mer...@netwok.org: -- resolution: accepted - out of date stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8357 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8369] Add a lint command to distutils
Éric Araujo added the comment: This is better done by tools outside of the standard library. -- resolution: remind - rejected stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8369 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20905] Adapt heapq push/pop/replace to allow passing a comparator.
Prashant Sharma added the comment: Signed the PSF CLA. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20905 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12449] Add accelerator F to button Finish in all MSI installers made by bdist_msi
Éric Araujo added the comment: distutils2 is no more and the feature freeze for distutils was lifted. However, this does not strike me as an important feature to add. -- resolution: - rejected stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12449 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14848] Use shutil.move instead of os.rename in packaging
Changes by Éric Araujo mer...@netwok.org: -- resolution: - out of date stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14848 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20905] Adapt heapq push/pop/replace to allow passing a comparator.
Gareth Rees added the comment: It would be better to accept a key function instead of a comparison function (cf. heapq.nlargest and heapq.nsmallest). But note that this has been proposed before and rejected: see issue1904 where Raymond Hettinger provides this rationale: Use cases aside, there is another design issue in that the key-function approach doesn't work well with the heap functions on regular lists. Successive calls to heap functions will of necessity call the key- function multiple times for any given element. This contrasts with sort () where the whole purpose of the key function was to encapsulate the decorate-sort-undecorate pattern which was desirable because the key- function called exactly once per element. However, in the case of the bisect module (where requests for a key function are also common), Guido was recently persuaded that there was a valid use case. See issue4356, and this thread on the Python-ideas mailing list: https://mail.python.org/pipermail/python-ideas/2012-February/thread.html#13650 where Arnaud Delobelle points out that: Also, in Python 3 one can't assume that values will be comparable so the (key, value) tuple trick won't work: comparing the tuples may well throw a TypeError. and Guido responds: Bingo. That clinches it. We need to add key=. -- nosy: +Gareth.Rees ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20905 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5747] knowing the parent command
Changes by Éric Araujo mer...@netwok.org: -- resolution: - out of date stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5747 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20112] The documentation for http.server error_message_format is inadequate.
Anastasia.Filatova added the comment: I made a patch on this issue. I added a small example to the description. Should I provide a more detailed example or that one will be enough? Could someone please review the patch? -- keywords: +patch nosy: +Anastasia.Filatova Added file: http://bugs.python.org/file34389/Issue20112_py27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20112 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20112] The documentation for http.server error_message_format is inadequate.
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com: Added file: http://bugs.python.org/file34390/Issue20112_py33.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20112 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20112] The documentation for http.server error_message_format is inadequate.
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com: Added file: http://bugs.python.org/file34391/Issue20112_py34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20112 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19257] Sub-optimal error message when importing a non-package
Éric Araujo added the comment: Fix is simple: --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -1519,7 +1519,7 @@ def _find_and_load_unlocked(name, import path = parent_module.__path__ except AttributeError: msg = (_ERR_MSG + '; {} is not a package').format(name, parent) -raise ImportError(msg, name=name) +raise ImportError(msg, name=name) from None Manual testing confirms the fix. Is a unit test needed? Should this wait for 3.5? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19257 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20906] Unicode HOWTO
New submission from Graham Wideman: The Unicode HOWTO article is an attempt to help users wrap their minds around Unicode. There are some opportunities for improvement. Issues presented in order of the narrative: http://docs.python.org/3.3/howto/unicode.html History of Character Codes --- References to the 1980's are a bit off. In the mid-1980s an Apple II BASIC program... Assuming the comment is about the state of play in the mid-80's, then: The Apple II appeared in 1977. By 1985 we already had Macs, and PCs running DOS, which were capable of various character sets (not to mention lowercase letters!) In the 1980s, almost all personal computers were 8-bit Both the PC (1983) and Mac (1984) had 16-bit processors. Definitions: Characters are abstractions: Not helpful unless one already knows what abstraction means in this specific context. the symbol for ohms (Ω) is usually drawn much like the capital letter omega (Ω) in the Greek alphabet [...] but these are two different characters that have different meanings. Omega is a poor example for this concept. Omega is used as the identifier for a unit in the same way as m is used for meter, or A is used for ampere. Each is a specific use of a character, which, like any specific use, has a particular meaning. However, having a particular meaning doesn't necessarily require a separate character, and in the case of omega, the Unicode standard now says that the separate ohm character is deprecated. The ohm sign is canonically equivalent to the capital omega, and normalization would remove any distinction. http://www.unicode.org/versions/Unicode4.0.0/ch07.pdf#search=%22character%20U%2B2126%20maps%20OR%20map%20OR%20mapping%22 A better example might be the roman numerals, code points U+2160 and subsequent. Definitions A code point is an integer value, usually denoted in base 16. When trying to convey clearly the distinction between character, code point, and byte representation, the topic of how it's denoted is a potential distraction for the reader, so I suggest this point be a bit more explicitly parenthetical, and less confusable with 16 bit. Like: A code point value is an integer in the range 0 to over 0x10 (about 1.1 million, with some 110 thousand assigned so far). In a narrative such as the current article, a code point value is usually written in hexadecimal. The Unicode standard displays code points with the notation U+265E to mean the character with value 0x265e (9822 decimal; Black Chess Knight character). (Also revise subsequent para to use same example character. I suggest not using Ethiotic Syllable WI, because it's unfamiliar to most readers, and it muddies the topic by suggesting that Unicode in general captures _syllables_ rather than _characters_.) Encodings: --- This sequence needs to be represented as a set of bytes -- This code point sequence needs to be represented as a sequence of bytes 4. Many Internet standards are defined in terms of textual data This is a vague claim. Probably what was intended was: Many Internet standards define protocols in which the data must contain no zero bytes, or zero bytes have special meaning. Is this actually true? Are there many such standards? Generally people don’t use this encoding, Probably people per se don't use any encoding, computers do. -- Because of these problems, other more efficient and convenient encodings have been devised and are commonly used. For continuity, directly after that para should come the later paras starting with UTF-8 is one of the most common. 2. A Unicode string is turned into a string of bytes... -- 2. A Unicode string is turned into a sequence of bytes... (Ie: don't overload string in and article about strings and encodings.). Create a new subhead Converting from Unicode to non-Unicode encodings, and move under it the paras: Encodings don't have to... Latin-1, also known as... Encodings don't have to... But also revise: Encodings don’t have to handle every possible Unicode character, and most encodings don’t. -- Non-Unicode code systems usually don't handle all of the characters to be found in Unicode. -- assignee: docs@python components: Documentation messages: 213367 nosy: docs@python, gwideman priority: normal severity: normal status: open title: Unicode HOWTO type: enhancement versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20906 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19257] Sub-optimal error message when importing a non-package
Changes by Éric Araujo mer...@netwok.org: -- keywords: +needs review, patch stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19257 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19257] Sub-optimal error message when importing a non-package
STINNER Victor added the comment: --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py Eric, please attach the patch as a file to the issue, so it can be easily reviewed on Rietveld. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19257 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19257] Sub-optimal error message when importing a non-package
Éric Araujo added the comment: I figured it would take less time for someone to go to the file and make the edit than download and apply a patch file, but as you wish :) -- Added file: http://bugs.python.org/file34392/fix-import-not-package-tb.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19257 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20337] bdist_rpm should support %config(noreplace)
Éric Araujo added the comment: Can you give more information about this change? As a new feature, it cannot go into 2.7. -- components: +Distutils -Build nosy: +eric.araujo type: - enhancement versions: +Python 3.5 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20337 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19257] Sub-optimal error message when importing a non-package
STINNER Victor added the comment: I figured it would take less time for someone to go to the file and make the edit than download and apply a patch file, but as you wish :) It's not to apply the patch, but to review it. The Rietveld tool helps to review a patch online, it displays more context (lines before/after) ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19257 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20464] Update distutils sample config file in Doc/install/index.rst
Changes by Éric Araujo mer...@netwok.org: -- assignee: docs@python - eric.araujo nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20464 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20091] An index entry for __main__ in 30.5 runpy is missing
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20091 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20787] typo in asyncio docs for subprocess_exec()
Changes by Éric Araujo mer...@netwok.org: -- keywords: +needs review nosy: +haypo stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20787 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20842] pkgutil docs should reference glossary terms not PEP 302
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20842 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20905] Adapt heapq push/pop/replace to allow passing a comparator.
Prashant Sharma added the comment: Hey Gareth, add Key= approach also solves the purpose. The purpose is to be able to use heapq as max heap too conveniently. (I just wish python had minmaxheap too, but felt that is too much to ask for.) It is a very common usage and usual tricks of inverting the values( or negating) isn't great for all purposes. I am happy to redo the patch, if that is an acceptable solution. On a side note, did we also discuss about making some public functions for using heapq as max heap. (There are a few internal functions for the same). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20905 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall
New submission from Peter Santoro: Since Python 3.3.1, ZipFile.extractall was enhanced to better handle absolute paths and illegal characters. The associated logic within shutil._unpack_zipfile essentially skips zip members with these issues. If a zip file contains all absolute paths, ZipFile.extractall works as expected (i.e. the zip file is unpacked), but shutil._unpack_zipfile (normally called indirectly via shutil.unpack_archive) appears to do nothing (i.e. it silently fails to unpack the zip file). The attached patch attempts to unify the behavior of extracting zip files between shutil.unpack_archive with ZipFile.extractall. -- components: Library (Lib) files: shutil.diff keywords: patch messages: 213374 nosy: pe...@psantoro.net priority: normal severity: normal status: open title: behavioral differences between shutil.unpack_archive and ZipFile.extractall type: behavior versions: Python 3.3, Python 3.4 Added file: http://bugs.python.org/file34393/shutil.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20907 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20787] typo in asyncio docs for subprocess_exec()
Roundup Robot added the comment: New changeset 7a42fb12a736 by Victor Stinner in branch 'default': Close #20787: asyncio doc: fix typo. Patch written by akira. http://hg.python.org/cpython/rev/7a42fb12a736 -- nosy: +python-dev resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20787 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall
Changes by Éric Araujo mer...@netwok.org: -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20907 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20720] test_create_server() of test_asyncio failure on x86 Windows Server 2008 [SB] 3.x buildbot
STINNER Victor added the comment: The following change should fix this issue. changeset: 89480:56c346e9ae4d user:Victor Stinner victor.stin...@gmail.com date:Thu Mar 06 01:00:36 2014 +0100 files: Lib/asyncio/test_utils.py Lib/test/test_asyncio/test_events.py description: asyncio, Tulip issue 157: Improve test_events.py, avoid run_briefly() which is not reliable -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20720 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20889] asyncio.docs : asyncio.Condition acquire/release/locked method undocumented
Roundup Robot added the comment: New changeset f22e1d89486d by Victor Stinner in branch 'default': Close #20889: asyncio doc: Document acquire(), locked() and release() method of http://hg.python.org/cpython/rev/f22e1d89486d -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20889 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12135] The spawn function should return stderr.
Changes by Éric Araujo mer...@netwok.org: -- resolution: - out of date stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12135 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20889] asyncio.docs : asyncio.Condition acquire/release/locked method undocumented
STINNER Victor added the comment: Thanks Alexandre for the report. -- stage: committed/rejected - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20889 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20154] Deadlock in asyncio.StreamReader.readexactly() (fix applied, need unit test)
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Deadlock in asyncio.StreamReader.readexactly() - Deadlock in asyncio.StreamReader.readexactly() (fix applied, need unit test) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20154 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11599] Useless error message when distutils fails compiling
Roundup Robot added the comment: New changeset 43b06352221b by Éric Araujo in branch '3.3': Make distutils error messages more helpful (#11599). http://hg.python.org/cpython/rev/43b06352221b New changeset c04260b59e8c by Éric Araujo in branch 'default': Merge 3.3 (#11599) http://hg.python.org/cpython/rev/c04260b59e8c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11599 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11599] Useless error message when distutils fails compiling
Éric Araujo added the comment: Fixed! -- components: -Distutils2 resolution: - fixed stage: needs patch - committed/rejected status: open - closed versions: +Python 3.4 -3rd party, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11599 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: commit review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20763 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16535] json encoder unable to handle decimal
Changes by Éric Araujo mer...@netwok.org: -- hgrepos: -202 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16535 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16535] json encoder unable to handle decimal
Éric Araujo added the comment: Patch looks good and contains tests for the C and Python code. Documentation is missing (a note to tell that json.dump converts decimal.Decimal instances to JSON numbers, a versionchanged directive, maybe a link to the doc that explains parse_float=decimal.Decimal). -- stage: needs patch - patch review versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16535 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20842] pkgutil docs should reference glossary terms not PEP 302
Kushal Das added the comment: Will submit a patch for this. -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20842 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12901] Nest class/methods directives in documentation
Éric Araujo added the comment: I’m inclined to reject this patch: it doesn’t apply cleanly anymore, it does not cover all modules, and basically it’s markup changes without benefits for end users. Our doc can recommend nesting class and methods directives for new doc, and existing doc may or may not be changed when someone improves the contents. -- status: open - pending versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12901 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12258] Clean up bytes I/O in get_compiler_versions
Changes by Éric Araujo mer...@netwok.org: -- resolution: - out of date stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12258 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10884] pkgutil EggInfoDistribution requirements for .egg-info metadata
Changes by Éric Araujo mer...@netwok.org: -- resolution: - out of date stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10884 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8680] Add a sandbox in Distutils2
Changes by Éric Araujo mer...@netwok.org: -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8680 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1692592] Stripping debugging symbols from compiled C extensions
Changes by Éric Araujo mer...@netwok.org: -- resolution: - rejected stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1692592 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9309] Add environment variable complementing command line option -no-user-cfg
Changes by Éric Araujo mer...@netwok.org: -- components: +Distutils -Distutils2 resolution: - rejected stage: - committed/rejected status: open - closed versions: -3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9309 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12925] python setup.py upload_docs doesn't ask for login and password
Changes by Éric Araujo mer...@netwok.org: -- resolution: - out of date stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12925 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20891] PyGILState_Ensure on non-Python thread causes fatal error
Changes by Xavier Combelle xavier.combe...@gmail.com: -- nosy: +xcombelle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20891 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20908] Memory leak in Reg2Py()
New submission from Luis G.F: A memory leak can happend in Reg2Py() loosing the reference to str pointer. See file PC/winreg.c +947 -- components: Extension Modules, Windows messages: 213384 nosy: luisgf priority: normal severity: normal status: open title: Memory leak in Reg2Py() type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20908 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1617161] Instance methods compare equal when their self's are equal
Changes by Armin Rigo ar...@users.sourceforge.net: -- assignee: arigo - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1617161 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20908] Memory leak in Reg2Py()
Luis G.F added the comment: Attach of patch for the 3.3.5 version. -- keywords: +patch versions: +Python 3.3 Added file: http://bugs.python.org/file34394/winreg_leak_v33.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20908 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.
Saimadhav Heblikar added the comment: As a part of my GSOC 2014 proposal, i had prepared a mockup which adds linenumbering feature to a text widget.I am adding the mockup along with a image. Working: Intercepts low level calls and detects if any of the actions modify current view.If they do , then re-render the line numbers.Uses a canvas to display,(using create_text) *Also contains code to add breakpoints.Not a part of this issue,so ignore that aspect -- nosy: +sahutd Added file: http://bugs.python.org/file34395/line-numbering-mockup.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17535 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Added file: http://bugs.python.org/file34396/Screenshot from 2014-03-09 16:09:37.png ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17535 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Removed file: http://bugs.python.org/file34396/Screenshot from 2014-03-09 16:09:37.png ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17535 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Added file: http://bugs.python.org/file34397/line numbering mockup image.png ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17535 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16989] allow distutils debug mode to be enabled more easily
Jason R. Coombs added the comment: I'm not sure I understand the justification. If the patch serves a logical purpose, and distutils isn't deprecated in the current development line, then I would suggest we apply the patch. If we don't fix the behavior today, then the library will be in the same boat 5 years hence. The argument that many still rely on 2.7 could apply to any patch applied to 3.x. Furthermore, having better debug capability in even one version could provide packagers with a target in which to troubleshoot. I'd prefer the patch be accepted or rejected on merits. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16989 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19407] PEP 453: update the Installing Python Modules documentation
Roundup Robot added the comment: New changeset d22ef969cb82 by Nick Coghlan in branch 'default': Close #19407: New installation distribution guides http://hg.python.org/cpython/rev/d22ef969cb82 -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19407 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19407] PEP 453: update the Installing Python Modules documentation
Nick Coghlan added the comment: Not sure how much I'll be online tomorrow or Saturday, so I went ahead and committed what I had. The new guides definitely aren't perfect, but I think they're in acceptable shape for 3.4.0, and we can improve them in parallel with Python Packaging User Guide updates (e.g. there were some How do I...? questions I left unanswered because the relevant PPUG sections don't have answers yet. In particular, I completely punted on the non-PyPI distribution question for now) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19407 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20909] 3.4 cherry pick: d22ef969cb82 new distribution installation guides
New submission from Nick Coghlan: Cherry pick request for the Installation Distribution docs updates for PEP 453. New changeset d22ef969cb82 by Nick Coghlan in branch 'default': Close #19407: New installation distribution guides http://hg.python.org/cpython/rev/d22ef969cb82 -- assignee: larry components: Documentation messages: 213390 nosy: larry, ncoghlan priority: release blocker severity: normal stage: commit review status: open title: 3.4 cherry pick: d22ef969cb82 new distribution installation guides type: enhancement versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20909 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19407] PEP 453: update the Installing Python Modules documentation
Roundup Robot added the comment: New changeset f5be4ea5b43e by Nick Coghlan in branch 'default': Issue #19407: fix link http://hg.python.org/cpython/rev/f5be4ea5b43e -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19407 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20909] 3.4 cherry pick: d22ef969cb82 f5be4ea5b43e new distribution installation guides
Nick Coghlan added the comment: Additional change set to fix a couple of malformed links: New changeset f5be4ea5b43e by Nick Coghlan in branch 'default': Issue #19407: fix link http://hg.python.org/cpython/rev/f5be4ea5b43e -- title: 3.4 cherry pick: d22ef969cb82 new distribution installation guides - 3.4 cherry pick: d22ef969cb82 f5be4ea5b43e new distribution installation guides ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20909 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20884] importlib/__init__.py can not be loaded without __file__ - breaks cxFreeze
Brett Cannon added the comment: I assume you mean for 3. to fix PyImport_ImportFrozenModuleObject() and not stop resetting __file__ for _frozen_importlib in importlib.__init__ like we are currently doing. I think you're right that it could wait until 3.5 as it will only be apparent to people who are poking around with importlib._bootstrap -- which people should not be doing -- or are using imp.init_frozen() which isn't even documented anymore. -- versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20884 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19257] Sub-optimal error message when importing a non-package
Brett Cannon added the comment: Is it confusing though? If you only had the latter exception all you would know is Python doesn't consider datetime a package but you wouldn't know why that is unless you knew the exact definition (the __path__ attribute exists). Having the former exception helps make that a bit more obvious if you didn't already know it. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19257 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20910] Make sleep configurable in tests
New submission from STINNER Victor: Hi, I'm trying to make Python test suite reliable, but it's hard because the speed of our farm of buildbots varies a lot. The whole test suite takes less than 10 minutes on some buildbots (or event less than 5 minutes), while it took 10 hours on other buildbots. Some tests use time.sleep() as a basic synchronization primitive, because other synchronization primitive cannot be used. For example, lock_tests.py tests locks and so cannot use lock in its tests. The problem is that slow buildbots require long sleep. It makes the test suite slow, whereas fast buildbots could use short lseep. Some tests make sure that an operation takes less than N seconds. It's very hard to choose a N value for all buildbots. To make tests pass on all buildbots, N can be configured for the slowest buildbots. I propose to make time configurable in the test suite: - add support.TEST_SLEEP constant: it can be between 50 ms and 1 sec, or longer for very slow buildbots - add support.TEST_SHORT_SLEEP constant: shorter than TEST_SLEEP, it is usually used to yield the control to another thread or another process and it can be very short (1 ms) - add a new check_time_delta() functions to check time deltas - add a new --test-sleep command line option to regrtest.py (python -m test) check_time_delta() uses the resolution of the clock to tolerate a small difference. This is important on Windows where the resolution is usually 15.6 ms whereas tests use timings close to 100 ms. Seen values in tests: - TEST_SLEEP: sleep between 100 ms and 3 sec - TEST_SHORT_SLEEP: 1 ms or 10 ms - check_time_delta(): tolerate between 500 and 800 ms on slow buildbots I chose TEST_SHORT_SLEEP for time 100 ms, and TEST_SLEEP for the other sleep. Some issues related to slow buildbots: - #11185 - #20101 - #20336 The goal of my changes is to run the test suite as fast as possible, so to reduce the sleep. My plan: - keep current timings for buildbots, but use very short timings by default - configure slow buildbots to use longer sleep - use short sleep for the default buildbot configuration Buildbot config of my patch: - TEST_SLEEP: 500 ms - TEST_SHORT_SLEEP: 10 ms - check_time_delta().slow_buildbot: 1 sec Default config of my patch: - TEST_SLEEP: 50 ms - TEST_SHORT_SLEEP: 1 ms - check_time_delta().slow_buildbot: 0 ms The patch doesn't change timings in tests executed in subprocesses, because test.regrtest only modifies test.support variables in the current process. It can be improved later. -- files: test_sleep.patch keywords: patch messages: 213395 nosy: haypo priority: normal severity: normal status: open title: Make sleep configurable in tests versions: Python 3.4 Added file: http://bugs.python.org/file34398/test_sleep.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20910 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18217] Deprecate and remove gettext.install
Barry A. Warsaw added the comment: On Mar 13, 2014, at 05:15 AM, Éric Araujo wrote: The source contains :meth:`self.gettext`, and Sphinx adds the parentheses when creating markup for a function, probably because it’s common to say things like “the len() function”. There is a Sphinx config value to control that. If one wants to keep the parens for most functions but not have them in a few cases, other markup than :meth:/:func: has to be used. The defaults should definitely be kept for :meth: and :func: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18217 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20910] Make sleep configurable in tests
STINNER Victor added the comment: The test suite pass with test_sleep.patch applied on my fast Linux PC. The test must be tested on Windows (because of the clock resolution of 15.6 ms). I run the unit test using the command ./python -m test -j0 -rW. By the way, do you have an idea to simulate a very slow buildbot? Incomplete list of tests which fail with a sleep of 1 nanosecond: test_asyncore test_socket test_wait4 test_faulthandler test_time test_threading test_wait3 test_fork1 I didn't check if it's a bug in the test or not. But at least, this one looks like a bug in the test: sleep(0.5) takes *at least* 0.5 seconds, max_dt should be bigger (maybe 0.6 ? or at least 0.5001). == FAIL: test_monotonic (test.test_time.TimeTestCase) -- Traceback (most recent call last): File /home/haypo/prog/python/default/Lib/test/test_time.py, line 397, in test_monotonic support.check_time_delta(0.5, dt, 0.5, clock='monotonic') File /home/haypo/prog/python/default/Lib/test/support/__init__.py, line 2241, in check_time_delta message)) AssertionError: timing 500.4 ms seconds max timing 500.0 ms seconds; the clock 'monotonic' has a resolution of 1.0 ns; tolerate 1.0 ns seconds See also Nick's PEP: Core development workflow automation for CPython http://legacy.python.org/dev/peps/pep-0462/ -- nosy: +ncoghlan, pitrou, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20910 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20891] PyGILState_Ensure on non-Python thread causes fatal error
STINNER Victor added the comment: IMO it's a bug in PyEval_InitThreads(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20891 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20910] Make sleep configurable in tests
R. David Murray added the comment: Would it be possible for regrtest to do some operations to estimate the speed and choose good values for the constants automatically? If you have the right kind of VM setup, you could simulate a slow buildbot by giving the VM a low CPU share and then running something compute intensive elsewhere on the machine. Since many of the buidbots *are* VMs, this would probably be a good test :) -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20910 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20265] Bring Windows docs up to date
Zachary Ware added the comment: Éric Araujo wrote: From #20265: Correction, this is #20265, that message was from #20266 :) Kathleen: both Éric and I have left some review comments for you in Rietveld, which should have sent you an email with the comments and links to the Rietveld review. Also, if you're having end-of-line issues, I would recommend turning on the Mercurial eol extension (either edit %userprofile%\Mercurial.ini manually, or use the Extensions section of File - Settings... from TortoiseHg Workbench). To work most effectively, you'll need to update to the 'null' revision, then update back to default after turning on eol. That will ensure that most files have \r\n line endings and hg can keep line endings straight for you thereafter. Here's a sample of my Mercurial.ini with some other things you may be interested in: [extensions] ;keep eols straight eol= ;delete untracked files (helps with starting from a clean slate) purge= ;colorize output, including making trailing whitespace visible in diffs color= ;create several clones that share history, useful for keeping ;separate clones per branch without having to pull individually share= [defaults] ;don't try to commit when importing a patch import = --no-commit -- title: Bring Doc/using/windows up to date - Bring Windows docs up to date ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20265 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20265] Bring Windows docs up to date
Kathleen Weaver added the comment: It was Visual Studio that messed up the end of line feeds, it keep telling me that there was a problem but I didn't know what it meant. Erik and I were in #pyladies and he really helped me. As soon as I get done with gym and other mundane errands I will get back on this. I can't get over how helpful and nice everyone is! smile Sent using OWA for iPhone From: Zachary Ware rep...@bugs.python.org Sent: Thursday, March 13, 2014 9:29:14 AM To: Kathleen Weaver Subject: [issue20265] Bring Windows docs up to date Zachary Ware added the comment: Éric Araujo wrote: From #20265: Correction, this is #20265, that message was from #20266 :) Kathleen: both Éric and I have left some review comments for you in Rietveld, which should have sent you an email with the comments and links to the Rietveld review. Also, if you're having end-of-line issues, I would recommend turning on the Mercurial eol extension (either edit %userprofile%\Mercurial.ini manually, or use the Extensions section of File - Settings... from TortoiseHg Workbench). To work most effectively, you'll need to update to the 'null' revision, then update back to default after turning on eol. That will ensure that most files have \r\n line endings and hg can keep line endings straight for you thereafter. Here's a sample of my Mercurial.ini with some other things you may be interested in: [extensions] ;keep eols straight eol= ;delete untracked files (helps with starting from a clean slate) purge= ;colorize output, including making trailing whitespace visible in diffs color= ;create several clones that share history, useful for keeping ;separate clones per branch without having to pull individually share= [defaults] ;don't try to commit when importing a patch import = --no-commit -- title: Bring Doc/using/windows up to date - Bring Windows docs up to date ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20265 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20265 ___ ___ 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
R. David Murray added the comment: Looking at the PEP, I don't think there's anything in there that can just be copied to the docs. I've suggested to one of the new contributors to do the break out of the error handlers into its own section, and then someone with more understanding of surrogate escape and how we use it can write up the description for the sub-section. -- nosy: +r.david.murray ___ 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
[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process
Zachary Ware added the comment: The problem with the previous approach and building inside Visual Studio was that makefile.vc in both Tcl and Tk first checks for one of MSDEVDIR, MSVCDIR, VCINSTALLDIR, MSSDK or WINDOWSSDKDIR being set, which Visual Studio doesn't set. That issue could have been fixed basically the same way I fixed it in the new approach (set MSDEVDIR to a dummy value, probably in build_tkinter.py), but the new approach strikes me as being simpler and cleaner. Not to mention that without the dependency python.vcxproj, tcl/tk/tix can be built in parallel with other projects (like pythoncore, the longest-running Python project) using the msbuild /m switch. I welcome having more eyes on it :). I definitely won't be committing before 3.4.0 final (scheduled for the 16th), and it may be a week or better after that before I have good opportunity. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15968 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20910] Make sleep configurable in tests
STINNER Victor added the comment: Would it be possible for regrtest to do some operations to estimate the speed and choose good values for the constants automatically? It might be possible to make the parameters dynamic, for example using the system loads. But I'm not really interested to invest too much time on optimizing the timing parameters for buildbots. I would like to ensure that tests pass with a short test sleep on my PC. For example, it looks weird to check that a sleep of 500 ms takes less 1.5 seconds: why not testing that the sleep takes less than 600 ms? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20910 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20910] Make sleep configurable in tests
STINNER Victor added the comment: The test must be tested on Windows (because of the clock resolution of 15.6 ms). The test suite pass on Windows too (PCbuild\python_d.exe -m test). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20910 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20911] urllib 'headers' is not a well defined data type
New submission from R. David Murray: Some places in the code it is an email.message.Message object. Some places it is a simple dictionary. In one place (FTP), it is a string with embedded newlines. I'm not sure what should be done about this situation, but it looks like a bug magnet, and it makes it pretty much impossible to document the data type. -- messages: 213406 nosy: r.david.murray priority: normal severity: normal status: open title: urllib 'headers' is not a well defined data type type: behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20911 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20910] Make sleep configurable in tests
Antoine Pitrou added the comment: It might be possible to make the parameters dynamic, for example using the system loads. But I'm not really interested to invest too much time on optimizing the timing parameters for buildbots. I would like to ensure that tests pass with a short test sleep on my PC. For example, it looks weird to check that a sleep of 500 ms takes less 1.5 seconds: why not testing that the sleep takes less than 600 ms? Because it's too tight for some systems. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20910 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20517] Support errors with two filenames for errno exceptions
R. David Murray added the comment: In 3.3: x = OSError(2, 'No such file or directory', 'foo', 0, 'bar') str(x) (2, 'No such file or directory', 'foo', 0, 'bar') So, I don't see this as a realistic backwards compatibility problem worthy of a porting note. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20517 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20908] Memory leak in Reg2Py()
Jesús Cea Avión added the comment: I take care of this. -- assignee: - jcea nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20908 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15701] AttributeError from HTTPError when using digest auth
Roundup Robot added the comment: New changeset 361c10d06b9c by R David Murray in branch 'default': whatsnew: HTTPError.headers (#15701). http://hg.python.org/cpython/rev/361c10d06b9c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15701 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20784] 'collections.abc' is no longer defined when collections is imported
Roundup Robot added the comment: New changeset d575398d1916 by R David Murray in branch 'default': whatsnew: collections no longer implicitly imports 'abc' (#20784). http://hg.python.org/cpython/rev/d575398d1916 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20784 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20784] 'collections.abc' is no longer defined when collections is imported
R. David Murray added the comment: I've documented that 'collections.abc' is no longer implicit, which I presume means we are going to keep this behavior. (Unless you tell me to revert that and we fix it as a regression in 3.4.1). As long as an application follows the note and explicitly imports collections.abc, I would think that the freeze tools would do the right thing. I'd think they'd do the right thing anyway, since _collections_abc appears in an 'import from' in collections.__init__, so I'm not clear what problem is anticipated for freeze tools that is different from the one that any program relying on the implicit import would face. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20784 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19861] Update What's New for Python 3.4
R. David Murray added the comment: I'm done with everything in my edit queue except the final copy-edit/formatting pass. So if you know of anything missing, let me know. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19861 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20908] Memory leak in Reg2Py()
Jesús Cea Avión added the comment: This is not actually important, since the program will finish a second after this. But cleanup is simple enough. -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20908 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20908] Memory leak in Reg2Py()
Roundup Robot added the comment: New changeset b44a3f6676b8 by Jesus Cea in branch '2.7': Closes #20908: Memory leak in Reg2Py() http://hg.python.org/cpython/rev/b44a3f6676b8 New changeset 07968254be96 by Jesus Cea in branch '3.3': Closes #20908: Memory leak in Reg2Py() http://hg.python.org/cpython/rev/07968254be96 New changeset 227405961789 by Jesus Cea in branch 'default': MERGE: Closes #20908: Memory leak in Reg2Py() http://hg.python.org/cpython/rev/227405961789 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20908 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20912] [zipfile.py]: Make zip directory attributes more friendly for MS-Windows
New submission from Vitaly Murashev: When I use 'zip' command-line tool on my Ubuntu 10.04 to pack a directory in zip-archive, it internally assigns '0x41ed0010' attributes for it. 0x41ed0010 = 0x41ed 0xfff + 0x0010 Where: 0x41ed - unix attributes (40755) 0x0010 - means # MS-DOS directory flag At the same time zipfile.py doesn't provide MS-DOS directory flag. It seems be a good idea to do it. Patch suggested over 3.3.3 code-base. -- components: Library (Lib) files: zipfile.py.diff keywords: patch messages: 213416 nosy: vmurashev priority: normal severity: normal status: open title: [zipfile.py]: Make zip directory attributes more friendly for MS-Windows type: behavior versions: Python 3.3, Python 3.4, Python 3.5 Added file: http://bugs.python.org/file34399/zipfile.py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20912 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16104] Use multiprocessing in compileall script
Claudiu.Popa added the comment: Here's a new patch which addresses Éric's last comments. Antoine, I don't have at my disposal a system without multiprocessing support. How does it crash? -- Added file: http://bugs.python.org/file34400/issue16104_5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16104 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20910] Make sleep configurable in tests
Zachary Ware added the comment: I got a few failures on my Windows machine running `PCbuild\python_d.exe -m test -j0 -rW` [1], only one of which looks relevant [2]: == FAIL: test_monotonic (test.test_time.TimeTestCase) -- Traceback (most recent call last): File P:\Projects\OSS\Python\hg.python.org\default\cpython\lib\test\test_time. py, line 397, in test_monotonic support.check_time_delta(0.5, dt, 0.5, clock='monotonic') File P:\Projects\OSS\Python\hg.python.org\default\cpython\lib\test\support\__ init__.py, line 2241, in check_time_delta message)) AssertionError: timing 608.0 ms seconds max timing 500.0 ms seconds; the clock 'monotonic' has a resolution of 15.6 ms; tolerate 1.0 ms seconds -- Ran 45 tests in 1.869s FAILED (failures=1, skipped=12) test test_time failed It may be interesting to also run this on a couple of the Windows buildbot 'custom' builders, particularly the XP bot (which has an odd resolution for time.monotonic) and the x86 Server 2003 bot (which is notoriously slow). [1] excluding test_urllib2_localnet and test_asyncio, test_urllib2_localnet doesn't play nice with my network and test_asyncio had an output-eating failure on a previous attempt [2] the other failures were test_os, test_ssl, and test_socket. I believe their failures to be issues with my machine. -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20910 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16104] Use multiprocessing in compileall script
Antoine Pitrou added the comment: Here's a new patch which addresses Éric's last comments. Antoine, I don't have at my disposal a system without multiprocessing support. How does it crash? Neither do I, but you will probably get an ImportError of some sort. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16104 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue672115] Assignment to __bases__ of direct object subclasses
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue672115 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k
Mark Dickinson added the comment: Technically I guess this counts as a new feature. It would be painful to have to wait for 3.5, though. I wonder whether we can sneak this in after 3.4 is released? Is the __mc68000__ #define specific to gcc? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20904 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12901] Nest class/methods directives in documentation
Georg Brandl added the comment: Agreed. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12901 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com