File: wx.lib.pubsub.py2and3.txt

package info (click to toggle)
wxpython4.0 4.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 211,112 kB
  • sloc: cpp: 888,355; python: 223,130; makefile: 52,087; ansic: 45,780; sh: 3,012; xml: 1,534; perl: 264
file content (195 lines) | stat: -rw-r--r-- 7,105 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2018 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc

.. module:: wx.lib.pubsub.py2and3

.. currentmodule:: wx.lib.pubsub.py2and3

.. highlight:: python



.. _wx.lib.pubsub.py2and3:

==========================================================================================================================================
|phoenix_title|  **wx.lib.pubsub.py2and3**
==========================================================================================================================================

Utilities for writing code that runs on Python 2 and 3


|function_summary| Functions Summary
====================================

================================================================================ ================================================================================
:func:`~wx.lib.pubsub.py2and3.add_metaclass`                                     Class decorator for creating a class with a metaclass.
:func:`~wx.lib.pubsub.py2and3.add_move`                                          Add an item to six.moves.
:func:`~wx.lib.pubsub.py2and3.b`                                                 Byte literal
:func:`~wx.lib.pubsub.py2and3.byte2int`                                          
:func:`~wx.lib.pubsub.py2and3.create_bound_method`                               
:func:`~wx.lib.pubsub.py2and3.exec_`                                             Execute code in a namespace.
:func:`~wx.lib.pubsub.py2and3.get_unbound_function`                              Get the function out of a possibly unbound function
:func:`~wx.lib.pubsub.py2and3.getexcobj`                                         
:func:`~wx.lib.pubsub.py2and3.indexbytes`                                        
:func:`~wx.lib.pubsub.py2and3.isstring`                                          
:func:`~wx.lib.pubsub.py2and3.iterbytes`                                         
:func:`~wx.lib.pubsub.py2and3.iteritems`                                         Return an iterator over the (key, value) pairs of a dictionary.
:func:`~wx.lib.pubsub.py2and3.iterkeys`                                          Return an iterator over the keys of a dictionary.
:func:`~wx.lib.pubsub.py2and3.iterlists`                                         Return an iterator over the (key, [values]) pairs of a dictionary.
:func:`~wx.lib.pubsub.py2and3.itervalues`                                        Return an iterator over the values of a dictionary.
:func:`~wx.lib.pubsub.py2and3.keys`                                              
:func:`~wx.lib.pubsub.py2and3.nextiter`                                          
:func:`~wx.lib.pubsub.py2and3.print_`                                            The new-style print function.
:func:`~wx.lib.pubsub.py2and3.remove_move`                                       Remove item from six.moves.
:func:`~wx.lib.pubsub.py2and3.u`                                                 Text literal
:func:`~wx.lib.pubsub.py2and3.values`                                            
:func:`~wx.lib.pubsub.py2and3.with_metaclass`                                    Create a base class with a metaclass.
================================================================================ ================================================================================


|


|class_summary| Classes Summary
===============================

================================================================================ ================================================================================
:ref:`~wx.lib.pubsub.py2and3._LazyDescr`                                         
:ref:`~wx.lib.pubsub.py2and3._MovedItems`                                        Lazy loading of moved objects
:ref:`~wx.lib.pubsub.py2and3.Iterator`                                           
:ref:`~wx.lib.pubsub.py2and3.Module_six_moves_urllib`                            Create a six.moves.urllib namespace that resembles the Python 3 namespace
:ref:`~wx.lib.pubsub.py2and3.Module_six_moves_urllib_error`                      Lazy loading of moved objects in six.moves.urllib_error
:ref:`~wx.lib.pubsub.py2and3.Module_six_moves_urllib_parse`                      Lazy loading of moved objects in six.moves.urllib_parse
:ref:`~wx.lib.pubsub.py2and3.Module_six_moves_urllib_request`                    Lazy loading of moved objects in six.moves.urllib_request
:ref:`~wx.lib.pubsub.py2and3.Module_six_moves_urllib_response`                   Lazy loading of moved objects in six.moves.urllib_response
:ref:`~wx.lib.pubsub.py2and3.Module_six_moves_urllib_robotparser`                Lazy loading of moved objects in six.moves.urllib_robotparser
:ref:`~wx.lib.pubsub.py2and3.MovedAttribute`                                     
:ref:`~wx.lib.pubsub.py2and3.MovedModule`                                        
================================================================================ ================================================================================


|


.. toctree::
   :maxdepth: 1
   :hidden:

   wx.lib.pubsub.py2and3._LazyDescr
   wx.lib.pubsub.py2and3._MovedItems
   wx.lib.pubsub.py2and3.Iterator
   wx.lib.pubsub.py2and3.Module_six_moves_urllib
   wx.lib.pubsub.py2and3.Module_six_moves_urllib_error
   wx.lib.pubsub.py2and3.Module_six_moves_urllib_parse
   wx.lib.pubsub.py2and3.Module_six_moves_urllib_request
   wx.lib.pubsub.py2and3.Module_six_moves_urllib_response
   wx.lib.pubsub.py2and3.Module_six_moves_urllib_robotparser
   wx.lib.pubsub.py2and3.MovedAttribute
   wx.lib.pubsub.py2and3.MovedModule





Functions
------------

.. function:: add_metaclass(metaclass)

   Class decorator for creating a class with a metaclass.


.. function:: add_move(move)

   Add an item to six.moves.


.. function:: b(s)

   Byte literal


.. function:: byte2int(bs)


.. function:: create_bound_method(func, obj)


.. function:: exec_(_code_, _globs_=None, _locs_=None)

   Execute code in a namespace.


.. function:: get_unbound_function(unbound)

   Get the function out of a possibly unbound function


.. function:: getexcobj()


.. function:: indexbytes(buf, i)


.. function:: isstring(obj)


.. function:: iterbytes(buf)


.. function:: iteritems(d, \*\*kw)

   Return an iterator over the (key, value) pairs of a dictionary.


.. function:: iterkeys(d, \*\*kw)

   Return an iterator over the keys of a dictionary.


.. function:: iterlists(d, \*\*kw)

   Return an iterator over the (key, [values]) pairs of a dictionary.


.. function:: itervalues(d, \*\*kw)

   Return an iterator over the values of a dictionary.


.. function:: keys(dictObj)


.. function:: nextiter(container)


.. function:: print_(\*args, \*\*kwargs)

   The new-style print function.


.. function:: remove_move(name)

   Remove item from six.moves.


.. function:: u(s)

   Text literal


.. function:: values(dictObj)


.. function:: with_metaclass(meta, \*bases)

   Create a base class with a metaclass.