Hi all,
Found this bug. It's in 2.6, too bad.
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit
(Intel)] on win
32
Type "help", "copyright" , "credits" or "license" for more information.
>>import inspect type( inspect.getargv alues( inspect.current frame() ) )
<type 'tuple'>
Docs say:
inspect.getargv alues(frame)
....
Changed in version 2.6: Returns a named tuple ArgInfo(args, varargs,
keywords, locals).
The code defines an ArgInfo type, but doesn't instantiate it in the
return, as shown here:
return args, varargs, varkw, frame.f_locals 3 953
En Thu, 09 Oct 2008 00:24:20 -0300, Aaron "Castironpi " Brady
<ca********@gma il.comescribió:
Found this bug. It's in 2.6, too bad.
Posting here is not going to help much, it just will be lost. Would be
better to file a bug report at http://bugs.python.org/
--
Gabriel Genellina
On Oct 9, 9:47*am, "Gabriel Genellina" <gagsl-...@yahoo.com.a rwrote:
En Thu, 09 Oct 2008 00:24:20 -0300, Aaron "Castironpi " Brady *
<castiro...@gma il.comescribió:
Found this bug. *It's in 2.6, too bad.
Posting here is not going to help much, it just will be lost. Would be *
better to file a bug report athttp://bugs.python.org/
--
Gabriel Genellina
It is at bugs.python. http://bugs.python.org/msg74595 .
Aaron "Castironpi " Brady wrote:
On Oct 9, 9:47 am, "Gabriel Genellina" <gagsl-...@yahoo.com.a rwrote:
>En Thu, 09 Oct 2008 00:24:20 -0300, Aaron "Castironpi " Brady <castiro...@gm ail.comescribió :
>>Found this bug. It's in 2.6, too bad.
Posting here is not going to help much, it just will be lost. Would be better to file a bug report athttp://bugs.python.org/
-- Gabriel Genellina
It is at bugs.python. http://bugs.python.org/msg74595 .
The issue, as opposed to the message within the issue, is http://bugs.python.org/issue4092 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Hans Georg Krauthaeuser |
last post by:
Dear all,
I have a problem to get the command that has called a function if the
command was given on multiple lines. E.g.:
###################################################
import inspect
def call(a,b,c,d,e):
s = inspector()
|
by: Thomas Guettler |
last post by:
Hi,
the line numbers of inspect.getinnerframes are
different from traceback.format_exception.
This results in wrong lines being shown in cgitb.
An example is below.
I looked at the source of both methods. One uses f_lineno (wrong)
|
by: Fernando Perez |
last post by:
Hi all,
IPython has suffered quite a few problems with the inspect module in python
2.3. For these, unfortunately all I've been able to do is guard with
overreaching except clauses, as I had not been able to find small,
reproducible examples to pass on to the devs. But today I got a crash report
from a user and I've been able to replicate this crash with a tiny script
which does not depend on ipython at all.
I'd like to hear from...
|
by: It's me |
last post by:
I discovered the hardway what inspect.isclass() is doing. Consider this no
brainer code:
###
import inspect
class Abc:
def Hello(self):
return
|
by: Darran Edmundson |
last post by:
I was playing around with the inspect module the other day
trying to write a quick and dirty "smart" logger. By this I mean
that writing a message to the global log would also yield some
info about the calling scope. If you look at my function "test"
below, I'd ideally like log messages:
foo.py:test, "message 1"
foo.py:Foo.__init__, "message 2"
foo.py:Foo.bar, "message 3"
| |
by: Ron Adam |
last post by:
While playing around with the inspect module I found that the
Blockfinder doesn't recognize single line function definitions.
Adding the following two lines to it fixes it, but I'm not sure if it
causes any problems anywhere else.
elif self.indent == 0:
raise EndOfBlock, self.last
Cheers,
|
by: aj |
last post by:
What is the difference (if any) between
inspect check database
and
db2dart
???
Do they both find the same potential problems? Does one
provide more comprehensive checking than the other?
TIA
|
by: Chris Pax |
last post by:
Hello,
I recently been trying to use the inspect module to inspect the
arguments of gtk objects, such as gtk.Button. I tried like this:
inspect.getargspec(gtk.Button.__init__)
and get the fallowing error:
File "<stdin>", line 1, in <module>
|
by: Aaron \Castironpi\ Brady |
last post by:
Hello,
The 'inspect' module has this method:
inspect.getargvalues(frame)
It takes a frame and returns the parameters used to call it, including
the locals as defined in the frame, as shown.
.... import inspect
|
by: rajasankar |
last post by:
Hi,
I am using Jython based application and trying to use inspect.py in the python files.
Here is my code
import inspect,os,sys,pprint,imp
def handle_stackframe_without_leak(getframe):
frame = inspect.currentframe()
try:
function = inspect.getframeinfo(getframe)
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |