About 20,500,000 results
Open links in new tab
  1. Understanding __get__ and __set__ and Python descriptors

    Sep 26, 2010 · Non-data descriptors, instance and class methods, get their implicit first arguments (usually named self and cls, respectively) from their non-data descriptor method, __get__ - and this is how static methods know not to have an implicit first argument.

  2. Understanding .get() method in Python - Stack Overflow

    The sample code in your question is clearly trying to count the number of occurrences of each character: if it already has a count for a given character, get returns it (so it's just incremented by one), else get returns 0 (so the incrementing correctly gives 1 …

  3. Why doesn't list have safe "get" method like dictionary?

    Ultimately it probably doesn't have a safe .get method because a dict is an associative collection (values are associated with names) where it is inefficient to check if a key is present (and return its value) without throwing an exception, while it is super trivial to avoid exceptions accessing list elements (as the len method is very fast).

  4. When do you use POST and when do you use GET? - Stack Overflow

    Sep 6, 2008 · From what I can gather, there are three categories: Never use GET and use POST Never use POST and use GET It doesn't matter which one you use. Am I correct in assuming those three cases? If so, wha...

  5. How do I get the current date in JavaScript? - Stack Overflow

    Oct 7, 2009 · 3043 Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. Answers without enough detail may be edited or deleted. How do I get the current date in JavaScript?

  6. HTTP POST and GET using cURL in Linux - Stack Overflow

    HTTP POST and GET using cURL in Linux [duplicate] Asked 12 years, 5 months ago Modified 5 years, 10 months ago Viewed 1.4m times

  7. What is the quickest way to HTTP GET in Python?

    Mar 14, 2009 · As far a I understood, the op asked for the "quickest way to HTTP GET in Python" , based on that, you can use the dload library, even if not many users use it, something that's not a requirement for an answer.

  8. What is the { get; set; } syntax in C#? - Stack Overflow

    get and set are accessors, meaning they're able to access data and info in private fields (usually from a backing field) and usually do so from public properties (as you can see in the above example). There's no denying that the above statement is pretty confusing, so let's go into some examples. Let's say this code is referring to genres of music.

  9. REST API using POST instead of GET - Stack Overflow

    Oct 28, 2013 · But in GET request, the length of a URL is limited (maximum URL length is 2048 characters). So if I want to send a request to the API that has a parameter which is potentially a long string (JSON), I should use POST rather than GET ?

  10. Python Pandas: Get index of rows where column matches certain …

    Python Pandas: Get index of rows where column matches certain value Asked 11 years, 5 months ago Modified 2 years, 10 months ago Viewed 2.0m times