Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #106324
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Michael Selik <michael.selik@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: [Beginner] - Hanging in the code, can't figure out what's wrong |
| Date | Sat, 02 Apr 2016 22:37:32 +0000 |
| Lines | 46 |
| Message-ID | <mailman.378.1459636671.28225.python-list@python.org> (permalink) |
| References | <66afb6f1-ca2b-4f9b-a1ec-ed255fa3030f@googlegroups.com> <ndpfno$fdh$1@dont-email.me> <e2cbbcf8-86f4-4c14-989e-1d8046d4215c@googlegroups.com> <ndpgql$im4$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de DdKHKjicIAfmb9Mspotx8QeuHM3ClxCUPSZ45LtRAZNA== |
| Return-Path | <michael.selik@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:: [': 0.03; 'resulting': 0.04; '(python': 0.05; 'test,': 0.05; 'subject:code': 0.07; 'filename.': 0.09; 'question?': 0.09; 'python': 0.10; '>>>': 0.15; 'file,': 0.15; '2016': 0.16; '6:30': 0.16; 'clues': 0.16; 'hangs.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'return,': 0.16; 'wrote:': 0.16; '>': 0.18; 'input': 0.18; '>>>': 0.20; 'hey': 0.20; 'to:2**1': 0.21; '8bit%:5': 0.23; 'sat,': 0.23; 'skip:( 40': 0.23; 'header:In- Reply-To:1': 0.24; 'followed': 0.27; 'message-id:@mail.gmail.com': 0.27; 'subject:what': 0.29; 'tutorial': 0.29; "i'm": 0.30; 'url:mailman': 0.30; 'code': 0.30; 'becomes': 0.30; 'supposed': 0.31; 'url:python': 0.33; 'url:listinfo': 0.34; 'file': 0.34; 'skip:& 20': 0.35; 'received:google.com': 0.35; 'path': 0.35; 'asking': 0.35; 'but': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'skip:& 10': 0.37; "won't": 0.38; 'received:209': 0.38; 'wrong': 0.38; 'does': 0.39; 'subject:the': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'where': 0.40; 'press': 0.61; 'skip:n 10': 0.62; 'saturday,': 0.63; 'more': 0.63; 'picked': 0.66; 'course.': 0.67; 'skip:\xc2 10': 0.67; 'prompt': 0.79; 'online,': 0.83; 'batchelder': 0.84; 'utc-4,': 0.84; 'abc': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=rKV4IyYkjRsNOmyhakJo0++42pTNG/d933h3nE+XMkU=; b=B5m0VqK3tGw8lfYrafbY6EJqnYhvsUSvdJrEwECvkkuuPL+OUL6+Hkn8E78sfmoE1F rh3DfvzFr/aCpuZ4N2wfvILmQKcCjAEqzD+Nu/9EMuCEQk0BYiDG8IQeumLOCyUfIhWl mOqg7RWMcVKpsANrVMqQrT8rRO5M2LSE4H+mbgg5TjvKWzVs3woGox861e/Z/PJCYIjt 5Zb+v4VJ8FSUQLAoPSiHJt71DJXBmKvzIGvH1xP2aj13V59vVqCwqQ6RnSBdX4gdFE0N WpvFUyFWh5k6vwvmhwjfUN9ei/yZ7mnAan8iyYMUuvIFH+TkJF7/1X2BH7V3N7q/fmwL 9JwA== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=rKV4IyYkjRsNOmyhakJo0++42pTNG/d933h3nE+XMkU=; b=NwTvyg2KVJtRpih/oZRqIns0WnCWJNTCZdLLu8JNPGZskLqf20hn808NycR3fy8jIu 7StWDQ1LjgFkNBTormGwUh6+OjeLyAaZopMZzHrjktB9DSks3NDpxM1infmHHSlUv1qG F0QFEVwoCILFD+YymbpG3Rf0JjdvUf12O9w4fPgSQ7KZOf7J5/6Zo3oRblmNNlx6A6tH o3Fa9313x04Rv2xKQq+E3TzosvSab6iOWG42OihdIvQGvrZWQq+vUoNE+sc0fxPd5pA8 /TdfJ27G8/W15uMYG3Cz0npSDWUMPWPIGbRXsHJEdnDSKB826Iqkhmng1zTCa7pwcknC V2xA== |
| X-Gm-Message-State | AD7BkJIgP6O9oo/92u0FgpVrhlF/0C9sMi6tt8IXJmna0FuHznEoNmGemIklKD5QQNHEuoFqsOuqM+20TtgGqQ== |
| X-Received | by 10.140.106.228 with SMTP id e91mr14270385qgf.75.1459636662372; Sat, 02 Apr 2016 15:37:42 -0700 (PDT) |
| In-Reply-To | <ndpgql$im4$1@dont-email.me> |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.21 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:106324 |
Show key headers only | View raw
I might be overlooking something, but raw_input (Python 2) and input
(Python 3) won't return the input from sys.stdin until you type ENTER. Or
did I misunderstand the question?
On Sat, Apr 2, 2016 at 6:30 PM BartC <bc@freeuk.com> wrote:
> On 02/04/2016 23:16, Ned Batchelder wrote:
> > On Saturday, April 2, 2016 at 6:09:13 PM UTC-4, BartC wrote:
> >> On 02/04/2016 22:59, Loop.IO wrote:
> >>> Hey
> >>>
> >>> So I built a keylogger using python as a test, got the code from the
> tutorial online, I want to improve on it to make it more automated, but the
> issue I'm having is it won't create the file until I press return, any
> clues where I'm going wrong?
> >>>
> >>> If I press return it makes the batch file, otherwise it just hangs.
> >>
> >>> name=raw_input ('C:\\Documents\\PythonCoding\\')+'launch2.bat'
> >>
> >> You're asking for a file name to be entered. So that if ABC is pressed,
> >> followed by Enter, it will use:
> >>
> >> C:\Documents\PythonCoding\ABClaunch2.bat
> >
> > That line of code will prompt the user:
> >
> > C:\Documents\PythonCoding\
> >
> > then the user enters ABC<enter>:
> >
> > C:\Documents\PythonCoding\ABC
> >
> > and raw_input returns "ABC", so name becomes "ABClaunch2.bat".
>
> Yes, of course. I ran the code and picked up the wrong line even though
> I printed out 'name'!
>
> But, it does look as though that path is supposed to form part of the
> resulting filename.
>
> --
> Bartc
> --
> https://mail.python.org/mailman/listinfo/python-list
>
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[Beginner] - Hanging in the code, can't figure out what's wrong "Loop.IO" <thisisink01@gmail.com> - 2016-04-02 14:59 -0700
Re: [Beginner] - Hanging in the code, can't figure out what's wrong BartC <bc@freeuk.com> - 2016-04-02 23:08 +0100
Re: [Beginner] - Hanging in the code, can't figure out what's wrong Ned Batchelder <ned@nedbatchelder.com> - 2016-04-02 15:16 -0700
Re: [Beginner] - Hanging in the code, can't figure out what's wrong BartC <bc@freeuk.com> - 2016-04-02 23:27 +0100
Re: [Beginner] - Hanging in the code, can't figure out what's wrong "Loop.IO" <thisisink01@gmail.com> - 2016-04-02 15:31 -0700
Re: [Beginner] - Hanging in the code, can't figure out what's wrong BartC <bc@freeuk.com> - 2016-04-03 01:12 +0100
Re: [Beginner] - Hanging in the code, can't figure out what's wrong Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-04-03 01:38 +0100
Re: [Beginner] - Hanging in the code, can't figure out what's wrong "Loop.IO" <thisisink01@gmail.com> - 2016-04-03 12:52 -0700
Re: [Beginner] - Hanging in the code, can't figure out what's wrong "Loop.IO" <thisisink01@gmail.com> - 2016-04-03 07:41 -0700
Re: [Beginner] - Hanging in the code, can't figure out what's wrong BartC <bc@freeuk.com> - 2016-04-03 16:11 +0100
Re: [Beginner] - Hanging in the code, can't figure out what's wrong Rustom Mody <rustompmody@gmail.com> - 2016-04-03 08:25 -0700
Re: [Beginner] - Hanging in the code, can't figure out what's wrong BartC <bc@freeuk.com> - 2016-04-03 17:04 +0100
Re: [Beginner] - Hanging in the code, can't figure out what's wrong "Loop.IO" <thisisink01@gmail.com> - 2016-04-03 12:31 -0700
Re: [Beginner] - Hanging in the code, can't figure out what's wrong "Loop.IO" <thisisink01@gmail.com> - 2016-04-03 12:36 -0700
Re: [Beginner] - Hanging in the code, can't figure out what's wrong Michael Selik <michael.selik@gmail.com> - 2016-04-03 19:46 +0000
Re: [Beginner] - Hanging in the code, can't figure out what's wrong BartC <bc@freeuk.com> - 2016-04-03 21:21 +0100
Re: [Beginner] - Hanging in the code, can't figure out what's wrong "Loop.IO" <thisisink01@gmail.com> - 2016-04-03 14:07 -0700
Re: [Beginner] - Hanging in the code, can't figure out what's wrong Erik <python@lucidity.plus.com> - 2016-04-03 20:46 +0100
Re: [Beginner] - Hanging in the code, can't figure out what's wrong "Loop.IO" <thisisink01@gmail.com> - 2016-04-03 12:54 -0700
Re: [Beginner] - Hanging in the code, can't figure out what's wrong Erik <python@lucidity.plus.com> - 2016-04-03 21:15 +0100
Re: [Beginner] - Hanging in the code, can't figure out what's wrong "Loop.IO" <thisisink01@gmail.com> - 2016-04-03 13:25 -0700
Re: [Beginner] - Hanging in the code, can't figure out what's wrong Erik <python@lucidity.plus.com> - 2016-04-03 22:26 +0100
Re: [Beginner] - Hanging in the code, can't figure out what's wrong "Loop.IO" <thisisink01@gmail.com> - 2016-04-03 14:49 -0700
Re: [Beginner] - Hanging in the code, can't figure out what's wrong Erik <python@lucidity.plus.com> - 2016-04-03 23:07 +0100
Re: [Beginner] - Hanging in the code, can't figure out what's wrong Ben Finney <ben+python@benfinney.id.au> - 2016-04-05 06:49 +1000
Re: [Beginner] - Hanging in the code, can't figure out what's wrong Michael Selik <michael.selik@gmail.com> - 2016-04-02 22:37 +0000
Re: [Beginner] - Hanging in the code, can't figure out what's wrong Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-04-03 01:11 +0100
Re: [Beginner] - Hanging in the code, can't figure out what's wrong "Loop.IO" <thisisink01@gmail.com> - 2016-04-02 15:23 -0700
Re: [Beginner] - Hanging in the code, can't figure out what's wrong Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-04-03 01:08 +0100
Re: [Beginner] - Hanging in the code, can't figure out what's wrong "Loop.IO" <thisisink01@gmail.com> - 2016-04-03 07:45 -0700
csiph-web