[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9520] Add Patricia Trie high performance container

2010-11-11 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman : -- nosy: +djc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue10385] Mark up "subprocess" as module in its doc

2010-11-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : I was going to commit this patch, but decided to ask for a second opinion. I think module names in section titles should be marked up with :mod:. -- assignee: belopolsky components: Documentation files: subprocess-doc.diff keywords: patch mess

[issue10383] test_os leaks under Windows

2010-11-11 Thread Antoine Pitrou
New submission from Antoine Pitrou : Y:\>py3k\__svn__\PCbuild\python_d.exe -m test.regrtest -R 3:2 test_os [1/1] test_os [33558 refs] beginning 5 repetitions 12345 [33558 refs] .[33558 refs] .[33558 refs] .[33558 refs] .[33558 refs] . test_os leaked [3, 3] references, sum=6 1 test failed: tes

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tim told me to continue with this as he has no time. rev86401 - apply 3.1 doc fix -- assignee: tim_one -> terry.reedy ___ Python tracker ___ ___

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a patch that seems to fix the issue. Note that I considered fixing the problem in parsetok.c where offset is originally computed, but this is part of pgen which has to be compiled without unicode support. The test case suitable to be inc

[issue10308] Modules/getpath.c bugs

2010-11-11 Thread STINNER Victor
STINNER Victor added the comment: r86399 fixes the code checking PyUnicode_AsWideChar() failure. The following change is useless, it cannot overflow: -if (n + k > MAXPATHLEN) +if (k > MAXPATHLEN - n) k = MAXPATHLEN - n; n and k maximum values are MAXPATHLEN (and the maximum v

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-11 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching a new patch for 2.7 freshly generated vs. current 2.7 maintenance branch from SVN. -- Added file: http://bugs.python.org/file19569/issue2986.fix27.5.patch ___ Python tracker

[issue10205] Can't have two tags with the same QName

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: 3.1 was released before 2.7, so there are some features in 2.7 that aren’t in 3.1. Tests are probably candidate for backport. (BTW, I don’t understand the fix :) I guess I fail at boolean logic tonight.) -- nosy: +eric.araujo _

[issue10358] Doc styles for print should only use dark colors

2010-11-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tim told me to continue with this as he has no time. rev86401 - apply 3.1 doc fix I cannot apply 2.7 patch. I has different header lines. In particular, TortoiseSVN cannot fetch nonexistent revision "Mon Aug 30 06:37:52 2010 +0300". Please regenerate against

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : >>> ¡™£¢∞§¶•ªº File "", line 1 ¡™£¢∞§¶•ªº ^ SyntaxError: invalid character in identifier It looks like strlen() is used instead of number of characters in the decoded string. -- components: Interpreter Core mes

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7434] general pprint rewrite

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-11-11 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file19356/z ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue10384] SyntaxError should contain exact location of the invalid character in identifier

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Command line error marker misplaced on unicode entry ___ Python tracker ___ ___ Py

[issue10372] [REGRESSION] test_gc fails in non-debug mode.

2010-11-11 Thread STINNER Victor
STINNER Victor added the comment: > Here is a patch. It moves warnings initialization after > io initialization (the latter being arguably more critical > than the former). Also adds two tests. initstdio() and initmain() may emit warnings. Eg. issue #8766 (which now have a test in test_warni

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +ezio.melotti, haypo, lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-11-11 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Please, review this. I had changed IO to support the new flags too. To do it, I must relax error control in IO, a bit. So, the new flag are supported both in "os.lseek()" and in standard file objects. Please, Antoine, could you review?. I have checked the

[issue10372] [REGRESSION] test_gc fails in non-debug mode.

2010-11-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r86395 (3.x); I've only backported the tests to 2.7 and 3.1. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue10308] Modules/getpath.c bugs

2010-11-11 Thread Hallvard B Furuseth
Hallvard B Furuseth added the comment: STINNER Victor writes: > The following change is useless, it cannot overflow: > -if (n + k > MAXPATHLEN) > +if (k > MAXPATHLEN - n) > k = MAXPATHLEN - n; > > n and k maximum values are MAXPATHLEN (and the maximum value of > MAXPATHLEN is 4

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-11-11 Thread anatoly techtonik
anatoly techtonik added the comment: Should we escalate this issue to CVA for Python 2.x? -- nosy: +techtonik ___ Python tracker ___ _

[issue7061] Improve turtle module documentation

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Oct 31, 2010 at 8:00 PM, Éric Araujo wrote: .. > “Python” is lower-cased only when referring to the executable (as a > file) itself.  When talking about the language, the implementation or > the VM in an abstract way (not a file), It think it’s a

[issue10363] Embedded python, handle (memory) leak

2010-11-11 Thread Martin Dunschen
Martin Dunschen added the comment: I have identified 5 cases where objects of type PyThread_type_lock are allocated but never freed again: import.c: import_lock pystate.c: head_mutex thread.c: key_mutex ceval.c: interpreter_lock zliblock.c: zlib_lock This leads to a ha

[issue10386] token module should define __all__

2010-11-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : The token module appears to be designed to be used with import *. In fact it is used this way in the tokenize module. However it does not define __all__ and as a result, from token import * leaks symbol "main": >>> import tokenize >>> tokenize.main.

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread STINNER Victor
STINNER Victor added the comment: See also #2382: I wrote patches two years ago for this issue. -- ___ Python tracker ___ ___ Python-

[issue10381] Add timezone support to datetime C API

2010-11-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : With timezone class added to datetime module, C API should be extended to at the minimum support efficient creation of timezone instances and access to the singleton UTC instance. I am not sure whether PyDateTime_TimeZone details should be exposed in

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-11-11 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: """ >>> import os >>> f=open("XX","w+b") >>> f.seek(1024*1024) 1048576 >>> f.write(b"hello") 5 >>> f.seek(1024*1024*2) 2097152 >>> f.write(b"bye") 3 >>> f.seek(0,os.SEEK_HOLE) 0 >>> f.seek(0,os.SEEK_DATA) 1048576 >>> f.seek(1048576,os.SEEK_HOLE) 1179648 >>> f.s

[issue10379] locale.format() input regression

2010-11-11 Thread R. David Murray
R. David Murray added the comment: Yeah, obviously that language can be improved. 'exactly' was meant to imply 'nothing but', but clearly it doesn't. If we want to restore more stringent backward compatibility and allow trailing text, it would be possible to make format an alias for format_s

[issue9807] deriving configuration information for different builds with the same prefix

2010-11-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Attached is the remaining patch against py3k. This installs the symlinks, fixes the distutils 'install_headers' location, and uses abiflags in the python3.pc path. I think this branch is done, pending approval and commit. -- Added file: http://bugs

[issue10384] SyntaxError should contain exact location of the invalid character in identifier

2010-11-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Can you see the error in the following? >>> inv​alid = 5 File "", line 1 inv​alid = 5 ^ SyntaxError: invalid character in identifier The problem is that an invisible space character crept into the identifier: >>> repr("inv​alid") "'

[issue10379] locale.format() input regression

2010-11-11 Thread Łukasz Langa
Łukasz Langa added the comment: Please use the deprecation process when possible. That would mean creating an alias for the function you want to remove somewhat like this (taken from configparser): def readfp(self, fp, filename=None): """Deprecated, use read_file instead."

[issue7434] general pprint rewrite

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

Issue Tracker issues, and a bug in Python

2010-11-11 Thread Hosford, Aaron Michael
Hi all, I found a bug in Python 2.7 involving dictionary comprehensions. I repeatedly tried to register on the Issue Tracker (http://bugs.python.org/) but never received a confirmation email, so I still can't log in and post it there. Maybe someone on this list can post it on my behalf: >>> fu

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg120925 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue5412] extend configparser to support mapping access(__*item__)

2010-11-11 Thread Łukasz Langa
Łukasz Langa added the comment: Committed in r86402. Documentation changes pending, to be made after Fred's detailed review. Fred, you can review using trunk. Reassigned as a reminder. -- assignee: lukasz.langa -> fdrake keywords: +needs review -patch stage: unit test needed -> commit

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2010-11-11 Thread 5houston
5houston added the comment: If you will choose the former way, I think it would be better to write in the "multiprocessing.Process" documentation that sys.exit is the function to use to break the process execution inside itself, but maybe it would be better to wrap sys.exit with a new "multip

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
New submission from Felix Laurie von Massenbach : If the config file has a boolean formatted as either True or False, python raises an attribute error when doing str.lower() on it. In my code I've worked around this in the following way: class MyConfigParser(ConfigParser.RawConfigParser):

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
Felix Laurie von Massenbach added the comment: Oops, that was the broken first version. Let's try again: class MyConfigParser(ConfigParser.RawConfigParser): def getboolean(self, section, option): result = self.get(section, option) try: trues = ["1", "yes", "true"

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-11-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Should we escalate this issue to CVA for Python 2.x? It's more of a missing feature than a security issue in itself, although the missing feature has to do with security. -- ___ Python tracker

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> lukasz.langa nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-11-11 Thread david
david added the comment: On 11 November 2010 23:31, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> Should we escalate this issue to CVA for Python 2.x? > > It's more of a missing feature than a security issue in itself, although > the missing feature has to do with security.

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-11-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > > > It's more of a missing feature than a security issue in itself, although > > the missing feature has to do with security. > > Still it would be nice to see in python 2.x at some point don't you think? Well, lots of things would be nice to see in python

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Łukasz Langa
Łukasz Langa added the comment: Felix, thanks for your report! :) I believe you misunderstood that all ConfigParser objects by design should hold *only strings* inside. The same problem would appear if you tried to write() configuration from a parser with booleans or numbers to a file. You sh

[issue10386] token module should define __all__

2010-11-11 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Normally, I'd recommend leaving the "main" name alone, but in the case of modules that use it as an tool for module maintenance (symbol, token), I don't think it matters either way. Ok to commit. -- assignee: -> belopolsky nosy: +fdrake resoluti

[issue10388] spwd returning different value depending on privileges

2010-11-11 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : As root: >>> import spwd >>> spwd.getspall() [spwd.struct_spwd(sp_nam='root', sp_pwd='!', sp_lstchg=14895, sp_min=0, sp_max=9, sp_warn=7, sp_inact=-1, sp_expire=-1, sp_flag=-1) ... ] As limited user: >>> import spwd >>> spwd.getspall() [] >>> Wou

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
Felix Laurie von Massenbach added the comment: Perhaps I don't understand fully, but I am reading, for example, "option = True" from a config file. When doing this getboolean raises: AttributeError: 'bool' object has no attribute 'lower' Is it intended that you cannot store "True" and "False"

[issue10386] token module should define __all__

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed revision 86410. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue10386] token module should define __all__

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Łukasz Langa
Łukasz Langa added the comment: No problem Felix. But look: Python 2.7 (r27:82500, Sep 24 2010, 12:26:28) [GCC 4.3.4 20090804 (release) 1] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> config = """ ... [section] ... does_it_work = True ... is_it_broken = F

[issue5412] extend configparser to support mapping access(__*item__)

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: In my experience of cfg files, it’s uncommon to have leading spaces (and also, may I add, ugly). It’s great that configparser supports them now, but I wouldn’t have put them in the basic examples. -- ___ Python track

[issue10388] spwd returning different value depending on privileges

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10389] Document rules for use of case in section titles

2010-11-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Following a brief and consensual discussion on d...@python and #python-dev, I am proposing attached patch for the Python documentation style guide. -- assignee: belopolsky components: Documentation files: style-guide.diff keywords: patch messag

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Library (Lib) -Extension Modules stage: -> unit test needed ___ Python tracker ___ ___ Pytho

[issue10385] Mark up "subprocess" as module in its doc

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Marking up each and every instance of a module name is not mandatory IMO. What’s important is that each document title starts with the :mod: construct, so that the HTML titles and index (at /library) be consistently useful. See for example ast (which also suff

[issue5412] extend configparser to support mapping access(__*item__)

2010-11-11 Thread Łukasz Langa
Łukasz Langa added the comment: Yup, most config parsers don't support that so there are not so many INI type files in the wild with this kind of formatting. On the other hand, Samba, XULRunner, mke2fs and others all use this. I mean, you're not forced to use that ugly feature but it's good t

[issue10377] cProfile incorrectly labels its output

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10375] 2to3 print(single argument)

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +benjamin.peterson, eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue10389] Document rules for use of case in section titles

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: +1 about the patch, if you add an example: “sentence case” may not be obvious for everyone. If it’s “modulename — Module description”, I agree. Also, s/white space/whitespace/. -- nosy: +d...@python, eric.araujo ___

[issue8804] http.client should support SSL contexts

2010-11-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed as part of #9003. -- resolution: -> duplicate status: open -> closed superseder: -> urllib.request and http.client should allow certificate checking ___ Python tracker

[issue10390] json.load should handle bytes input

2010-11-11 Thread Jeffrey Finkelstein
New submission from Jeffrey Finkelstein : The following code produces an error: # APIKEY defined above r = urllib.request.urlopen('http://api.billboard.com/apisvc/chart/v1/' 'list/spec?api_key={}&format=JSON' .format(APIKEY)) j = json.load(r)

[issue10390] json.load should handle bytes input

2010-11-11 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Nevermind. -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10383] test_os leaks under Windows

2010-11-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This leaks one reference every time: os.write(123456, b"b") -- ___ Python tracker ___ ___

[issue10383] test_os leaks under Windows

2010-11-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This looks suspect (in function posix_write):: if (!PyArg_ParseTuple(args, "iy*:write", &fd, &pbuf)) return NULL; if (!_PyVerify_fd(fd)) return posix_error(); I'd prefer a "PyBuffer_Release(&pbuf);" before returning... Many other

[issue9520] Add Patricia Trie high performance container

2010-11-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-11-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: - The patch modifies the _io module but not _pyio, why? (try f=_pyio.open("XX","w+b") at the beginning of the script above) - One test was *removed*, but nothing was added to test this new feature. This is the most likely way to lose it in future vers

[issue10390] json.load should handle bytes input

2010-11-11 Thread R. David Murray
Changes by R. David Murray : -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue10389] Document rules for use of case in section titles

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The new patch, issue10389.diff, addresses Éric's comments and adds an entry for "reST". -- Added file: http://bugs.python.org/file19571/issue10389.diff ___ Python tracker _

[issue1466065] base64 module ignores non-alphabet characters

2010-11-11 Thread R. David Murray
R. David Murray added the comment: Committed in r86414. -- nosy: -BreamoreBoy resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10391] obj2ast's error handling can lead to python crashing with a C-level assertion failure

2010-11-11 Thread Dave Malcolm
New submission from Dave Malcolm : In various places within the generated Python/Python-ast.c, error handling generates a repr() and raises exceptions accordingly. Currently in py3k the generated code uses PyBytes_AS_STRING() on the repr. My understanding is that repr() should be a PyUnicodeO

[issue10391] obj2ast's error handling can lead to python crashing with a C-level assertion failure

2010-11-11 Thread Dave Malcolm
Dave Malcolm added the comment: The attached patch: - extends the ast error-handling selftest with code that triggers this crash (on unpatched code) - fixes Parser/asdl_c.py to generate code using _PyUnicode_AS_STRING instead - contains the generated changes to Python/Python-ast.c FWIW,

[issue10391] obj2ast's error handling can lead to python crashing with a C-level assertion failure

2010-11-11 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan ___ Python tracker ___ ___ Python-bugs-lis

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-11 Thread Alex Willmer
Alex Willmer added the comment: The re module throws an exception for re.compile(r'[\A\w]'). latest regex doesn't, but I don't think the pattern is matching correctly. Shouldn't findall(r'[\A]\w', 'a b c') return ['a'] and findall(r'[\A\s]\w', 'a b c') return ['a', ' b', ' c'] ? Python 2.6.6 (r

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-11 Thread Stephen Hansen
Stephen Hansen added the comment: This test is failing again, and IIUC, largely due to the same sort of issues: http://www.python.org/dev/buildbot/all/builders/AMD64%20Leopard%203.1/builds/65 I was able to track down what exactly caused it to fail in this case on my box, though. Whatever "pos

[issue10391] obj2ast's error handling can lead to python crashing with a C-level assertion failure

2010-11-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: IMO a better patch would be to use the %R format specification: PyErr_Format( PyExc_TypeError, "expected some sort of mod, but got %R", obj); And no need to use PyObject_Repr and the temporary variable! -- nosy: +amaury.forgeotdarc __

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-11 Thread Stephen Hansen
Changes by Stephen Hansen : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10389] Document rules for use of case in section titles

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Looks good. I wouldn’t say reST is WYSIWYG, since it’s transformed, contrary to word processors where you make text bold to get it bold. (If you’re looking for other things to fix in that file, look at the entry for Unicode ;) -- _

[issue5412] extend configparser to support mapping access(__*item__)

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Well, I suggest removing the leading spaces in the examples, except maybe in one place if you think it’s needed. -- ___ Python tracker ___ ___

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is the expected behavior on OSX. Apple has a pretty odd interpretation of the standards wrt getgroups and setgroups behavior. This behavior is not a bug in python Sent from my iPhone On 11 nov. 2010, at 22:17, Stephen Hansen wrote: > > Stephen Hans

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-11 Thread Stephen Hansen
Stephen Hansen added the comment: Well, yes: the result of posix.getgroups is not a bug in Python, but is it a bug in the test? Should it be skipped on OSX, or some other solution? Having buildbots fail because of something that's expected behavior is bad, isn't it? -- _

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-11 Thread Vlastimil Brom
Vlastimil Brom added the comment: Maybe I am missing something, but the result in regex seem ok to me: \A is treated like A in a character set; when the test string is changed to "A b c" or in the case insensitive search the A is matched. [\A\s]\w doesn't match the starting "a", as it is not f

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-11 Thread R. David Murray
R. David Murray added the comment: Right, regardless of whether or not it is a bug in python, IMO it *is* a bug in the python test suite, since we *expect* buildbots to be long running processes and therefore they are going to get hit by this failure on OSX periodically with a pretty high lik

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-11 Thread R. David Murray
Changes by R. David Murray : -- priority: high -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10379] locale.format() input regression

2010-11-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: The bug has been fixed upstream by replacing .format() with .format_string(). I'm not sure I understand why there are two different methods - .format() seems kind of pointless to me, but then I don't use the locale module enough to say what's useful. For P

[issue10389] Document rules for use of case in section titles

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in revision 86417. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue7950] subprocess.Popen documentation should contain a good warning about the security implications when using shell=True

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Looks good to me, except the last two lines which I would reword or just remove. I wonder how many people use shell=True merely for the convenience of passing a string instead of a list. What do you think about adding a mention of str.split and shlex.split? --

[issue7950] subprocess.Popen documentation should contain a good warning about the security implications when using shell=True

2010-11-11 Thread Chris Rebert
Chris Rebert added the comment: "the above Note" mentioned in those last two lines demonstrates shlex.split() and correct tokenization. -- ___ Python tracker ___ ___

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: haypo> See also #2382: I wrote patches two years ago for this issue. Yes, this is the same issue. I don't want to close this as a duplicate because #2382 contains a much more ambitious set of patches. What I am trying to achieve here is similar to the

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file19573/issue10382a.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Having no time to read email RFCs, I’ll defer to you here. Please reject this report or save it for later as you prefer. -- versions: -Python 2.6 ___ Python tracker ___

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-11 Thread Matthew Barnett
Matthew Barnett added the comment: It looks like a similar problem to msg116252 and msg116276. -- ___ Python tracker ___ ___ Python-bu

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-11-11 Thread R. David Murray
R. David Murray added the comment: In connection with another bug report I found a rather basic error in parseaddr, so I'm going to eventually dig far enough into the RFC to have a real opinion on the elided-space issue. -- ___ Python tracker

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-11 Thread Alex Willmer
Alex Willmer added the comment: On Thu, Nov 11, 2010 at 10:20 PM, Vlastimil Brom wrote: > Maybe I am missing something, but the result in regex seem ok to me: > \A is treated like A in a character set; I think it's me who missed something. I'd assumed that all backslash patterns (including \A

[issue3931] codecs.charmap_build is untested and undocumented

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: I see charmap_build used in encodings too, so it may be useful to make it officially public for the use of third-party encodings. -- ___ Python tracker __

[issue7219] Unhelpful error message when a distutils package install fails due to a permissions error

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: I wonder if this is IronPython-specific. Could you temporarily make the site-packages directory of a py3k CPython read-only and try to install a distribution with that CPython? I can try the same thing on unix. -- _

[issue10379] locale.format() input regression

2010-11-11 Thread R. David Murray
R. David Murray added the comment: Well, the distinction is that, before the bug fix that caused your issue, the 'format_string' method would use a regex to extract the % specifiers from the input string, and call 'format' to replace that % specifier with a properly localized result string.

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
Felix Laurie von Massenbach added the comment: Ok, so I understand the issue, but why doesn't the set method simply convert to a string? >>> from ConfigParser import RawConfigParser >>> from StringIO import StringIO >>> parser = RawConfigParser() >>> config = """ [section] test = True """ >>>

[issue9313] distutils error on MSVC older than 8

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Re-opening to remind myself about the forward-port. -- assignee: ocean-city -> eric.araujo components: -Tests status: closed -> open versions: +3rd party ___ Python tracker _

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: issue2986.fix27.5.patch applied, with version note added to doc, as rev86418 Only thing left is patch for 3.2, which Eli and I will produce. -- stage: commit review -> needs patch versions: -Python 2.7 ___ Python t

  1   2   >