Showing results 3161-3170 of >3,245 (page 317)
https://mail.python.org/pipermail/python-3000/2008-May/013876.html

[Python-3000] PEP: str(container) should call str(item), not repr(item) Guido van Rossum guido at python.org Thu May 29 21:31:17 CEST 2008 Previous message: [Python-3000] PEP: str(container) should call str(item), not repr(item) Next message: [Python-3000] PEP: str(container) should call str(item), not repr(item) Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Let me just save everyone a lot of time and say that I'm opposed to this change, and that I believe that it would cause way too much d

https://docs.twisted.org/en/stable/api/twisted.python.modules._ModuleIteratorHelper.html

# twisted.python.modules._ModuleIteratorHelper This mixin provides common behavior between python module and path entries, since the mechanism for searching sys.path and __path__ attributes is remarkably similar. Method __getitem__ Retrieve a module from below this path or package. Method __iter__ Implemented to raise NotImplementedError for clarity, so that attempting to loop over this object won't call __getitem__. Method iterModules Loop over the modules present below this entry or package on PYTHONP

https://www.pythontutorial.net/python-oop/python-class-methods/

In this tutorial, you'll learn about Python class methods and when to use them appropriately

https://parts.danuser.com/attachments/current-attachments/fence-wire-handling/spare-parts/python-wire-winder/

0 $0.00 SIGN IN (573) 642-2246 View All Current Attachments Auger Bits Industrial Auger Bits – For Black & Gray Auger Drives Agricultural Auger Bits – For Hydraulic & PTO Diggers Concrete Breakers Hammer CB40 EP Hydraulic Auger Systems Model EP615 Model EP1020 Model EP1530 Model EP2035 EP Mounts Fence Wire Handling Python Wire Winder Python Wire Unroller Material Handling Buckets Mega Mixer MAC Bucket Mini MAC Pallet Forks & Grapple Pallet Fork Frames Multi-Purpose Grapple Post Drivers T3 Driver Hornet

https://aieh.com/tests/python-fundamentals/sample/

A 5-question sample covering Python data structures, function semantics, list comprehension syntax, language guarantees, and generators. Items focus on conceptual understanding rather than code-tracing — that's reserved for the full 50-question assessment. For a verified Skills Passport credential, take the full assessment

https://til.simonwillison.net/python/introspect-function-parameters

Introspecting Python function parameters For https://github.com/simonw/datasette/issues/581 I want to be able to inspect a Python function to determine which named parameters it accepts and send only those arguments. Python 3.3 added an inspect.signature() function that can be used for this. Here's a function I wrote to take advantage of that and solve my problem: def call_with_supported_arguments(fn, **kwargs): parameters = inspect.signature(fn).parameters.keys() call_with = [] for parameter in parameters

https://code.activestate.com/recipes/578107-tracking-and-manipulating-the-python-import-state/

# Tracking and Manipulating the Python Import State (Python recipe) by Eric Snow ActiveState Code (http://code.activestate.com/recipes/578107/) This is a rough analog to the import engine described in PEP 406. Here I've called it ImportState.The focus here is on using it as a context manager to limit changes to the import state to a block of code (in a with statement). Differences from PEP 406 are described below. Python, 161 lines 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

https://www.systemverilog.io/python/lists-and-dicts/

Comparing the two main python data structures with SystemVerilog queues and associative arrays

http://www.laurentluce.com/posts/python-deque-implementation/

Home Python deque implementation 0 Laurent Luce written 6 years ago Python deque is a double-ended queue. You can append to both ends and pop from both ends. The complexity of those operations amortizes to constant time. We are going to look at the Python 3 internal implementation of deques. It uses a linked list of blocks of 64 pointers to objects. This reduces memory overhead since there are fewer previous and next links. Let’s create an empty deque and see what happens. >>> import collections >>> d

https://github.com/nkmk/python-snippets/blob/de3f7c055369f4960845be1b13a7bb0f4c218f52/notebook/numpy_abs_absolute_fabs.py

Contribute to nkmk/python-snippets development by creating an account on GitHub

‹ Prev Next ›