473,503 Members | 8,959 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Raw_input limit

52 New Member
Okay fellow scripters, I have a problem. It's small but annoying. See, I wrote this program for encrypting messages. The program itself runs like a charm, except for one major issue. I'm sure I've read something about this somewhere else, but I just can't think of where, so I turn to thescripts for help.
My program uses the raw_input() thing, and it works perfectly, until I try to encrypt a piece of text that is just too big. So I figure there is some limit on the raw_input() that I don't know about. I checked if it might be the terminal's fault (I'm using terminal in Mac OS X Leopard) by just copying the entire message into the terminal. That went flawlessly, so it's something with python.

Too long and you didn't read it? I need to bypass the limit in the raw_input() command so that I can enter large amounts of text, and I'm asking what I need to put in my script to do so.
I'm using MacPython 2.5, and switch between textedit and idle for editing my script if that matters.
Mar 27 '08 #1
1 2664
BurnTard
52 New Member
Edit:
I ran the module in Idle after I just got too frustrated with there being seemingly no info on this on the internet, and lo and behold: It works flawlessly! So either it's the integrated version of python in Leopard that has the limit on it, or there's something fishy with terminal. In either case, it's not really something I expect help with from the scripts.
Thank you for being here though ^^
Mar 28 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
7678
by: Radioactive Man | last post by:
anyone know of a function like "raw_input", which collects a string from the user entry, but one where I can set a time limit, as follows: time_limit = 10 # seconds user_answer =...
2
4365
by: User | last post by:
Anyone know of a function like raw_input(), but with a built-in or user-specified time limit? Ideally, it would return an empty string ('') and resume processing if the user didn't enter something...
0
1810
by: dale | last post by:
Python newbie disclaimer on I am running an app with Tkinter screen in one thread and command-line input in another thread using raw_input(). First question - is this legal, should it run...
1
2933
by: JerryKreps | last post by:
Hi, folks -- I'm a Python pup. As you can see from the session copied at the end of this post, I have the latest version of Python, and I've been using the Editor-Shell of the latest version of...
21
8710
by: planetthoughtful | last post by:
Hi All, As always, my posts come with a 'Warning: Newbie lies ahead!' disclaimer... I'm wondering if it's possible, using raw_input(), to provide a 'default' value with the prompt? I would...
7
2025
by: Mike Kent | last post by:
It's often useful for debugging to print something to stderr, and to route the error output to a file using '2>filename' on the command line. However, when I try that with a python script, all...
8
5271
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....
4
2290
by: chemicalclothing | last post by:
Hi. I'm very new to Python, and so this is probably a pretty basic question, but I'm lost. I am looking to limit a float value to a number between 0 and 100 (the input is a percentage). I...
0
1982
al san
by: al san | last post by:
Hello, everyone, any help wil be greatly appreciated. I'm writing code for a japanese learning app in python; so all my japanese strings have are preceeded by 'u' (eg. u'にほんご'); Everthing works...
0
7207
marktang
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,...
0
7095
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...
0
7361
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...
0
7470
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...
0
4693
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...
0
3183
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...
0
1523
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 ...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
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...

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.