GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — update from Atlas · dreamsql/example-code@cf96836

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • 04-text-byte
    • ola.py
  • 08-obj-ref
    • bus.py
    • cheese.py
    • haunted_bus.py
    • twilight_bus.py
  • 09-pythonic-obj
    • mem_test.py
    • private
      • Confidential.java
      • Expose.java
      • expose.py
      • leakprivate.py
      • no_respect.py
    • vector2d_v0.py
    • vector2d_v1.py
    • vector2d_v2.py
    • vector2d_v2_fmt_snippet.py
    • vector2d_v3.py
    • vector2d_v3_prophash.py
    • vector2d_v3_slots.py
  • attic/objects
    • attr_list.py
    • attrs_not_in_object.py
    • cards.py
    • cards_format.py
    • common_attrs.txt
    • not_so_common_attrs.txt
  • classes/private/pt-br
    • AcessaPrivado.java
    • ObjetoSecreto.java
    • acessapriv.py
    • listapriv.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎attic/strings-bytes/ola.py‎ ‎04-text-byte/ola.py‎attic/strings-bytes/ola.py renamed to 04-text-byte/ola.py

Copy file name to clipboard
File renamed without changes.
Collapse file

‎objects/bus.py‎ ‎08-obj-ref/bus.py‎objects/bus.py renamed to 08-obj-ref/bus.py

Copy file name to clipboard
File renamed without changes.
Collapse file

‎objects/cheese.py‎ ‎08-obj-ref/cheese.py‎objects/cheese.py renamed to 08-obj-ref/cheese.py

Copy file name to clipboard
File renamed without changes.
Collapse file

‎objects/haunted_bus.py‎ ‎08-obj-ref/haunted_bus.py‎objects/haunted_bus.py renamed to 08-obj-ref/haunted_bus.py

Copy file name to clipboardExpand all lines: 08-obj-ref/haunted_bus.py
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
"""
2-
>>> bus1 = HountedBus(['Alice', 'Bill'])
2+
>>> bus1 = HauntedBus(['Alice', 'Bill'])
33
>>> bus1.passengers
44
['Alice', 'Bill']
55
>>> bus1.pick('Charlie')
66
>>> bus1.drop('Alice')
77
>>> bus1.passengers
88
['Bill', 'Charlie']
9-
>>> bus2 = HountedBus()
9+
>>> bus2 = HauntedBus()
1010
>>> bus2.pick('Carrie')
1111
>>> bus2.passengers
1212
['Carrie']
13-
>>> bus3 = HountedBus()
13+
>>> bus3 = HauntedBus()
1414
>>> bus3.passengers
1515
['Carrie']
1616
>>> bus3.pick('Dave')
@@ -22,18 +22,18 @@
2222
['Bill', 'Charlie']
2323
2424
25-
>>> dir(HountedBus.__init__) # doctest: +ELLIPSIS
25+
>>> dir(HauntedBus.__init__) # doctest: +ELLIPSIS
2626
['__annotations__', '__call__', ..., '__defaults__', ...]
27-
>>> HountedBus.__init__.__defaults__
27+
>>> HauntedBus.__init__.__defaults__
2828
(['Carrie', 'Dave'],)
29-
>>> HountedBus.__init__.__defaults__[0] is bus2.passengers
29+
>>> HauntedBus.__init__.__defaults__[0] is bus2.passengers
3030
True
3131
3232
"""
3333

3434
# BEGIN HAUNTED_BUS_CLASS
35-
class HountedBus:
36-
"""A bus model hounted by ghost passengers"""
35+
class HauntedBus:
36+
"""A bus model haunted by ghost passengers"""
3737

3838
def __init__(self, passengers=[]): # <1>
3939
self.passengers = passengers # <2>
Collapse file

‎objects/twilight_bus.py‎ ‎08-obj-ref/twilight_bus.py‎objects/twilight_bus.py renamed to 08-obj-ref/twilight_bus.py

Copy file name to clipboard
File renamed without changes.
Collapse file

‎classes/mem_test.py‎ ‎09-pythonic-obj/mem_test.py‎classes/mem_test.py renamed to 09-pythonic-obj/mem_test.py

Copy file name to clipboard
File renamed without changes.
Collapse file

‎classes/private/Confidential.java‎ ‎09-pythonic-obj/private/Confidential.java‎classes/private/Confidential.java renamed to 09-pythonic-obj/private/Confidential.java

Copy file name to clipboard
File renamed without changes.
Collapse file

‎classes/private/Expose.java‎ ‎09-pythonic-obj/private/Expose.java‎classes/private/Expose.java renamed to 09-pythonic-obj/private/Expose.java

Copy file name to clipboard
File renamed without changes.
Collapse file

‎classes/private/expose.py‎ ‎09-pythonic-obj/private/expose.py‎classes/private/expose.py renamed to 09-pythonic-obj/private/expose.py

Copy file name to clipboard
File renamed without changes.
Collapse file

‎classes/private/leakprivate.py‎ ‎09-pythonic-obj/private/leakprivate.py‎classes/private/leakprivate.py renamed to 09-pythonic-obj/private/leakprivate.py

Copy file name to clipboard
File renamed without changes.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.