Python Forum
best practice for import libraries and using pyinstaller
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
best practice for import libraries and using pyinstaller
#4
(Apr-17-2021, 11:01 AM)aster Wrote: One more question: where should I put my imports?
Always on to top.
PEP-8 Imports
Quote:Imports are always put at the top of the file,
just after any module comments and docstrings,and before module globals and constants.
aster likes this post
Reply


Messages In This Thread
RE: best practice for import libraries and using pyinstaller - by snippsat - Apr-17-2021, 11:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best programming practice for imports Curbie 8 1,604 Oct-16-2024, 02:20 AM
Last Post: Curbie
  how can I organise my code : best practice? pythonbum 0 561 May-24-2024, 03:17 PM
Last Post: pythonbum
  Threading best practice EvanS1 2 3,032 Apr-21-2020, 10:11 PM
Last Post: EvanS1
  How to Import Libraries like Numpy ajay3adhikari 2 3,827 Jul-08-2019, 02:41 AM
Last Post: DeaD_EyE
  Help with string practice Hermann_Fegelein 2 3,339 Aug-15-2018, 04:56 PM
Last Post: Hermann_Fegelein
  Best Practice For String Quotations ? Zork_3 9 58,833 Sep-01-2017, 07:16 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020