[issue14161] python2 file __repr__ does not escape filename

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

[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 mer...@netwok.org: -- nosy: +eric.araujo, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14150 ___ ___

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

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

[issue1346572] Remove inconsistent behavior between import and zipimport

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

[issue1346572] Remove inconsistent behavior between import and zipimport

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

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

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

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

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

[issue14155] Deja vu in re's documentation

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

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

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

[issue4080] unittest: display time of each test case

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

[issue14164] my little contribution to the docs

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

[issue14164] my little contribution to the docs

2012-03-01 Thread Florent Xicluna
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 ___

[issue14159] __len__ method of weakset

2012-03-01 Thread Yury Selivanov
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 ___

[issue14162] PEP 416: Add a builtin frozendict type

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

[issue14164] my little contribution to the docs

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

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

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

[issue12572] HP/UX compiler workarounds

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

[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 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]:

[issue14164] my little contribution to the docs

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

[issue14166] private dispatch table for picklers

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

[issue14164] my little contribution to the docs

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

[issue14167] document return statement in finally blocks

2012-03-01 Thread Yury Selivanov
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

[issue1346572] Remove inconsistent behavior between import and zipimport

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

[issue14159] __len__ method of weakset

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

[issue14159] __len__ method of weakset

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

[issue14159] __len__ method of weakset

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

[issue14161] python2 file __repr__ does not escape filename

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

[issue1346572] Remove inconsistent behavior between import and zipimport

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

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

2012-03-01 Thread Berker Peksag
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 ___

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

2012-03-01 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5626 ___ ___

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

2012-03-01 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14165 ___ ___ Python-bugs-list

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

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

[issue14168] minidom behaves differently in 3.3 compared to 3.2

2012-03-01 Thread Vinay Sajip
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/;

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

2012-03-01 Thread Vinay Sajip
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

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

2012-03-01 Thread Fabio Menegazzo
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

[issue14164] my little contribution to the docs

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

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

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

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

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

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

2012-03-01 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14164 ___ ___ Python-bugs-list

[issue1346572] Remove inconsistent behavior between import and zipimport

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

[issue13491] Fixes for sqlite3 doc

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

[issue13491] Fixes for sqlite3 doc

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

[issue14155] Deja vu in re's documentation

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

[issue14155] Deja vu in re's documentation

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

[issue2377] Replace __import__ w/ importlib.__import__

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

[issue2377] Replace __import__ w/ importlib.__import__

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

[issue2377] Replace __import__ w/ importlib.__import__

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

[issue2377] Replace __import__ w/ importlib.__import__

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

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

2012-03-01 Thread Matthew Miller
Changes by Matthew Miller mat...@mattdm.org: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14160 ___ ___ Python-bugs-list

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

2012-03-01 Thread Giovanni Funchal
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

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

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

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

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

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

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

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

2012-03-01 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13797 ___ ___ Python-bugs-list

[issue14168] minidom behaves differently in 3.3 compared to 3.2

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

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

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

[issue14170] print unicode string error in cmd console

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

[issue14170] print unicode string error in win8 cmd console

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

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

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

[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect

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

[issue14166] private dispatch table for picklers

2012-03-01 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14166 ___ ___

[issue14167] document return statement in finally blocks

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

[issue13719] bdist_msi upload fails

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

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

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

[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect

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

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

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

[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect

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

[issue1346572] Remove inconsistent behavior between import and zipimport

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

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

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

[issue11379] Remove lightweight from minidom description

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

[issue11379] Remove lightweight from minidom description

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

[issue11379] Remove lightweight from minidom description

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

[issue1346572] Remove inconsistent behavior between import and zipimport

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

[issue1346572] Remove inconsistent behavior between import and zipimport

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

[issue14170] print unicode string error in win8 cmd console

2012-03-01 Thread Martin v . Löwis
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 ___

[issue1346572] Remove inconsistent behavior between import and zipimport

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

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

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

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

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

[issue8890] Use tempfile instead of /tmp in examples

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

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

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

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

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

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

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

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

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