Different behaviours in script run directly and via runpy.run_module

Aperta
#60,941 19 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start by reviewing the behavior described for scripts run directly versus runpy.run_module. Compare the relevant execution paths and consult the issue's discussion for the expected behavior. Done means the two invocation modes behave consistently, with tests covering the difference.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

stdlib topic-importlib type-bug
BPO 16737
Nosy @vsajip, @jaraco, @ncoghlan, @merwok, @ericsnowcurrently, @serhiy-storchaka, @isaiah

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 = None
created_at = <Date 2012-12-20.13:37:02.290>
labels = ['type-bug', 'library']
title = 'Different behaviours in script run directly and via runpy.run_module'
updated_at = <Date 2020-01-29.00:36:22.597>
user = 'https://github.com/vsajip'

bugs.python.org fields:

activity = <Date 2020-01-29.00:36:22.597>
actor = 'brett.cannon'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2012-12-20.13:37:02.290>
creator = 'vinay.sajip'
dependencies = []
files = []
hgrepos = []
issue_num = 16737
keywords = []
message_count = 19.0
messages = ['177814', '177818', '177824', '177825', '177884', '177888', '177932', '177933', '177960', '178834', '282872', '282939', '282956', '304662', '304698', '304703', '304707', '305052', '305055']
nosy_count = 8.0
nosy_names = ['vinay.sajip', 'jaraco', 'ncoghlan', 'eric.araujo', 'Arfrever', 'eric.snow', 'serhiy.storchaka', 'isaiah']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue16737'
versions = ['Python 2.7', 'Python 3.2', 'Python 3.3']

Lingua principale
Python
Stelle
77.2k
Fork
36k
Merge medio
1g 9h
PR unite (30g)
558

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di python/cpython

Tutte le issue di python/cpython

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.