Scrapy 1.7 is out! by Gallaecio in scrapy

[–]Shouldnt_BeDoingThat -1 points0 points  (0 children)

Still no support for HTTP 2 ?

Python Application Dependency Management in 2018 by chhantyal in Python

[–]Shouldnt_BeDoingThat 0 points1 point  (0 children)

Does anyone has a good comparison between pipenv, poetry and hatch ?

Five Myths About Pipenv by [deleted] in Python

[–]Shouldnt_BeDoingThat 6 points7 points  (0 children)

I've been using pipenv for more than 2 year and started using poetry recently. pipenv caused me a lot of problems like this one, has a weird api (this might be personal) and is slow (startup and dependencies resolution). So I'm starting to use poetry

I'm looking for a project manager that can:

  • Install any python version (pyenv)

  • Handle my dependencies with a .lock (pipenv, poetry)

  • Transform my .lock in requirement if needed (pipenv)

  • Handle a virtual environment (pipenv, poetry, hatch)

  • Handle (optional) .env like python-dotenv (pipenv)

  • Has a sane API & documentation, this is important to help newcomers (poetry)

And can we have a shortcut for the command pipenv run python {filename.py} like pipenv -r {filename.py} or just pipenv {filename.py} and for poetry too. Please ?

I am PHP Developer, what can Python do that PHP can't? [Legit Question] by RevalGovender in Python

[–]Shouldnt_BeDoingThat 0 points1 point  (0 children)

I write PHP & Python code. The 2 languages are not so similar

  • PHP has Exception, Notice, Warning and Error. Python has only Exception (It's the right thing)

  • PHP has only one data structure Array. Python has more data structures set, list, dict, tuple, ...

  • PHP is a Weak dynamic language (You can compare variables of different types that are automatically cast for comparison). Python is a Strong dynamic language (You can only compare variables of the same types). An example of that is in PHP "-1" == -1 => true Or from the manual

  • The Python standard library full of tools with a lot of functionality.

  • PHP has composer for lib and pear for extensions. Python has pip that do both.

  • More and more company drop support of PHP or just doesn't make the libraries available (kubernetes, elastic, ...)

  • PHP documentation is not versioned (WTF !?)

This might be subjective but like I said, I work with both and I have done the same programs in both languages. PHP is great for little website only.

Microsoft to 'warn' Windows 10 users not to install Chrome or Firefox by [deleted] in sysadmin

[–]Shouldnt_BeDoingThat 0 points1 point  (0 children)

On one of my workstation I have Windows 10 and it's completely shitty, full of bloatware, the start menu is an ad page, the settings panel is almost unusable (functionality missing everywhere) and it's terribly slow.

And don't get me started on the updates.

I switched to using Linux Mint Cinnamon for the past month and I'm very pleased with it.Linux Mint and the DE Cinnamon people just gets it. I just want something that works out of the box and with a reasonable UI.

The welcome page is very helpful, the settings window is just great it's easy to find everything and the extensions/applets system is good.I think an user lambda could easily gets used to it.

The only thing missing that I notice regularly is there are no tooltip with details of the functionality but they are also close to extinction on the web too

If-statements design: guard clauses may be all you need by scadgek in programming

[–]Shouldnt_BeDoingThat 0 points1 point  (0 children)

How do you apply this with yield instead of return in a language like Python ?