[issue11015] Bring test.support docs up to date

2011-05-06 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Terry, I've incorporated your suggestions except the new formulation for verbosity to doctest.testmod, since it's not really clear which one is more accurate. I think it's intelligible as it is now (especially given that test.support is for

[issue11015] Bring test.support docs up to date

2011-05-06 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 2fd435ac3551 by Eli Bendersky in branch 'default': Issue #11015: bring test.support docs up to date http://hg.python.org/cpython/rev/2fd435ac3551 -- nosy: +python-dev ___ Python tracker

[issue12015] possible characters in temporary file name is too few

2011-05-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: - How is it an issue? is the number of combinations really important to you? - Isn't there a greater risk of collisions on a case-insensitive filesystem? -- nosy: +amaury.forgeotdarc ___

[issue12014] str.format parses replacement field incorrectly

2011-05-06 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +eric.smith, mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12014 ___ ___

[issue12015] possible characters in temporary file name is too few

2011-05-06 Thread Steve Ward
Steve Ward plane...@gmail.com added the comment: It is an issue because... 1) Python falls out of line with most other popular systems and languages. 2) There was never a good reason to decrease the entropy in the first place. If there was, the reason of case-sensitive files systems was not

[issue12015] possible characters in temporary file name is too few

2011-05-06 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12015 ___ ___

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-06 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: Removed file: http://bugs.python.org/file21901/pending_signals-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8407 ___

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-06 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Oops. Victor, my mouse got stuck and I mistakenly removed your pending_signals-2 patch. I'm really sorry about this, could you re-post it? To try to make up for this, a small comment: In signal_sigwait, at the end of the function,

[issue12014] str.format parses replacement field incorrectly

2011-05-06 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: I haven't had time to completely review this, I will do so later today. But let me just say that the string is first parsed for replacement strings inside curly braces. There's no issue with that, here. Next, the string is parsed for

[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

2011-05-06 Thread zy
New submission from zy cdq...@gmail.com: let s='\xff\n' The expected result of s.decode('gb2312', 'ignore') is u\n, while in 2.6.6 it is u. s can be replaced with chr(m) + chr(n) , where m is in range of 128~255, and n in 0~127. In the above cases, try decoding from chr(n) will never

[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

2011-05-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - test needed versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12016 ___

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-05-06 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 26da299ca88e by Ronald Oussoren in branch '3.1': Fix for issue 10684: Folders get deleted when trying to change case with shutil.move (case insensitive file systems only) http://hg.python.org/cpython/rev/26da299ca88e New changeset

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-05-06 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've committed the fix in 2.7, 3.1, 3.2 and 3.3 -- assignee: - ronaldoussoren resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue9670] Exceed Recursion Limit in Thread

2011-05-06 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: For pydebug builds the default stacksize should be increased, and prefer to do this by unconditionally changing the stacksize. W.r.t. the non-osx buildbot failures: it would be better if we could come up with a solution that doesn't

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Does this happen with a released build of OpenSSL? The Debian bug talks about experimental. +try: +from _ssl import PROTOCOL_SSLv2 +OPENSSL_NO_SSL2 = False +except ImportError: +OPENSSL_NO_SSL2 = True Please avoid negative

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12012 ___

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Fri, 6 May 2011 04:44:00 +0200, R. David Murray wrote: [.] the mtime only has a resolution of one second. You always say that! But i'm pretty sure from somewhen long ago that there are filesystems which have a two second

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I also added an additional delta in case the file system clock is skewing relative to the system clock. In fact this idea could even be made public e.g. like this class ClockDrifter: def add_snapshot(self, exttime,

[issue12000] SSL certificate verification failed if no dNSName entry in subjectAltName

2011-05-06 Thread Nicolas Bareil
Nicolas Bareil n...@chdir.org added the comment: Hello Antoine, Steffen, You are absolutely right about removing the 'not san' part. Here is the new patch, with tests : diff -r c22d5b37f6a4 Lib/ssl.py --- a/Lib/ssl.pyFri May 06 09:31:02 2011 +0300 +++ b/Lib/ssl.pyFri May 06

[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

2011-05-06 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: New patch by Ezio looks good to me. Go ahead and commit. Please raise a separate issue for error reporting when invalid argument combinations are used. (i.e. additional keyword arguments but no callable.) --

[issue11887] unittest fails on comparing str with bytes if python has the -bb option

2011-05-06 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: _baseAssertEqual should not unconditionally catch and ignore all BytesWarnings. If tests raise warnings/exceptions because they are doing comparisons that raise warnings/exceptions then those tests should be fixed rather than just

[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

2011-05-06 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 8fc801ca9ea1 by Ezio Melotti in branch 'default': Issue #10775: assertRaises, assertRaisesRegex, assertWarns, and assertWarnsRegex now accept a keyword argument 'msg' when used as context managers. Initial patch by Winston Ewert.

[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

2011-05-06 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Done, thanks for the patch! -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10775

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Isn't this a bit out of scope for the mailbox module, though? Mailbox is getting called at irregular intervals, and a clock monitor really wants to be a polling daemon of some sort, I think. In which case a complete application system

[issue12017] Decoding a highly-nested object with json (_speedups enabled) causes segfault

2011-05-06 Thread ivank
New submission from ivank b...@ludios.org: Decoding a highly-nested object with json (_speedups enabled) can cause a segfault due to a stack overflow: # python -c import json; json.loads('[' * 10 + '1' + ']' * 10) zsh: segmentation fault python -c import json; json.loads('[' * 10

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Oh, and to be clear: the problem wasn't that the one second interval was too short, the problem was that the times stamps of the files were being compared to the wrong check value (the system clock instead of their previous state). The

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I am open to the argument that we should make it two seconds and a bit to support FAT, but how many people are going to use maildir on FAT? -- ___ Python tracker rep...@bugs.python.org

[issue12017] Decoding a highly-nested object with json (_speedups enabled) causes segfault

2011-05-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Extension Modules -Library (Lib) nosy: +ezio.melotti stage: - test needed versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue12017] Decoding a highly-nested object with json (_speedups enabled) causes segfault

2011-05-06 Thread ivank
ivank b...@ludios.org added the comment: ivan` any opinions here on what the default max_depth should be? is there any safe number? ivan` I'm curious as to how many C stack frames I can use after reaching the Python recursion limit ivan` and what ulimit -s looks like on every platform

[issue12017] Decoding a highly-nested object with json (_speedups enabled) causes segfault

2011-05-06 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com added the comment: Why not use Py_EnterRecursiveCall? -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12017 ___

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I like all kind of single-screw solutions. And i feel a bit uncomfortable with your usual tightness. (0.1 seconds - i mean, come on) -- ___ Python tracker rep...@bugs.python.org

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: how many people are going to use maildir on FAT? Dunno. But it's maybe the lowest common denominator of mountable readwrite filesystems. Except for that MacBook i always had a shared FAT partition on my private PCs. --

[issue11935] MMDF/MBOX mailbox need utime

2011-05-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: @david: note i got stuck on updating my patch for mailbox.py and switched to do test_mmap.py instead, so that i don't know wether i will be able to finish it today. Is it really true that mailbox.py even writes mailboxes without

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: All right, let's make it two seconds and a bit, then. Why do you think a tenth of second is too small? A clock with a skew of half that much would be badly broken. -- ___ Python tracker

[issue12017] Decoding a highly-nested object with json (_speedups enabled) causes segfault

2011-05-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +barry priority: normal - high stage: test needed - needs patch versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12017

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-05-06 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Hello Bernhard, I tried to a POST of JPEG file, through urllib2 (which internally uses httplib) and goes through the code that you pointed out and I don't face any problem. I am able to POST binaries using httplib. I am also surprised

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I agree that it's fun to see pieces of code interacting like gears in a transmission, but often it gets ugly due to the noise from the outside which requires to add ugly fuzziness or honour stupid design decisions. Maybe an

[issue9670] Exceed Recursion Limit in Thread

2011-05-06 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Version 4 of the patch has two changes w.r.t version 3: * Increase the stack size on OSX to ensure that tests pass with --with-pydebug * Only test the recursion behavior on OSX (where we know the bug is fixed) -- Added

[issue12000] SSL certificate verification failed if no dNSName entry in subjectAltName

2011-05-06 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset d4c2a99d1bad by Antoine Pitrou in branch '3.2': Issue #12000: When a SSL certificate has a subjectAltName without any http://hg.python.org/cpython/rev/d4c2a99d1bad New changeset 1b37827984ba by Antoine Pitrou in branch 'default':

[issue12000] SSL certificate verification failed if no dNSName entry in subjectAltName

2011-05-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch committed in 3.2 and 3.x, thank you! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12000

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-05-06 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: test_move_dir_caseinsensitive is failing on some of the XP buildbots: http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/4514 http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/2696

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-05-06 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: That's rather annoying. I'm reopening the issue because of this. I'm looking into the issue and will revert when I cannot find a solution soon. -- resolution: fixed - accepted status: closed - open

[issue12000] SSL certificate verification failed if no dNSName entry in subjectAltName

2011-05-06 Thread Mads Kiilerich
Changes by Mads Kiilerich m...@kiilerich.com: -- nosy: +kiilerix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12000 ___ ___ Python-bugs-list

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-05-06 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This seems to be a bug in ntpath.samefile, in particular in this code: # determine if two files are in fact the same file try: # GetFinalPathNameByHandle is available starting with Windows 6.0. # Windows XP and non-Windows OS'es

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-05-06 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I'm not sure what the right course of action is, revert my patch try to get ntpath.samefile fixed and then reapply my patch or something else? ntpath.samefile is definitely broken on XP: * Create a file a.txt * Start python3.2

[issue12014] str.format parses replacement field incorrectly

2011-05-06 Thread Ben Wolfson
Ben Wolfson wolf...@gmail.com added the comment: The semantics the docs suggest for index fields (namely that whatever is in the index field is just passed to getitem) do seem to be right, no other processing is done here, for instance: d = {{0}:hi} {0[{0}]}.format(d) 'hi' import string

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-05-06 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: On XP, os.path.samefile is really os.path.abspath(x) == os.path.abspath(y), which does not work correctly with different cases. We could add a .lower() to line 657 of Lib/ntpath.py so the abspath is always returned in lower, so the XP version

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-05-06 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The attached patch seems to fix ntpath.samefile (at least for the shutils tests, I haven't run a full testsuite and cannot build python on a windows machine anyway) -- Added file: http://bugs.python.org/file21908/npath-fix.txt

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-05-06 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: I don't have time to test it at the moment, but it seems fine to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10684 ___

[issue11178] Running tests inside a package by module name fails

2011-05-06 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: This isn't reproducable (any more?) on Python 2.7, but is on Python 3.2. Running python -m unittest package doesn't find tests in submodules, but without running full discovery even when passed an explicit module name I don't think

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-05-06 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I'm currrently running 'python -mtest.regrtest -uall' on an XP machine where I've applied my test to a binary install of 3.2. I'll apply my patch if that testrun indicates that I don't introduce other problems, and I'll revert my

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-05-06 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 011e4bb8b933 by Ronald Oussoren in branch '3.2': ntpath.samefile fails to detect that A.TXT and a.txt refer to the same file on Windows XP. http://hg.python.org/cpython/rev/011e4bb8b933 --

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-05-06 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've committed my fix for ntpath.samefile for 3.3 and 3.2. I've also filed a new issue because ntpath.samefile has no unittests. -- ___ Python tracker rep...@bugs.python.org

[issue12018] No tests for ntpath.samefile, ntpath.sameopenfile

2011-05-06 Thread Ronald Oussoren
New submission from Ronald Oussoren ronaldousso...@mac.com: Python 3.2 introduced ntpath.samefile, but the implementation is not tested in test_ntpath.py. The same seems true of ntpath.sameopenfile. As noted in #10684 ntpath.samefile is broken on XP, which would have been caught by unittest.

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-05-06 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10684 ___

[issue12018] No tests for ntpath.samefile, ntpath.sameopenfile

2011-05-06 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12018 ___ ___ Python-bugs-list

[issue12017] Decoding a highly-nested object with json (_speedups enabled) causes segfault

2011-05-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12017 ___ ___

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Fri, 6 May 2011 02:54:07 +0200, Nadeem Vawda wrote: I think so. [.] it turns out that the OS X sparsefile crash is also covered by LargeMmapTests.test_large_offset() in test_mmap [!!!]. [.] So i followed your suggestion and

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-06 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file21869/11277-27.2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-06 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file21885/11277-27.3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___

[issue12000] SSL certificate verification failed if no dNSName entry in subjectAltName

2011-05-06 Thread Mads Kiilerich
Mads Kiilerich m...@kiilerich.com added the comment: In my opinion the RFCs are a bit unclear about how iPAddress subjectAltNames should be handled. (I also don't know if Python currently do the right thing by accepting and matching IP addresses if specified in commonName.) Until now Python

[issue9971] Optimize BufferedReader.readinto

2011-05-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: +if (n = 0) { +if (written 0 || n == 0) +break; +if (n == -2) { +Py_INCREF(Py_None); +res = Py_None; +} +goto end; +} I think the

[issue11963] Use real assert* for test_trigger_memory_error (test_parser)

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: IIRC the code uses C stdio to print its error message, not Python APIs, so this would explain why replacing sys.stdout doesn’t work. There’s another test that spits things to stdout: test_subprocess. Should I clean it up too? --

[issue11995] test_pydoc loads all Python modules

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Isn’t the root problem that pydoc uses import rather than imp or PEP 302 things? We could change that. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue11762] Ast doc: warning and version number

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The Python Insider blog has a nice phrasing: “The AST module exposes a constant, ``ast.__version__``, which provides a means for user code to vary its behaviour depending on the version of the AST it encounters.” --

[issue12019] Dead or buggy code in importlib.test.__main__

2011-05-06 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: I was stealing importlib’s test/__main__ file for packaging (thanks!) and I noticed this bug thanks to pyflakes: “sep” is undefined. It looks like the bug hasn’t been noticed because it’s in a dead block that depends on __file__ containing

[issue12017] Decoding a highly-nested object with json (_speedups enabled) causes segfault

2011-05-06 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Attached patch fixes the issues. The patch includes 6 tests that caused a segfault and that now raise a RuntimeError: maximum recursion depth exceeded error, matching the behavior of the Python version. The recursion happen because

[issue12001] Extend json.dumps to handle N-triples strings

2011-05-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm not sure there's any sense in trying to bend the json module into producing other formats. -- nosy: +pitrou, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12001

[issue12001] Extend json.dumps to handle N-triples strings

2011-05-06 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Feature creep would not be good for the json module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12001 ___

[issue11977] Document int.conjugate, .denominator, ...

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Benjamin: In 2.7, long implements those ABCs too. I have added it to the doc in a local commit, I’ll push when I can. Jonas: Does the commit fix your use case? The attributes are now documented in the sense that a human can find them, but can

[issue11977] Document int.conjugate, .denominator, ...

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW: If not, you can always use things like :attr:`int.real numbers.Integral.real` (real target in angle brackets, rest is text to display) but it’s a bit unwieldy. -- ___ Python tracker

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Intersphinx-ing of int, list, float, ... should work with :class:`int` (list, float, ...). Is this a problem in our markup or a bug in intersphinx? IIRC, you can use func, class, mod, method or what you want, all these roles look up objects

[issue11983] Inconsistent hash and comparison for code objects

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: What fix would you propose? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11983 ___

[issue8808] imaplib should support SSL contexts

2011-05-06 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset aba7d1f2d2a9 by Antoine Pitrou in branch 'default': Issue #8808: The IMAP4_SSL constructor now allows passing an SSLContext http://hg.python.org/cpython/rev/aba7d1f2d2a9 -- nosy: +python-dev

[issue11964] Undocumented change to indent param of json.dump in 3.2

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I will fix this. Prashanth Raghu: (sorry to call you by your full name, which is not very nice in my language, but I’m not sure which is your first name) “The .rst file that was downloaded as of 30-04-2011 (dd-mm-) had the updated doc”:

[issue8808] imaplib should support SSL contexts

2011-05-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thank you! I've tweaked the patch slightly (mostly cosmetics (*)) and committed it to 3.3. I've left out the poplib doc changes, they could be committed separately. (*) 80-line character limit, calling logout() on the test server --

[issue11968] wsgiref's wsgi application sample code does not work

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. Can you tell more about the bug you perceive? The doc and code for wsgiref were carefully updated to play well with Python 3 clean bytes/characters distinction, so I’m surprised by this bug report. Maybe you mistakenly

[issue11989] deprecate shutil.copy2

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. Could you elaborate a bit on the rational for the change? Aesthetics are usually not sufficient to change things; on the other hand, use of simplicity is a goal. Is is easier to remember two functions for two uses or to

[issue6116] frame.f_locals keeps references to things for too long

2011-05-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le jeudi 05 mai 2011 à 18:45 +, Facundo Batista a écrit : Antoine, to see if I understood correctly... if we build the dict, and just return it but don't save it in the frame, this leak would be solved? (yes, it'd be slower because

[issue12001] Extend json.dumps to handle N-triples strings

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Agreed. The purpose of the json module is clearly defined, and there is room for other modules to address other problems (like yaml). It should be easy to write a Python function to convert a string to its N-triples serialization. --

[issue12002] ftplib.FTP.abort fails with TypeError on Python 3.x

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. If you would like to turn your suggestion into a diff file (see guidelines at http://docs.python.org/devguide) containing the code change and a test, you could get into the Misc/ACKS file and get eternal glory :)

[issue12007] Console commands won't work

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Definitely looks like a shell, libcurses or readline configuration issue, sorry. Please reopen this bug if you have new information contradicting our conclusion. -- nosy: +eric.araujo status: pending - closed

[issue9971] Optimize BufferedReader.readinto

2011-05-06 Thread John O'Connor
John O'Connor tehj...@gmail.com added the comment: Good catch. v3 attached. -- Added file: http://bugs.python.org/file21912/buffered_readinto3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9971

[issue12008] HtmlParser non-strict goes wrong with unquoted attributes

2011-05-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, r.david.murray versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12008 ___

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. Would you like to submit a patch? If so, guidelines are on http://docs.python.org/devguide -- nosy: +eric.araujo versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12012 ___ ___ Python-bugs-list

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The original bug requesting that SSLv2 be disabled is #589706; the updated openssl package with this change is in Debian unstable and testing now. -- ___ Python tracker rep...@bugs.python.org

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-05-06 Thread Jonas H.
Jonas H. jo...@lophus.org added the comment: Is this a problem in our markup or a bug in intersphinx? It's a markup problem -- those types are documented as functions, using the :func: role/`.. func::` directive. It's not only a markup mismatch but, strictly speaking, it's *wrong*

[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Looks like a compilation problem. Did you install that Python yourself? Can you run the test suite to see if there are problems with the _socket module? -- nosy: +eric.araujo ___ Python tracker

[issue12014] str.format parses replacement field incorrectly

2011-05-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12014 ___

[issue12015] possible characters in temporary file name is too few

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: FWIW: Conformity with popular systems is not a goal. -- nosy: +eric.araujo versions: -Python 3.1, Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12015

[issue12015] possible characters in temporary file name is too few

2011-05-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +ncoghlan, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12015 ___ ___ Python-bugs-list

[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

2011-05-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +haypo, lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12016 ___ ___ Python-bugs-list

[issue12003] documentation: alternate version of xrange seems to fail.

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hi. Python 2.6 is in security mode, its documentation is not updated nor released anymore. Is this bug present in the documentation of 2.7 or 3.x versions? -- nosy: +eric.araujo versions: -Python 2.6

[issue11984] Wrong See also in symbol and token module docs

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: IIUC, the parser and token module somehow can be used together. If so, the interlinks are okay, provided the text is revised to remove mention of the “second example”. If I’m wrong, let’s remove the link. -- nosy: +eric.araujo

[issue12014] str.format parses replacement field incorrectly

2011-05-06 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: but makes me think that treating ! and : in the index field separately is definitely wrong. But it doesn't know they're in an index field when it's doing the parsing for ':' or '!'. It might be possible to change this so that the field

[issue12003] documentation: alternate version of xrange seems to fail.

2011-05-06 Thread alejandro david weil
alejandro david weil ten...@gmail.com added the comment: Yes it is. I copied both versions but forgot to specify the second is in 2.7. This is read in the current (2.7) documentation: # from: http://docs.python.org/library/functions.html?highlight=xrange#xrange islice(count(start, step),

[issue11977] Document int.conjugate, .denominator, ...

2011-05-06 Thread Jonas H.
Jonas H. jo...@lophus.org added the comment: It doesn't. Sphinx still can't make any links, which btw also means that it's impossible to reference those methods within the Python documentation. Also I want to point out that I find the information very hard to find as a human. The fact that

[issue11977] Document int.conjugate, .denominator, ...

2011-05-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Reopening, it makes sense to have everything available for linking. (Even if they are quite obscure attributes.) -- nosy: +georg.brandl status: closed - open ___ Python tracker rep...@bugs.python.org

[issue11977] Document int.conjugate, .denominator, ...

2011-05-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Also I want to point out that I find the information very hard to find as a human. The fact that integers are based on `numbers.Number` is -- at this point in time where 95% of all Python developers don't know about the `numbers` module or

  1   2   >