[Python-Dev] RFC on PEP 675: Arbitrary Literal Strings

2022-02-07 Thread Pradeep Kumar Srinivasan
PEP 675 [1] introduces a supertype for precise literal string types, such as `Literal["foo"]`, called `LiteralString`. The PEP allows libraries to distinguish the type of command strings from data. Powerful, command-executing libraries try to prevent security vulnerabilities by accepting argume

[Python-Dev] RFC on PEP 673: Self Type

2021-11-16 Thread Pradeep Kumar Srinivasan
have reached consensus on the PEP in typing-sig [3], we wanted to get your comments and suggestions before submitting to the Steering Council. Thanks, Pradeep Kumar Srinivasan James Hilton-Balfe [1]: https://www.python.org/dev/peps/pep-0673/ [2]: Adding `Self` to typing_extensions.py: https

[Python-Dev] Re: RFC on Callable Type Syntax

2021-10-15 Thread Pradeep Kumar Srinivasan
Thanks for the responses, everyone. Overall, it seems like there were no strong objections to the proposal. I didn't hear much about Question 2, though: Should we propose features beyond present-day `Callable` in the same PEP or defer it to a future PEP? In case that question got lost in the ot

[Python-Dev] SyntaxError: can't assign to literal while using ""blkid -o export %s | grep 'TYPE' | cut -d"=" -f3" % (fs)" using subprocess module in Python

2018-11-06 Thread srinivasan
Dear Python Experts Team, As am newbie to python development, I am trying to use the below function to get verify the filesystem type of the SD card parition using bash command in python using subprocess module, I ma seeing the below Error "SyntaxError: can't assign to literal" *CODE:* ** im

[Python-Dev] Unexpected increase of globals() refcount

2014-05-23 Thread Chandra Srinivasan
Hi, I ran the following code in the Python interpreter and am trying to determine if the behavior I see is expected: import sys print sys.getrefcount(globals()) class Foo(object): def __init__(self): pass print sys.getrefcount(globals()) The first print statement above prints '4' and th

[Python-Dev] [pyodbc] Setting values to SQL_* constants while creating a connection object

2011-05-24 Thread srinivasan munisamy
Hi, I would like to know how to set values to values to SQL_* constants while creatinga db connection through pyodbc module. For example, i am getting a connection object like below: In [27]: dbh1 = pyodbc.connect("DSN=;UID=;PWD=;DATABASE=;APP=") In [28]: dbh1.getinfo(pyodbc.SQL_DESCRIBE_PARAMET

[Python-Dev] standard libraries don't behave like standard 'libraries'

2009-11-13 Thread Sriram Srinivasan
> Sriram, > > Please take this discussion to catalog-sig - python-dev isn't the place > (the fact that many of us didn't immediately know the *right* place for > the discussion indicates where PyPI sits on our personal active level of > interest). > > You should find more interested (and knowledgab

[Python-Dev] Fwd: standard libraries don't behave like standard 'libraries'

2009-11-13 Thread Sriram Srinivasan
Sriram, > > Please take this discussion to catalog-sig - python-dev isn't the place > (the fact that many of us didn't immediately know the *right* place for > the discussion indicates where PyPI sits on our personal active level of > interest). > > You should find more interested (and knowledgable

Re: [Python-Dev] standard libraries don't behave like standard 'libraries'

2009-11-13 Thread Sriram Srinivasan
http://pypi.python.org/pypi?%3Aaction=search&term=library&submit=search this lists all the packages with the term 'library' in it. -- Regards, Sriram. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] standard libraries don't behave like standard 'libraries'

2009-11-13 Thread Sriram Srinivasan
as people like to compare languages take ruby for example (i am confident that there will be no flame war here ;) ) we have PyPI they have RAA we have ? they have rubyforge i am seeing the rubyforge site now on my other tab, i find Communications (365 projects) Database (245 projects) Desktop E

Re: [Python-Dev] standard libraries don't behave like standard 'libraries'

2009-11-13 Thread Sriram Srinivasan
you were thinking wrong. If suppose this feature is introduced it doesn't mean python will become batteries removed! you can ship the python release with the 'standard library packages' already installed. so what we get here is batteries included and ability to be changed after it is discharged! ;)

Re: [Python-Dev] standard libraries don't behave like standard 'libraries'

2009-11-12 Thread Sriram Srinivasan
ok let me make it more clear.. forget how you use python now.. i am talking about __futuristic__ python programming. these are just my ideas.. more over i can say imaginations. there is no more python2.x or python3.x or python y.x releases. there is only updates of python and standard library say

Re: [Python-Dev] standard libraries don't behave like standard 'libraries'

2009-11-12 Thread Sriram Srinivasan
> I disagree. It has a package management system for libraries, not for the > standard libraries. The point is that the Python standard library is > supplied > as part of Python itself, as is e.g. the C++ standard library as part of a > C++ compiler. > > standard libraries i meant the standard libr

Re: [Python-Dev] standard libraries don't behave like standard 'libraries'

2009-11-12 Thread Sriram Srinivasan
> > I don't really understand your requirements, but it sound like you want a > package management system. The standard library just provides a standard set > of tools (it is the books not the book management system - although part of > what you want is in the standard library in the form of distut

[Python-Dev] standard libraries don't behave like standard 'libraries'

2009-11-12 Thread Sriram Srinivasan
I guess why every programming language has some kind of a 'standard library' built in within it. In my view it must not be called as a 'library' at all. what it does is like a 'bunch of built-in programs ready-made to do stuff'. Lets see what a 'library' does: 1. offers books for customers 1.1 l