« first day (4492 days earlier)      last day (460 days later) » 

1:49 AM
stackoverflow.com/questions/75317753 has requests ever had this keyword argument?
 
2:39 AM
@KarlKnechtel I'd just ask the OP where they got that from.
 
I guess. it doesn't seem that important, though.
also, nice to see you in the room.
I know we butt heads sometimes, but I do appreciate your insight.
 
Likewise.
 
Hello all, how do i convert a string data or this can be called a json object , something like {'a': 'b} to a dictionary object in python
 
That's neither valid Python not value JSON.
 
oops
{"a": "b"}
 
something like this?
 
@ozil stackoverflow.com/questions/7771011 in the future, please try to search for existing Q&A first
I can literally copy and paste your first chat message into a search engine and get relevant results right off the top.
Including a Stack Overflow result that is a duplicate of what I just linked.
 
@KarlKnechtel - thank you.
 
@KarlKnechtel - thank you , i went through the question. the json object is within ' ' in the example , '{ "key": "value" } ' , if both my key and value are some variable, how do i construct a json string/object before calling a json loads. looks like json loads takes a string
sorry for the basic question here
 
3:05 AM
" the json object is within ' ' in the example , '{ "key": "value" } ' " -- that means it is a string
Please try to make sure you understand the fundamentals of the language, before trying to do anything complex. I recommend working through the tutorial provided by the developers themselves: docs.python.org/3/tutorial/index.html
 
yes sorry that's what i meant. so if my key and value both are variables , how do i construct such a string
i will go through the link you provided
thank you very much
 
You mean, you have a variable called key which stores a string, and a variable called value which stores a string?
 
yes
 
and you want to make a dictionary, which has one key, that is taken from the key variable, and the corresponding value comes from the value variable?
 
yes
 
3:08 AM
then you do not want JSON at all
just create the dictionary: {key: value}.
 
ok thanks
 
The purpose of JSON is to represent the data structure as text, so that it can be saved in a file, sent across the Internet, etc.
If you have the pieces of a data structure, and you want to make a data structure, then just do it.
 
thanks.
 
 
4 hours later…
6:45 AM
Never thought type annotations would undermine my understanding of asyncio... I thought I had a pretty good idea of how generators are used to implement async functions, until I had to write a type annotation for an __await__ method.
def __await__(self) -> Generator[Any, None, InsertReturnTypeHere]:
SendType is None?!
Hmm, I guess asyncio only needs to .send() a value into a few specific (internal) awaitables. Like Future, for example
 
 
2 hours later…
8:27 AM
@Aran-Fey Most async frameworks don't send any information to/from the event loop via the async stack. There is some means to get "the event loop", usually via thread-locals; so information to the event loop is given directly via method calls on it. Similarly, exchanging information between coroutines is usually done by attaching that information directly to an object (a queue, future, lock, ...) visible by both coroutines.
The event loop then only has to "wake up" a coroutine, and it will know where to look for the actual information.
Our own async simulation framework worked with just a single "yield to the event loop" primitive, which is "sleep forever". The event loop was entirely incapable of handling any other kind of action and thus had no concept of even providing information back via the async stack.
 
But how does the loop know which tasks are ready to be woken up, then?
async def foo():
    future = asyncio.get_running_loop().create_future()
    await future
How would the loop know that foo is waiting for that specific future?
 
The future itself knows which coroutines are waiting for it.
So when you mark the future as completed, it will tell the event loop to wake up these coroutines.
 
8:46 AM
How does the future get access to the coroutine? next(future.__await__()) returns a FutureIterator. The future can hold a reference to that, and it can call next() on that iterator. But that won't return the execution flow to foo. How does it send the result of the future into foo?
In other words, when future receives its value, you have to call next(foo). But how do you establish that mapping of "When future then foo"?
I can see that you don't necessarily have to do the communication via generator.send though. You can just call next(future_iterator), and it can grab the value from wherever it wants
 
"How does the future get access to the coroutine?" It asks the event loop, which always knows which task it is currently running. That's sufficient, because at the top of that task's stack there is -> coroutine -> Future. Storing this task enough to "wake up the Task which runs the coroutine" later.
Let me whip up an pseudo-implementation...
 
Oh, that makes sense. Seems like a roundabout way of doing things, though
 
The good thing is that most of the things happen automatically (the parent wakes up by the Future.__await__ being done) and the event loop doesn't have to understand anything.
class Future:
    def __init__(self):
        # tasks awaiting this future
        self._pending = set()

    def __await__(self):
        try:
            return self._value
        except AttributeError:
            # the loop knows which task awaits us
            loop = async_framework.get_loop()
            task = loop.get_task()
            self._pending.add(task)
            yield  # pause this future *and the entire task* until resumed
            self._pending.remove(task)
            return self._value  # let the task go on with what it was doing
That's the abridged version without error handling.
The important part is that every task can be paused at only one point at any single time.
So when the future wakes up a task waiting for the future, that task must be paused inside Future.__await__.
This allows all the bookkeeping to be handled by the Future. One could swap out the semantics of waiting (say, in which sequence pending tasks wake up) without touching the event loop at all.
 
9:08 AM
Not all the bookkeeping, surely? The loop still has some of that power inside of its run_soon method, no?
 
A bit. The loop will at least have a queue of tasks to start running soon.
Plus, it'll also have a component to sleep completely and to wait for system resources (network, mostly).
 
9:29 AM
Wait a minute. This explains how a future can produce a value, but how would you implement exceptions? If __await__ returned a generator, you could do foo.throw(...). But with an iterator? How?
Never mind, I'm dumb
Strange design choice though. Generators had all the required features, so why make __await__ return an iterator instead of a generator? Weird
It doesn't even make the function annotation less clunky, since typing.Iterator doesn't let you specify the return type
 
__await__ can be both a generator or an iterator. await even supports both with a different featureset.
 
Wait, what? What different features are there?
 
A setup as shown above supports exceptions easily by storing a value, exception tuple. That's actually pretty useable since a single None nicely indicates no result is available yet.
@Aran-Fey await suppresses chained send/throw based on what the awaitable supports.
Writeup of my tests is here: Does __await__ need to be a generator?
 
9:51 AM
Huh. Didn't know coroutines had a backwards interface too
Is that officially a part of the coroutine API? I thought the only thing you could do with them is await them
Either way, that makes it extra weird that __await__ doesn't have to return a generator
 
10:37 AM
is there such a thing as planning theory? so, if I have a program I want to make, I'd like to be able to plan out the structure of the programming, so that I don't have to rewrite thing in the middle of it all
I often feel as if I had better planning, this wouldn't happen
so I supposed that maybe there was a more structured way to go about planning, some sort of theory of program planning
 
10:53 AM
One thing that I did was build out the whole API for my library before any of it actually existed. I spent ages backing myself into corners with my fake library until I finally got something I thought I could use. Only then did I actually build all the code to make it work. No idea if there's a name for it but I've not had to make any breaking changes in two years; it was remarkably more stable than I expected
 
@shintuku You mean like UML and all the bells and whistles around it?
 
does that stand for unified modeling language?
@roganjosh that's a cool approach!
 
Yeah.
 
will look that up, thanks!
 
@roganjosh I also don't know a name for it but can confirm that it's a very good strategy.
 
10:58 AM
That's like the cousin of test-driven development
 
Yeah; I've called it user-driven development when I've explained the history of my library in the past. Basically "to hell with how I actually build this out, do I like using it?".
 
TBH I don't think it's helpful.
 
Ah yes, of course it's documented there and not in the asyncio docs >_>
 
Coroutines are halfway between being iterators/generators and not. Feels a bit like exposing the wires.
@Aran-Fey Good luck finding the spec for generators. D:
 
You've got a point, but asyncio in particular has exposed a lot of its wires. Different event loop implementations, functions that only accept coroutines as input instead of arbitrary awaitables, ...
 
11:10 AM
Rest assured that asyncio doesn't rank too highly on my API quality scale.
I'd say it's a solid 4 on the roganjosh scale.
 
I'm ashamed to admit I'm not aware of that scale
 
Never used it! I still go for requests-futures for async http requests and, for everything else, I pretend async never exists. Even I need to sleep at night
 
(Disclaimer: asyncio is a fine and useful piece of technology and I encourage everyone to use it. Just don't touch the wires, kiddo.)
 
I'm honestly not so sure about that... asyncio has spread through my code like a plague, even though most of my projects don't even benefit from it. It really is viral
 
Well, just saying that if you're gonna use async code it might as well be asyncio.
 
11:21 AM
Not a fan of trio/curio/anyio?
 
Only the academic in me.
They've got their own design problems.
Their cancellation strategy ("nureseries") is practically broken, thanks to generator coroutines.
Good thing asyncio has these too now. :D
As far as I can tell, the major problem about the async ecosystem is that people sprinkle async everywhere, even when it's not needed. sansio was an interesting take, but most people didn't get the memo on why it makes sense.
 
My tour around the UK has landed me in Whitby and it embodies my feeling of asyncio. Everything seems to be in an uncanny valley. I just went to go buy cigs and the supermarket has their counter in the middle of the store and one of the aisles had a sign saying "batteries" because, what else do you go to the supermarket for? Not milk or bread or anything. Get me to the battery aisle
 
Academic interest sounds about right. I never really bothered trying any of them because I didn't want to lose the ability to just... start a background task
 
Facing "received deleted the unwanted message wrong destination" while trying to read the message from the queue-2. The queue-2 is reply queue of task-1
kindly help to resolve the issue
 
@roganjosh Is it that unusual to see batteries in a store? O.o Surely a lot of people need to buy those
 
11:29 AM
@GeethaSJ Please see our room rules and the formatting guide. Since you have a big block of code, I suggest that you post it off-site and link back to it here
@Aran-Fey It's unusual to me to see an entire aisle labelled "batteries" when you would normally see "dairy" or "personal care" or something
 
Ah, got it
An entire aisle might be a bit much, yeah
 
@roganjosh Wait until you see the battery powered bread!
 
@GeethaSJ production issue ?
 
POC
 
@MisterMiyagi whilst all of our compute am belong to you, it seems that all of our power am belong to Whitby. It's playing the long game
Le sigh. Time to get my laptop out again
 
11:43 AM
Plot twist: The laptop is battery powered!
 
@GeethaSJ you clearly didn't read our room rules as you're bringing a fresh question from the main site. We ask that you wait at least 48 hours before doing that
 
laptop battery is dead. laptop run on live charging connection
 
I daren't try any moderation on my phone. I'd probably end up kick muting everyone while trying to move a message
 
How would you folks call a CLI argument to control a random delay when a script takes action? Say my_script.py --some_arg 5 will run the actual actions with a delay of 0-5 seconds.
The script runs on many machines at once so it's not good when all of them start calling home at the same time.
 
--lag maybe?
or --max-lag
 
11:50 AM
--max-startup-lag
 
--stoploss
 
Stoploss is very strongly associated with investing. I'm not sure that describes what it does
 
yeah just investing/trading term. used to decribe to sell if loss reach the amount. so i took delay as loss here
 
The problem there is that a stop loss is at a predefined value, not random
 
Hm, --max-lag is a good compromise between being short and expressive.
Thanks y'all.
 
11:59 AM
@roganjosh yup, it must have a predetermined value.
 
12:27 PM
Probably a simple mistake, but why doesn't this find the tag?
from bs4 import BeautifulSoup
import re
html = '''<tr>
    <td width="90%"
        style="background-color: rgb(210, 210, 210)">
        string<br>
    </td>
</tr>'''
bs = BeautifulSoup(html, features='lxml')
tctable = bs.find_all(name="td", string=re.compile(f'.*string.*', flags=re.DOTALL))
print(tctable)
 
12:40 PM
Looks like the td tag's string attribute is None, because the td contains other tags. In particular the br tag.
 
Is it always the case that string is none if there are other tags?
 
Good question. I suspect yes, but I haven't tested thoroughly.
 
Yeah, seems so.
".string
If a tag has only one child, and that child is a NavigableString, the child is made available as .string"
 
To find all td tags that have any descendant that contains "string", perhaps you could do [td for td in bs.find_all("td") if td.find(string=re.compile(f'.*string.*', flags=re.DOTALL))]. Unclear to me if there's a more beautiful approach.
 
Back to Rege̿̔̉x P̯͍̭aͨr̽̾̈́͒͑si̧n​*̶͑̾̾​̅ͫ͏̙̤g͇̫͛͆̾ͫ̑͆ it seems
 
12:47 PM
Ia! Ia!
 
@Kevin considering the actual file is 20MB of tables, I really tried to avoid bs.find_all("td")
although I guess it comes down to the same thing underneath
 
It's probably an O(N) search either way, so the constant multiplier is the big factor
In other words, is it a problem if Python takes X times longer to churn through an O(N) task than a pure C implementation? The answer lies in your heart
 
regex parsing or td.parent.parent.parent.parent.parent.find(... dillemas, dillemas
 
1:03 PM
Additional proposals: XPath; writing a custom find() function from scratch
I love a good tree traversal problem. Maybe throw in a state machine or a pushdown automaton... Get some goggles and a lab coat because you're doing computer science now, baby
 
 
3 hours later…
4:27 PM
Hi
Goodies guy
i have a XML file having size upto 100 mb
It contain data for language translation
I want to feed this data to our python program
 
@matszwecja how did you add these characters ?
 
I want to extract data from XML file
and store it in some fast data container
for now i have stored data into dict and then passing this dict
Dict is good approach?
 
@sahasrara62 copy-paste from the original stackoverflow.com/questions/1732348/…
@Lalitkumar probably should be enough
@sahasrara62 you can also google for Zalgo text generator, e.g. eeemo.net
 
4:43 PM
thanks
 
5:07 PM
@matszwecja parsing XML and converting to dict each time is time consuming process,
There is any better approach to remove time consumption
 
@Lalitkumar you can hire freelancer to solve the problem :D
 
lol really
Now time to become a freelancer to solve own pb
 
you just said you want to parse them and store them in something else; that means you no longer have to do it again
 
@sahasrara62 This isn't really an appropriate response here since we do actually try to help people solve their own problems. For free.
 
if you want to avoid parsing the input or storing it somewhere then either you have a paradox we cannot resolve or you need to tell us something more specific
 
5:20 PM
@Lalitkumar A dictionary will give you O(1) access, which might work for your application. As tripleee suggests, your biggest problem seems to be parsing it multiple time and you've given us no way to understand how/why you're doing that
 
Let me rephrase what i said earlier
Currently i am working on language translation project. our application have support for multiple languages like eng German Spanish etc
we have a "Setting" option which is written English
When i change language to German that "Setting" text should get translated to German
We are getting translation data in XML format
XML contain English String and its respective translation text in xyz language
Right now i am parsing XML file then storing data in dict .later on i am saving dict in .py file
Is it good idea to store dict in .py file or i pickle dict ?
 
5:38 PM
Generally you should not dynamically create a ".py" file. If the choice is between .py or pickle, use pickle.
 
I assume now i am very clear
 
json, use json
 
... But why save the dict at all? You already have the information available in the XML file. No need to create a new file and put the data there too.
 
i was about to ask for json
 
If you want a file that conceptually represents a dict containing relatively "plain" keys and values, JSON is a natural fit (i.e., as long as the keys and values correspond to what JSON can represent).
(my personal contention is that XML is greatly overused, and many legacy systems would benefit from conversion to JSON or other data formats)
 
5:41 PM
Perhaps you're thinking something like "reading XML is slow, so I want to save the data in some other format, such as JSON, and hopefully it will be faster to read that". But I doubt that reading JSON will be significantly faster than reading XML.
 
ok i got it :) thanks for explanation guys
Reading is not a concern for me , parsing then converting XML data to dict is concerning me .
 
pretty bad at coordinates, but say I have this (in tkinter): gist.github.com/secemp9/6e0032a58ac0a5717b35e5c0d2ea33c4 which create 10 rectangle of the same size/width. I want to align them horizontally, so they are next to each others (without overlapping each other). I know the first step, which is to use the same y coordinate across all of them. The problem is for the x coordinate
 
I am parsing same XML file in 100 test case,( treat them independent) i wanted to avoid to conversion to dict that's why created a .py dynamically
 
6:06 PM
queue_variable = []

def thread_function(queue_as_argument):
	(prints something based on queue_as_argument)

def queue_changer(args):
	global queue_variable
	(updates queue_variable based on args)

x = Thread(target=thread_function, args=(queue_variable,))
i have a program that has the above structure
when I call queue_changer(args), and it does something to queue_variable, the queue_as_argument inside the thread doesn't update
 
sorry was using pseudocode to make it a bit shorter
here's a runnable example that reproduces the issue
queue = []

def thread_fn(queue_argument):
    while True:
        for i,e  in enumerate(queue_argument):
            print(str(i)+". item: " + str(e))
        time.sleep(5)

def add_to_queue(*args):
    global queue
    queue = [*queue, *args]

x = threading.Thread(target=thread_fn, args=(queue,), daemon=True)
if I call add_to_queue(1,2,3), the queue variable inside the thread won't update
 
Assigning a new value to the global queue variable won't change the value of the queue_argument variable
What you want to do is modify the list, not assign a new list to the variable
Like queue.extend(args) or queue += args
 
ah!! great
that fixes it
thanks for the help!
if you have a sec, would you have pointers of where I could read up on this behaviour?
calling list.dosomething() effects the change I want, but not globalizing the argument
yet you would expect that expanding the scope of the variable would do precisely that
 
does anyone mind taking a look at what I said here? I'm guessing this may not be phrased correctly hmm
 
6:15 PM
I don't know any good resources about this behavior, sadly
 
noted, in any case thanks a lot!
 
@shintuku probably falls under "mutation and rebinding", so perhaps nedbatchelder.com/text/names.html
 
@NordineLotfi if alignment is horizontal, y coordinate should be same, for non over lapping x should be increased, between 2 reactangle you can add some gap, so for every new rectangle, x should be increase by (x + width +gap) value gap is distance you want to see between two block
 
hmm, I think I tried that but I'm gonna try again to make sure
 
@AndrasDeak--СлаваУкраїні thanks for the resource!
 
6:39 PM
@NordineLotfi try replacing "x": i * 20 with "x": i * 100
 
@Kevin I wanted to do what I said above inside the for loop though? What I used inside the list comprehension was just for the MRE. I have a bigger dict locally, so need to apply the horizontal alignment after the fact (I can't control the way they are generated)
I already know how to make them all on the same y coordinate. Only problem that bend my mind a bit is for the x coordinate. I know I have to either take into account the next element's x coordinate and do some operation on it with the previous one, but don't know how to approach this
 
I see. One moment
elements = [{"id": i, "y": i * 20, "width": 100} for i in range(10)]
x = 0
for element in elements:
    element["x"] = x
    x += element["width"]
    create_rectangle(element["width"], element["x"], element["y"])
More or less what sahasrara62 suggested. Although I didn't implement the "add some gap" part.
x += element["width"] + gap, perhaps
 
This is clever :o I knew I had to use a variable outside the loop but didn't think of doing it like this. Thanks
yeah, the gap is easy to do. I was just confused on how to do the "make them close but not overlapping" part
 
7:12 PM
Anyone know how one can optimize this:
line = line.replace("()", "")
line = line.replace("[]", "")
line = line.replace("{}", "")
line = line.replace("<>", "")
 
duplicate (I am out of votes) stackoverflow.com/questions/75327919
@12944qwerty what do you think "optimize" means here? It is not going to run faster just because you write it in a more clever way.
 
@AminS stackoverflow.com/questions/75270085/… I used the image data generator but the results did not change. Prediction value for class 1 is always zero. I added the new codes and the result to the update section.
 
I mean time. I forgot to include the for loop but the code is more like for i in range(9): replacestuffhere
I feel like it could beimproved quite a bit
 
Please give me ideas.
 
Also, what's cv-pls?
 
7:15 PM
I'm trying to classification with keras, but the predictive value for my class named 1 is always 0.
 
I'm guessing that "A((([<>])))B" should get reduced to "AB", right?
 
@12944qwerty (this part doesn't concern you, it's part of the operational business of the room. in general, expect multiple conversations, tasks etc. to be going on simultaneously here)
 
@Kevin correct
 
and what about if the brackets nest in a different order, like A<[]>B and A[<>]B? What if there is other stuff in between bracket pairs? What actually is the requirement?
 
Good questions
 
7:19 PM
It can be random. It doesn't matter what happens in the end, as long as it can keep replacing it until it can't... 2021/10
 
Never tell a programmer "it doesn't matter what happens", that empowers them to summon demons from out of your nose
4
 
"whatever the cost"/"whatever it takes" also comes to mind
 
*It doesn't matter if all of the symbols have disappeared, as long as those pairs are gone completely.
 
In any case, I am tinkering with a prototype now
 
I forgot that you could chain replacing statements lol. That sped it up a little bit though
 
7:26 PM
I can't recommend any approach that makes use of for i in range(9):, because then it will give the wrong answer when you give it a string with 100 nested layers of brackets
 
Your solution is slower though
Yeah, I changed that part to a while prev != line...
 
My solution is O(N), which is the theoretical optimum. Unfortunately, it's all in Python, so it has the consistency of pudding.
 
I like pudding though
 
using the replace method I had was around 12 usec, but the dict method you had was 60-80usec
 
It depends on what kinds of strings you're testing it on, as well. For short strings without many empty pairs, I'd expect the replace approach to win. If the input string is ten million left parentheses followed by ten million right parentheses, I'd expect the stack approach to win.
 
7:39 PM
@KarlKnechtel maybe it's just me but this comes across incredibly condescending. "The adults are speaking". Could you not just have explained what it meant?
@12944qwerty it's used when someone would like a questions closed ("close-vote please"). It's so we can try direct moderation of the main site and get egregious questions closed faster
 
8:08 PM
@Kevin ohh, lemme see
 
8:36 PM
Maybe today is the day I learn to do C extensions for Python, so I can make this pudding into lightning
 
@Kevin it might be faster if you use C extensions with Python, but not as fast as pure C or C code that does not use memory and object management from Python. Example: jasonstitt.com/c-extension-n-choose-k
 
@12944qwerty leetcode problem?
 
Hmm, I will consider this
 
@Kevin with this, as my work office term, you will create own dependency in company
 
I'm of course not trying to dissuade you from doing this. It will be faster, so for example if something in Python that is horribly unoptimized, take like 4 hour, will probably take 3 or less than 1 hour or so when done using C extensions with Python. Compared to couple of minutes or second for the C version...but then again I'm just hand waving here, so this isn't necessarily exact, and depends.
 
8:45 PM
Valid
 
* when I say horribly unoptimized, I would think of something like this: gist.github.com/secemp9/c7e69c8290ca6aa0eae71288833b6a51
I think it took like 4 hour or so on a 60GB file (the SO archive dump I think) while when compiled to C and then to a binary using cython (the commandline tool from pip) it took like 1 hour or so I think. If I did the C extensions conversion manually, it might have taken less than 1 hour, but then I might as well have tried to optimize the Python version first...
at the time I was using it by going over each line from an XML file (I know this is inefficient), so that probably contributed
aside from cython, there also pyrex like the blog above mentions. I didn't test that one, but I'm guessing it does more than automatic-ish conversion to C
 
9:20 PM
"Unicode objects can internally be in two states depending on how they were created". And so, the size of my code base grew by double that day.
 
9:33 PM
This is not the hardest time I've ever had with C. But I must retreat to my pondering cave to decide how to implement a stack without touching anything scary like malloc()
I know for certain that the stack will never be larger than the input string, which is helpful
 
9:46 PM
@Kevin if you're curious, I did managed recently in making a list-like data structure in pure C (and also a custom version with gmplib support). Then again, mine use malloc...
it's based on this gist I found before 1 January: gist.github.com/sirjofri/19fe5e30ceed553b6b1604de349c8a10
there also a less inefficient but probably more verbose version: dev.to/bekhruzniyazov/creating-a-python-like-list-in-c-4ebg
I didn't upload mines yet since it's pretty ugly and not commented. Still need some testing and example on how to use it, so will probably do that later
the verbose version above is inefficient because it doesn't automatically resize the array, and also doesn't work on an arbitrary number of elements. Contrary to the gist's one, which does (at least until you hit the limitation of the max int and unsigned long int size, which is why I also mentioned gmplib)
 
10:09 PM
@sahasrara62 AOC lol
I honestly just wanted a time faster than 1msec since it was soo close
2021/10, I snuck this in one of my earlier messages to see if anyone noticed
 
I noticed it but didn't think of AOC to be honest
 
How do you use C extensions in python
 
there a lot of ways. You can do it fully manually, or use third party tools like cython, pyrex, etc
when I say manually, I do mean this: docs.python.org/3/extending/extending.html
 
I'm looking at the jasonstitt website that someone sent earlier, and pyx is completely new. Is that a combination of py and C for this purpose?
 
@NordineLotfi Would it be to use pure C in Python? Is the performance higher than using Cython?
 
10:15 PM
@Marco I talked about it here and here for the relevant part.
 
@12944qwerty I think .pyx file is related to Cython
 
55925169 I posted that link, yeah. And as Marco mentioned, this is indeed the format used with Cython. There are a couple examples on their repo: github.com/cython/cython/tree/master/docs/examples/userguide
 
@NordineLotfi Ok, thanks, so it seems that pure C and C extension are different things.
 
I always thought that Cython was just another python that was made from C lol
Nice edit lol
 
@NordineLotfi This is beautiful
 
10:20 PM
Might as well just code it in C at that point though
 
@12944qwerty yeah, I used to confuse Cpython with Cython myself.
 
You know you can reply to your own messages right?
 
Yes, but I still haven't figured out how to do that :(
 
@12944qwerty I believe I made a userscript for that a while ago... But you can take the permalink and then the message ID, then just prepend :messageID to the chatbox
I have, no idea if it still works though check it out
There is a better way to do that, but it ruins the appearance of your own messages unfortunately
Currently it only shows up when you click the dropdown, (the popover being the better way)
You can report your own messages too, but I can't remember if it's possible to star your own messages
 
10:32 PM
@12944qwerty That, I remembered it was something like that, I managed to get it working, thanks!
@12944qwerty I don't even know how to use this, but thanks
 
Click the dropdown when you hover over a message
 
@12944qwerty Really?
 
it should show up
 
Report you mean flag?
 
yeah
@Marco I was able to figure out how to get the same popover that comes up when you hover over another person's message... but it removed the yellow bg and a couple other things
 
10:34 PM
But why would anyone do that (flag yourself)?
 
I'm just saying lol
 
@12944qwerty Oh, ok, using script
@12944qwerty Ok
 
uh
Let's move to Sandbox
 
Okay, I'm done
No need to go to Sandbox
 
this could go on the bookmarklets wiki page hehe
 
10:41 PM
Yes, interesting, I don't think I've ever seen that page (about Userscripts)
 

« first day (4492 days earlier)      last day (460 days later) »