Ravi Jain added the comment:
yes, I think `inspect.isroutine` does the required functionality.
sorry, I did not know about it, and could not think of the word `routine` when
checking for functions.
--
___
Python tracker
<https://bugs.python.
Ravi Jain added the comment:
but `callable` returns `True` for classes with `__call__` also, it does not
check whether the argument passed to it is a function or not.
I want some way to return `True` for both builtin functions and Python
functions, but not for classes.
And similarly, some
New submission from Ravi Jain :
the.
```
import inspect
inspect.isfunction
```
does not consider a
```
builtin_function_or_method
```
as a function.
for example,
```
inspect.isfunction(abs)
```
gives,
```
False
```
in the background even the builtin `abs` is a function, so shouldn't it return
Change by Ravi Chityala :
--
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue42302>
___
___
Ravi Chityala added the comment:
Hello All
In math and physics we typically use terms clockwise and
anti-clockwise and not right and left for rotation. This change will
make it easy for kids to learn the terms that they will eventually use
in math and physics anyway.
The change I am
New submission from Ravi Chityala :
The current implementation of turtle.py has right and left method for rotation.
Another approach to view rotation is either clockwise or anticlockwise. These
two methods can be an alias to right and left respectively.
--
components: Library (Lib
New submission from Ravi Misra :
I tested the timestamp column in SQLite with MAX/MIN queries. They return
string values instead of datetime.datetime.
--
components: C API
messages: 376425
nosy: ravi-misra
priority: normal
severity: normal
status: open
title: SQLite returns instead
Ravi Teja P added the comment:
Hi
My CLA has been approved. Can someone review the PR.
--
___
Python tracker
<https://bugs.python.org/issue41004>
___
___
Pytho
Ravi Teja P added the comment:
Hi
I have raised a PR for this. But my PLA is yet to be updated (I have singed it).
But add the fix to the existing versions (3.8, 3.9 and 3.10), do I need to
raise PR for each of those branches?
--
___
Python
Change by Ravi Teja P :
--
nosy: +rvteja92
nosy_count: 4.0 -> 5.0
pull_requests: +20204
pull_request: https://github.com/python/cpython/pull/21033
___
Python tracker
<https://bugs.python.org/issu
at will do
some job but one first has to find it. A lot of power can also be
located deep within a hierarchy of dots:
package.something.subsomething.subsubsomething ...
Some documentation sets are very complete, others aren't. I often have
the nagging feeling that if I just knew what question to ask and knew
the right t
== __main__:
obj = A(sh)
obj(6)
-
output:
--
hi 6
thanks,
ravi
--
https://mail.python.org/mailman/listinfo/python-list
hi,
I have a complex python program running 100 tasklets simultaneously. I want to
take dump of all the running tasklets including their current status and back
trace at the time of exception. Can any one let me know how can this be done ?
Thanks,
ravi
--
https://mail.python.org/mailman
:
On 2015-06-18 08:41, ravi wrote:
hi,
I am new to python and need to know why the calling of switch(1) invokes
the function listen twice in the below program?
import stackless
class EventHandler:
def __init__(self,*outputs):
if outputs==None
On Friday, June 19, 2015 at 1:41:36 AM UTC+5:30, Ian wrote:
On Thu, Jun 18, 2015 at 1:47 PM, ravi temp@gmail.com wrote:
I could not understand how the below program executes function fun
without calling stackless.run() in the program? Here fun runs as a
tasklet and as per my
hi,
I am new to python and need to know why the calling of switch(1) invokes the
function listen twice in the below program?
import stackless
class EventHandler:
def __init__(self,*outputs):
if outputs==None:
self.outputs=[]
else:
],
[5,6,7,8]]
Expected Result : ( list of strings )
['Start - 3 , End - 4',
'Start - 7 , End - 8']
Note : First 2 values from each list should be ignored.
Could anyone please guide me with best solution without loops ?
Thanks
Ravi
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Oct 8, 2013 at 1:20 PM, Steven D'Aprano st...@pearwood.info wrote:
On Tue, 08 Oct 2013 10:46:50 +0530, Ravi Sahni wrote:
On Tue, Oct 8, 2013 at 8:47 AM, rusi rustompm...@gmail.com wrote:
I can only say how ironic it sounds to someone who is familiar with the
history of our field
. Mark Lawrence question.
--
Ravi
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Oct 7, 2013 at 5:56 PM, Walter Hurry walterhu...@lavabit.com wrote:
On Thu, 03 Oct 2013 11:35:00 +, Steven D'Aprano wrote:
On Thu, 03 Oct 2013 09:21:08 +0530, Ravi Sahni wrote:
On Thu, Oct 3, 2013 at 2:43 AM, Walter Hurry walterhu...@lavabit.com
wrote:
Ding ding! Nikos is simply
are just a kind of mathematical rewrite
system (as is λ calculus as are context free grammars as is school arithmetic
etc etc) you will not find the equivalence so surprising
--
Ravi
--
https://mail.python.org/mailman/listinfo/python-list
of chars).
Please to remove the repr and try again?
Thank you!
--
Ravi
--
https://mail.python.org/mailman/listinfo/python-list
to excuse!!]
--
Ravi
--
https://mail.python.org/mailman/listinfo/python-list
properly subclassed).
Do you have a better idea?
I have ruby on rails friends who speak of capistrano and puppet.
google puppet python gives me :
http://stackful-dev.com/cuisine-the-lightweight-chefpuppet-alternative
If you find it good I shall be interested to know.
--
Ravi
--
https
On Thu, Oct 3, 2013 at 5:05 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
On Thu, 03 Oct 2013 09:21:08 +0530, Ravi Sahni wrote:
On Thu, Oct 3, 2013 at 2:43 AM, Walter Hurry walterhu...@lavabit.com
wrote:
Ding ding! Nikos is simply trolling. It's easy enough to killfile him
to internal return address
4b An example like quicksort in which one call is a tail call can be
optimized with your optimization and the other, inner one with 4a above
I am interested in studying more this 'whole spectrum of optimizations'
Any further pointers?
Thanks
--
Ravi
--
https
no sense
[Sorry -- old programmer (C,C++ etc) -- new to python. If there is
some secret to this list's culture that I missed will be pleased to be
educated!
]
--
- Ravi
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Oct 2, 2013 at 12:54 PM, Ben Finney ben+pyt...@benfinney.id.au wrote:
Ravi Sahni ganeshsahn...@gmail.com writes:
So Ben,Antoon you are saying that [demands for off-topic help with
demonstrated history of unwillingness to learn] is a minor problem […]
Whereas [baiting and enabling
On Wed, Oct 2, 2013 at 1:21 PM, Antoon Pardon
antoon.par...@rece.vub.ac.be wrote:
Op 02-10-13 09:02, Ravi Sahni schreef:
On Wed, Oct 2, 2013 at 12:19 PM, Ben Finney ben+pyt...@benfinney.id.au
wrote:
Antoon Pardon antoon.par...@rece.vub.ac.be writes:
Op 02-10-13 00:06, Ben Finney schreef
]
--
- Ravi
--
https://mail.python.org/mailman/listinfo/python-list
.
Thank you Alister for ansering the needs of needy persons.
I am also needy. Please be kind to me as well:
There is poverty and injustice in the world. Why?? I NEED to know
People suffer and die. How come? I MUST know
And there are morons... Why?? PLEASE TELL
--
Ravi
--
https://mail.python.org
On Wed, Oct 2, 2013 at 10:14 PM, ru...@yahoo.com wrote:
On 10/02/2013 01:02 AM, Ravi Sahni wrote:
On Wed, Oct 2, 2013 at 12:19 PM, Ben Finney ben+pyt...@benfinney.id.au
wrote:
Antoon Pardon antoon.par...@rece.vub.ac.be writes:
Op 02-10-13 00:06, Ben Finney schreef:
This is an unmoderated
, but a mess
python -- looks cleaner and well-designed (and not for heavyweight
phds like FP languages like haskell )
So I finally went with python
Now given the mess out here I need to rethink anyway!
--
Ravi
--
https://mail.python.org/mailman/listinfo/python-list
On Tuesday, October 1, 2013 7:54:35 PM UTC+5:30, Daniel Stojanov wrote:
2) I just signed up the this mailing list. To the regulars, is this what
normally happens on this list?
3) I'm a bit late to the party. Is Nikos a real sysadmin or is this some
horrible inside joke I don't get?
Thanks
Changes by Ravi Sinha rss1...@gmail.com:
Added file: http://bugs.python.org/file27649/27.doc_lib_Oct21_2012.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16154
Changes by Ravi Sinha rss1...@gmail.com:
Added file: http://bugs.python.org/file27650/32.doc_lib_Oct21_2012.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16154
Changes by Ravi Sinha rss1...@gmail.com:
Added file: http://bugs.python.org/file27651/33.doc_lib_Oct21_2012.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16154
Ravi Sinha added the comment:
Based on what I saw on some other issues, I think there is just a separate
patch for each version (coming from separate working repositories), but all
attached to the same issue. So I am doing the same. All the changes have been
made to files under Doc/library
Ravi Sinha added the comment:
Did the same changes for versions 2.7, 3.2, 3.3, and 3.4
For line wrap in cases like
http://hg.python.org/cpython/file/40a1652349e9/Doc/faq/general.rst, line 448,
broke the list across separate lines, and had to use +NORMALIZE_WHITESPACE to
make the tests pass
Changes by Ravi Sinha rss1...@gmail.com:
Added file: http://bugs.python.org/file27653/32.doc_faq_Oct21_2012.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16155
Changes by Ravi Sinha rss1...@gmail.com:
Added file: http://bugs.python.org/file27654/33.doc_faq_Oct21_2012.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16155
Changes by Ravi Sinha rss1...@gmail.com:
Added file: http://bugs.python.org/file27655/34.doc_faq_Oct21_2012.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16155
Ravi Sinha added the comment:
I've used the testsetup directive and the problem in
http://hg.python.org/cpython/file/40a1652349e9/Doc/library/math.rst, line 79,
is fixed; the test passes
Added # doctest: +SKIP to lines 179 and 180 in
http://hg.python.org/cpython/file/40a1652349e9/Doc/library
New submission from Ravi Sinha:
- Doc/library/math.rst - fsum will pass if 'from math import fsum' is done
before it, but I've left such issues for now since there seems to be a debate
about how to go about that
- some seem unfixable too - e.g. Doc/library/filecmp.rst - 'dir1
New submission from Ravi Sinha:
- help(fn) which in the REPL leads to a new pager/ display - seems to be
difficult to test with doctest - it does not seem to pick the whitespace in the
docs and does not match - Doc/faq/general.rst
- os.path.isdir returns True or False, not 0 or 1
http://www.workfrominter.com/
http://www.workfrominter.com/
http://girlsdailysex.blogspot.com/
http://girlsdailysex.blogspot.com/
Just See What Is this Website Are Msg For You
--
http://mail.python.org/mailman/listinfo/python-list
That's a very nice suggestion. Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
I like Cluto as a data clustering software a lot. But its library binding is
available only in C.
Is there any python library which is similar to Cluto?
--
http://mail.python.org/mailman/listinfo/python-list
I can extend dictionary to allow for the my own special look-up tables. However
now I want to be able to define multidimensional dictionary which supports
look-up like this:
d[1]['abc'][40] = 'dummy'
and if d[1] and d[1][abc] raise KeyError just create them.
for d[1] I can override
I found a solution here:
http://parand.com/say/index.php/2007/07/13/simple-multi-dimensional-dictionaries-in-python/
Please tell how good is it?
--
http://mail.python.org/mailman/listinfo/python-list
www.workfrominter.com
--
http://mail.python.org/mailman/listinfo/python-list
try this:
import sqlite3
con = sqlite3.connect(any string here)
and there is no error reported. You will get an error you do some
operations on the database which is confusing. I think sqlite3 should
change this behavior.
--
http://mail.python.org/mailman/listinfo/python-list
I understand it now. Thanks for the responses.
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 4, 7:06 pm, moogyd moo...@yahoo.co.uk wrote:
Hi,
I usually use csh for my simulation control scripts, but these scripts
are becoming more complex, so I plan to use python for the next
project.
To this end, I am looking at subprocess.Popen() to actually call the
simulations, and have a
The documentation of the sqlite module at
http://docs.python.org/library/sqlite3.html
says:
...allows accessing the database using a nonstandard variant of the
SQL...
But if you see SQLite website they clearly say at http://sqlite.org/omitted.html
that only very few of the SQL is not
to be dedicated.
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
with binary package).
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 23, 10:37 pm, thinke365 thinke...@gmail.com wrote:
such as uniform distribution, Normal distribution or poisson distribution.
is there any package that can be used to generate such random numbers.
--
View this message in
[mailto:python-list-bounces+aj=xernova@python.org] On Behalf Of David
Stanek
Sent: Monday, April 13, 2009 12:12 PM
To: Ravi
Cc: python-l...@python.org
Subject: Re: Imports in python are static, any solution?
On Mon, Apr 13, 2009 at 11:59 AM, Ravi ra.ravi@gmail.com wrote
I have to create a few helper/utility application-wide functions.
There are two options:
1. Create a Utility class and all functions as static method of that
class.
2. Create a module, utility.py and member functions.
Which is a better approach.
My personal view is that I should create a
foo.py :
i = 10
def fi():
global i
i = 99
bar.py :
import foo
from foo import i
print i, foo.i
foo.fi()
print i, foo.i
This is problematic. Well I want i to change with foo.fi() .
--
http://mail.python.org/mailman/listinfo/python-list
level, go for IDLE.
What you do, you write every step of statements and that is executed as soon
as you finish the block. So you have chance to understand the things step by
step. Just like learning by debugging..
Try it self, no one's review can satisfy you.
--
-=Ravi=-
--
http
I need an architecture in a project using Django and Python + MySQL, so that
when I put a python script in specified directory, that should be loaded and
its methods/functions can be used.
As far as i have thought on this, I am going to scan that particular
directory, list out the files, import
Is it possible in python to create a property with the same name as
the member variable name of the class. e.g.
Class X:
...
self.i = 10 # marker
...
property(fget = get_i, fset = set_i)
Please tell me how I can do so. Because if I do so, for the statement
at marker I get stack
Thnak you all.
In the future, explain didn't work.
Wrong output? give actual (copy and paste) and expected.
Error message? give traceback (copy and paste).
I will be careful.
--
http://mail.python.org/mailman/listinfo/python-list
The following code didn't work:
class X(object):
def f(self, **kwds):
print kwds
try:
print kwds['i'] * 2
except KeyError:
print unknown keyword argument
self.g(string, **kwds)
I am sorry about the typo mistake, well the code snippets are as:
# Non Working:
class X(object):
def f(self, **kwds):
print kwds
try:
print kwds['i'] * 2
except KeyError:
print unknown keyword argument
self.g(string, kwds)
def g(self, s, **kwds):
print s
print
Take a look at the struct and ctypes modules.
struct is really not the choice. it returns an expanded string of the
data and this means larger latency over bluetooth.
ctypes is basically for the interface with libraries written in C
(this I read from the python docs)
--
On Jan 25, 12:52 am, Martin v. Löwis mar...@v.loewis.de wrote:
packet_type (1 byte unsigned) || packet_length (1 byte unsigned) ||
packet_data(variable)
How to construct these using python data types, as int and float have
no limits and their sizes are not well defined.
In Python 2.x,
I have following packet format which I have to send over Bluetooth.
packet_type (1 byte unsigned) || packet_length (1 byte unsigned) ||
packet_data(variable)
How to construct these using python data types, as int and float have
no limits and their sizes are not well defined.
--
On Jan 18, 8:44 pm, Steven D'Aprano st...@remove-this-
cybersource.com.au wrote:
On Sun, 18 Jan 2009 07:30:52 -0800, Ravi wrote:
I am developing for PyS60 1.4.4 which supports Python 2.2.2 while what I
know is Python 2.5 .
Can you please tell me differences between the two so that I can
I am developing for PyS60 1.4.4 which supports Python 2.2.2 while what
I know is Python 2.5 .
Can you please tell me differences between the two so that I can save
myself from incompatible code.
--
http://mail.python.org/mailman/listinfo/python-list
Why the following code gives inconsistent method resolution order
error:
class X(object):
x = 4
def f(self):
print 'f in X'
print dir(X)
X.g(self)
def g(self):
print 'g in X'
class Y(object, X):
def
a(hello)
hello
## pretty cool.
It's totally useless but I wanted to do it for logging purposes. It
will still return weird results if you have two labels pointing to the
same object but I'm not sure how to get around that, any ideas?
Regards,
Ravi Kotecha
--
http://mail.python.org/mailman
Of course I wouldn't, it is a total hack, mostly useless but fun. I
tried to do it after someone in #python efnet said it was impossible!
On Jul 21, 9:56 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
On Mon, 21 Jul 2008 09:01:10 -0700, Ravi Kotecha wrote:
I thought this was pretty
I haven't got anything better to code:
http://projecteuler.net/
- Ravi
--
http://mail.python.org/mailman/listinfo/python-list
'] to
the same settings which I use, but I could not succeed. The login() method
reports error about no addreess associated with it.
Please help me solve it. I used the proxy settings, but it didnt work. so
any workaround, and what sort of thing I am missing.
--
-=Ravi=-
--
http://mail.python.org
)
I thought it would really be good to solve it by python, and right now on
the mid-way solving using very dirty approach.
But I feel, using SETs with python in such would solve it better.
Can anyone come with good solution, and maybe solution showing usage of
Sets.
--
-=Ravi=-
--
http
of a single project for
'n' users, and assume all developers are checking out all sources. God
knows.
So is there any good implementation for such situation.
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
to execute files in the
framework, though since those configs and other files doesn't return
anything, tere is no result.
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
in
your mind. Things on high priorities right now are:
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
chain libraries that include other deep
dependencies too). A pure python PDF library would be good, but which
one.
-Which XML Library is pure python based.
More questions will follow up :)
And I hope, people will reply me.
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
to mix the 2.4 and 2.5 libs.
I need to load CPython 2.5 libs by adding it in site.py file of
ironpython. Maybe I should go experimenting and let you people know
about it.
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
:)
-Which XML Library is pure python based.
ElementTree
So ElementTree solved one part. thanks friend.
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
++/
Remember, since python is readable easily, you fear so. But no language
exists which humans can't read.
At worst level, they will have to go for Assembly Level decompiling, but
thats possible too
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
discriptions right now from my side. I would like to
work a little more to get to some point and then let you all know what
exactly the problem is.
Again, thanks a lot for the help.
On Dec 5, 2007 7:31 PM, Ravi Kumar [EMAIL PROTECTED] wrote:
HI,
I am sorry for OT here. But I search google, could
guide me a little, on how to do it. I just need some
pointers and I will start finding them on Google.
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
://mail.python.org/mailman/listinfo/python-list
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
On Thu, Nov 29, 2007 at 06:48:10PM +0530, Ravi Kumar wrote:
Hi,
I am stuck a little. I am working on a demo site to propose for the my
company. Using mod_python and several python technologies. But the
website
is simply using publisher handler, i dont want to use
then
call the suitable defs from files and apply the wrapper on it and return to
main caller)
setting the values
Please suggest some ideas.
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
(), but that confused me a little and didnt worked for me.
I am missing something I know, so please ENLIGHTEN Me :)
Thanks in advance EVen you read this mail :P
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
with typed systems is more convenient in dynamic languages
than it is to work with untyped systems in typed languages. Of course,
if the project is really small, none of this really matters. Pick your
poison.
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
it
easier to create client stubs from other languages.
http://trac.optio.webfactional.com/
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 19, 3:58 am, Teja [EMAIL PROTECTED] wrote:
On Apr 19, 3:48 pm, Tim Golden [EMAIL PROTECTED] wrote:
Teja wrote:
how to generate CHM files in Boa(Python)???
http://www.rutherfurd.net/software/rst2chm/index.html
TJG
Can't I do it in Boa constructor ??? I have seen an option
Teja wrote:
how to generate CHM files in Boa(Python)???
http://www.rutherfurd.net/software/rst2chm/index.html
TJG
Can't I do it in Boa constructor ??? I have seen an option in Boa to
create a new helpbook and compile it to CHm and help files, But no
clue how to do
.
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
Kiran,
You should look into Twisted Python and their Twisted Python Conch
package. You might not need to reinvent the wheel.
http://twistedmatrix.com/trac/wiki/TwistedConch
Ravi
kadarla kiran kumar wrote:
Hi Everybody,
I have to implement SFTP conection from client to the server using
.
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
a
Python channel), is a better option. When you post, make the question
as specific as possible. Sometimes typing a good question itself gives
you an answer.
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
while usrinp != y or Y or N or n: PROBLEM
Correct way:
while usrinp != y or usrinp != Y or usrinp != N or usrinp != n:
There has to be a boolean evaluation on both sides of or.
Or in this case:
while usrinp not in ['Y', 'y', 'N', 'n']:
Ravi Teja.
--
http://mail.python.org/mailman
1 - 100 of 299 matches
Mail list logo