Deutsch English Français Italiano |
<mailman.32.1723070648.2890.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico <rosuav@gmail.com> Newsgroups: comp.lang.python Subject: Re: python3 package import difference? Date: Thu, 8 Aug 2024 08:43:54 +1000 Lines: 19 Message-ID: <mailman.32.1723070648.2890.python-list@python.org> References: <v90488$35uk5$1@dont-email.me> <CAPTjJmozm5V17Ppra+JTvkiCqMzPQHV2RzRG1A2UGFZTe8m81w@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: news.uni-berlin.de vegcW/5W5m7th+jA5BBZXQHPym4q2Zw5o0TiGUG7BFIQ== Cancel-Lock: sha1:ZJUafRU+L2uT5GD1Lt7zRU3NiGA= sha256:8prZ2DYEApHkjg9NNXxf7B/QXipGVmBClVsEZQVlvgI= Return-Path: <rosuav@gmail.com> X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org Authentication-Results: mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=OJsJrnEE; dkim-adsp=pass; dkim-atps=neutral X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'aug': 0.07; 'subject:import': 0.07; 'import': 0.15; '2024': 0.16; 'chrisa': 0.16; 'form:': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:package': 0.16; 'wrote:': 0.16; 'probably': 0.17; 'thu,': 0.19; 'to:addr:python-list': 0.20; 'python-list': 0.32; 'message-id:@mail.gmail.com': 0.32; 'header :In-Reply-To:1': 0.34; 'received:google.com': 0.34; 'from:addr:gmail.com': 0.35; 'using': 0.37; 'want': 0.40; 'contains:': 0.84; 'imports': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723070646; x=1723675446; darn=python.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=cH/6N0BX+eFxR0Objc+csEj0nDSsngsHhAEvqL4gzwQ=; b=OJsJrnEELs8MVnsbzHLVzszug36Dtwr9PDU4qF2rcWdlgQgSEYFDrInu84P7hfGYNO ez0JSZyoEjyp7Zl2hkJqF+Yp3vWA44QLw64psuTNVp1FkHQ5Dmxp/IXF0dDAiuAq6bPx 8wOjM6S/ZCB3seGIbU+x3ThikeJO2LiFehkkYdAix1SyL/IATan3tF5InccEqR69GVtS /PNncq4fh8MkoaYHmSPP3bhxxR9ABC/IhWYl57TMczqSoGYW2319NPN/mxvUYzGlhVwb 87jaiUigwApviSrPbw1dFqvryP9QOg6RxteNhOMKSyBiwKKAH86cdcNgMHeH1if4C86N BqEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723070646; x=1723675446; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cH/6N0BX+eFxR0Objc+csEj0nDSsngsHhAEvqL4gzwQ=; b=DdqNTy5+6D+plaJXYda5G6Wll72X++JtWCM6yLvRCC1pcJsqwfsB6QERvUiArYc/4f 0qA/Oq/qU2VNiEKx9nKzduf/Up9foMImSrOC52/Xf7VjUahfLyMKBTuMxlvaTUCU4rRT UtsJq+71Vb4qQxMos5LDBySXx06DlTuQwLKKBv9oZTJnh91pJ/XQ1ly/EVyyPENMeN9r vSM8JjMleKsFH+H8ni/ifIOI6D34R06/9W6/2g1WQcTxc4AfluytC3vA1NcsSaSaU+tY 1ihLIgFXdI9UXr6Zniwj6hZdpm61PiOuQziPJojiRkydr39606hWUAf+X9Krcg+eHvQI OXSQ== X-Gm-Message-State: AOJu0YwgMSJUcJoLDf0s0AdTXx442k1uJainccD54JXypMDPf3+/xHde Q+s5ZV9KdcxYNyckVOxxb+tN9v2bx2Ty4ZBhz3tXXbgH2kv4pYC2LXE3xpG+f9IAkWgzdn+5ICG DBRR4GfiwGJvZVbIIXt4rhxoAfQqh5Q== X-Google-Smtp-Source: AGHT+IHV5mv86+HneAchstSaraNk7SJzmojMiRfZyTNz2tqP9jZUsis55ZLpuJYSisD+CW+Jj84DPHz5xrtx9eY1qek= X-Received: by 2002:a05:6512:3dab:b0:52e:941d:7039 with SMTP id 2adb3069b0e04-530bb39bf77mr13312034e87.59.1723070645791; Wed, 07 Aug 2024 15:44:05 -0700 (PDT) In-Reply-To: <v90488$35uk5$1@dont-email.me> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: General discussion list for the Python programming language <python-list.python.org> List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> List-Archive: <https://mail.python.org/pipermail/python-list/> List-Post: <mailto:python-list@python.org> List-Help: <mailto:python-list-request@python.org?subject=help> List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> X-Mailman-Original-Message-ID: <CAPTjJmozm5V17Ppra+JTvkiCqMzPQHV2RzRG1A2UGFZTe8m81w@mail.gmail.com> X-Mailman-Original-References: <v90488$35uk5$1@dont-email.me> Bytes: 4597 On Thu, 8 Aug 2024 at 03:40, Tobiah via Python-list <python-list@python.org> wrote: > The one under rcs.dbi contains: > > from dbi import * > from regos import * > You probably want these to be package-relative now: from .dbi import * from .regos import * Or, since you're using namespaced imports anyway ("rcs.dbi.feature"), you may prefer this form: from . import dbi, regos ChrisA