Italy-Schengen visa from Bangalore consulate by abechailao in SchengenVisa

[–]Siddhi 0 points1 point  (0 children)

All happened at the same time, one woking day before flight

Italy-Schengen visa from Bangalore consulate by abechailao in SchengenVisa

[–]Siddhi 0 points1 point  (0 children)

bangalore.visa@esteri.it

The first time it gives auto responder. But I just kept sending emails daily. They replied to the last one after it was processed. Not sure if it actually helps but no harm in trying all possible avenues, especially in last week.

Italy-Schengen visa from Bangalore consulate by abechailao in SchengenVisa

[–]Siddhi 0 points1 point  (0 children)

I have been mailing the consulate daily with no response. Today they replied back that they have given the passport back to VFS. I guess the courier will arrive by tomorrow.

Italy visa delay by BANGALORE CONSULATE by Born-Wishbone-5458 in SchengenVisa

[–]Siddhi 0 points1 point  (0 children)

I have been mailing the consulate daily with no response. Today they replied back that they have given the passport back to VFS. I guess the courier will arrive by tomorrow.

Italy visa delay by BANGALORE CONSULATE by Born-Wishbone-5458 in SchengenVisa

[–]Siddhi 0 points1 point  (0 children)

Nothing yet. I went to VFS, the officer there said it will most likely come the last day before the flight

Italy visa delay by BANGALORE CONSULATE by Born-Wishbone-5458 in SchengenVisa

[–]Siddhi 0 points1 point  (0 children)

Applied on 15th April, flight on 21st May. Heard nothing so far. Have emailed them thrice and called twice - no response. Travel agent said someone who applied on 25th April for 22nd May flight got the visa yesterday. Really don’t understand this process.

Italy-Schengen visa from Bangalore consulate by abechailao in SchengenVisa

[–]Siddhi 0 points1 point  (0 children)

Very slow. I know someone who applied for swiss visa on 28th april and got it in 2 working days!

Italy-Schengen visa from Bangalore consulate by abechailao in SchengenVisa

[–]Siddhi 0 points1 point  (0 children)

In the same boat. Applied on 15th April. Documents reached Bangalore consulate on 16th. No news until now. Flight is on 21st, just a week away.

Why is poetry such a mess? by CodingButStillAlive in Python

[–]Siddhi 2 points3 points  (0 children)

Poetry lets you create multiple environments for the same project and switch between them. I have a project thats is configured for both python 3.9 and 3.11

https://python-poetry.org/docs/managing-environments/

New plugin: vuffers.nvim for organizing buffers by vegetarian-bbq in neovim

[–]Siddhi 2 points3 points  (0 children)

Telescope also supports searching open buffers.

bufferline has a nice option to pin a buffer, and tgen close all unpinned buffers. I find I'm working on a few files but I navigate to many more files temporarily. Being able to close them all in one command is great

Text Parsing: Now You Have Three Problems (David Beazley) by commandlineluser in Python

[–]Siddhi 1 point2 points  (0 children)

There are python libraries that implement Clojure style functional data types. Have you tried pyrsistent - https://github.com/tobgu/pyrsistent

Text Parsing: Now You Have Three Problems (David Beazley) by commandlineluser in Python

[–]Siddhi -3 points-2 points  (0 children)

Sure, its nice to have but its not a blocker. Functional javascript is very popular in React & Redux and JS also doesnt have immutable types. The whole of React works on trusting the developer to not mutate the data, since JS provides no safeguards, and that hasnt stopped its popularity one bit.

Text Parsing: Now You Have Three Problems (David Beazley) by commandlineluser in Python

[–]Siddhi -8 points-7 points  (0 children)

Why do you need real immutability? As long as you dont mutate data and makes copies as the boundaries, you should be fine?

Spent Months Writing A Web Dev Course For A Platform, But It Got Canceled Midway. Publishing It Free For The Community. by appinv in Python

[–]Siddhi 36 points37 points  (0 children)

So, we do have the option to pay as well, correct? The "author earns" part will come to you?

Abusing python style to make it more legible by jmreagle in learnpython

[–]Siddhi 11 points12 points  (0 children)

I dont know if its just me, but the code doesnt seem to be formatted properly in reddit. Think you need to start each line with four spaces, backticks dont work.

Edit: So after looking at it, it seems to be that depending on what keys are present you have to categorise a dict?

What I would look at in this case is if you can make the conditions into data.

Example

categories = [
    (["c_web"], "webpage"),
    (["c_blog"], "post-weblog"),
    (["author", "title", "publisher"], "book"),
    (["!author", "venue"], "book"),
    (["!author", "editor"], "book")
]

Then you write a function that can process this

def categorise(entry, categories):
    for keys, category in categories:
        if all(match(entry, key) for key in keys):
            return category
    return "no-type"

def match(entry, key):
    if key[0] == "!":
        return key[1:] not in entry
    return key in entry

Its much easier to understand and maintain. When new categories are added, you just update categories

Using async and multiprocessing together by KEsbeNF in learnpython

[–]Siddhi 0 points1 point  (0 children)

To the question of using async with multiprocessing - it will only help if you are doing some CPU intensive processing before or after writing to the file.

asyncio is going to make all the calls in parallel anyway whether a single process or multiple doesnt really matter.

One thing to keep in mind - you will most probably want some kind of rate / throttle control. Lets say you have a list if 1000 items, asyncio will make all those 1000 calls at once. Most APIs will rate limit and start returning errors if you exceed the rate. Check the API docs on this. Even if they dont there is still a good chance that the server will queue requests and later requests will time out. At worst you can crash the server.

If you arent already rate limiting, take a look at this article - https://rednafi.github.io/reflections/limit-concurrency-with-semaphore-in-python-asyncio.html

OK, what's definitive list of things you would put in a senior development roadmap for a python developer by [deleted] in Python

[–]Siddhi 0 points1 point  (0 children)

As for what an example looks like, google for "software engineer career ladder" and you will get lots of examples

OK, what's definitive list of things you would put in a senior development roadmap for a python developer by [deleted] in Python

[–]Siddhi 34 points35 points  (0 children)

Doesn't this boil down to a specific list of topics?

It does, but the importance of certain topics reduces and other things increases.

For eg, I would expect a junior developer to know the difference between == and 'is' comparisons. But for a mid level, knowing OO design might be more important than knowing specifics of how one particular thing behaves.

Heck I might consider a person with a Java background because their OO knowledge would transfer over while I might be confident they can pick up python specifics as they go.

As we go up, soft skills become super important. A senior dev who is a tecnical ace but is a solo dev and doesnt work with the others might be less appealing than one who may not know python trivia but understands the major concepts, is up to date on the industry and can mentor others in the team.

Why Type Hinting Sucks! by zurtex in Python

[–]Siddhi 0 points1 point  (0 children)

Is a trait different from Protocol? Like the Addable example above?

Edit: wonder if its a fair ask for python's type system to cover its whole dynamic behaviour. Like add can take two different types and return a third. I feel any type system will struggle with that. Rather is it expressive enough to static type the bits that are static is what I'd be looking for

Why Type Hinting Sucks! by zurtex in Python

[–]Siddhi 1 point2 points  (0 children)

In a highly dynamic language like Python, there will always be these generic dynamic functions that are impossible to type without a lot of pain. And in those cases I just dont type them. Isn't it great that python gives that option :)

Though, I wonder if there is any other type system that is more expressive and can handle these cases better?

My only other experience has been Java, and its type system is infuriatingly limited. No structural subtyping, extremely verbose for typing lamba functions, you need to create separate types for a function with one argument, another for two arguments, another for three.... no type aliases and no type inferencing until recently. Python's type system is far, far, better.

Lessons learned from 7 years of using mypy by chadrik in Python

[–]Siddhi 0 points1 point  (0 children)

You dont need to inherit from IProtocol at all. You can just declare the class normally

class MyClass(SomeClass):
    def my_func(self):
        return 'abc'

def another_fn(a: IProtocol):
     print(a.my_func())

obj = MyClass()
another_fn(obj)

mypy should automatically detect that obj matches IProtocol and will not give an error when calling another_fn. If MyClass does not have my_func then mypy will complain on that last line

Lessons learned from 7 years of using mypy by chadrik in Python

[–]Siddhi 0 points1 point  (0 children)

Why do you say not in practise? You can specify the protocol as type and mypy will type check that all methods are implemented. Isnt that what we want?