Skip to content

## Get started using packagename in readme.md is wrong #92

@jbemis99

Description

@jbemis99

the using this example in the readme.md:

Get started using packagename

To use this package:

from pyospackage.add_numbers import add_num


a = add_num(1, 2)
print(a)

when I try that, I get:

from pyospackage.add_numbers import add_num
Traceback (most recent call last):
File "", line 1, in
from pyospackage.add_numbers import add_num
ImportError: cannot import name 'add_num' from 'pyospackage.add_numbers' (C:\Users\jbemis\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyospackage\add_numbers.py)

However, if I:

from pyospackage.add_numbers import add_numbers as add_num
add_num(1,2)
3

Ah, this happened 8 months ago:
SHA-1: f7596fa

changed the name of the function from add_num to add_numbers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions