[issue14161] python2 file __repr__ does not escape filename
Ezio Melotti ezio.melo...@gmail.com added the comment: The attached patch seems to do the trick (not sure if it's the best way to fix the issue though): open('woo\raa') open file 'woo\raa', mode 'r' at 0xb77c2aa8 open('woo\ra\'a', 'w') open file woo\ra'a, mode 'w' at 0xb77c2b88 open('woo\ra\'a', 'w') open file 'woo\ra\'a', mode 'w' at 0xb77c2b18 It's more or less equivalent to: - return open file '%s', mode '%s' at %p % (fname, mode, addr) + return open file %s, mode '%s' at %p % (repr(fname), mode, addr) -- keywords: +patch stage: needs patch - test needed Added file: http://bugs.python.org/file24694/issue14161.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14161 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14150 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)
Stefan Krah stefan-use...@bytereef.org added the comment: From the PEP: The buffer interface (type Py_buffer, type slots bf_getbuffer and bf_releasebuffer, etc) has been omitted from the ABI, since the stability of the Py_buffer structure is not clear at this time. Inclusion in the ABI can be considered in future releases. Great, that's exactly what I was looking for. - As far as I can see the issue is finished, so I'm closing it. Thanks again everyone for all the help! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1346572] Remove inconsistent behavior between import and zipimport
Éric Araujo mer...@netwok.org added the comment: Still an issue with 3.2: zipimport considers both pyc and pyo with or without -O. The discussion starts here: http://mail.python.org/pipermail/python-dev/2006-November/thread.html#69822 (This was originally closed instead of asking for another fix because SourceForge separated bugs and patches.) -- nosy: +brett.cannon, eric.araujo, ncoghlan resolution: invalid - stage: - needs patch status: closed - open versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1346572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1346572] Remove inconsistent behavior between import and zipimport
Éric Araujo mer...@netwok.org added the comment: I need to qualify something: I reproduced the bug with legacy/pre-PEP 3147/in-the-same-dir pyc and pyo files. One could argue that pycache directories in 3.2+ make this irrelevant and that it’s too late for 2.x. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1346572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers
Stefan Krah stefan-use...@bytereef.org added the comment: I'm trying to understand what you want to be able to write. Do you perhaps have a short example? Also, to get the bigger picture: Is this related to your strview proposal? http://mail.python.org/pipermail/python-ideas/2011-December/012993.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13797 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers
Nick Coghlan ncogh...@gmail.com added the comment: Consider a Python wrapper around a bytes object, or mmap or similar that wants to pass PEP 3118 buffer requests through to the underlying object. Currently, there's no way to write such a delegation - the delegating class has to be written in C. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13797 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14155] Deja vu in re's documentation
Ezio Melotti ezio.melo...@gmail.com added the comment: Do you think I should mention that you can still use match and a regex that starts to ^ in combination with the start argument of r.match to match at the beginning of a line? I'm not sure that's necessary. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14155 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8170] Wrong Paths for distutils build --plat-name=win-amd64
Robin Becker rgbec...@users.sourceforge.net added the comment: I cheated on the building both versions. I had 32 bit python installed and with the help of a colleague got hold of the installed files for the 64 bit version. I noticed that distutils was looking for the 64bit files in new_lib = os.path.join(sys.exec_prefix, 'PCbuild'). However, even though I had the files there the loader was missing them and trying to use the earlier lib specs. Experimenting with the command line led to the desire to prioritize the amd4 lib specification ie use insert instead of append for library_dirs. After this patch things do seem to work, but perhaps there's a better fix that removes/moves the 32 bit libs in some way. However, given that I am building the exes with a 32 bit python I suppose it's natural for distutils to assume we need the 32 bit libs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4080] unittest: display time of each test case
Michael Foord mich...@voidspace.org.uk added the comment: Yes, it would definitely be useful (as would a count of how far through the test run we are [27/129] style). Getting to completing (even for testing) the extensible unittest is something I will still do (and nose2 is being built off the prototype work I did), but isn't going to happen immediately - so it's not a good reason to hold up these improvements. I'll be sprinting at PyCon and look at this issue then. I'm keen to avoid proliferating command line parameters to the unittest test runner. Ezio - why would you want to disable this feature? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14164] my little contribution to the docs
New submission from John Napster john.nap...@gmail.com: This patch fixes some small grammar things in the docs. Hope you like my contribution. -- assignee: docs@python components: Documentation files: patch.diff keywords: patch messages: 154688 nosy: docs@python, joenapnap priority: normal severity: normal status: open title: my little contribution to the docs type: enhancement versions: Python 2.7, Python 3.2 Added file: http://bugs.python.org/file24695/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14164] my little contribution to the docs
Changes by Florent Xicluna florent.xicl...@gmail.com: -- stage: - patch review versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14159] __len__ method of weakset
Yury Selivanov yseliva...@gmail.com added the comment: As expected, it seems that the patch fixes the issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14159 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14162] PEP 416: Add a builtin frozendict type
STINNER Victor victor.stin...@gmail.com added the comment: Another frozendict usage example: freeze the dict of a new type if it contains __final__ in its namespace. Example: class Classic: ... pass ... Classic.attr=1 class FinalizedType: ... __final__=True ... FinalizedType.attr=1 (...) TypeError: 'frozendict' object does not support item assignment This patch is not part of the PEP 416 and is just a proof-of-concept. -- Added file: http://bugs.python.org/file24696/type_final.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14162 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14164] my little contribution to the docs
Petri Lehtinen pe...@digip.org added the comment: See also #13868 by Retro. -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers
Nick Coghlan ncogh...@gmail.com added the comment: To answer your other question, no, strview isn't related - that's strictly a PEP 3118 *consumer*, which is well supported from the Python side now that memoryview is fixed. The trick will be to allow a Python implemented object to be a PEP 3118 exporter *without* having to inherit from a C implemented type that does the slot mapping. Since PEP 3118 didn't describe a Python level API for the protocol, it may actually require a new PEP. One example for what you could do with it: use the new memoryview.cast() to provide multidimensional views on an exporter that only supports 1D exports natively. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13797 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12572] HP/UX compiler workarounds
Changes by Éric Araujo mer...@netwok.org: Added file: http://bugs.python.org/file22671/getpath.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14165] The new shlex.quote() function should be marked New in version 3.3
New submission from Sven Marnach s...@marnach.net: The function shlex.quotes() [1] does not yet exist in Python 3.2 [2], so it should be marked New in version 3.3. in the docs. I double-checked that it really does not yet exist in 3.2 and is not only missing from the 3.2 documentation. [1]: http://docs.python.org/dev/library/shlex.html#shlex.quote [2]: http://docs.python.org/py3k/library/shlex.html -- assignee: docs@python components: Documentation messages: 154693 nosy: docs@python, smarnach priority: normal severity: normal status: open title: The new shlex.quote() function should be marked New in version 3.3 versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14164] my little contribution to the docs
Eli Bendersky eli...@gmail.com added the comment: John, thanks for the contribution, however this is not a valid fix. See the Wikipedia page for floating point: http://en.wikipedia.org/wiki/Floating_point No dash! There is no need to go over the Python docs fixing such mistakes. If you have time to contribute to Python, there's *plenty* of opportunities to do so in a useful way. -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14166] private dispatch table for picklers
New submission from sbt shibt...@gmail.com: Currently the only documented way to have customised pickling for a type is to register a reduction function with the global dispatch table managed by the copyreg module. But such global changes are liable to disrupt other code which uses pickling. Multiprocessing deals with this by defining a ForkingPickler class which subclasses the pure python _Pickler class (using undocumented features), and supports registering reduction functions specifically for that class. I would like to see some documented alternative which works with both C and Python implementations. At least then multiprocessing can avoid using slow pure python pickling. The attached patch allows a pickler object to have a private dispatch table which it uses *instead* of the global one. It lets one write code like p = pickle.Pickler(...) p.dispatch_table = copyreg.dispatch_table.copy() p.dispatch_table[SomeClass] = reduce_SomeClass or class MyPickler(pickle.Pickler): dispatch_table = copyreg.dispatch_table.copy() MyPickler.dispatch_table[SomeClass] = reduce_SomeClass p = MyPickler(...) The equivalent using copyreg would be copyreg.pickle(SomeClass, reduce_SomeClass) p = pickle.Pickler(...) -- files: pickle_dispatch.patch keywords: patch messages: 154695 nosy: sbt priority: normal severity: normal status: open title: private dispatch table for picklers type: enhancement versions: Python 3.3 Added file: http://bugs.python.org/file24697/pickle_dispatch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14166 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14164] my little contribution to the docs
Matthew Johnson mat.joh...@gmail.com added the comment: I think he's right to fix those mistakes. Just see the first sentence @ http://docs.python.org/tutorial/floatingpoint.html#floating-point-arithmetic-issues-and-limitations It reads: Floating-point numbers are represented in [...] So as you can see, there are places in the docs where the hyphen/dash is there, other places where it is not. I, personally, don't get the whole some places yes, someplaces no philosophy. I think the patch should be applied. I think he was just trying to make some consistentcy in the docs as his first contribution. I must also point out that I don't understand the whole some places title-case, other places sentence-case titles in the docs. It's kind of confusing. What are your thoughts about all this? -- nosy: +Matthew.Johnson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14167] document return statement in finally blocks
New submission from Yury Selivanov yseliva...@gmail.com: I think that the documentation should put more emphasis on the `return` statement in a `finally` block. Example: def test(): try: 1/0 finally: return 10 test() 10 I think we need to add a warning, or at least a note, that 'return' masks exceptions, if any occurred. -- assignee: docs@python components: Documentation messages: 154697 nosy: Yury.Selivanov, docs@python, georg.brandl, rhettinger priority: normal severity: normal status: open title: document return statement in finally blocks type: enhancement versions: Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1346572] Remove inconsistent behavior between import and zipimport
Brett Cannon br...@python.org added the comment: I like that argument. =) If this is not an issue in Python 3.3 then this should be closed as out of date since it will break code if it is changed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1346572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14159] __len__ method of weakset
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1cd0688ff004 by Antoine Pitrou in branch '3.2': Issue #14159: Fix the len() of weak containers (WeakSet, WeakKeyDictionary, WeakValueDictionary) to return a better approximation when some objects are dead or dying. http://hg.python.org/cpython/rev/1cd0688ff004 New changeset b1b2a29d3d81 by Antoine Pitrou in branch 'default': Issue #14159: Fix the len() of weak containers (WeakSet, WeakKeyDictionary, WeakValueDictionary) to return a better approximation when some objects are dead or dying. http://hg.python.org/cpython/rev/b1b2a29d3d81 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14159 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14159] __len__ method of weakset
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b6acfbe2bdbe by Antoine Pitrou in branch '2.7': Issue #14159: Fix the len() of weak sets to return a better approximation when some objects are dead or dying. http://hg.python.org/cpython/rev/b6acfbe2bdbe -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14159 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14159] __len__ method of weakset
Antoine Pitrou pit...@free.fr added the comment: 2.7 didn't have the weak dict issue, but I still backported the tests there. Closing, should be fixed now. Thanks for reporting! -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14159 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14161] python2 file __repr__ does not escape filename
Antoine Pitrou pit...@free.fr added the comment: 1. PyObject_Repr() should IMO be preferred (it's the abstract, high-level function). 2. You must check the result for NULL before calling PyString_AsString() on it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14161 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1346572] Remove inconsistent behavior between import and zipimport
Éric Araujo mer...@netwok.org added the comment: It entirely depends on how much you care about pyc-only/pyo-only zipfile distributions, and compatibility between zipimport and importlib (i.e. if you don’t plan on matching the zipimport bug in importlib, might as well fix zipimport in 2.7 and 3.2). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1346572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5626] misleading comment in socket.gethostname() documentation
Changes by Berker Peksag berker.pek...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file24698/issue5626_v1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5626 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5626] misleading comment in socket.gethostname() documentation
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5626 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14165] The new shlex.quote() function should be marked New in version 3.3
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14165] The new shlex.quote() function should be marked New in version 3.3
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 73be78d21003 by Eli Bendersky in branch 'default': Add missing 'versionadded' for shlex.quote; closes #14165 http://hg.python.org/cpython/rev/73be78d21003 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14168] minidom behaves differently in 3.3 compared to 3.2
New submission from Vinay Sajip vinay_sa...@yahoo.co.uk: The following script, minidom_test.py, from xml.dom import minidom data = b''' rss xmlns:atom=http://www.w3.org/2005/Atom; version=2.0 channel linkhttps://example.com/blog//link atom:link href=https://example.com/rss2/; rel=self/atom:link item linkhttps://example.com/blog/1//link /item /channel /rss''' doc = minidom.parseString(data) for link in doc.getElementsByTagName('link'): print(link._attrs) produces different results in Python 3.2 and 3.3: vinay@eta-oneiric64:~/projects/scratch$ python3.2 minidom_test.py {} {} vinay@eta-oneiric64:~/projects/scratch$ python3.3 minidom_test.py None None -- components: Library (Lib), XML keywords: 3.2regression messages: 154705 nosy: loewis, r.david.murray, vinay.sajip priority: normal severity: normal status: open title: minidom behaves differently in 3.3 compared to 3.2 type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Updated patch available on Rietveld - I'll commit it four hours from now if there are no objections. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14158 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14169] compiler.compile fails on if statement in attached file
New submission from Fabio Menegazzo menega...@esss.com.br: compiler.compile fails on if statement in attached file. When executing the code compiler.compile(contents, 'string', 'exec') passing the attached file contents, the following error is raised: ValueError: chr() arg not in range(256) This won't fail when using the builtin compile. Also removing the if statement or any line before it, the contents are compiled successfully. -- files: small_with_error.py messages: 154707 nosy: menegazzobr priority: normal severity: normal status: open title: compiler.compile fails on if statement in attached file type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file24699/small_with_error.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14164] my little contribution to the docs
poq p...@gmx.com added the comment: It is generally considered more correct to write floating-point number, because floating-point is a compound adjective here. The hyphen clarifies that it should be parsed as ((floating point) number) instead of (floating (point number)). However, in practice floating point number is also commonly used. I completely agree with Eli that this is just nitpicking, and not a productive use of Python developers' time. -- nosy: +poq ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14164] Hyphenation suggestions - floating-point/floating point
Brian Curtin br...@python.org added the comment: Hyphenation changes are not going to be made unless the current text is actually incorrect, confusing, or leads to people misunderstanding what is meant. -- nosy: +brian.curtin resolution: - rejected stage: patch review - committed/rejected status: open - closed title: my little contribution to the docs - Hyphenation suggestions - floating-point/floating point ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14164] Hyphenation suggestions - floating-point/floating point
Andrew Smith smith.cookies...@gmail.com added the comment: I think he was trying to say that there is inconsistency in the docs... And since you guys are all about consistency... Why the punch below the belt? -- nosy: +Andrew.Smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14164] Hyphenation suggestions - floating-point/floating point
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1346572] Remove inconsistent behavior between import and zipimport
Brett Cannon br...@python.org added the comment: I don't care about compatibility between zipimport and importlib. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1346572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13491] Fixes for sqlite3 doc
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d2cf730de195 by Petri Lehtinen in branch '2.7': sqlite3: Port relevant documentation changes from 3.2 http://hg.python.org/cpython/rev/d2cf730de195 New changeset 5f492397ccb8 by Petri Lehtinen in branch '3.2': sqlite3: Port documentation changes from the 2.7 branch http://hg.python.org/cpython/rev/5f492397ccb8 New changeset 82032c64dd89 by Petri Lehtinen in branch 'default': Merge branch '3.2' http://hg.python.org/cpython/rev/82032c64dd89 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13491 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13491] Fixes for sqlite3 doc
Petri Lehtinen pe...@digip.org added the comment: All patches applied, thanks everybody! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13491 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14155] Deja vu in re's documentation
py.user port...@yandex.ru added the comment: this sentence was deleted: http://docs.python.org/py3k/library/re.html#matching-vs-searching The “match” operation succeeds only if the pattern matches at the start of the string regardless of mode, or at the starting position given by the optional pos argument regardless of whether a newline precedes it. this sentence exists now: http://docs.python.org/dev/library/re.html#re.match Note that even in MULTILINE mode, re.match() will only match at the beginning of the string and not at the beginning of each line. but the multiline mode affects on regex.match() a reader may confuse re.match() and regex.match(), although regex.match() cites to regex.search() -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14155 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14155] Deja vu in re's documentation
py.user port...@yandex.ru added the comment: I won't open another topic: 1) http://docs.python.org/py3k/library/re.html#regular-expression-syntax Most of the standard escapes supported by Python string literals are also accepted by the regular expression parser: \a \b \f \n \r \t \v \x \\ \b can be used only in character set [], when others can be used without it 2) http://docs.python.org/py3k/library/re.html#regular-expression-syntax Octal escapes are included in a limited form. If the first digit is a 0, or if there are three octal digits, it is considered an octal escape. Otherwise, it is a group reference. As for string literals, octal escapes are always at most three digits in length. http://docs.python.org/py3k/library/re.html#regular-expression-syntax description of the back refference: \number Matches the contents of the group of the same number. Groups are numbered starting from 1. For example, (.+) \1 matches 'the the' or '55 55', but not 'the end' (note the space after the group). This special sequence can only be used to match one of the first 99 groups. If the first digit of number is 0, or number is 3 octal digits long, it will not be interpreted as a group match, but as the character with octal value number. Inside the '[' and ']' of a character class, all numeric escapes are treated as characters. a duplicate -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14155 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2377] Replace __import__ w/ importlib.__import__
Brett Cannon br...@python.org added the comment: I have replied to Antoine's review and so generated a new patch. At this point my bootstrap_importlib branch is 5% slower in a standard build in the normal_startup benchmark (11% if you use a debug build). This is still w/o profiling the Python code to look for inefficiencies (of which I'm sure there are some considering how long I have been banging away at this code). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2377] Replace __import__ w/ importlib.__import__
Changes by Brett Cannon br...@python.org: Added file: http://bugs.python.org/file24700/131d1d107f26.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2377] Replace __import__ w/ importlib.__import__
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file24418/f0b459af26fb.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2377] Replace __import__ w/ importlib.__import__
Antoine Pitrou pit...@free.fr added the comment: At this point my bootstrap_importlib branch is 5% slower in a standard build in the normal_startup benchmark (11% if you use a debug build). I think that's fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14160] TarFile.extractfile fails to extract targets of top-level relative symlinks
Changes by Matthew Miller mat...@mattdm.org: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14160 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10484] http.server.is_cgi fails to handle CGI URLs containing PATH_INFO
Giovanni Funchal gafunc...@gmail.com added the comment: This is still an issue as of python 3.2.2 and is affecting me. -- nosy: +Giovanni.Funchal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10484 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10484] http.server.is_cgi fails to handle CGI URLs containing PATH_INFO
Senthil Kumaran sent...@uthcode.com added the comment: Oh Sorry. I shall fix this by this weekend. -- assignee: - orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10484 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10484] http.server.is_cgi fails to handle CGI URLs containing PATH_INFO
Glenn Linderman v+pyt...@g.nevcal.com added the comment: issue 13893 contains code that fixes this, and several other open issues. Sadly, I created that code by debugging and rewriting until it worked, and only then teased apart the specific, separable issues that I had debugged and fixed, and created issues. I'm not up to speed on the Python development process, but feel free to borrow any or all of my code in issue 13893, which contains the fixes for all the following issues: issue 10483 issue 10484 (this issue) issue 10485 issue 10486 (creates more standard Environment variables, not sure all) issue 10487 I would certainly like to see all of these issues fixed, rather than continue to maintain my own code in parallel to various Python releases. Whether they are fixed with my code, or with other code, is immaterial to me, but my code has been running for over a year in my environments without discovering additional bugs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10484 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 707586c70195 by Vinay Sajip in branch '3.2': Closes #14158: improved resilience to test files left behind. http://hg.python.org/cpython/rev/707586c70195 New changeset a92e73dfbff6 by Vinay Sajip in branch 'default': Closes #14158: merged test file resilience fix from 3.2. http://hg.python.org/cpython/rev/a92e73dfbff6 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14158 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13797 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14168] minidom behaves differently in 3.3 compared to 3.2
Éric Araujo mer...@netwok.org added the comment: That would be caused by Martin’s change in 5d27a32ebbcc. I don’t see the docs marking _attrs public, so I think this is not a bug. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14165] The new shlex.quote() function should be marked New in version 3.3
Éric Araujo mer...@netwok.org added the comment: Thanks, I forgot that :) shlex.quote used to be pipes.quote, an undocumented but used function; do you think this should be mentioned in shlex.quote’s doc to let people know thaw if they used pipes.quote they have an official upgrade path, or should we just leave it at that? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14170] print unicode string error in cmd console
New submission from nkxyz niklen...@gmail.com: print u'测试中文' 睺raceback (most recent call last): File C:\Users\__test.py, line 96, in module sys.exit(main()) File C:\Users\__test.py, line 84, in main print u'娴嬭瘯涓枃' IOError: [Errno 28] No space left on device the unicode must start with a ascii char, then print can works like this: print u' 测试中文' -- components: IO messages: 154724 nosy: nkxyz priority: normal severity: normal status: open title: print unicode string error in cmd console type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14170] print unicode string error in win8 cmd console
Changes by nkxyz niklen...@gmail.com: -- title: print unicode string error in cmd console - print unicode string error in win8 cmd console ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8706] accept keyword arguments on most base type methods and builtins
Éric Araujo mer...@netwok.org added the comment: I agree with Ezio and Raymond. Tentatively editing the title to reflect the reduction in scope. -- nosy: +eric.araujo title: accept keyword arguments on all base type methods and builtins - accept keyword arguments on most base type methods and builtins ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8706 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect
Éric Araujo mer...@netwok.org added the comment: Could you give the RFC section or URI? I glanced at the page about status codes but did not find a prohibition on POST. -- nosy: +eric.araujo title: urllib2 HTTPRedirectHandler not handling POST data in redirect - urllib2 HTTPRedirectHandler not forwarding POST data in redirect ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14144 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14166] private dispatch table for picklers
Changes by Éric Araujo mer...@netwok.org: -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14166 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14167] document return statement in finally blocks
Éric Araujo mer...@netwok.org added the comment: This behavior surprised me for a second, but it makes sense. An example in the docs is certainly appropriate. Would you like to suggest a place and phrasing for it? -- keywords: +easy nosy: +eric.araujo stage: - needs patch versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13719] bdist_msi upload fails
Éric Araujo mer...@netwok.org added the comment: Ralf, could you test my patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13719 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14164] Hyphenation suggestions - floating-point/floating point
Éric Araujo mer...@netwok.org added the comment: Python has a lot of known and unknown bugs that need to be fixed, many missing features needing to be implemented, and a lot of room for improvement in its documentation. That’s why we welcome people who want to help. You’re not the first one to propose a trivial typographic patch that is rejected. I’m writing this long-ish message to serve as a reference for future rejections. Maybe you thought it would be a risk-free way to become a contributor, but as it turns out, this kind of patches is not helpful. All Python developers are volunteers, and we review bugs and patches on our limited free time. It is worthwhile to fix clear errors, ambiguities, outdated facts and wrong advice in the documentation; it is not worthwhile to add or remove a few commas and hyphens just for consistency’s sake. (Moreover, hyphens in English don’t have rules as clear as we commonly think, like poq pointed.) There is no “some places title-case, other places sentence-case” philosophy; different people wrote various parts of the documentation, and we just live with it. We fix bugs, improve code, add examples, think about missing features, read specifications, reply to email, improve wordings; we just don’t have the time to care about questionable changes that don’t add any value for us or our users. Consistency is a design principle; it does not mean obsessive polishing. There are also other principles that are equally valid, and also pure pragmatic constraints. John and Matthew, you are more than welcome to report bugs you find, or to work on fixing a bug, from the long list of bugs that really would improve people’s life when fixed. If you are unsure about the process or about your patch, please join http://mail.python.org/mailman/listinfo/core-mentorship mailing list to ask any question you might have: we will help you. Hope this clarifies things without hurting anyone’s feelings. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect
Senthil Kumaran sent...@uthcode.com added the comment: Here is a section which talks about 3xx redirection http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html 10.3 Redirection 3xx This class of status code indicates that further action needs to be taken by the user agent in order to fulfill the request. The action required MAY be carried out by the user agent without interaction with the user if and only if the method used in the second request is GET or HEAD. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14144 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14165] The new shlex.quote() function should be marked New in version 3.3
Eli Bendersky eli...@gmail.com added the comment: IMHO just leave it. The documentation is mainly for reference, i.e. describing in the best way possible what's available *now*. If you want to mention an upgrade path, write a blog :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect
Éric Araujo mer...@netwok.org added the comment: That’s clear as mud :) If I read correctly, the text means that the user agent is free to follow redirects without asking the user if the request is GET or HEAD, and needs to ask the user if the request is e.g. POST. That’s in line with what Firefox does when you refresh after a POST: It asks you to confirm if you want the data to be re-sent. POST not being idempotent explains the need for this precaution. So, I think a library like urllib should not prevent people from doing something that is allowed. +1 to a new param to transfer the body when following a redirect under a POST. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14144 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1346572] Remove inconsistent behavior between import and zipimport
Éric Araujo mer...@netwok.org added the comment: OK, I’m leaving this open until the next weekly report just in case someone interested comes here and weighs in, otherwise I’ll close as wontfix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1346572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists
Éric Araujo mer...@netwok.org added the comment: Is 2.7 not affected? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14158 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11379] Remove lightweight from minidom description
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 81e606862a89 by Eli Bendersky in branch '3.2': Issue #11379: add a note in xml.dom.minidom suggesting to use etree in some cases http://hg.python.org/cpython/rev/81e606862a89 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11379 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11379] Remove lightweight from minidom description
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ccd16ad37544 by Eli Bendersky in branch '2.7': Issue #11379: add a note in xml.dom.minidom suggesting to use etree in some cases http://hg.python.org/cpython/rev/ccd16ad37544 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11379 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11379] Remove lightweight from minidom description
Eli Bendersky eli...@gmail.com added the comment: Committed to 2.7, 3.2 and 3.3 I suppose this issue can be closed now? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11379 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1346572] Remove inconsistent behavior between import and zipimport
Nick Coghlan ncogh...@gmail.com added the comment: Does compileall generate both .pyc and .pyo by default? Or do you have to run it twice? If the latter, does pysetup handle that for you? MvL is correct that zipimport should ignore .pyo files when __debug__ is set and vice-versa, but the precompilation tools should also take care of generating both versions by default. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1346572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1346572] Remove inconsistent behavior between import and zipimport
Éric Araujo mer...@netwok.org added the comment: Does compileall generate both .pyc and .pyo by default? python3 -m compileall generates pyc, python3 -O -m compileall pyo. Functions in py_compile and compileall gained an optimize argument in 3.2. does pysetup handle that for you? You’ll have to be more specific. Bytecode files can be created when building a bdist or on install from source. Packaging commands do not depend on the calling Python’s -O option, they have their own options to let users specify if they want pyc files, pyo, neither or both. MvL is correct that zipimport should ignore .pyo files when __debug__ is set and vice-versa, but the precompilation tools should also take care of generating both versions by default. Really? The behaviors of compileall and packaging seems better to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1346572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14170] print unicode string error in win8 cmd console
Martin v. Löwis mar...@v.loewis.de added the comment: What is the code page of your console (try: chcp). -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1346572] Remove inconsistent behavior between import and zipimport
Nick Coghlan ncogh...@gmail.com added the comment: Status quo sounds fine then. +1 for closing it again. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1346572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14171] warnings from valgrind about openssl as used by CPython
New submission from Zooko O'Whielacronx zo...@zooko.com: The buildbot for the Tahoe-LAFS and pycryptopp projects runs CPython under valgrind on Fedora, and valgrind emits warnings like this: ==30127== Conditional jump or move depends on uninitialised value(s) ==30127== at 0x4C2AD01: bcmp (mc_replace_strmem.c:889) ==30127== by 0xC1D1646: fips_get_entropy (fips_drbg_lib.c:166) ==30127== by 0xC1D1D6E: FIPS_drbg_instantiate (fips_drbg_lib.c:234) ==30127== by 0xC15F590: RAND_init_fips (rand_lib.c:286) ==30127== by 0xC0F54D3: OPENSSL_init_library (o_init.c:106) ==30127== by 0xBE76AF8: SSL_library_init (ssl_algs.c:68) ==30127== by 0xBC2B39D: init_hashlib (in /usr/lib64/python2.7/lib-dynload/_hashlib.so) ==30127== by 0x4F1DB00: _PyImport_LoadDynamicModule (in /usr/lib64/libpython2.7.so.1.0) You can see the full output from such a buildbot run here: https://tahoe-lafs.org/buildbot-pycryptopp/builders/Ruben%20Fedora%20syslib/builds/58/steps/test%20valgrind/logs/valgrind Here is information about the versions of software involved: https://tahoe-lafs.org/buildbot-pycryptopp/builders/Ruben%20Fedora%20syslib/builds/58/steps/show-tool-versions/logs/stdio The owner of the buildslave machine says that the openssl package was openssl-1.0.1-0.1.beta2.fc17.x86_64. Not having looked closer, I assume this is just a case of openssl using uninitialized memory as part of the initialization of the PRNG. Accordingly, I wrote suppressions stanzas for our valgrind suppressions file, which made the warnings go away. Here are the suppression expressions: # generated on buildbot.rubenkerkhof.com, which had, according to Ruben # Fedora's package openssl-1.0.1-0.1.beta2.fc17.x86_64 { buildbot.rubenkerkhof.com cond fips openssl 1 Memcheck:Cond fun:bcmp fun:fips_get_entropy fun:FIPS_drbg_instantiate fun:RAND_init_fips fun:OPENSSL_init_library fun:SSL_library_init fun:init_hashlib } { buildbot.rubenkerkhof.com cond fips openssl 2 Memcheck:Cond fun:fips_get_entropy fun:FIPS_drbg_instantiate fun:RAND_init_fips fun:OPENSSL_init_library fun:SSL_library_init fun:init_hashlib } { buildbot.rubenkerkhof.com val _x86_64_AES_encrypt_compact Memcheck:Value8 fun:_x86_64_AES_encrypt_compact fun:AES_encrypt } I opened this ticket on launchpad.net to track the handling of this issue in various projects such as openssl, pycryptopp, CPython, valgrind, and Fedora: https://bugs.launchpad.net/pycryptopp/+bug/944585 -- components: Library (Lib) files: cpython-openssl101.supp messages: 154742 nosy: zooko priority: normal severity: normal status: open title: warnings from valgrind about openssl as used by CPython versions: Python 2.7 Added file: http://bugs.python.org/file24701/cpython-openssl101.supp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14171 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8706] accept keyword arguments on most base type methods and builtins
Gregory P. Smith g...@krypto.org added the comment: restricting the scope of this makes sense. also: just because an argument is listed in the docs with a name does not mean that that name is the most appropriate; part of adding keyword support should be choosing a sensible name. Keyword arguments, when used, should increase the readability of code rather than add to confusion. I intend to bring this up for a brief discussion at the language summit next week as representatives of all the Python VMs will be in the same room at once. Goal: define the appropriate scope or at the very least non-scope. As for performance and memory use, yes, it could have a small impact but it should not be large [worth measuring] and that seems like something we should fix in a more general way rather than by limiting the way methods can be called based on how a given VM is implemented. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8706 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8890] Use tempfile instead of /tmp in examples
Petri Lehtinen pe...@digip.org added the comment: I think this issue was closed too hastily. Only the logging documentation has been fixed. @grubert: I agree with the assumption that /tmp is mostly used because it's writable. In my opinion, the directory could just be left out and only leave the file name. -- nosy: +petri.lehtinen status: closed - open versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8706] accept keyword arguments on most base type methods and builtins
Ezio Melotti ezio.melo...@gmail.com added the comment: also: just because an argument is listed in the docs with a name does not mean that that name is the most appropriate; part of adding keyword support should be choosing a sensible name. I agree, but other implementations might not have this limitation and might already use the name that appears in the documentation/docstring -- or even a better one. I intend to bring this up for a brief discussion at the language summit next week +1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8706 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1
Stefan Krah stefan-use...@bytereef.org added the comment: Since this issue targeted 2.7 and 3.2: In a brief discussion on python-dev it was decided that the 3.3 fixes from #10181 won't be backported for a number of reasons, see: http://mail.python.org/pipermail/python-dev/2012-February/116872.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8305] memoview[0] creates an invalid view if ndim != 1
Stefan Krah stefan-use...@bytereef.org added the comment: Since this issue targeted 2.7 and 3.2: In a brief discussion on python-dev it was decided that the 3.3 fixes from #10181 won't be backported for a number of reasons, see: http://mail.python.org/pipermail/python-dev/2012-February/116872.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8305 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8706] accept keyword arguments on most base type methods and builtins
Gregory P. Smith g...@krypto.org added the comment: I kicked off a discussion on python-ideas. Lets take this there for the time being. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8706 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com