adding new stuff

This commit is contained in:
ViktorBarzin 2017-07-09 00:22:01 +03:00
parent f84d7183aa
commit 9ef8a96f9a
1580 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,19 @@
from PyQt4.QtCore import *
from PyQt4.QtGui import *
#? ['QActionGroup']
QActionGroup
#? ['currentText']
QStyleOptionComboBox().currentText
#? []
QStyleOptionComboBox().currentText.
from PyQt4 import QtGui
#? ['currentText']
QtGui.QStyleOptionComboBox().currentText
#? []
QtGui.QStyleOptionComboBox().currentText.

View file

@ -0,0 +1,11 @@
#! ['class ObjectDoesNotExist']
from django.core.exceptions import ObjectDoesNotExist
import django
#? ['get_version']
django.get_version
from django.conf import settings
#? ['configured']
settings.configured

View file

@ -0,0 +1,52 @@
from jedi import functions, evaluate, parsing
el = functions.completions()[0]
#? ['description']
el.description
#? str()
el.description
scopes, path, dot, like = \
api._prepare_goto(source, row, column, path, True)
# has problems with that (sometimes) very deep nesting.
#? set()
el = scopes
# get_names_for_scope is also recursion stuff
#? tuple()
el = list(evaluate.get_names_for_scope())[0]
#? int() parsing.Module()
el = list(evaluate.get_names_for_scope(1))[0][0]
#? parsing.Module()
el = list(evaluate.get_names_for_scope())[0][0]
#? list()
el = list(evaluate.get_names_for_scope(1))[0][1]
#? list()
el = list(evaluate.get_names_for_scope())[0][1]
#? list()
parsing.Scope((0,0)).get_set_vars()
#? parsing.Import() parsing.Name()
parsing.Scope((0,0)).get_set_vars()[0]
# TODO access parent is not possible, because that is not set in the class
## parsing.Class()
parsing.Scope((0,0)).get_set_vars()[0].parent
#? parsing.Import() parsing.Name()
el = list(evaluate.get_names_for_scope())[0][1][0]
#? evaluate.Array() evaluate.Class() evaluate.Function() evaluate.Instance()
list(evaluate.follow_call())[0]
# With the right recursion settings, this should be possible (and maybe more):
# Array Class Function Generator Instance Module
# However, this was produced with the recursion settings 10/350/10000, and
# lasted 18.5 seconds. So we just have to be content with the results.
#? evaluate.Class() evaluate.Function()
evaluate.get_scopes_for_name()[0]

View file

@ -0,0 +1,11 @@
import psycopg2
conn = psycopg2.connect('dbname=test')
#? ['cursor']
conn.cursor
cur = conn.cursor()
#? ['fetchall']
cur.fetchall

View file

@ -0,0 +1,36 @@
import pylab
# two gotos
#! ['module numpy']
import numpy
#! ['module random']
import numpy.random
#? ['array2string']
numpy.array2string
#? ['shape']
numpy.matrix().shape
#? ['random_integers']
pylab.random_integers
#? []
numpy.random_integers
#? ['random_integers']
numpy.random.random_integers
#? ['sample']
numpy.random.sample
import numpy
na = numpy.array([1,2])
#? ['shape']
na.shape
# shouldn't raise an error #29, jedi-vim
# doesn't return something, because matplotlib uses __import__
fig = pylab.figure()
#?
fig.add_subplot