Weekly Python StackOverflow Report: (clxxviii) stackoverflow python report

These are the ten most rated questions at Stack Overflow last week.
Between brackets: [question score / answers count]
Build date: 2019-05-19 10:39:17 GMT


  1. Slice a list based on an index and items behind it in Python – [20/16]
  2. pylint protection again self-assignment – [14/2]
  3. Filter a data-frame and add a new column according to the given condition – [11/5]
  4. Understanding Python syntax in lists vs series – [9/3]
  5. How to subset row of condition with some of N rows before the condition meet , more faster than my code? – [8/1]
  6. How to generate a time-ordered uid in Python? – [7/2]
  7. Creating an order-preserving multi-value dict for Django – [7/1]
  8. Update elements of dataframe by applying function involving same row elements – [6/6]
  9. Construct new column with first row of a groupby with two columns – Pandas – [6/4]
  10. Do JavaScript classes have a method equivalent to Python classes’ __call__? – [6/3]

Planet Python

Weekly News Summary for Admins — 2019-05-17

This Monday, macOS 10.14.5 (and all the related updates) dropped. The timing was surprising, but became clearer when the news on a new group of Intel CPU vulnerabilities arrived as well.

10.14.5 brings some mitigations to these vulnerabilites, but to be sure, you would have to disable Hyperthreading on your CPU(s) which brings up to 40% performance hit.

With 10.14.5 the new notarization rules for applications and kernel extensions arrive as well. All of this is once again demonstrating the importance (and the challenges) of IT being able to quickly roll-out and support system updates.

There are still a few spots left for the “Introduction to Scripting macOS” class on May 27/28!

If you would rather get the weekly newsletter by email, you can subscribe to the Scripting OS X Weekly Newsletter here!! (Same content, delivered to your Inbox once a week.)

On Scripting OS X

News and Opinion

Apple Updates

Articles

Tweets

  • mikeymikey: “macOS Mojave 10.14.5 (18F132)… ”
  • Jason Broccardo on Twitter: “#macadmins n.b. the both the 10.14.5 and iTunes Device Support Update updates have trailing spaces when you are looking at the CLI softwareupdate listing. If you want to CLI install you’ll need to account for that.”
  • Marnin: “When using the Time Server payload on earlier version of macOS 10.14, the time zone was not getting set properly.”
  • Ken Case: “Today Apple released macOS Mojave 10.14.5, which fixes a CoreAnimation drawing issue that was affecting customers using large OmniOutliner and OmniPlan documents. If you’re a Mac customer using Mojave, I strongly recommend updating!”

MDS/Zombieload

MacAdmins on Twitter

  • Caleb Coy: “Was just reminded that the #macadmins Slack community turns 4 this weekend. I don’t know about y’all, but a lot has happened for me in that time and having this community has helped so much.”
  • Daniel Jalkut: “Heads up Mac developers: the ”codesign –preserve-entitlements=runtime“ parameter does not actually preserve the runtime flag. Radar #50697511.”
  • Timo Perfitt: “Interesting that the additional recovery partition key combos are only available if you have installed 10.12.4 or later at least once.”
  • Adam Codega: “A configuration profile is never late. Nor is it early; it arrives precisely when it means to.”
  • Kitzy: “macOS Mojave 10.14.5 has been out for over 48 hours now. Still no sign of it in Jamf’s patch management. It’s frustrating that Jamf finally got the mechanics of patch management down but crippled it by making us all rely on Jamf for patch definitions that are slow to update.”
  • Ricky Mondello: “Did you know that you can drag Safari’s Downloads popover by its title into being a detached, free-standing window, so you can more easily monitor your long-running downloads?”

Bugs and Security

Support and HowTos

Scripting and Automation

Updates and Releases

To Listen

Just for Fun

Support

There are no ads on my webpage or this newsletter. If you are enjoying what you are reading here, please spread the word and recommend it to another Mac Admin!

If you want to support me and this website even further, then consider buying one (or all) of my books. It’s like a subscription fee, but you also get a useful book or two extra!

Scripting OS X

PyCoder’s Weekly: Issue #368 (May 14, 2019)

#368 – MAY 14, 2019
View in Browser »

The PyCoder’s Weekly Logo


CPython 3.8.0a4 Avaliable for Testing

Among the new major new features and changes so far: Assignment expressions (PEP 572), Positional-only arguments (PEP 570), multiprocessing can now use shared memory to avoid pickling, typed_ast is back.
PYTHON.ORG

Playing and Recording Sound in Python

In this tutorial, you’ll learn about libraries that can be used for playing and recording sound in Python, such as PyAudio and python-sounddevice. You’ll also see code snippets for playing and recording sound files and arrays, as well as for converting between different sound file formats.
REAL PYTHON

SQL, Python, and R. All in One Platform. Free Forever.

alt

Mode Studio combines a SQL editor, Python & R notebooks, and visualization builder in one platform. And it’s free forever. Connect data from anywhere and analyze with your preferred language. Build custom visualizations or use out-of-the-box charts.
MODE ANALYTICS sponsor

How the Dropbox Client Uses Python

“This blog post talks about reverse engineering the Dropbox client, breaking its obfuscation mechanisms, de-compiling it to Python code as well as modifying the client in order to use debug features which are normally hidden from view.”
ANVILVENTURES.COM

Has the Python GIL Been Slain?

A discussion of PEP554 (subinterpreters) and how it relates to the global interpreter lock (GIL) in CPython.
ANTHONY SHAW

Will the GIL Be Obsolete With PEP 554?

Another discussion of subinterpreters (PEP 554) and how they will allow true in-process parallelism.
PYTHON BYTES podcast

Discussions

Python Jobs

SIPS Programmer (Madison, WI)

University of Wisconsin

Senior API Developer (Copenhagen, Denmark)

GameAnalytics Ltd.

Senior Backend Python Developer (Remote)

Kiwi.com

More Python Jobs >>>

Articles & Tutorials

The Best Docker Base Image for Your Python Application

Which Docker image should you use for your Python app? There are many choices, and it may not be obvious which is the best for your situation. This article gives you a good overview of the current options available.
ITAMAR TURNER-TRAURING

Writing Cleaner Python Code With PyLint

In this video series you’ll see how to install and set up the PyLint code linter tool. You’ll learn why you should use code linters like PyLint, Flake8, PyFlakes, or other static analysis tools—and how they can help you write cleaner and more Pythonic code.
REAL PYTHON video

Learn Enteprise API Integrations With Zato

alt

Zato is a high-performance open-source Python-based enterprise integration platform and application server for SOA/API with built-in support for Odoo, SAP, IBM MQ, REST, SOAP, AMQP, SSO, Publish/Subscribe, Docker, LDAP, SQL, NoSQL, Caching, S3, SMS, Kafka, Search and more. Click here for details.
ZATO sponsor

Finding the Cheapest Flights for a Multi-Leg Trip With Python

“I was able to find the cheapest flights with the minimal duration and the resulting prices were almost the same as on Google Flights.”
NVBN.GITHUB.IO

F-String Debugging in Python 3.8

F-Strings will get a = format specifier that expands like a macro into <variable_name> = <value_of_variable> to serve as a debugging aid.
TIRKARTHI.GITHUB.IO

Innovate Software at OSCON

Join the O’Reilly Open Source Software Conference (OSCON) this July to see what’s shaping software development—from AI and cloud technology to distributed computing—and learn how to put it to work for you. Save 25% with code PYCODER.
O’REILLY sponsor

Letting Google Know of Other Languages in Your Django Site

If you have a public facing Django site in multiple languages, you probably want to let Google and other search engines know about it. This article shows you the minimal setup necessary to support this use case.
HAKI BENITA

Styling Output in Pandas

Pandas has a relatively new API for styling output. This article shows examples of using the style API.
CHRIS MOFFITT

Django Search Tutorial

How to add basic search functionality to any Django website.
WILLIAM VINCENT

Projects & Code

Events

EuroPython 2019 Early-Bird Ticket Sales Open

July 8 – 14 in Basel, Switzerland
EUROPYTHON.EU


Happy Pythoning!
This was PyCoder’s Weekly Issue #368.
View in Browser »

alt


[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]

Planet Python

Weekly Python StackOverflow Report: (clxxvii) stackoverflow python report

These are the ten most rated questions at Stack Overflow last week.
Between brackets: [question score / answers count]
Build date: 2019-05-11 20:53:04 GMT


  1. What is the order of execution of __eq__ if one side inherits from the other? – [17/1]
  2. What happened to python’s ~ when working with boolean? – [15/1]
  3. Function annotation with two or more return parameters – [13/1]
  4. Why is it so slow when assigning a concatenated string to a variable in python? – [11/1]
  5. How to add elements in list which is value of dictionary and those elements not be repeated as another keys of that dictionary? – [8/8]
  6. Why is there a difference between round(x) and round(np.float64(x))? – [8/1]
  7. Make a dataframe of all unique words with their count and – [7/1]
  8. Python coroutines: Release context manager when pausing – [7/1]
  9. When does Callable lack __module__? – [7/0]
  10. How to convert single list’s elements in form of dictionary – [6/6]

Planet Python

Weekly News Summary for Admins — 2019-05-10

More 10.15 and iOS13 rumors (or previews), Microsoft goes Terminal and open source and leaks the Chromium-based Edge browser for Mac, Mac admins continue to explore the effects of the 10.14.5 notarization requirements, and Adobe ‘unauthorizes’ old versions.

In additonal news, I will be giving Scripting Classes at Pro Warehouse in Amsterdam. The first class is a two-day “Introduction to Scripting macOS.” If you are interested, you can get more information and register here!

If you would rather get the weekly newsletter by email, you can subscribe to the Scripting OS X Weekly Newsletter here!! (Same content, delivered to your Inbox once a week.)

On Scripting OS X

News and Opinion

MacAdmins on Twitter

  • mikeymikey: “Just sharing this out here – because I didn’t know this detail – and codesign and spctl don’t show this particular reason for Gatekeeper rejection”
  • William Smith: “Download Microsoft Edge (Canary) for Mac, Reference the chromium.org key/value pairs here: www.chromium.org/administrators/policy-list–3 Use “com.microsoft.Edge.Canary” domain to manage (plist or configuration profile).”
  • Patrick Fergus: “I annotated Adobe’s “authorized” applications table with “marketing” versions. Note “if an Adobe product is not listed in the table below, all versions continue to be authorized.””

Bugs and Security

Support and HowTos

Scripting and Automation

Apple Support

Updates and Releases

To Listen

Just for Fun

Support

There are no ads on my webpage or this newsletter. If you are enjoying what you are reading here, please spread the word and recommend it to another Mac Admin!

If you want to support me and this website even further, then consider buying one (or all) of my books. It’s like a subscription fee, but you also get a useful book or two extra!

Scripting OS X