[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: > Even with your solution, in most of the cases you will need additional steps to assemble the results (at least in the cases with some kind of separator, where you have to join the first element with the followings). Yes, but this step is trivial and fully pr

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: > a "general" regex (e.g. for an ipv6 address) I know this problem, and I have already written about this. It is not possible to parse it in a single regexp if it is written without using repetitions. But in that case, the regexp becomes really HUGE, and the

[issue7135] AttributeError: 'module' object has no attribute 'HTTPSConnection'

2009-10-14 Thread R. David Murray
R. David Murray added the comment: The httplib module creates the HTTPSConnection class only if it can successfully import the ssl module. So your installation must be missing that module. Since you say your are using an ActivePython version, you should contact their community for support, sin

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread R. David Murray
Changes by R. David Murray : -- nosy: -r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: >> And anyway, my suggestion is certainly much more useful than atomic >> groups and possessive groups that have much lower use [...] >Then why no one implemented it yet? :) That's because they had to use something else than regexps to do their parsing. All t

[issue7135] AttributeError: 'module' object has no attribute 'HTTPSConnection'

2009-10-14 Thread A Welch
A Welch added the comment: Thank you for your response and my apologies for posting this in the incorrect support forum. I thought that this forum was for all the various versions of Python. -- ___ Python tracker

[issue7135] AttributeError: 'module' object has no attribute 'HTTPSConnection'

2009-10-14 Thread R. David Murray
R. David Murray added the comment: An understandable confusion, but no, python.org just maintains the original version, called CPython or python.org Python. -- ___ Python tracker ___

[issue7135] AttributeError: 'module' object has no attribute 'HTTPSConnection'

2009-10-14 Thread R. David Murray
R. David Murray added the comment: I should clarify a little: ActivePython a _distribution_ of CPython, one not maintained by python.org. Then there are other versions, such as IronPython, and Jython -- ___ Python tracker

[issue7136] Idle File Menu Option Improvement

2009-10-14 Thread Toby Donaldson
New submission from Toby Donaldson : I've been using Idle to teach beginning programming to university students for the last 6 or 7 years. I've taught hundreds and hundreds of students, and the single biggest confusion with Idle is this: "New Window" in the file menu is ambiguous Proposed fix:

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: >>> re.match('^(\d{1,3})(?:\.(\d{1,3})){3}$', '192.168.0.1').groups() ('192', '1') > If I understood correctly what you are proposing, you would like it to return (['192'], ['168', '0', '1']) instead. In fact it can be assembled in a single array directly in th

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Matthew Barnett
Matthew Barnett added the comment: Instead of a new flag, a '*' could be put after the quantifier, eg: (\d+)(?:\.(\d+)){3}* MatchObject.group(1) would be a string and MatchObject.group(2) would be a list of strings. The group references could be \g<1>, \g<2:0>, \g<2:1>, \g<2:2>. However,

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: You said that this extension was not implemented anywhere, and you were wrong. I've found that it IS implemented in Perl 6! Look at this discussion: http://www.perlmonks.org/?node_id=602361 Look at how the matches in quantified capture groups are returned as

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: Anyway, there are ways to speedup regexps, even without instructing the regexps with anti-backtracking syntaxes. See http://swtch.com/~rsc/regexp/regexp1.html (article dated January 2007) Which discusses how Perl, PCRE (and PHP), Python, Java, Ruby, .NET libr

[issue7069] inspect.isabstract to return boolean values only

2009-10-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Applied in r75433. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pyt

[issue7137] Socket documentation not updated

2009-10-14 Thread Yang Zhang
New submission from Yang Zhang : e.g., the doc still says socket.makefile([mode[, bufsize]]), which aren't the actual python3 params. -- assignee: georg.brandl components: Documentation messages: 94070 nosy: georg.brandl, yang severity: normal status: open title: Socket documentation no

[issue7137] Socket documentation not updated

2009-10-14 Thread Yang Zhang
Changes by Yang Zhang : -- versions: +Python 3.2 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: Umm I saif that the attribution to Thompson was wrong, in fact it was correct. Thompson designed and documented the algorithm in 1968, long before the Aho/Seti/Ullman green book... so the algorithm is more than 40 years old, and still not in Python, Perl

[issue7057] tkinter doc: more 3.x updates

2009-10-14 Thread Ezio Melotti
Ezio Melotti added the comment: Here is an incomplete patch. I fixed all the markup errors, typos and similar issues you mentioned and a few more that I noticed. Someone that knows Tkinter better than me should take care of the remaining issues, i.e.: * is Xlib still used? * bmp files on Wind

[issue7120] logging depends on multiprocessing

2009-10-14 Thread Vinay Sajip
Changes by Vinay Sajip : -- nosy: +barry status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7138] elementtree segfaults on invalid xml declaration

2009-10-14 Thread Ryan Williams
New submission from Ryan Williams : This crash is surprisingly consistent across versions, operating systems, and whether the c module is used or not: Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or

[issue7139] Incorrect serialization of end-of-line characters in attribute values

2009-10-14 Thread Moriyoshi Koizumi
New submission from Moriyoshi Koizumi : ElementTree doesn't correctly serialize end-of-line characters (#xa, #xd) in attribute values. Since bare end-of-line characters are converted to #x20 by the parser according to the specification [1], such characters that are represented as character re

[issue7139] ElementTree: Incorrect serialization of end-of-line characters in attribute values

2009-10-14 Thread Moriyoshi Koizumi
Changes by Moriyoshi Koizumi : -- title: Incorrect serialization of end-of-line characters in attribute values -> ElementTree: Incorrect serialization of end-of-line characters in attribute values ___ Python tracker

[issue7138] elementtree segfaults on invalid xml declaration

2009-10-14 Thread Ezio Melotti
Ezio Melotti added the comment: Confirmed on 3.1 on Windows too. -- assignee: -> effbot nosy: +effbot, ezio.melotti priority: -> high versions: +Python 3.1 -Python 2.5 ___ Python tracker _

[issue7139] ElementTree: Incorrect serialization of end-of-line characters in attribute values

2009-10-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> effbot nosy: +effbot priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailin

[issue7138] elementtree segfaults on invalid xml declaration

2009-10-14 Thread chuck
chuck added the comment: I'm seeing this on the built-in python on os x 10.6, too: Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin But neither with the trunk Python 2.7a0 (trunk:75433M, Oct 15 2009, 08:27:13) [GCC 4.2.1 (Apple Inc. build 5646)]

<    1   2