On 13/5/05 03:35, in article
[EMAIL PROTECTED], "Robert Kern"
<[EMAIL PROTECTED]> wrote:
> baza wrote:
>> Where is the IDE in 'Tiger' for the mac? Don't tell me I have to use
>> text edit all the time??
>
> PythonIDE never came with the OS. You have to install it yourself.
>
> http://homepage
On 13/5/05 03:35, in article
[EMAIL PROTECTED], "Robert Kern"
<[EMAIL PROTECTED]> wrote:
> baza wrote:
>> Where is the IDE in 'Tiger' for the mac? Don't tell me I have to use
>> text edit all the time??
>
> PythonIDE never came with the OS. You have to install it yourself.
>
> http://homepage
Okay. Great. Thanks for clarifying that for me.
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to put together a python program that will be able to ask
for a word and its definition, then save that information into an xml
file for reference. I am not down right set on the file being in xml
format, but xml is the first thing that comes to mind, since I do not
want to use a MySQL
Lanny wrote:
How would one make a list of the files in the top directory
using os.walk.
I need to pick a random file from said list.
Thanks.
-- Posted on news://freenews.netfront.net - Complaints to [EMAIL PROTECTED] --
how about:
import os
x = os.walk('/')
(root,dirs,files) = x.next
Hey I found some (VERY) old C++ code of mine that recursively built a
tree of the desktop window handles (on windows) using: (they are stored
in an STL vector)
void FWL(HWND hwnd, int nFlag) // Recursive Function
{
hwnd = GetWindow(hwnd, nFlag);
if(hwnd == NULL)
WP wrote:
Hello, here are some new things I've problems with. I've made a program
that opens and reads a text file. Each line in the file contains a name
and a score. I'm assuming the file has the correct format. Each
name-score pair is used to instantiate a class Score I've written. This
work
Alexnb wrote:
Uhm, "string" and "non-string" are just that, words within the string. Here
shall I dumb it down for you?
string = "yes text1 yes text2 yes text3 no text4 yes text5+more Text yes
text6 no text7 yes text8"
It doesn't matter what is in the string, I want to be able to know exactl
Mensanator wrote:
On Aug 17, 6:03�pm, B <[EMAIL PROTECTED]> wrote:
Alexnb wrote:
Uhm, "string" and "non-string" are just that, words within the string. Here
shall I dumb it down for you?
string = "yes text1 yes text2 yes text3 no text4 yes text5+more Text ye
for a long list, you could try:
result = [mydict[k] for k in mydict]
or [mydict[k] for k in mydict.keys()]
or [mydict[k] for k in mydict.iterkeys()]
this won't give you the same order as your code though, if you want them
sorted you can use the sorted function:
[mydict[k] fo
Fredrik Lundh wrote:
B wrote:
for a long list, you could try:
result = [mydict[k] for k in mydict]
or [mydict[k] for k in mydict.keys()]
or [mydict[k] for k in mydict.iterkeys()]
and the point of doing that instead of calling mydict.values() is what?
It's more fun? Or i
Mmmm
Ok guys, thank you
I'm really sure that isn't a weird character, it is a space.
My Python version is 3.3.2, I've runed this code in Python 2.7.5, but it stills
the same.
I've done what you said but it doesn't work.
Please Check it again here is better explained:
http://snipplr.com/v
Sorry, I'm new in here
So, if you want to see the complete code I've fixed it:
http://www.smipple.net/snippet/a7xrturo/Hangman%21%20%3A%29
And here is the part of code that doesn't work:
#The error is marked in the whitespace between letter and in
def displayBoard(HANGMANPICS, missedLetters,
Fixed, the problem was in
HANGMANPICS
I didn't open the brackets.
Thank you guys :)
--
http://mail.python.org/mailman/listinfo/python-list
I'm making this exercise: (Python 3.3)
Write a function translate() that will translate a text into "rövarspråket"
(Swedish for "robber's language"). That is, double every consonant and place an
occurrence of "o" in between. For example, translate("this is fun") should
return the string "tothoh
Hi,
I got a chance to build an university website, within very short period of time.
I know web2py, little bit of Django, so please suggest me the best to build
rapidly.
Thanks in advance
Raghu
--
http://mail.python.org/mailman/listinfo/python-list
i want to kno how to link two applications using python for eg:notepad
txt file and some docx file. like i wat to kno how to take path of
those to files and run them simultaneously.like if i type something in
notepad it has to come in wordpad whenever i run that code.
--
http://mail.python.org/mai
ct.__class__ is type
4) type parent object is object : type.__bases__ == (object,)
B) type vs metaclass
1) type is the first metaclass ?
2) type is its own metaclass : type(type) is type ?
3) object's metaclass is type ?
4) other metaclasses *MUST* inherit type ?
5) type(any
On Aug 22, 1:57 pm, Steven D'Aprano wrote:
> The relationship between type and object is somewhat special, and needs to
> be bootstrapped by the CPython virtual machine.
Since you are talking about CPython, I'm wondering how it is
bootstraped since you can easly reference PyType in PyObject tha
On Aug 22, 5:41 pm, Stephen Hansen wrote:
> > 3) object's type is type : object.__class__ is type
> > 4) type parent object is object : type.__bases__ == (object,)
>
> Saying "type" and "parent" and the like for new-style classes is
> something of a misnomer. For "type" and "object", these things
Suppose we're implementing an immutable collection type that comes in unordered
and ordered flavors. Let's call them MyColl and MyOrderedColl.
We implement __eq__ such that MyColl(some_elements) ==
MyOrderedColl(other_elements) iff set(some_elements) == set(other_elements).
But MyOrderedColl(so
On Monday, November 20, 2017 at 1:55:26 PM UTC-5, Chris Angelico wrote:
> But what you have is the strangeness of non-transitive equality, which
> is likely to cause problems.
But this is exactly how Python's built-in dict and OrderedDict behave:
>>> od = OrderedDict([(1, 0), (2, 0), (3, 0)])
>>>
On Monday, November 20, 2017 at 2:31:40 PM UTC-5, MRAB wrote:
> What if there are duplicate elements?
>
> Should that be MyColl(some_elements) == MyOrderedColl(other_elements)
> iff len(some_elements) == len(other_elements) and set(some_elements) ==
> set(other_elements)?
Yes, that's what I mea
On Monday, November 20, 2017 at 3:17:49 PM UTC-5, Chris Angelico wrote:
> Neither is perfect. You have to take your pick between them.
Right on, thanks for weighing in, Chris. Your responses have been very helpful.
I wouldn't feel comfortable claiming the authority to make this call alone. But
f
I am new to python and wish to update 3.9 to3.10.8 which I have downloaded. How
do I replace 3.9 with the 3.10.8 I downloaded.
Kind regards
JohnGee
--
https://mail.python.org/mailman/listinfo/python-list
Hi,I am in the process of trying to make my code (an c++ executable
and swig modules using the Python C API) lose the dependency to python
3.7, to be compatible with all Python 3.2+
I tried linking to python.lib instead of python37.lib. As i am still
using a few things that are not in the limited
Am 05.03.23 um 15:35 schrieb aapost:
I have run in to this a few times and finally reproduced it. Whether it
is as expected I am not sure since it is slightly on the user, but I can
think of scenarios where this would be undesirable behavior.. This
occurs on 3.11.1 and 3.11.2 using debian 12 te
My package, available at https://github.com/jab/bidict, is currently laid out
like this:
bidict/
├── __init__.py
├── _bidict.py
├── _common.py
├── _frozen.py
├── _loose.py
├── _named.py
├── _ordered.py
├── compat.py
├── util.py
I'd like to get some more feedback on a question about this layout
Foor ages, I have been trying to summon up courage learn how to program. I
chose o start with Python. I found that when the “black” screen comes on, I am
unable to read/see any characters even if I turn up the brightness of the
screen. So, I give up. I tried version 3.5.1. I shall be grateful fo
hi,
i am thinking about using RxPy to solve the following problem, and not yet sure
if its the right tool for the job.
I am working on a calculation engine, that takes a dataset (or multiple sets)
and calculates new columns.
so in pandas terms, it starts as DataFrame, and then i run it thro
Is there a Python 'find' -like utility that will continue the file
search through any zippped directory structure on the find path?
--
http://mail.python.org/mailman/listinfo/python-list
An effbot utility? I'll try that.
Thank you
--
http://mail.python.org/mailman/listinfo/python-list
The paper on BitPim http://bitpim.sourceforge.net/papers/baypiggies/
lists and describes programs and ideas used for the project. Some of
it is just bullet-points, but everything seems to be well chosen. I've
swiped a lot of these ideas.
--
http://mail.python.org/mailman/listinfo/python-list
I have a simple Kid template document:
http://www.w3.org/1999/xhtml";
xmlns:py="http://purl.org/kid/ns#";
>
... (snip)
This runs as expected but now I would like to load a DTD without
tampering with this xml file
In the expat parser __init__ after setting other handlers
for parser, I h
I needed to set Entity Parsing, such as
parser.SetParamEntityParsing( expat.XML_PARAM_ENTITY_PARSING_ALWAYS )
--
http://mail.python.org/mailman/listinfo/python-list
Your SubElement call is lacking the attrib argument, but you can't set
text, anyway.
The elementtree source makes it clear, you can only set element attrib
attributes
with SubElement
def SubElement(parent, tag, attrib={}, **extra):
attrib = attrib.copy()
attrib.update(extra)
element =
I also think something along the lines of execfile() may serve the
original poster. There was a thread last month about compile()
and exec() with a concise example from Fredrik Lundh.
Google "Changing an AST" in this group.
With dynamically generated code I prefer the separate compile()
step so
If you search for CONTENT management system, there is
Plone: A user-friendly and powerful open source Content Management ...
http://plone.org/
--
http://mail.python.org/mailman/listinfo/python-list
Decorate any function with @aboutme(), which
will print the function name each time the function is called.
All the 'hello' stuff is in the aboutme() decorator code.
There is no code in the decorated functions themselves
doing anything to telling us the function name.
# The decorator
def aboutme
You may want to look at some Python Cookbook recipes, such as
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52257
"Auto-detect XML encoding" by Paul Prescod
--
http://mail.python.org/mailman/listinfo/python-list
>>No way. Ant sucks. Big-time. I actually enhance it with embedded jython
>>to get at least _some_ flexibility.
>>Diez
Any pointers to this enhancement?
--
http://mail.python.org/mailman/listinfo/python-list
> > 1) I was wondering if anyone has opinions on the ability of
CGIHTTPServer (a
> > forking variant) to be able to handle this.
>
> Why not use apache?
Wanted something with less footprint.
--
http://mail.python.org/mailman/listinfo/python-list
Hi folks,
I'm looking build a CGI-capable SSL-enabled web-server around Python 2.4 on
Linux.
It is to handle ~25 hits possibly arriving "at once". Content is non-static
and built by the execution of py cgi-scripts talking to a few backend
processes.
1) I was wondering if anyone has opinions on th
Anyone has any info if there's something similar to Newt lib for win32?
Thanks
Gabriel
--
http://mail.python.org/mailman/listinfo/python-list
I wanted to make a list index work as the index of the data in the
database. something like
database:
idx
item_description
item_value
being imported to my program as:
x[idx][0]= item_description
x[idx][1]= item_value
the problem is that there will be some hundred items and possible the
idx wil v
I just sent an email asking for hints on how to import data into a
python program
As i said earlier i'm really new to python and besides being
confortable with the syntax, i'm not sure if i'm on the right track
with the logic
I'm asking for hints again here at the list because i think i'm
already
I'm starting to write a POS application UI's module.
There's no mouse, just a bunch of global shortcuts.
the problem is that TK doesn't have global shortcuts! Is there a
work-around or i will have to attach 80 or so bindings for every input
element?
Thanks,
Gabriel
--
http://mail.python.org/mai
Is it just me that can't find a full reference in the docs?
I wanted a list of all the methods of dict for example... where can i find it?
Thanks, and sorry if this question is just dumb, i really can't find it
--
http://mail.python.org/mailman/listinfo/python-list
> > users. For example, from their FAQ, it seems that no precompiled
> > binaries will be provided. Support for comercial compilers will not be
> > built in, only for gcc (through Cygwin?).
>
> Isn't this just the same thing with a different spin. There was always
> an available distribution for
On Mon, 07 Feb 2005 20:56:44 -0800, Courageous <[EMAIL PROTECTED]> wrote:
> Follow the copyright holder's wishes.
>
> That's fair. After all, it's free, so they're doing you a damn
> big favor.
I'm terrible sorry to extend this topic even furter, but it's silly,
not to say dull to think like that
> >>Considering the fact that the Qt DLL exist by themselves, that the
> >>version used is the one provided by Qt, and that the EXE uses a
> >>standard, open way to communicate with it, the above does seem to say
> >>this use would be valid.
> >>
> >>
> >
> >http://www.gnu.org/licenses/gpl-faq.
> However, imagine simple situation:
> 1. I write proprietary program with open plugin api. I even make the api
> itself public domain. Program works by itself, does not contain any
> GPL-ed code.
No need to continue. You write something that uses a plugin, Eolas
sues you. Don't have to mind about
> Oh and you of course __must__ look at the (recently updated!) New Mexico
> Tech tkinter document at:
> http://infohost.nmt.edu/tcc/help/pubs/tkinter.pdf
>
> See page 75 and follwing for more info on keyboard bindings...
Thanks, i was looking down that doc because the first thing i looked
into i
I got my self writting nested objects to hold Tk references, then i
realizes that i was working in python and not tcl, so i switched to
flat vars... and in no time i was using more then 7 words separated by
captalization in the names... i was able to rethink my scheme to use
5... no less.
i'm i ex
i'm using almost every widget property from my pyTk programs in the
form of resources, like:
self.tk.option_add ( "*InputClass*background", "White" )
In the widget creation i have only the Class and the Command
attribute, but i'm having to add some tk options to the geometry
method, in the case,
This is completely odd to me...
# Bind F1...F12 to <>
self.tk.event_add( '<>', # keys used to switch between the tabs
'','','','','',
'','','','','',
'',''
)
self.master.bind_all('<>', self.__functionKeysPressed )
def __functionKeysPressed(self, event):
print e
On Sat, 12 Feb 2005 19:44:25 -0600, Jeff Epler <[EMAIL PROTECTED]> wrote:
> The reason that F10 does nothing is because there is already a binding
> on all for . [...]
> If you want to get rid of this binding, you would do it with something
> like
> w.bind_all("", "")
> for some widget w.
That
I started to use dbschema.com but it has some big flaws (mainly
regarding keys and mysql) and besides it's being in java (wich i don't
like to code at all) it's closed source.
I'm considering starting a new GPL one in python, so, i ask if you
people already know a project like that.
Thanks,
Gabri
i'm writting an application that will use Tinker in a newer future.
Now it's console only. I simply ommit some data on the display,
print() some other and go on. The problem is that i can't test the
actions tiggered by special keys, like Page Up/Down or the F1...12
Right now i'm using raw_input()
> No. Hardly any HTTP 1.1 features are supported.
Hi all,
I'd like to know more about the limitations.
Somewhere, is there a list of the actual subset of HTTP 1.1 features
supported. There's not much related info at the python.org site. There
appears to be just a limited note on 1.1 in
http://ww
> I'd say Nevow! For apache setup, you might be interested in my wsgi [1]
> implementation.
Hi Sridhar,
Are you aware of Nevow's "integrability" with the webservers (CGIHTTPServer
in particular) that come packaged with Python itself ?
Thanks,
/venkat
--
http://mail.python.org/mailman/listinfo
"Rodney Dangerfield" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Greetz!
>
> Recently I started creating a CGI application for my gf that
> she would use for indexing and keeping track of her video
> collection.
>
> I am relatively new to python so I started with the basics.
> I
Hi all,
I have a question re the use of Python to control a robot built with the
LEGO Mindstorm system.
This is to help my 11yr old with his increased interest in 'programming' and
'robotics'... If not feasible, he wants to use the graphical-tool that comes
with it...
Would you suggest:
1. Using
Hi all,
While building the latest 2.4.1 version for Linux/RH9, I wanted to enable
IPV6
support (sockets). So, I ran the configure command ./configure --enable-ipv6
Then I ran the 'make' and 'make altinstall' commands.
When I checked the .py sources (in Lib folder) thru grep for 'ipv6', I see
the
Hi folks,I have a webserver based on mini_httpd
v1.19(http://www.acme.com/software/mini_httpd/).I'd like to run some
python-based CGI scripts via this webserver on an RH9 system.In theory, with
the right env settings, Ishould be able to launch mini_httpd like so:
mini_httpd -c *.pyand be able to ru
We found the answer, just in case one was looking for it...
I turns out that setting the environment params (CGI_PATH & CGI_LD_LIB_PATH)
is not sufficient. One has to still add the path entry to the script
itself... like so: #! /python2.4
May also work with ensuring env variable PYTHONPATH is set
On Apr 10, 2005 11:08 PM, Bengt Richter <[EMAIL PROTECTED]> wrote:
> On Sat, 9 Apr 2005 19:22:16 +0200, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote:
> open('mywidget_v2.txt','w').write(repr(mywidget.textview)
How about a pickle hook?
You'd just unpack the pickle data, and end up with a pointer
Hi! I hope you can help me.
I'm writting a simple piece of code.
I need to keep asking for a number until it has all this specifications:
- It is a number
- It's lenght is 3
- The hundred's digit differs from the one's digit by at least two
My problem is that I enter a valid number like: 123, 32
MRAB your solution is good thank you I will use it.
Terry Eddy I saw my mistake about for example 2 <= 2, I think it's easier to
use break in this case thank you!
--
https://mail.python.org/mailman/listinfo/python-list
Hello, I'm making Python mini-projects and now I'm making a Latin Square
(Latin Square: http://en.wikipedia.org/wiki/Latin_square)
So, I started watching example code and I found this question on Stackoverflow:
http://stackoverflow.com/questions/5313900/generating-cyclic-permutations-reduced-la
Hi, I'm doing Python exercises and I need to write a function to flat nested
lists
as this one:
[[1,2,3],4,5,[6,[7,8]]]
To the result:
[1,2,3,4,5,6,7,8]
So I searched for example code and I found this one that uses recursion (that I
don't understand):
def flatten(l):
ret = []
for i
Hello Folks,
Please go through below job description and send me updated resume to
amr...@uniteditinc.com
Job Title: OBIEE Developer and Administrator
Location: Seattle WA
Duration: 12+months
Experience: 10+ years only
Job Description:
* maintain the Oracle Business Intelligence Enterp
Ok; this is a bit esoteric.
So finally is executed regardless of whether an exception occurs, so states the
docs.
But, I thought, if I from my function first, that should take
precedence.
au contraire
Turns out that if you do this:
try:
failingthing()
except FailException:
return 0
fina
Ok; thanks for the underscore and clarification. Just need to adjust my
thinking a bit.
--
https://mail.python.org/mailman/listinfo/python-list
online data entry jobs
http://venuonlinejobs.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
Hi All
I'm new to python (4 days J) and was wondering if anyone out there can help
me
I am trying to get the time zones for latitude and longitude coordinates
but am having a few problems
The mistakes are probably very basic
I have a table in a database with around 600 rows. Each row
I've got a python utility that I want to change my shell's current
directory based on criteria it finds. I've scoured google and the
python cookbook and can't seem to figure out if this is even possible.
So far, all my attempts have changed the current python session only.
Am I going to have to
Many thanks for the sanity check. Just wanted to check with the gurus
before heading down another path.
-A
On 12/18/05, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Sun, 18 Dec 2005 15:53:11 -0800, "Andy B." <[EMAIL PROTECTED]>
> declaimed the following in comp
Hi all,would anyone give me a hint how to get SOAP data as plain XML and not as complex datathis is sample code: myProxy = SOAPpy.SOAPProxy(MY_SERVICE_PATH, header = my_headers) query = SOAPpy.structType
() result = myProxy.callMyProcedure(query) result returned as complex data, but i need pla
i hang my head in shame.
On 10/12/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> At Thursday 12/10/2006 17:44, [EMAIL PROTECTED] wrote:
>
> > > > > fun median {
> > > > > var x = 0.
> > > > > while( *p++) {
> > > > > if( (*p) > x) x = *p.
> > > > > }
> > > > > return x.
> > > > >
It works! Gasp!
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
I need to get absolute path name of a file that's in the same dir as
the exe, however the Current Working Directory is changed to somthing
else.
I turn my script into an executable with py2exe, then I create a
shortcut to the EXE on the desktop. I change the "Start In" variable of
the shortcut "C:
I was wondering if there was a way to take a txt file and, while
keeping most of it, replace only one line. See, I'd have a file like:
Tommy 555
Bob 62
Joe 529
And I'd want to set it to be:
Tommy 555
Bob 66
Joe 529
Is there any easy way to do this?
--
http://mail.python.org/mailman/listinfo/p
bruno at modulix wrote:
> Tommy B wrote:
> > I was wondering if there was a way to take a txt file and, while
> > keeping most of it, replace only one line.
>
>
> This is a FAQ (while I don't know if it's in the FAQ !-), and is in no
> way a Python problem. F
I'm currently working on a casino script for an IRC bot. I was going to
make a flat file database, but I decided to make it sqlite after some
suggestions. I'm using pysqlite.
http://pastebin.com/764315 < Source. The lines that have @@ (pastebin
doesn't like me) in front of them are important.
ERR
Amit Khemka wrote:
> On 23 Aug 2006 21:46:21 -0700, damacy <[EMAIL PROTECTED]> wrote:
>
>> hi, sandra.
>>
>> no, it's not as complicated as that. all i want to do is to load a
>> database onto different machines residing in the same network. i hope
>> there is a way doing it. or perhaps i have a
In comp.unix.solaris Kareem840 <[EMAIL PROTECTED]> wrote:
> Hello. Unfortunately, I am in need of money to pay my credit card
> bills. If you could spare just $1, I would be grateful. I have a Paypal
> account. [EMAIL PROTECTED] I swear this will go to my card
> balances. Thank you.
Better idea. S
Kareem840 wrote:
> Hello. Unfortunately, I am in need of money to pay my credit card
> bills. If you could spare just $1, I would be grateful. I have a Paypal
> account. [EMAIL PROTECTED] I swear this will go to my card
> balances. Thank you.
>
I accidentally sent $2, could you please refund the e
I was initally annoyed that "Dive into Python" has the UserDict, but it
was so
easy to discover it was deprecated
http://docs.python.org/lib/module-UserDict.html
(althought the term 'deprecated' is not specifically used), that anyone
on the
ball (the OP seemed to know) would not based their next bi
ocess to import the index and or it
explode in some point or they simply kill it after some time). and
they obviously don't run that process very often.
Now... anyone has some implementation of pygoogle.py that scraps the
regular html service instead of using SOAP? :)
Gabriel B.
--
http://mai
2006/2/25, Sybren Stuvel <[EMAIL PROTECTED]>:
> Lad enlightened us with:
> > Body='Rídících Márinka a Školák Kája
> > Marík'.decode('utf8').encode('windows-1250')# I use the text written
> > in my editor with utf-8 coding, so first I decode and then encode to
> > windows-1250
what does a string be
A couple questions:
1- what is j?
2- what does the rows[x][y] object look like? I assume it's a dict
that has a "rowspan" key. Can rows[x][y]["rowspan"] sometimes be 0?
Perhaps you're looking for something like this:
rowgroups = []
rowspan = 0
for i in range( len(rows) ):
if rowspan <= 0:
i have the following code:
Ui.py:
import Tkinter as Tk
import UiMainScreen
UiMainScreen.py:
class UiMainScreen( Tk.Frame ):
and i get the following error:
File "UiMainScreen.py", line 1, in ?
class UiMainScreen(Tk.Frame):
NameError: name 'Tk' is not defined
isn't Tk supposed to b
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
In comp.lang.perl.misc [EMAIL PROTECTED] wrote:
> Me and my buddy made a website called www.stupidpinheads.com, its
> basically a free forum and free blog driven web site dedicated as a
> source people can goto to find out how to clean and remove stains from
> pretty much anything. Problem is, as
Hi
My question is about how special methods are stored internally in
Python objects.
Consider a new-style class which implements special methods such as
__call__ and __new__
class C(type):
def __call__(...):
class B:
__metaclass__ = C
b= B()
The
> Yes, special methods populate the slots in the structures which
Python
> uses to represent types. Objects/typeobject.c in the Python source
> distribution does the hard work, particularly in function type_new
Thanks for that quick response. I am quite comfortable with C code
and am try
Consider a new-style class
class rabbit(object):
def __init__(self,c):
self.color = c
r1=rabbit("blue")
r2=rabbit("purple")
Which C struct in the Python implementation is used to represent the
instances c1 and c2 of the
new-style class? I understand that when the class 'rabb
I've been playing with descriptors lately. I'm having one problem I
can't seem to find the answer to. I want to assign a descriptor to a
list of attributes. I know I should be able to add these somewhere in
the class's __dict__, but I can't figure out where. Here's some code:
class MyDesc(obje
1 - 100 of 2735 matches
Mail list logo