repl.it
@mat1/

repl that uses a lot of ram

Python

No description

fork
loading
Files
  • main.py
  • Packager files
  • poetry.lock
  • pyproject.toml
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from aiohttp import web

routes = web.RouteTableDef()

@routes.get('/')
async def hello(request):
	return web.Response(text="boomer moment")

@routes.get('/die')
async def die(request):
	print('dying')
	data = [
		b'a' * 100000000
	]

	while True:
		for i in range(1000000):
			data.append(list(data))
		print('bruh')

app = web.Application()
app.add_routes(routes)
web.run_app(app)
?