Regards.
On my system:
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
on win32, Windows XP
I have this problem: n = 61409 + 1 data = 'x' * n
print data
Traceback (most recent call last):
File "xxx", line xxx, in ?
print data
IOError: [Errno 12] Not enough space
Can someone reproduce this bug?
I begin to think that my system is messed up...
Thanks Manlio Perillo 17 2841
Manlio Perillo wrote: Regards.
On my system: Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32, Windows XP
I have this problem:
n = 61409 + 1 data = 'x' * n print data
Traceback (most recent call last): File "xxx", line xxx, in ? print data IOError: [Errno 12] Not enough space
Can someone reproduce this bug?
Not here, but it's a bipro amd64 with a couple Mb of ram !-)
(for the record, it works fine for far greater values, ie n = 128000000)
I begin to think that my system is messed up...
<troll>
OF course it's messed up, else it wouldn't be a real Windows box !-)
</troll>
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom. gro'.split('@')])"
That code works here.
Python2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on win32
It's Windows XP, Pentium 4, unknown amount of RAM. I'm running python.exe in a
console window. It also worked in IDLE.
Jeff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDhHMuJd0 1MZaTXX0RArcvAK Cfg5BwudQXHtvWT Xxj6R8BBb14eQCe OfN1
RdsnJ9yHOreKL7W Br2qVA2A=
=0+zD
-----END PGP SIGNATURE-----
Manlio Perillo wrote: Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32, Windows XP
I have this problem:
n = 61409 + 1 data = 'x' * n print data
Traceback (most recent call last): File "xxx", line xxx, in ? print data IOError: [Errno 12] Not enough space
errno 12 is ENOMEM (that is, the system did not have enough memory
to finish an operation).
is the above a complete interpreter session? if it is, why did you xxx out
the filename (<stdin>) and line number?
</F>
On Wed, 23 Nov 2005 14:59:45 +0100, "Fredrik Lundh"
<fr*****@python ware.com> wrote: Manlio Perillo wrote:
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32, Windows XP
I have this problem:
> n = 61409 + 1 > data = 'x' * n> print data
Traceback (most recent call last): File "xxx", line xxx, in ? print data IOError: [Errno 12] Not enough space
errno 12 is ENOMEM (that is, the system did not have enough memory to finish an operation).
....
However I think the error message is not a good one.
Better a "Not enough memory"
is the above a complete interpreter session? if it is, why did you xxx out the filename (<stdin>) and line number?
I put these instructions in a script and executed it (from the
console).
The same problem with a complete interpreter session.
Regards Manlio Perillo
On Wed, 23 Nov 2005 07:48:30 -0600, je****@unpython ic.net wrote: That code works here.
Python2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on win32
It's Windows XP, Pentium 4, unknown amount of RAM. I'm running python.exe in a console window. It also worked in IDLE.
Jeff
Thanks.
So, it's seem to be a specific problem of Windows XP(?).
Nobody can test it on a Windows 98/2000 machine?
Regards Manlio Perillo
On 2005-11-23, Manlio Perillo <NO************ ******@libero.i t> wrote: On Wed, 23 Nov 2005 07:48:30 -0600, je****@unpython ic.net wrote:
That code works here.
Python2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on win32
It's Windows XP, Pentium 4, unknown amount of RAM. I'm running python.exe in a console window. It also worked in IDLE.
Jeff
Thanks. So, it's seem to be a specific problem of Windows XP(?).
Nobody can test it on a Windows 98/2000 machine?
Works fine under Windows Me with 32MB of RAM
ActivePython 2.3.4 Build 233 (ActiveState Corp.) based on
Python 2.3.4 (#53, Oct 18 2004, 20:35:07) [MSC v.1200 32 bit (Intel)] on win32
--
Grant Edwards grante Yow! Alright,
at you!! Imitate a WOUNDED
visi.com SEAL pleading for a PARKING
SPACE!!
Manlio Perillo wrote: >> print data
Traceback (most recent call last): File "xxx", line xxx, in ? print data IOError: [Errno 12] Not enough space
errno 12 is ENOMEM (that is, the system did not have enough memory to finish an operation).
However I think the error message is not a good one. Better a "Not enough memory"
the message text is provided by the operating system (or rather, by
the C library). I'm not sure rewriting error messages is a good thing...
(if Python itself runs out of memory, it'll raise a MemoryError instead)
</F>
Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on
win32
No problems on Windows 2000 Pro with 512MB of RAM
Manlio Perillo wrote: So, it's seem to be a specific problem of Windows XP(?).
Nobody can test it on a Windows 98/2000 machine?
works fine on assorted XP and 2000 boxes for me.
is the "n = 61409 + 1" stuff necessary, or do you get the same
problem for all outputs over a given size ? even if you just do,
say,
print '*'*61410
? does print '*'*61409 work? is it always the same number, or
does it vary depending on, say, what other programs you're using,
how much you've already printed to the console, etc. are you
using a standard cmd.exe in a standard console? no cygwin or
other oddities?
</F> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Oz |
last post by:
This is long. Bear with me, as I will really go through all the convoluted
stuff that shows there is a problem with streams (at least when used to
redirect stdout).
The basic idea is that my application (VB.NET) will start a process,
redirect its stdout and capture that process' output, displaying it in a
window.
I've written a component for this, and a test application for the component.
It allows me to specify a command to execute,...
|
by: Edd Dawson |
last post by:
Hi. I have a strange problem involving the passing of command line
arguments to a C program I'm writing. I tried posting this in
comp.programming yesterday but someone kindly suggested that I'd have
better luck here. So here goes!
My program ignores any command line arguments, or at least it's
supposed to. However, when I pass any command line arguments to the
program, the behaviour of one of the functions changes mysteriously. I
have...
|
by: Diego |
last post by:
Hello. I need help.
I'm writing an application that requires audio recording and I have decided
to use waveform audio interface.
I'm able to process WIM_DATA message but when i call waveInStop the buffer
is not marked as done until it's full. The documentation says that calling
the sequence
WaveinStop(HWAVEIN) we stop recording marking a buffer as done, end the
member dwbyterecorded contains the amount of data.
why calling WaveInstop...
|
by: Dox33 |
last post by:
I ran into a very strange behaviour of raw_input().
I hope somebody can tell me how to fix this.
(Or is this a problem in the python source?)
I will explain the problem by using 3 examples. (Sorry, long email)
The first two examples are behaving normal, the thirth is
strange.......
I wrote the following flabbergasting code:
#-------------------------------------------------------------
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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,...
|
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,...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |