Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Python only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Python
Is it possible to split a class definition?
Is it possible to split a class definition?
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
jerry.levan@gmail.com
#1
Is it possible to split a class definition?
Jun 21 '06, 10:15 PM
Hi,
Is it possible to split a Class definition over two or more text files?
(if so, how:)
Jerry
Lawrence Oluyede
#2
Jun 21 '06, 10:25 PM
Re: Is it possible to split a class definition?
<jerry.levan@gm ail.com> wrote:
[color=blue]
> Is it possible to split a Class definition over two or more text files?
> (if so, how:)[/color]
There's no partial types like in .NET 2.0 but since Python is dynamic
you can add members at runtime :-)
--
Lawrence -
http://www.oluyede.org/blog
"Nothing is more dangerous than an idea
if it's the only one you have" - E. A. Chartier
Comment
Post
Cancel
Diez B. Roggisch
#3
Jun 21 '06, 10:45 PM
Re: Is it possible to split a class definition?
jerry.levan@gma il.com
schrieb:[color=blue]
> Hi,
>
> Is it possible to split a Class definition over two or more text files?
> (if so, how:)[/color]
Not in that sense. But if you must, you can use several classes and then
a resulting class that inherits from all of these.
Diez
Comment
Post
Cancel
Bruno Desthuilliers
#4
Jun 22 '06, 08:15 AM
Re: Is it possible to split a class definition?
jerry.levan@gma il.com
wrote:[color=blue]
> Hi,
>
> Is it possible to split a Class definition over two or more text files?[/color]
Yes, but not directly. Could you tell us why you think you have such a
need ?
[color=blue]
> (if so, how:)[/color]
Please answer my previous question first !-)
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb@xiludom. gro'.split('@')])"
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment