start_time = 2014-7-1
revlines = commands.getoutput(git log --pretty=format:'%ad:%an'
--date=short --since='%s' --no-merges %start_time).strip().split('\n')
Traceback (most recent call last):
File stdin, line 1, in module
ValueError: unsupported format character 'a' (0x61) at index 26
if I
On Apr 21, 2015 12:27 AM, lei yang yanglei.f...@gmail.com wrote:
start_time = 2014-7-1
revlines = commands.getoutput(git log --pretty=format:'%ad:%an'
--date=short --since='%s' --no-merges %start_time).strip().split('\n')
Traceback (most recent call last):
File stdin, line 1, in module
On 21/04/15 06:22, lei yang wrote:
start_time = 2014-7-1
revlines = commands.getoutput(git log --pretty=format:'%ad:%an'
--date=short --since='%s' --no-merges %start_time).strip().split('\n')
Traceback (most recent call last):
File stdin, line 1, in module
ValueError: unsupported format
On 9/30/2012 3:31 PM, Mark Rourke wrote:
hello, I am a college student in my first year of computer
programming, I was wondering if you could look at my code to see whats
wrong with it.
Welcome to the tutor list. I assume this is your first visit. Why?
because we always request that you tell
Shurui Liu (Aaron Liu) wrote:
# geek_translator3.py
# Pickle
import pickle
This is where you told it to load import.py. Normally, that just
quietly loads the standard module included with your system.
snip, rest of source
When I run it, the system gave me the feedback below:
Traceback
OK, can you tell me import.py is empty or not? If it's not an empty
document, what's its content?
On Thu, Apr 1, 2010 at 5:45 AM, Dave Angel da...@ieee.org wrote:
Shurui Liu (Aaron Liu) wrote:
# geek_translator3.py
# Pickle
import pickle
This is where you told it to load import.py.
Shurui Liu (Aaron Liu) shuru...@gmail.com wrote
OK, can you tell me import.py is empty or not? If it's not an empty
document, what's its content?
On Thu, Apr 1, 2010 at 5:45 AM, Dave Angel da...@ieee.org wrote:
# Pickle
import pickle
This is where you told it to load import.py. Normally,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andre Roberge wrote:
Perhaps the following might be helpful:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/f1b60f4739591d6b/4417f807848b4b5d?lnk=gstq=launchingrnum=4#4417f807848b4b5d
(if the link does not work, google
Jason Coggins [EMAIL PROTECTED] wrote
I have the following function in a program:
os.popen('filename.py')
So what happened?
Did you get an error message? If so what?
What I want to do is launch the program in the os.popen() function.
Do you want to lasunch it or interact with it.
If its
I have the following function in a program:
os.popen('filename.py')
What I want to do is launch the program in the os.popen() function. The file I
am trying to launch is located in the same directory as the program the
function is contained in. I also use Linux if that makes a difference.
Perhaps the following might be helpful:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/f1b60f4739591d6b/4417f807848b4b5d?lnk=gstq=launchingrnum=4#4417f807848b4b5d
(if the link does not work, google for launching python program
cross-platform or go to
Hi all,
Here's one of the messages that pops up:
Traceback (most recent call last): File "D:\password.py", line
77, in ? filename == raw_input("Filename to load:
")NameError: name 'filename' is not defined
Why is it popping up whenever I try to load a file?
Here's the latest code:
# This
You wrote filename == raw_input(Filename to load: ) instead of
filename = raw_input(Filename to load: )
HTH,
Wolfram
Nathan Pinno wrote:
Hi all,
Here's one of the messages that pops up:
Traceback (most recent call last):
File D:\password.py, line 77, in ?
filename ==
Message -
From: Wolfram Kraus [EMAIL PROTECTED]
To: tutor@python.org
Sent: Thursday, July 07, 2005 1:02 AM
Subject: Re: [Tutor] Why is this error showing up? (Original Message:
(Tutor) What's wrong with this code?) Ignore previous post.
You wrote filename == raw_input(Filename
PinnoTo: tutor@python.org
Nathan PinnoSent: Thursday, July 07, 2005 1:02 AM
Nathan PinnoSubject: Re: [Tutor] Why is this error showing up? (Original
Message:
Nathan Pinno (Tutor) What's wrong with this code?) Ignore previous post.
Nathan Pinno
Nathan Pinno
Nathan Pinno You wrote
showing up? (Original Message:
(Tutor) What's wrong with this code?) Ignore previous post.
Hi!
on Thu, 7 Jul 2005 01:13:48 -0600 Nathan Pinno
[EMAIL PROTECTED] wrote :
-
Nathan Pinno
On Thu, 2005-07-07 at 00:54 -0600, Nathan Pinno wrote:
Hi all,
Here's one of the messages that pops up:
Traceback (most recent call last):
File D:\password.py, line 77, in ?
filename == raw_input(Filename to load: )
NameError: name 'filename' is not defined
Why is it popping
And please, please, post the whole error message, as it specifies where the error occurred.
Oh, yes, and I think I answered this -
I meant to ask why the main part after the password is not working right.
No one has answered that yet. When I run the code and try to load a file
that has been
Hello!
I just looked a little over the code, what it is perhaps ment to do now.
As allready mentioned by Ziyad in your former post:
just call main_menu()
don't print main_menu()
This calls the funciton main_men(), which prints it menu and
after this the print-Command in this line
On 7/7/05, Nathan Pinno [EMAIL PROTECTED] wrote:
Hi all,
I meant to ask why the main part after the password is not working right.
No one has answered that yet. When I run the code and try to load a file
that has been saved, a TypeError appears. How do I fix the code so no more
errors
From the program::
answer = raw_input(What is the password? )
while password != answer:
print The password is incorrect.
If the user submits a wrong password, the while-loop will be entered.
The program prints The password is incorrect. then tests whether the
password is still not equal to
Andre Engels said unto the world upon 05/07/2005 02:44:
From the program::
answer = raw_input(What is the password? )
while password != answer:
print The password is incorrect.
snip Andre's description of the problem with the above OP's code
I think you intended to make it so that
the
What's wrong with this code? I'm using 2.2.3 if this helps.
#This is for a password protected program to store passwords.
password = "hello"print "The Password Program"print "Copywrite
2005. All Rights Reserved."printanswer = raw_input("What is the
password? ")while password !=
What error messages are you getting? Please post the full message.On 7/5/05, Nathan Pinno [EMAIL PROTECTED]
wrote:
What's wrong with this code? I'm using 2.2.3 if this helps.
#This is for a password protected program to store passwords.
password = helloprint The Password
Also -
menu_choice =
input(Choose an option: )
input() is always bad. Use int(raw_input(Choose an option: ))
instead. input() evaluates your input as a Python _expression_ - I could
select 9 by entering 5+4
or, I could enter sys.exit() and drop to DOS (or whatever it's running
on.) or far
25 matches
Mail list logo