Issue 1931: NameError: global name 'basestring' is not defined (original) (raw)

Issue1931

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/46225

classification

Title: NameError: global name 'basestring' is not defined
Type: Stage:
Components: Documentation Versions: Python 3.0

process

Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, georg.brandl, gvanrossum, loewis, rclark
Priority: low Keywords:

Created on 2008-01-25 00:11 by rclark, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg61662 - (view) Author: Robert Clark (rclark) Date: 2008-01-25 00:11
File "/home/rclark/lib/src/python/pyparsing/pyparsing-1.3.1/pyparsing.py", line 1511, in __init__ if isinstance( expr, basestring ): NameError: global name 'basestring' is not defined
msg61665 - (view) Author: Robert Clark (rclark) Date: 2008-01-25 00:37
basestring is in the builtins library for 2.5.1, but is not there in 3.0a2 Linux: RHEL40
msg61666 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2008-01-25 01:35
It's been deleted. Use 2to3; it will replace it with 'str'.
msg61672 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-01-25 05:47
Robert, can you please explain why you consider this as a bug?
msg61679 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-01-25 11:03
I've updated the whatsnew docs in r60279.
msg61702 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-01-26 09:44
I don't see why this shouldn't be closed.
History
Date User Action Args
2022-04-11 14:56:30 admin set github: 46225
2008-01-26 09:44:40 georg.brandl set status: pending -> closednosy: + georg.brandlmessages: +
2008-01-25 11:03:02 christian.heimes set status: open -> pendingnosy: + christian.heimesresolution: not a bugmessages: + priority: low
2008-01-25 05:47:14 loewis set nosy: + loewismessages: +
2008-01-25 01:35:31 gvanrossum set type: compile error -> messages: + components: + Documentationnosy: + gvanrossum
2008-01-25 00:37:23 rclark set messages: +
2008-01-25 00:11:39 rclark create