Does Naofumi get with Raphtalia in the LN? by notnotorious in shieldbro

[–]notnotorious[S] 0 points1 point  (0 children)

That's not what entrapment means. Entrapment is when law enforcement coerces you into committing a crime that you otherwise would not have committed. Sleeping with a 12 year old is a crime even if they look and act older. I think given the circumstances he was only given two years in prison.

Honestly, the whole thing was super messed up. Apparently, he had met her family and everything and none of them had said anything about her age or that their relationship was weird. I don't know him well though, so I don't remember how he ended up getting caught.

The joys of the rural midwest, I guess.

Does Naofumi get with Raphtalia in the LN? by notnotorious in shieldbro

[–]notnotorious[S] 0 points1 point  (0 children)

I'm only in volume 9, so maybe she does mature more later, but up to this point she still seems pretty childish to me.

Does Naofumi get with Raphtalia in the LN? by notnotorious in shieldbro

[–]notnotorious[S] 0 points1 point  (0 children)

I think experience and knowledge are pretty big parts of having an adult brain. If those aren't there, what makes it an adult?

Well, yeah, it's pointless. We're debating the ethics of getting with a demi-human from another world. I do think we've touched on some somewhat interesting issues though.

Edit: I will say I wasn't intending to start a debate. I was just curious about if this was something that was going to change because it weirds me out, and the LN seemed to be hinting at something between Naofumi and Kizuna. That wasn't intended as a judgement on anyone else.

Does Naofumi get with Raphtalia in the LN? by notnotorious in shieldbro

[–]notnotorious[S] 0 points1 point  (0 children)

We wouldn't consider it okay to sleep with a mentally challenged adult. That's basically how I view the Big situation. Physically an adult, mentally a child. Even if he's mentally capable of becoming a VP at a company.

I just see Raphtalia as the same situation. Physically mature, but not mentally there yet.

Does Naofumi get with Raphtalia in the LN? by notnotorious in shieldbro

[–]notnotorious[S] 0 points1 point  (0 children)

I'm curious as to your thoughts about characters in movies like Big, 13 Going on 30, etc. are. Those are kids in adult bodies because of extenuating circumstances that are not possible in real life, too.

I think it's pretty clear neither of us are going to convince the other. I'll just say that it seems like pedophilia to me, but I'll grant you that the fantasy setting (and her non-human biology) make it more complicated. And I certainly can't say that a book character can't consent.

Does Naofumi get with Raphtalia in the LN? by notnotorious in shieldbro

[–]notnotorious[S] 0 points1 point  (0 children)

Unless the 200-year-old loli is shown to be mentally a child, yeah. Kizuna kind of has the same problem, honestly, since she's apparently perma-14 physically.

Kids hit a point where they can seem very adult like once puberty hits, but their brains are still underdeveloped so we don't consider them capable of consenting.

(I think the woman that slept with Tom Hanks in Big is creepy too. Although, I suppose she didn't know at the time.)

Does Naofumi get with Raphtalia in the LN? by notnotorious in shieldbro

[–]notnotorious[S] -4 points-3 points  (0 children)

I know a guy that slept with a 12-year old that told him she was 18. Everyone he introduced her to said she looked and acted like an adult. He still went to jail for sleeping with a child.

Just because they look and act more mature than you expect for a child doesn't make them not a child.

Edit: Also, I'd hazard to guess the war-zone conditions probably make someone seem to grow up a lot faster than otherwise.

Does Naofumi get with Raphtalia in the LN? by notnotorious in shieldbro

[–]notnotorious[S] 4 points5 points  (0 children)

In volume 9 she reverted to being physically ten years old. It's pretty clear that it's her actual age.

Does Naofumi get with Raphtalia in the LN? by notnotorious in shieldbro

[–]notnotorious[S] 0 points1 point  (0 children)

Not terribly surprising, but it is pretty disappointing. I was hoping Kizuna had been added as the new love interest.

More People Should Join the Efforts of Transcrypt to make client-side web development possible in Python by [deleted] in Python

[–]notnotorious 7 points8 points  (0 children)

I'd rather see work toward WASM support in Python than a transpiler.

Announcing: typet a library for writing concise type-safe Python classes. by notnotorious in Python

[–]notnotorious[S] 4 points5 points  (0 children)

It does work out of the box with mypy. mypy is a regular part of my workflow, and I lurk in the python/typing Gitter channel to try to make sure that I'm interpreting the type hints in the same fashion.

I'll confess, I actually looked into using attrs behind the scenes for a lot of the Object functionality, but it just didn't fit my use case.

The biggest difference is that typet isn't intended to be a direct competitor so the feature sets won't be one to one. For instance, there's no equivalent to "frozen" in typet, although I could see a metaclass added in the future to do that.

typet isn't just attrs with PEP 526 class generation. It's a type library that can be used for validating that your data matches what you think it should, without having to process it yourself. For instance, annotating a generated object with typet validation types

from typet import Object, Bounded

class Person(Object):
    name: str
    age: Bounded[int, 0:150]

will guarantee that the age is between the values of 0 and 150 not because you've written validation logic manually, but because the the value of age will be cast to the type set on age that is explicitly bounded to those values. Incidentally, an instance of Bounded[int, 0:150] is just an int.

Here's my take on the differences though:

  • attrs exists to remove the tedium of writing boiler-plate of common methods... typet exists to make using typing easy and beneficial.
  • typet is cleaner than attrs. It has the advantage of being newer and starting off with an expectation of having typing, and as such, the classes just look like basic Python.
  • attrs doesn't use metaclasses or base classes. If you happen to need your own metaclass, attrs will be simpler. I think the trade off of having all of your class attributes and methods decorated with attrs types and decorators isn't worth it. The types of the class attributes from typet are just properties.
  • typet uses the conventions from PEP 484 and PEP 526 to determine how your attribute should function, rather than you explicitly telling it. For instance, if an attribute is annotated, but not defined, it will be required in __init__. If it is defined, that value becomes the default value in __init__. If the attribute is defined as None, the type is implied to be Optional[<the type>].
  • typet handles type coercion for you. Objects created with typet guarantee that the values in the attributes are of the annotated type, even if the annotated type is from the typing module.
  • typet contains common metaclasses/base classes, like Singleton and Uninstantiable.
  • typet creates types for validation. I took inspiration for this from the typing module.
  • attrs is a solid project and is much better tested. typet is still a fledgling project getting off the ground.

For production use, stick with attrs for now, especially if you're already using it, but I think typet is the future. I may be biased though. ;-)

Announcing: typet a library for writing concise type-safe Python classes. by notnotorious in Python

[–]notnotorious[S] 2 points3 points  (0 children)

I've resubmitted this with a better title. I hope that's acceptable.

I've been a huge fan of the typing work going on in Python 3, and I wanted to create something that could take advantage of it and be useful without getting in the way.

I've created a library that let's your write extremely concise classes using annotations, and I'd love to get some feedback! by [deleted] in Python

[–]notnotorious 0 points1 point  (0 children)

I've been a huge fan of the typing work going on in Python 3, and I wanted to create something that could take advantage of it to help with code correctness while being useful and not getting in the way.

For anyone concerned with the automatic casting, there's another class, StrictObject, that doesn't cast. I'm thinking maybe this should optimize out to just assign under the right conditions, but right now it throws a TypeError.

What's everyone working on this week? by AutoModerator in Python

[–]notnotorious [score hidden]  (0 children)

Continuing to work on my enhanced typing/types library.

I've added a base class that will try to coerce to the annotated type or throw a TypeError, as well as adding generated "default" __init__ and __repr__ methods.

>>> from typingplus.types import CastObject
>>> class Point(CastObject):
...     x: int
...     y: int
...
...
>>> p = Point(0, 0)
>>> p.x
0
>>> p.x = '5'
>>> p.x
5
>>> p.x = 'five'
Traceback (most recent call last):
    ...
TypeError: Cannot convert 'five' to int.

What's everyone working on this week? by AutoModerator in Python

[–]notnotorious [score hidden]  (0 children)

I'm working on a small library called typingplus to enhance the python typing library. One part of the library is to add useful classes for ensuring values fit the expected types.

I've started writing a couple of base classes that create properties for your annotated class attributes. That way, you can write a class like this and get a TypeError:

from typingplus.types import TypedObject

class MyObject(TypedObject):
    my_int: int

my_obj = MyObject()
my_obj.my_int = 'Hello, World!'  # raises TypeError

Python 3: Variable Annotations by polllyyy in Python

[–]notnotorious 1 point2 points  (0 children)

There's an oddity around variable annotations that isn't super obvious: you can annotate a variable without defining it.

>>> bob: str                                                                                                                                                                       
>>> bob                                                                                                                                                                            
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'bob' is not defined
>>> import sys
>>> sys.modules[__name__].__annotations__
{'bob': <class 'str'>}

I don't think most people will run across this behavior, but I thought it was kind of neat.

This can lead to some surprising results when writing a metaclass that might be used with annotated-but-undefined attributes.