[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2986 ___ ___ Python-bugs-list

[issue9520] Add Patricia Trie high performance container

2010-11-11 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9520 ___ ___ Python-bugs-list mailing

[issue10385] Mark up subprocess as module in its doc

2010-11-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: 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:

[issue10383] test_os leaks under Windows

2010-11-11 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: 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

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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 rep...@bugs.python.org http://bugs.python.org/issue2986

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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.

[issue10308] Modules/getpath.c bugs

2010-11-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-11 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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 mer...@netwok.org 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 ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10358 ___ ___

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: ¡™£¢∞§¶•ªº File stdin, line 1 ¡™£¢∞§¶•ªº ^ SyntaxError: invalid character in identifier It looks like strlen() is used instead of number of characters in the decoded string. --

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10382 ___ ___

[issue7434] general pprint rewrite

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7434 ___ ___ Python-bugs-list

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-11-11 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file19356/z ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10142 ___ ___

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

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- dependencies: +Command line error marker misplaced on unicode entry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10384

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

2010-11-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +ezio.melotti, haypo, lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10382 ___

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-11-11 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es 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

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

2010-11-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 h.b.furus...@usit.uio.no 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

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

2010-11-11 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Should we escalate this issue to CVA for Python 2.x? -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1589 ___

[issue7061] Improve turtle module documentation

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Sun, Oct 31, 2010 at 8:00 PM, Éric Araujo rep...@bugs.python.org wrote: .. “Python” is lower-cased only when referring to the executable (as a file) itself.  When talking about the language, the implementation or the

[issue10363] Embedded python, handle (memory) leak

2010-11-11 Thread Martin Dunschen
Martin Dunschen mdunsc...@gmail.com 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

[issue10386] token module should define __all__

2010-11-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: 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

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #2382: I wrote patches two years ago for this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10382 ___

[issue10381] Add timezone support to datetime C API

2010-11-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: 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

[issue10142] Support for SEEK_HOLE/SEEK_DATA

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

[issue10379] locale.format() input regression

2010-11-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2010-11-11 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org 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

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

2010-11-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: Can you see the error in the following? inv​alid = 5 File stdin, line 1 inv​alid = 5 ^ SyntaxError: invalid character in identifier The problem is that an invisible space character crept into the

[issue10379] locale.format() input regression

2010-11-11 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl 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

[issue7434] general pprint rewrite

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7434 ___ ___

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:

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- Removed message: http://bugs.python.org/msg120925 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2986 ___

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

2010-11-11 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl 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

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
New submission from Felix Laurie von Massenbach fantasi...@gmail.com: 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

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
Felix Laurie von Massenbach fantasi...@gmail.com 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

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

2010-11-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 ge...@python.org: -- assignee: - lukasz.langa nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10387 ___

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

2010-11-11 Thread david
david db.pub.m...@gmail.com added the comment: On 11 November 2010 23:31, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr 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,

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

2010-11-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl 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

[issue10386] token module should define __all__

2010-11-11 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org 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:

[issue10388] spwd returning different value depending on privileges

2010-11-11 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: 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() []

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
Felix Laurie von Massenbach fantasi...@gmail.com 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

[issue10386] token module should define __all__

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed revision 86410. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10386 ___

[issue10386] token module should define __all__

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10386 ___

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl 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 =

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

2010-11-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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. --

[issue10388] spwd returning different value depending on privileges

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10388 ___ ___ Python-bugs-list

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

2010-11-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: 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:

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10387 ___ ___ Python-bugs-list

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Library (Lib) -Extension Modules stage: - unit test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10387 ___

[issue10385] Mark up subprocess as module in its doc

2010-11-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2010-11-11 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl 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

[issue10377] cProfile incorrectly labels its output

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10377 ___ ___ Python-bugs-list

[issue10375] 2to3 print(single argument)

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +benjamin.peterson, eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10375 ___ ___

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

2010-11-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 pit...@free.fr 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 rep...@bugs.python.org

[issue10390] json.load should handle bytes input

2010-11-11 Thread Jeffrey Finkelstein
New submission from Jeffrey Finkelstein jeffrey.finkelst...@gmail.com: 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'

[issue10390] json.load should handle bytes input

2010-11-11 Thread Jeffrey Finkelstein
Jeffrey Finkelstein jeffrey.finkelst...@gmail.com added the comment: Nevermind. -- resolution: - invalid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10390 ___

[issue10383] test_os leaks under Windows

2010-11-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This leaks one reference every time: os.write(123456, bb) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10383 ___

[issue10383] test_os leaks under Windows

2010-11-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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...

[issue9520] Add Patricia Trie high performance container

2010-11-11 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9520 ___

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-11-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

[issue10390] json.load should handle bytes input

2010-11-11 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10390 ___

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

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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 rdmur...@bitdance.com added the comment: Committed in r86414. -- nosy: -BreamoreBoy resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[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 dmalc...@redhat.com: 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()

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

2010-11-11 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com 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

[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 dmalc...@redhat.com: -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10391 ___

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

2010-11-11 Thread Alex Willmer
Alex Willmer a...@moreati.org.uk 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', '

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

2010-11-11 Thread Stephen Hansen
Stephen Hansen me+pyt...@ixokai.io 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,

[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 amaur...@gmail.com 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:

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

2010-11-11 Thread Stephen Hansen
Changes by Stephen Hansen me+pyt...@ixokai.io: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7900 ___ ___

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

2010-11-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 mer...@netwok.org 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 rep...@bugs.python.org http://bugs.python.org/issue5412

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

2010-11-11 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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

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

2010-11-11 Thread Stephen Hansen
Stephen Hansen me+pyt...@ixokai.io 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 vlastimil.b...@gmail.com 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

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

2010-11-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2010-11-11 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- priority: high - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7900 ___ ___

[issue10379] locale.format() input regression

2010-11-11 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org 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

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

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in revision 86417. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10389 ___

[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 mer...@netwok.org 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

[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 pyb...@rebertia.com added the comment: the above Note mentioned in those last two lines demonstrates shlex.split() and correct tokenization. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7950

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Added file: http://bugs.python.org/file19573/issue10382a.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10382 ___

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

2010-11-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

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

2010-11-11 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: It looks like a similar problem to msg116252 and msg116276. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___

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

2010-11-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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. --

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

2010-11-11 Thread Alex Willmer
Alex Willmer a...@moreati.org.uk added the comment: On Thu, Nov 11, 2010 at 10:20 PM, Vlastimil Brom rep...@bugs.python.org 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

[issue3931] codecs.charmap_build is untested and undocumented

2010-11-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

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

2010-11-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rdmur...@bitdance.com 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

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
Felix Laurie von Massenbach fantasi...@gmail.com 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 mer...@netwok.org 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 rep...@bugs.python.org

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

[issue8989] email.utils.make_msgid: specify domain

2010-11-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the patch, which looks good to me, except for the test: “eq” will raise a NameError, since this does not exist. Other test methods bind eq to self.assertEqual to save typing, which is not really needed in your case: Just use

  1   2   >