473,657 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MultiFile object does not iterate

Why is a MultiFile object not an iterator?
For example if
mfp = multifile.Multi File(fp)I cannot dofor line in mfp:
do_somethingRel ated:MultiFile. next seems badly named.(Somethin g like
next_section would be better.)Is this just historical accident or am I
missing the point?Thanks,Al an Isaac
Aug 10 '05 #1
1 1201
It has no __iter__ method either. I guess 'next' is just a historical
accident.

Should be easy enough to wrap it in your own class though and resolve
this ?

Regards,

Fuzzy
http://www.voidspace.org.uk/python

Aug 10 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
2141
by: Scott Auge | last post by:
I am looking for comments on something that lets me abstract database updates in an object. Lemme explain what I am thinking: Lets say I have an object Person with... SetFirstName() SetLastName()
0
1585
by: Sven Erik Matzen | last post by:
Hi there, I'm searching for a "convinient" way to compile my source into a multifile assembly (multiple files for one assembly). I need this to optimize performance while loading the assembly over the internet (I want to keep the files small and to download only the things that are needed). Is there a way to define inside visual studio what source files to compile into what execurable diles?
12
2775
by: Pollux | last post by:
I'm having trouble doing someting apparently simple. I'm still not very familiar with Visual Studio 2003, so apologies if I've missed something obvious. Basically my problem is the following. I have 2 files that contain each one a very simple class. I compiled them as .netmodules. Both classes are under the same namespace. I then bundled these .netmodules files into a dll. This gives me an assembly of 3 files which was confirmed by...
3
1523
by: Lord2702 | last post by:
Sun. Aug. 22, 2004 2:20 PM PT How to create multifile assembly in Managed Visual C++ ? Using VSIDE. Please do not point me to MSDN pages, I already read those pages, and it only says, that you can create, (but no info, or steps how to create?) it in VSIDE, but no STEPS are given. I want this solution Only and Only in Managed VC++, with the use of VSIDE. Also as VSIDE 2003 is unable to create MakeFile, like VSIDE VC++ 6.0, MakeFile...
13
2154
by: andrea | last post by:
Sorry for the stupid question, I know, but sometimes is necessary starts from the basic. I don't know how to pass the result of a method generated from a DAL class to a BL class returning the results as it is. I mean, for instance, something like this. namespace DAL {
2
1906
by: avenpace | last post by:
Hi, I had error in my script like "sudden EOF in MultiFile readline()" Why such error occur
7
16662
by: Sehboo | last post by:
We have several generic List objects in our project. Some of them have about 1000 items in them. Everytime we have to find something, we have to do a for loop. There is one method which does the searching, but that method receives the object, and the string to search in that object and runs the FOR loop to find the answer. This is taking time because we have to do searching hundres of times. I want to use Hashtable, but the problem...
4
2432
by: everlast | last post by:
Must i use the MAKE utility in linux bash to build multifile projects? I tried to write the usual .h and .cpp files that hold the definition and recspectively the declaration of a function, I included the .h file in my main.cpp and called the function within main. when I used g++ to compile main.cpp there was an error: "undefined reference to fun(int)" Can one use g++ to build multifile projects? Can anyone tell me how to use make, or...
1
1165
by: =?Utf-8?B?aWduaGVucnk=?= | last post by:
In my solution, I have several C# and C++ projects. Since I need them to produce multifile assembly, I use C# and C++ command line compiler. To avoid compile error caused by redundant code in AssemblyInfo.cs in each of the projects, I then created GlobalAssemblyInfo.cs at the solution level, which contains copyright, version number, etc, and have it shared among the projects. I manage to build the solution and get several netmodules and one...
0
8319
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8837
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8739
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8512
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8612
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7347
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.