arigato changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end ) | use cffi for calling C | mac OS and Fedora are not Windows
speeder39_ has quit [Quit: Connection closed for inactivity]
Ai9zO5AP has quit [Quit: WeeChat 2.4]
kipras has quit [Read error: Connection reset by peer]
PileOfDirt has quit [Quit: Leaving]
_whitelogger has joined #pypy
kipras has joined #pypy
_whitelogger has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
_whitelogger has joined #pypy
dddddd has quit [Remote host closed the connection]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
mattip has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
forgottenone has joined #pypy
ajlawrence has joined #pypy
Ai9zO5AP has joined #pypy
pypy907 has joined #pypy
xcm has quit [Remote host closed the connection]
pypy907 has quit [Quit: Page closed]
pypy416 has joined #pypy
xcm has joined #pypy
Kipras_ has joined #pypy
kipras has quit [Ping timeout: 246 seconds]
pypy416 has quit [Ping timeout: 256 seconds]
agronholm has quit [Ping timeout: 252 seconds]
agronholm has joined #pypy
kenaan has joined #pypy
<kenaan> mattip py3.6 40df81b2d706 /pypy/objspace/std/: add memoryview.obj which stores a reference, issue #3016
tsaka__ has quit [Ping timeout: 252 seconds]
tsaka__ has joined #pypy
antocuni has joined #pypy
tsaka__ has quit [Ping timeout: 248 seconds]
Ai9zO5AP has quit [Ping timeout: 268 seconds]
antocuni has quit [Ping timeout: 246 seconds]
ebarrett has quit [Ping timeout: 246 seconds]
ebarrett has joined #pypy
ebarrett has quit [Client Quit]
ebarrett has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
Ai9zO5AP has joined #pypy
Ai9zO5AP has quit [Client Quit]
Ai9zO5AP has joined #pypy
Ai9zO5AP has quit [Client Quit]
Ai9zO5AP has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
_whitelogger has joined #pypy
dddddd has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
<mattip> it seems the lib-python 2.7 tests (certificate failures) are due to old stdlib. We want to update the bundled pip anyway,
<mattip> so I will try to update to 2.7.16
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
<mattip> which comes with pip 18, but we can push it to 19.1.1 to get manylinux2010 compatibility
forgottenone has quit [Remote host closed the connection]
forgottenone has joined #pypy
lritter has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/6202 [mattip: force build, vendor/stdlib-2.7.16]
<kenaan> mattip vendor/stdlib-2.7.16 1ef1b169d3cc /: vendor in 2.7.16 with pip 19, stub implementation of weakref._remove_dead_weakref
tsaka__ has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/6202 [mattip: force build, vendor/stdlib-2.7.16]
<ajlawrence> I am currently adding some win32 functionality to the sockets in PyPy (the share method) . Are there any rules governing the level in the interpretter where this functionality should live? I started extending interp_socket.py but I am now debating whether this should really go into rsocket.py
<mattip> if it is python-specific it goes in pypy, if it could theoretically serve others then rsocket.py
<mattip> but handling errors from rpython is limited
<ajlawrence> It does seem to be a python-specific method so I will stick it in pypy.
<ajlawrence> What does this mean? [translation:ERROR] AnnotatorError: Don't know how to represent <module 'sys' (built-in)>
<ajlawrence> I would like to do " if sys.platform == 'win32' " in some code.
<mattip> it should be outside the function, see examples in something like pypy/module/sys/interp_encoding.py
<mattip> and should set a global variable
<ajlawrence> I have seen it outside the function. I was wondering why it does not work.
<ajlawrence> I think the best solution for me is to set a global variable.
<mattip> global scope should work, it is handled at import time so before annotation
<ajlawrence> Ok
<ajlawrence> What is an UnionError?
<simpson> It means that two different types were given to a single variable/attribute, and the types couldn't be unified.
<mattip> during annotation, the function arguments and return type are analyzed. It is called once with one type of argument and returns something,
<mattip> then the next time it is used it is called with something different or returns something different
<mattip> so something like str and unicode, or different int types
<mattip> note these are usually rpython types, not W_Root types since the latter can be unified (usually)
<mattip> I tend to think of rpython types like C, and W_Root like python classes
<ajlawrence> It seems like I have tried to use a W_Root type in a function that expects an rpython type.
<mattip> pastebin the code?
<mattip> space.int_w for ints, space.text_w for str/bytes
<ajlawrence> it doesn't like the line 11 where I pass w_fdobj into str2charp
<ajlawrence> where w_fdobj is some wrapped bytes
<mattip> are you sure it can only be wrapped bytes and not wrapped int? If so space.text_w(w_fdobj), otherwise you need logic
<ajlawrence> In cpython they also have some check to see if it is a bytes object.
<mattip> if space.isinstace_w(w_fdobj, space.w_bytes):
<mattip> space.isinstance_w returns a rpython bool where space.isinstance returns a wrapped bool
<mattip> and in general space.w_xxxx is a base-class instance of W_XXXX, where space.xxx_w(w_obj) unwraps a w_obj
<mattip> or raises if it cannot unwrap
<ajlawrence> What are the types wrapped with?
<mattip> space.newtext(bytes)
<mattip> space.newint(3)
<ajlawrence> That was more a question of what do those functions do to the types. Does wrapping add some extra information used in the translation?
<mattip> wrapping converts a rpython (C-like) low-level object to a pypy W_Root object that can be used in python
<ajlawrence> Ok
<mattip> tries to explain the idea of objects in a "space"
<mattip> and the difference between application level and interpreter level
lritter has quit [Ping timeout: 258 seconds]
<kenaan> mattip vendor/stdlib-2.7.16 18a0680acbec /lib-python/2.7/ctypes/__init__.py: revert to older version
<kenaan> mattip vendor/stdlib-2.7.16 ea4bfedd2667 /: add _ssl.HAS_TLSv1_3
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/6203 [mattip: force build, vendor/stdlib-2.7.16]
<kenaan> andrewjlawrence winmultiprocessing 440feb6ea372 /: First implementation of socket.share. Fixed issue with _testcapi import.
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/4607 [andy lawrence: force build, winmultiprocessing]
i9zO5AP has joined #pypy
Ai9zO5AP has quit [Ping timeout: 258 seconds]
i9zO5AP has quit [Quit: WeeChat 2.4]
Ai9zO5AP has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/6203 [mattip: force build, vendor/stdlib-2.7.16]
forgottenone has quit [Read error: Connection reset by peer]
speeder39_ has joined #pypy
iko_ has quit [Ping timeout: 255 seconds]
ajlawrence has quit [Ping timeout: 256 seconds]
iko has joined #pypy
meejah has quit [Ping timeout: 268 seconds]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
jcea has joined #pypy