[issue10531] write tilted text in turtle
New submission from Yingjie : First of all, I'd like to express my deep gratidute to the author of this module, it is such a fun module to work with and to teach python as a first programming language. Secondly, I would like to request a feature if it is not too hard to achieve. Currently, you can only write texts horizontally, no matter what is the current orientation of the turtle pen. I wonder if it is possible to write text in any direction when we control the heading of the turtle? For example, the following code would write a vertically oriented text: >>> setheading(90) #turtle facing up >>> write("vertical text!") Thanks a lot! Yingjie -- components: Library (Lib) messages: 122379 nosy: lanyjie priority: normal severity: normal status: open title: write tilted text in turtle type: feature request versions: Python 3.2 ___ Python tracker <http://bugs.python.org/issue10531> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10532] A bug related to matching the empty string
New submission from Yingjie : Here are some puzzling results I have got (I am using Python 3, I suppose similar results for python 2). When I do the following, I got an exception: >>> re.findall('(d*)*', 'adb') >>> re.findall('((d)*)*', 'adb') When I do this, I am fine but the result is wrong: >>> re.findall('((.d.)*)*', 'adb') [('', 'adb'), ('', '')] Why is it wrong? The first mactch of groups: ('', 'adb') indicates the outer group ((.d.)*) captured the empty string, while the inner group (.d.) captured 'adb', so the outer group must have captured the empty string at the end of the provided string 'adb'. Once we have matched the final empty string '', there should be no more matches, but we got another match ('', '')!!! So, findall matched the empty string in the end of the string twice!!! Isn't this a bug? Yingjie -- components: Regular Expressions messages: 122380 nosy: lanyjie priority: normal severity: normal status: open title: A bug related to matching the empty string versions: Python 3.2 ___ Python tracker <http://bugs.python.org/issue10532> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10532] A bug related to matching the empty string
Changes by Yingjie : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue10532> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com