[issue8706] accept keyword arguments on most base type methods and builtins

2012-03-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: I kicked off a discussion on python-ideas. Lets take this there for the time being. -- ___ Python tracker ___ __

[issue8305] memoview[0] creates an invalid view if ndim != 1

2012-03-01 Thread Stefan Krah
Stefan Krah 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 -- _

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2012-03-01 Thread Stefan Krah
Stefan Krah 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 -- _

[issue8706] accept keyword arguments on most base type methods and builtins

2012-03-01 Thread Ezio Melotti
Ezio Melotti 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 an

[issue8890] Use tempfile instead of /tmp in examples

2012-03-01 Thread Petri Lehtinen
Petri Lehtinen 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.

[issue8706] accept keyword arguments on most base type methods and builtins

2012-03-01 Thread Gregory P. Smith
Gregory P. Smith 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 use

[issue14171] warnings from valgrind about openssl as used by CPython

2012-03-01 Thread Zooko O'Whielacronx
New submission from Zooko O'Whielacronx : 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:

[issue1346572] Remove inconsistent behavior between import and zipimport

2012-03-01 Thread Nick Coghlan
Nick Coghlan added the comment: Status quo sounds fine then. +1 for closing it again. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue14170] print unicode string error in win8 cmd console

2012-03-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: What is the code page of your console (try: "chcp"). -- nosy: +loewis ___ Python tracker ___ ___ P

[issue1346572] Remove inconsistent behavior between import and zipimport

2012-03-01 Thread Éric Araujo
Éric Araujo 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 s

[issue1346572] Remove inconsistent behavior between import and zipimport

2012-03-01 Thread Nick Coghlan
Nick Coghlan 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

[issue11379] Remove "lightweight" from minidom description

2012-03-01 Thread Eli Bendersky
Eli Bendersky added the comment: Committed to 2.7, 3.2 and 3.3 I suppose this issue can be closed now? -- ___ Python tracker ___ ___

[issue11379] Remove "lightweight" from minidom description

2012-03-01 Thread Roundup Robot
Roundup Robot 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

[issue11379] Remove "lightweight" from minidom description

2012-03-01 Thread Roundup Robot
Roundup Robot 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 ___ Py

[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists

2012-03-01 Thread Éric Araujo
Éric Araujo added the comment: Is 2.7 not affected? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue1346572] Remove inconsistent behavior between import and zipimport

2012-03-01 Thread Éric Araujo
Éric Araujo 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 ___

[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect

2012-03-01 Thread Éric Araujo
Éric Araujo 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

[issue14165] The new shlex.quote() function should be marked "New in version 3.3"

2012-03-01 Thread Eli Bendersky
Eli Bendersky 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

[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect

2012-03-01 Thread Senthil Kumaran
Senthil Kumaran 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

[issue14164] Hyphenation suggestions - floating-point/floating point

2012-03-01 Thread Éric Araujo
Éric Araujo 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 trivi

[issue13719] bdist_msi upload fails

2012-03-01 Thread Éric Araujo
Éric Araujo added the comment: Ralf, could you test my patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue14167] document return statement in finally blocks

2012-03-01 Thread Éric Araujo
Éric Araujo 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 ___

[issue14166] private dispatch table for picklers

2012-03-01 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect

2012-03-01 Thread Éric Araujo
Éric Araujo 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 forwar

[issue8706] accept keyword arguments on most base type methods and builtins

2012-03-01 Thread Éric Araujo
Éric Araujo 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 builtin

[issue14170] print unicode string error in win8 cmd console

2012-03-01 Thread nkxyz
Changes by nkxyz : -- title: print unicode string error in cmd console -> print unicode string error in win8 cmd console ___ Python tracker ___ _

[issue14170] print unicode string error in cmd console

2012-03-01 Thread nkxyz
New submission from nkxyz : print u'测试中文' 睺raceback (most recent call last): File "C:\Users\__test.py", line 96, in 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, the

[issue14165] The new shlex.quote() function should be marked "New in version 3.3"

2012-03-01 Thread Éric Araujo
Éric Araujo 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 lea

[issue14168] minidom behaves differently in 3.3 compared to 3.2

2012-03-01 Thread Éric Araujo
Éric Araujo 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

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

2012-03-01 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists

2012-03-01 Thread Roundup Robot
Roundup Robot 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

[issue10484] http.server.is_cgi fails to handle CGI URLs containing PATH_INFO

2012-03-01 Thread Glenn Linderman
Glenn Linderman 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

[issue10484] http.server.is_cgi fails to handle CGI URLs containing PATH_INFO

2012-03-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: Oh Sorry. I shall fix this by this weekend. -- assignee: -> orsenthil ___ Python tracker ___ ___

[issue10484] http.server.is_cgi fails to handle CGI URLs containing PATH_INFO

2012-03-01 Thread Giovanni Funchal
Giovanni Funchal added the comment: This is still an issue as of python 3.2.2 and is affecting me. -- nosy: +Giovanni.Funchal ___ Python tracker ___

[issue14160] TarFile.extractfile fails to extract targets of top-level relative symlinks

2012-03-01 Thread Matthew Miller
Changes by Matthew Miller : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-01 Thread Antoine Pitrou
Antoine Pitrou 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

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-01 Thread Brett Cannon
Changes by Brett Cannon : Removed file: http://bugs.python.org/file24418/f0b459af26fb.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-01 Thread Brett Cannon
Changes by Brett Cannon : Added file: http://bugs.python.org/file24700/131d1d107f26.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-01 Thread Brett Cannon
Brett Cannon 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

[issue14155] Deja vu in re's documentation

2012-03-01 Thread py.user
py.user 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

[issue14155] Deja vu in re's documentation

2012-03-01 Thread py.user
py.user 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 regard

[issue13491] Fixes for sqlite3 doc

2012-03-01 Thread Petri Lehtinen
Petri Lehtinen added the comment: All patches applied, thanks everybody! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue13491] Fixes for sqlite3 doc

2012-03-01 Thread Roundup Robot
Roundup Robot 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 fr

[issue1346572] Remove inconsistent behavior between import and zipimport

2012-03-01 Thread Brett Cannon
Brett Cannon added the comment: I don't care about compatibility between zipimport and importlib. -- ___ Python tracker ___ ___ Pyt

[issue14164] Hyphenation suggestions - floating-point/floating point

2012-03-01 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue14164] Hyphenation suggestions - floating-point/floating point

2012-03-01 Thread Andrew Smith
Andrew Smith 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

[issue14164] Hyphenation suggestions - floating-point/floating point

2012-03-01 Thread Brian Curtin
Brian Curtin 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: o

[issue14164] my little contribution to the docs

2012-03-01 Thread poq
poq 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 "float

[issue14169] compiler.compile fails on "if" statement in attached file

2012-03-01 Thread Fabio Menegazzo
New submission from Fabio Menegazzo : compiler.compile fails on "if" statement in attached file. When executing the code compiler.compile(contents, '', 'exec') passing the attached file contents, the following error is raised: ValueError: chr() arg not in range(256) This won't fail w

[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists

2012-03-01 Thread Vinay Sajip
Vinay Sajip added the comment: Updated patch available on Rietveld - I'll commit it four hours from now if there are no objections. -- ___ Python tracker ___ __

[issue14168] minidom behaves differently in 3.3 compared to 3.2

2012-03-01 Thread Vinay Sajip
New submission from Vinay Sajip : The following script, minidom_test.py, from xml.dom import minidom data = b''' http://www.w3.org/2005/Atom"; version="2.0"> https://example.com/blog/ https://example.com/rss2/"; rel="self"> https://example.com/blog/1/ ''' doc = mi

[issue14165] The new shlex.quote() function should be marked "New in version 3.3"

2012-03-01 Thread Roundup Robot
Roundup Robot 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

[issue14165] The new shlex.quote() function should be marked "New in version 3.3"

2012-03-01 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5626] misleading comment in socket.gethostname() documentation

2012-03-01 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue5626] misleading comment in socket.gethostname() documentation

2012-03-01 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +patch Added file: http://bugs.python.org/file24698/issue5626_v1.diff ___ Python tracker ___ __

[issue1346572] Remove inconsistent behavior between import and zipimport

2012-03-01 Thread Éric Araujo
Éric Araujo 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). --

[issue14161] python2 file __repr__ does not escape filename

2012-03-01 Thread Antoine Pitrou
Antoine Pitrou 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

[issue14159] __len__ method of weakset

2012-03-01 Thread Antoine Pitrou
Antoine Pitrou 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 _

[issue14159] __len__ method of weakset

2012-03-01 Thread Roundup Robot
Roundup Robot 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 -- __

[issue14159] __len__ method of weakset

2012-03-01 Thread Roundup Robot
Roundup Robot 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

[issue1346572] Remove inconsistent behavior between import and zipimport

2012-03-01 Thread Brett Cannon
Brett Cannon 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

[issue14167] document return statement in finally blocks

2012-03-01 Thread Yury Selivanov
New submission from Yury Selivanov : 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 no

[issue14164] my little contribution to the docs

2012-03-01 Thread Matthew Johnson
Matthew Johnson 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

[issue14166] private dispatch table for picklers

2012-03-01 Thread sbt
New submission from sbt : 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 d

[issue14164] my little contribution to the docs

2012-03-01 Thread Eli Bendersky
Eli Bendersky 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 cont

[issue14165] The new shlex.quote() function should be marked "New in version 3.3"

2012-03-01 Thread Sven Marnach
New submission from Sven Marnach : 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.pyt

[issue12572] HP/UX compiler workarounds

2012-03-01 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file22671/getpath.patch ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2012-03-01 Thread Nick Coghlan
Nick Coghlan 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 *witho

[issue14164] my little contribution to the docs

2012-03-01 Thread Petri Lehtinen
Petri Lehtinen added the comment: See also #13868 by Retro. -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mail

[issue14162] PEP 416: Add a builtin frozendict type

2012-03-01 Thread STINNER Victor
STINNER Victor 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 (...) Typ

[issue14159] __len__ method of weakset

2012-03-01 Thread Yury Selivanov
Yury Selivanov added the comment: As expected, it seems that the patch fixes the issue. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue14164] my little contribution to the docs

2012-03-01 Thread Florent Xicluna
Changes by Florent Xicluna : -- stage: -> patch review versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14164] my little contribution to the docs

2012-03-01 Thread John Napster
New submission from John Napster : 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

[issue4080] unittest: display time of each test case

2012-03-01 Thread Michael Foord
Michael Foord 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)

[issue8170] Wrong Paths for distutils build --plat-name=win-amd64

2012-03-01 Thread Robin Becker
Robin Becker 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, '

[issue14155] Deja vu in re's documentation

2012-03-01 Thread Ezio Melotti
Ezio Melotti 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. -- ___ Pyt

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

2012-03-01 Thread Nick Coghlan
Nick Coghlan 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. -- _

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

2012-03-01 Thread Stefan Krah
Stefan Krah 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 -- ___

[issue1346572] Remove inconsistent behavior between import and zipimport

2012-03-01 Thread Éric Araujo
Éric Araujo 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. -- _

[issue1346572] Remove inconsistent behavior between import and zipimport

2012-03-01 Thread Éric Araujo
Éric Araujo 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 Sour

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2012-03-01 Thread Stefan Krah
Stefan Krah 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

[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130

2012-03-01 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue14161] python2 file __repr__ does not escape filename

2012-03-01 Thread Ezio Melotti
Ezio Melotti 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('woo\ra\'a', 'w') >>> open('woo\ra\'a"', 'w') >>> It's more or less equivalent to: - return "" % (fname, mode, addr) + return "" %