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
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
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
>
> 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
> 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
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
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! ;)
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
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
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
> 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
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
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
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
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
15 matches
Mail list logo