[issue3247] dir of an "_sre.SRE_Match" object not working
New submission from vizcayno <[EMAIL PROTECTED]>: For Windows XP SP3: v = 'add 1 to 4.56' import re r=re.search("([0-9]+)\D+(\d+\.\d+)","add 1 to 4.56") r <_sre.SRE_Match object at 0x00BED920> r.groups() ('1', '4.56') dir(r) [] in pyhton 2.5 it shows: ['__copy__', '__deepcopy__', 'end', 'expand', 'group', 'groupdict', 'gro ups', 'span', 'start'] -- components: Regular Expressions messages: 69031 nosy: vizcayno severity: normal status: open title: dir of an "_sre.SRE_Match" object not working type: behavior versions: Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3247> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3271] iter.next() or iter.__next__() ?
New submission from vizcayno <[EMAIL PROTECTED]>: For Win XP SP3 I do next in py30.b1: a=[9,8,1,2] it=iter(a) it.next() Traceback (most recent call last): File "", line 1, in AttributeError: 'list_iterator' object has no attribute 'next' but doing: it.__next__() 9 it.__next__() 8 it is ok. However, manual of Py3.0 indicates iter.next() as valid. Python 25 does not accept "it.__next__()" but "it.next()" Regards. -- assignee: georg.brandl components: Documentation messages: 69205 nosy: georg.brandl, vizcayno severity: normal status: open title: iter.next() or iter.__next__() ? type: behavior versions: Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3271> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3271] iter.next() or iter.__next__() ?
vizcayno <[EMAIL PROTECTED]> added the comment: Please, go to python 3.0 -> python manuals and search with word: iter then select first line of found titles, i.e. Functional Programming HOWTO. Into this title you will find some samples. Regards, ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3271> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3408] urllib incomplete and urllib2 does not exist
New submission from vizcayno <[EMAIL PROTECTED]>: I am under Win XP sp 3: After importing urllib it only shows a few objects when using dir() urllib2 module does not exist. .python Python 3.0b2 (r30b2:65106, Jul 18 2008, 18:44:17) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import urllib >>> dir(urllib) ['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__pa th__'] >>> import urllib2 Traceback (most recent call last): File "", line 1, in ImportError: No module named urllib2 >>> -- components: Windows messages: 69974 nosy: vizcayno severity: normal status: open title: urllib incomplete and urllib2 does not exist versions: Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3408> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3408] urllib incomplete and urllib2 does not exist
vizcayno <[EMAIL PROTECTED]> added the comment: Thanks Georg. Python 3.0b2 on line manual continues indicating with explanation and some examples that import urllib and import urllib2 are valid. Do you recommend me to open another issue about this? Regards. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3408> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3408] urllib incomplete and urllib2 does not exist
vizcayno <[EMAIL PROTECTED]> added the comment: Ok. In the python 3.0b2 on line documentation that comes with the .msi installer: 1) Search with word urllib and access the fourth line found: "urllib — Open arbitrary resources by URL" 2) Search with word urllib2 and select first line found: urllib2 — extensible library for opening URLs. In these cases documentation refers to 3.0b1, I must say. Many thanks for your attention and guidelines. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3408> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1578] Problems in win_getpass
New submission from vizcayno: .python Python 3.0a2 (r30a2:59397:59399, Dec 6 2007, 22:34:52) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import getpass >>> clave = getpass.getpass('PASSWD= ').strip().upper() PASSWD= Traceback (most recent call last): File "", line 1, in File "C:\python30\lib\getpass.py", line 63, in win_getpass pw = pw + c TypeError: Can't convert 'bytes' object to str implicitly >>> I get the error when I try to type the first letter of a password. -- components: Windows messages: 58338 nosy: vizcayno severity: normal status: open title: Problems in win_getpass type: crash versions: Python 3.0 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1578> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com