[issue12014] str.format parses replacement field incorrectly

2011-05-06 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +eric.smith, mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2011-05-06 Thread Steve Ward
Steve Ward 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 given. 3) If case-

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

2011-05-06 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[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 : Removed file: http://bugs.python.org/file21901/pending_signals-2.patch ___ Python tracker ___ ___ Python-b

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

2011-05-06 Thread Charles-François Natali
Charles-François Natali 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, you do this: /

[issue12014] str.format parses replacement field incorrectly

2011-05-06 Thread Eric V. Smith
Eric V. Smith 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 conversion and format_spec

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

2011-05-06 Thread zy
New submission from zy : 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 interfere with la

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

2011-05-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> test needed versions: +Python 2.7 -Python 2.6 ___ Python tracker ___ ___ P

[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 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 051190230254 by

[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 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 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 disable the test for thos

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

2011-05-06 Thread Antoine Pitrou
Antoine Pitrou 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" constants. Calling it

[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 : -- stage: -> patch review versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 time resolution. And unle

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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, loctime=None):

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

2011-05-06 Thread Nicolas Bareil
Nicolas Bareil 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 12:47:14 2011 +020

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

2011-05-06 Thread Michael Foord
Michael Foord 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.) -- ___ Pyt

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

2011-05-06 Thread Michael Foord
Michael Foord 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 ignoring the warnings. -

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

2011-05-06 Thread Roundup Robot
Roundup Robot 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. http://hg.python

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

2011-05-06 Thread Ezio Melotti
Ezio Melotti added the comment: Done, thanks for the patch! -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread R. David Murray
R. David Murray 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 that used the mailbox

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

2011-05-06 Thread ivank
New submission from ivank : 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 + '1' + ']'

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread R. David Murray
R. David Murray 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 extra one tenth secon

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread R. David Murray
R. David Murray 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 ___

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

2011-05-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Extension Modules -Library (Lib) nosy: +ezio.melotti stage: -> test needed versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___

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

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

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

2011-05-06 Thread Alex Gaynor
Alex Gaynor added the comment: Why not use Py_EnterRecursiveCall? -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 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 locking in case of an ap

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread R. David Murray
R. David Murray 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 : -- nosy: +barry priority: normal -> high stage: test needed -> needs patch versions: +Python 2.6 ___ Python tracker ___ __

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

2011-05-06 Thread Senthil Kumaran
Senthil Kumaran 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 at UnicodeDecodeError

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 environment variable like PYMA

[issue9670] Exceed Recursion Limit in Thread

2011-05-06 Thread Ronald Oussoren
Ronald Oussoren 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 file: http://bugs.python.or

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

2011-05-06 Thread Roundup Robot
Roundup Robot 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': Issue #12000: When

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

2011-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed in 3.2 and 3.x, thank you! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[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 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 http://www.python.org/dev/buildbot/all/

[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 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 ___ Python tra

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

2011-05-06 Thread Mads Kiilerich
Changes by Mads Kiilerich : -- nosy: +kiilerix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[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 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 will mock _getfinalpat

[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 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 >>> os.path.samefile("a.txt

[issue12014] str.format parses replacement field incorrectly

2011-05-06 Thread Ben Wolfson
Ben Wolfson 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 >>> l

[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 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 of samefile co

[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 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 added the comment: I don't have time to test it at the moment, but it seems fine to me. -- ___ Python tracker ___ ___ Py

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

2011-05-06 Thread Michael Foord
Michael Foord 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 that is avoidable. --

[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 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 shutil patch when the change

[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 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 -- ___ Pytho

[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 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 __

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

2011-05-06 Thread Ronald Oussoren
New submission from Ronald Oussoren : 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. I've committed a fix fo

[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 : -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

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

2011-05-06 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-05-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

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

2011-05-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 did not do somethin

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

2011-05-06 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : Removed file: http://bugs.python.org/file21869/11277-27.2.diff ___ Python tracker ___ ___ Python-bugs-list

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

2011-05-06 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : Removed file: http://bugs.python.org/file21885/11277-27.3.diff ___ Python tracker ___ ___ Python-bugs-list

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

2011-05-06 Thread Mads Kiilerich
Mads Kiilerich 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 failed to the safe s

[issue9971] Optimize BufferedReader.readinto

2011-05-06 Thread Antoine Pitrou
Antoine Pitrou 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 logic is flawed:

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

2011-05-06 Thread Éric Araujo
Éric Araujo 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 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

[issue11762] Ast doc: warning and version number

2011-05-06 Thread Éric Araujo
Éric Araujo 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 : 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 '__pycache__'. Is

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

2011-05-06 Thread Ezio Melotti
Ezio Melotti 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 scan_once_str/unicode might

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

2011-05-06 Thread Antoine Pitrou
Antoine Pitrou 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 ___

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

2011-05-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Feature creep would not be good for the json module. -- ___ Python tracker ___ ___ Python-bugs-l

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

2011-05-06 Thread Éric Araujo
Éric Araujo 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 Sphinx?

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

2011-05-06 Thread Éric Araujo
Éric Araujo added the comment: BTW: If not, you can always use things like :attr:`int.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 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 in the same wa

[issue11983] Inconsistent hash and comparison for code objects

2011-05-06 Thread Éric Araujo
Éric Araujo added the comment: What fix would you propose? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8808] imaplib should support SSL contexts

2011-05-06 Thread Roundup Robot
Roundup Robot 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 ___ Python t

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

2011-05-06 Thread Éric Araujo
Éric Araujo 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”: Yes, I saw that, but

[issue8808] imaplib should support SSL contexts

2011-05-06 Thread Antoine Pitrou
Antoine Pitrou 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 -- resolution: -> f

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

2011-05-06 Thread Éric Araujo
Éric Araujo 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 tried the example

[issue11989] deprecate shutil.copy2

2011-05-06 Thread Éric Araujo
Éric Araujo 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 have one function

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

2011-05-06 Thread Antoine Pitrou
Antoine Pitrou 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 everytime it's as

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

2011-05-06 Thread Éric Araujo
Éric Araujo 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. -- nosy: +eric.araujo

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

2011-05-06 Thread Éric Araujo
Éric Araujo 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 :) -- nosy: +eric.a

[issue12007] Console commands won't work

2011-05-06 Thread Éric Araujo
Éric Araujo 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 ___ Py

[issue9971] Optimize BufferedReader.readinto

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

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

2011-05-06 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, r.david.murray versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list maili

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

2011-05-06 Thread Éric Araujo
Éric Araujo 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 tracker

[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 : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2011-05-06 Thread Éric Araujo
Éric Araujo 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

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

2011-05-06 Thread Jonas H.
Jonas H. 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* documentation: str, int,

[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 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 : -- nosy: +eric.araujo versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker ___ ___ Py

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

2011-05-06 Thread Éric Araujo
Éric Araujo 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 ___ _

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

2011-05-06 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +ncoghlan, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2011-05-06 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +haypo, lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2011-05-06 Thread Éric Araujo
Éric Araujo 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 ___ Python tra

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

2011-05-06 Thread Éric Araujo
Éric Araujo 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 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 name is fully p

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

2011-05-06 Thread alejandro david weil
alejandro david weil 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), (stop-start+step-1)//st

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

2011-05-06 Thread Jonas H.
Jonas H. 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 integers are based

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

2011-05-06 Thread Georg Brandl
Georg Brandl 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 __

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

2011-05-06 Thread Éric Araujo
Éric Araujo 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 abstract base cla

[issue12014] str.format parses replacement field incorrectly

2011-05-06 Thread Eric V. Smith
Eric V. Smith added the comment: Note also that the nested expansion is only allowed in the format_spec part, per the documentation. Your last examples are attempting to do it in the field_name, which leads to the errors you see. Your very last example doesn't look right to me. I'll have to i

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

2011-05-06 Thread Éric Araujo
Éric Araujo added the comment: str, list and friends are both functions and classes, if you want to go that way :) Let’s keep purism out of this and discuss the result: we agree that missing links are a problem, so let’s fix it. > How could it possibly work What’s missing is class and method

[issue11072] Add MLSD command support to ftplib

2011-05-06 Thread Eric V. Smith
Eric V. Smith added the comment: Yes, I think this should be committed. I think the API is reasonable, which is the primary concern. If there are implementation bugs, they can be addressed as they're found. -- ___ Python tracker

  1   2   >