[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/pyg/ - Python General

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 20
Thread images: 5

Let's try one of these again

Python General - a general to answer questions about Python as well as discuss the language's features, libraries and everything else Python related.

What are you working on /g/?
>>
File: I_Am_Sperg.jpg (52KB, 693x719px) Image search: [Google]
I_Am_Sperg.jpg
52KB, 693x719px
How can python scale when everything just gets loaded into memory in order to do anything?
>>
>>57807590
Generators
>>
>>57807590
This isn't specific to Python, but:
1) Don't load *everything* it into memory
2) Distribute the load across multiple machines.
>>
File: Owen_Wilson_and_Friend.jpg (27KB, 565x424px) Image search: [Google]
Owen_Wilson_and_Friend.jpg
27KB, 565x424px
>>57807621
What does it not load?
>>
What's the best resource to learn Python from that isn't kiddie tier shit or just printing for about 10 exercises in a row?
>>
>>57807590
it doesn't really scale, at least not the same way a concurrent language like Go or even nodejs does.
>>
>>57807684
Serious post.
https://docs.python.org/3/tutorial/
>>
File: 1480166550071.jpg (146KB, 962x576px) Image search: [Google]
1480166550071.jpg
146KB, 962x576px
>>57807684
Learning by doing.

Just think of a project and start coding and googling.
>>
>>57807684
The tutorial on the official website is quite good. It starts with the language syntax and then goes through Python's standard library

https://docs.python.org/3/tutorial/index.html
>>
>>57807705
>>57807708

Thanks dudes.
>>
Is Python a good first language to learn?
>>
>>57807748
It's the best option to learn as the first language.
>>
https://www.udemy.com/complete-python-bootcamp/

https://www.udemy.com/the-python-bible/

Which one /pyg/? any other good vidcourses?
>>
File: 1479335925515.gif (774KB, 276x220px) Image search: [Google]
1479335925515.gif
774KB, 276x220px
>>57807748
Absolutely. The syntax really helps introduce general coding logic to a programmer just getting their feet wet.
>>
using Tkinter, is there a way to dinamically change sizes of widgets?
I mean, to let the user drag and drop a border of the widget and change the size.

this is for a non-TopLevel widget, btw.
>>
>>57807748
Yes, the best thing about it is that you can make something useful quite quickly.

>>57807806
Why use Tkinter instead of something like PySide? Just because it's part of the standard library?
>>
>>57807839
Is PySide still maintained? Wouldn't PyQt be a better option in this case?
>>
>>57807839
actually, yes.

as a kind of self-imposed challenge, I only want to use the standar library, so the fictional end-user doesn't have to install dependencies at all.


Anyways, do you recommend to just give up and switch to PySide?
>>
>>57807865
>Is PySide still maintained?

I havent really looked into it, it seems like it's a year since last release. But there is a fork of it:

https://wiki.qt.io/PySide2
which is supported by the Qt Company.

>Wouldn't PyQt be a better option in this case?

Not if you want to actually earn money from what you code. The license for PyQt costs tons of money.

>>57807886
>as a kind of self-imposed challenge, I only want to use the standar library

Which is cool as fuck and likely a better way to do it in a lot of ways.

>Anyways, do you recommend to just give up and switch to PySide?

It's easier and you can easily make advanced GUIs which would take a lot of effort to make with Tkinter. Also trivial to port it to whatever OS you want.
Thread posts: 20
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.