Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger does not understand packages (PR#283) #32702

Closed
anonymous mannequin opened this issue Jul 31, 2000 · 2 comments
Closed

Debugger does not understand packages (PR#283) #32702

anonymous mannequin opened this issue Jul 31, 2000 · 2 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@anonymous
Copy link
Mannequin

anonymous mannequin commented Jul 31, 2000

BPO 210631
Nosy @gvanrossum

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2000-12-12.20:49:57.000>
created_at = <Date 2000-07-31.21:09:10.000>
labels = ['type-feature', 'library']
title = 'Debugger does not understand packages (PR#283)'
updated_at = <Date 2000-12-12.20:49:57.000>
user = 'https://bugs.python.org/anonymous'

bugs.python.org fields:

activity = <Date 2000-12-12.20:49:57.000>
actor = 'gvanrossum'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2000-07-31.21:09:10.000>
creator = 'anonymous'
dependencies = []
files = []
hgrepos = []
issue_num = 210631
keywords = []
message_count = 2.0
messages = ['168', '169']
nosy_count = 1.0
nosy_names = ['gvanrossum']
pr_nums = []
priority = 'low'
resolution = None
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue210631'
versions = []

@nobody
Copy link
Mannequin

nobody mannequin commented Jul 31, 2000

Jitterbug-Id: 283
Submitted-By: musingattheruins@yahoo.com
Date: Mon, 10 Apr 2000 12:30:44 -0400 (EDT)
Version: 1.5.2
OS: Win32

The python debugger (both Idle and PythonWin) does not undertand packages. Can
run scripts from the command line that cannot be run in the debugger...

Create package 'Test' in the directory "My Modules", add an __init__.py (empty)
to the directory "My modules\Test", create file testfile.py with the
contents...

class TheTest:
   def __init__(self):
      self.i = 1

   def go(self):
      return self.i

Add the path to the Python path with the following file (test.reg)...

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\1.5\PythonPath\TheTest]
@="C:\\My modules"

then try the following at the python prompt:

import Test.testfile
j = Test.testfile.TheTest() 
k = j.go

runs fine right? Yes it does, now step through it in the debugger and you
get...

import Test.testfile
j = Test.testfile.TheTest() #exception: attribute 'TheTest'
k = j.go

Does not appear to be realted to the class (you can change it to a 'function in
a module' instead of a 'method in a class in a module' and you get the a similar
result.)

Debugger does not understand packages.

====================================================================
Audit trail:
Tue Jul 11 08:29:15 2000 guido moved from incoming to open

@anonymous anonymous mannequin closed this as completed Jul 31, 2000
@anonymous anonymous mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jul 31, 2000
@anonymous anonymous mannequin closed this as completed Jul 31, 2000
@anonymous anonymous mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jul 31, 2000
@gvanrossum
Copy link
Member

I've added this feature request to PEP-42.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant