rouidenCAD · @rouidenCAD
0 followers · 78 posts · Server mas.to

#object #strange

Last updated 1 year ago

this · @This
2 followers · 5 posts · Server zirk.us

What is the meaning of in ?

"In Java, the this refers to the current . It is used to refer to the instance and of the current object from within the object's own methods.

Here is an example of how this is used in Java:

public class Person {
private String name;
private int age;

public Person(String name, int age) {
this.name = name;
this.age = age;
} ... } ...

🔗 w3docs.com/snippets/java/what-

#this #java #keyword #object #variables #methods

Last updated 1 year ago

꧁~Cea~꧂ · @alcea
45 followers · 3296 posts · Server pb.todon.de
C. · @cazabon
171 followers · 4261 posts · Server mindly.social

@AugierLe42e

We don't actually need a special constant for this; this is a pretty standard Python :

NOT_SET = object()

def f(a: int, b: int = NOT_SET):
if b is NOT_SET:
# function called without second argument
...

NOT_SET is a bare object, which will never compare equal to anything else, and is a singleton so the natural test is . It absolutely distinguishes between "no argument" and "caller happened to pass the value ".

#idiom #object #identity #default #explicitly

Last updated 1 year ago

Architecture News · @architecture
590 followers · 1425 posts · Server masto.ai
C. · @cazabon
157 followers · 3628 posts · Server mindly.social

@cenbe

Not sure exactly what you're getting at; there are various approaches. If you want , use the enum module/base class, and you can have constants of any flavour you like, protected from assignment. It's in the standard library and highly recommended.

If, on the other hand, you're trying to protect the user from themselves, you can create an that represents a but which resists changing value - but you can't prevent the user assigning to a name.

[...]

#symbolic #constants #object #value

Last updated 1 year ago

Ed Suominen · @edsuom
1579 followers · 551 posts · Server hachyderm.io

Does anyone else use the first person for docstrings? I picked this up from reading source written by @glyph and @itamarst. My dialect of it: The is speaking about itself. It refers often to "my " or "an instance of me" when speaking of an rather than itself as a class. And methods are where it says "I do this" if that's what it does generally, like a leader speaking about what she did with the unspoken help of others carrying out that actual work.

#python #twisted #class #instance #oop #object

Last updated 1 year ago

C. · @cazabon
142 followers · 2876 posts · Server mindly.social

@foo

It's a little what's going on here if you put it this way:

>>> b = []
>>> b.append(b)
>>> b
[[...]]
>>> b is b[0]
True

So all you've done is create a , and then (not extend) that list to itself. Since `a` and `a[0]` are the same , the `in` test will return True either way.

#clearer #list #append #object

Last updated 1 year ago

SugarDaddy · @namelox
7 followers · 21 posts · Server mastodon.xyz
CreatureUnknown · @CreatureUnknown
201 followers · 278 posts · Server blimps.xyz

I don't think you should be taking Coinpurse as a role model and inspiration.

furaffinity.net/user/mashterpo

#kobold #vore #object #belly #growth #fat

Last updated 1 year ago

Pascallie · @tithe_to_hell
20 followers · 25 posts · Server baraag.net

“A clever princeling, but not clever enough.”

Fanart for the fantastic Richard/Geoffrey Lion in Winter fic “More of bitter aloes than honey” on ao3

#historicalrpf #plantagenetcest #medieval #incest #dubcon #object

Last updated 1 year ago

九重八雲 · @yixuuka
6 followers · 60 posts · Server pawoo.net
Kihbernetics · @Kihbernetics
41 followers · 142 posts · Server qoto.org

A is something, A, which brings something, B, its sign determined or created by it, into the same sort of correspondence with something, C, its , as that in which itself stands to C.

(1902)

In a sign is the describing (documenting) a (“mental model”) abstracted from a real (object) by an (the interpretant).

#system #interpretant #CS_Peirce #Kihbernetics #model #sign #object #phenomenon #observer

Last updated 1 year ago

WordofTheHour · @wordofthehour
2268 followers · 35236 posts · Server botsin.space

: to offer in opposition as a criminal charge or by way of accusation or reproach

- French: objet

- German: das Objekt

- Italian: oggetto

- Portuguese: objeto

- Spanish: objeto

------------

Word of The Hour's Annual Survey @ wordofthehour.org/r/form

#object

Last updated 1 year ago

Rhet Turnbull :python: · @RhetTbull
72 followers · 214 posts · Server fosstodon.org

TIL about __init_subclass__ which allowed me to elegantly find a solution to "I need my class to always call code after the subclass __init__" docs.python.org/3/reference/da

#python #object

Last updated 1 year ago

Initializing an object property if assigning to it fails - anjane.sh/js-error - JavaScript Error Messages in Chrome vs FireFox vs Safari -

#javascript #object

Last updated 1 year ago

LisPi · @lispi314
446 followers · 8702 posts · Server mastodon.top

@natty Because it's completely unnecessary in proper systems like .

That is to say, / based object systems.

#object #clos #multimethod #genericfunction

Last updated 1 year ago

Lorie · @witchgato
333 followers · 247 posts · Server baraag.net
Spaceflight 🚀 · @spaceflight
1157 followers · 743 posts · Server techhub.social

📆 May 2021 "The known of damage caused by came as early as 📆 1969. An had fallen from and hit a that was traveling off the of , five crewmen. initially kept that a 🕵️, out of a desire to avoid provoking a conflict with " washingtonpost.com/world/2021/

Picture (symbolic) :cc_zero: commons.wikimedia.org/wiki/Fil

#washingtonpost #first #report #spacedebris #unidentified #object #space #freighter #coast #siberia #seriously #injuring #tokyo #information #secret #moscow

Last updated 1 year ago

Süsan Spark · @bysusanspark
0 followers · 1 posts · Server mastodon.social

Physical, Symbolic and Eccentric

#object #subject #body

Last updated 1 year ago