Hi,
I'm a Python Newbie. Probably, this is a simple question.
I've a function that offers a ZIP-file for download:
def download_cert(form, config):
cn = form['cn'].value
serial = pki.util.serial_from_cn(config, cn)
files = pki.util.cert_files(config, cn, serial, True)
try:
On 24/04/2014 10:41, Alan Gauld wrote:
On 24/04/14 00:14, Martin wrote:
If I run from a command prompt, however, I get
C:\Users\Martin\Documents\College\python>python pickle.py
You have called your file pickle.py.
So when you try to import pickle the interpreter sees your file first
and im
On 24/04/14 20:09, Chris wrote:
for file in files:
zip.write(file, path.basename(file))
zip.close() (1)
print open(name).read() (2)
The ZIP file on the server is okay (1), but when it's sent to the client
(2), there's a linefeed in the last line. This makes the zi
Chris Wrote in message:
> Hi,
>
> I'm a Python Newbie. Probably, this is a simple question.
But what is your context? Your Python version (apparently 2.x,
since you're using print as a statement, rather than a function)?
What os, and what is stdout pointing to, since you're pretending
that y
hey guys,
i am trying to understand this code pasted bellow,
1. what is line means? mask[c] |= bit
2. then the line bit *=2, this increment the bit to 2 for each character?
3. what is this line means? accept_state = bit //2
4. lastly, what is this scary line means? D = (( D << 1) + 1) & masks [ c
d
On Apr 25, 2014 7:14 AM, "rahmad akbar" wrote:
>
> hey guys,
> i am trying to understand this code pasted bellow,
> 1. what is line means? mask[c] |= bit
This bitwise or. It sets the rightmost bit in masks[c]
> 2. then the line bit *=2, this increment the bit to 2 for each characters
This doubles
You both posted in html, rather than text mode.
Joel Goldstick Wrote in message:
>
>
>
> 1. what is line means? mask[c] |= bit
> This bitwise or. It sets the rightmost bit in masks[c]
Only the first time through the loop, when bit == 1
--
DaveA
Thanks joel
Could you elaborate more on bitwise, and why do we need to double bit. I
experimented with some input
ShiftAnd('pattern', 'textcontainingpatternandpatern')
print out the (masks, accept_state), looks like bellow, the rest make sense
couse the numbers are doubled, but the 't' goes 4+8
I want to program. I enjoy programming and am willing to put in time
to do this.When I try to get started with programming I realize how
difficult it is to find the information worthy of learning.
Programming is broad and the possibilities are endless, as well as the
ammount of learning material. I
On 25/04/14 12:00, Leo Nardo wrote:
What i think would be helpful is an outline of all
tactics and stuff I need to learn to complete a certain task that i am
interested in.
That's true provided the task is not too complicated to start with...
This task is to write a very basic botting progra
Is there a way to open a new file script using only the python shell? I
have both updated versions of python (2.7, 3.1)
-Luky
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/
Hello,
I am new to Python. I mean completely new and we're working on this problem set
where they give us specs and we have to build something based off these specs.
I have no idea what they're asking. Could someone help get me started on the
path to figuring this out?
Below is the question:
Dear Sir(s):
My name is Stephen W. Mik,my email address is "mik.step...@yahoo.com"; and
I am having trouble logging on to the "Python Tutor Site". I desperately need
HELP with a Python 3.4.0 "Guess A Number" Homework Assignment 4 which is due
VERY SOON.. I recognize,and acknowledge,that I am
On 25/04/14 20:52, jordan smallwood wrote:
Hello,
I am new to Python. I mean completely new and we're working on this
problem set where they give us specs and we have to build something
based off these specs. I have no idea what they're asking.
Its pretty clear.
They want you to build a module
You can get python 3.4 to work on your mac, but it has 2.5 or 2.4 which the
OS uses and things can get very messed up if you don't know what you are
doing. You should use virtualbox to run virtual OS's on your mac without
messing up your main computer.
You should probably describe what kind of err
On 25/04/14 18:09, Luky Romero wrote:
Is there a way to open a new file script using only the python shell?
> I have both updated versions of python (2.7, 3.1)
What do you mean by open a new file script?
What do you mean by script?
What do you mean by the python shell?
There are several possib
On 25/04/14 21:34, Stephen Mik wrote:
Dear Sir(s):
My name is Stephen W. Mik,my email address is
"mik.step...@yahoo.com"; and I am having trouble logging on to the
"Python Tutor Site".
Do you mean the mailing list admin site?
You seem to have succeeded because your email address is
registe
Leo Nardo Wrote in message:
> I want to program. I enjoy programming and am willing to put in time
> to do this.When I try to get started with programming I realize how
> difficult it is to find the information worthy of learning.
> I would like to write the
> program in python, and I do not nee
rahmad akbar Wrote in message:
>
>
to Dave,
> i do i do the text mode? i had no idea this was on html
Whatever mail program you're using is apparently defaulting to
html. Find a menu item that specifies 'text' or 'plain text' or
'text only'.
Or tell us what email program you're using, w
jordan smallwood Wrote in
message:
Do you know what a module is? Can you use a text editor to create one?
Do you know what a function looks like? Try writing the first one
they asked. Post it here, along with some test code showing it
works, or describe what goes wrong.
And while you're
From: Luky Romero
>To: Alan Gauld
>Sent: Saturday, 26 April 2014, 0:28
>Subject: Re: [Tutor] Opening a new script
>
>
>
>By script I mean the text editor that allows you to modify code,
>and by shell, I mean the portion of the IDLE that allows you to
>use the interpreter and the interactive p
Hi,
I need help with coding for the problem below. I am new in this area, so
needed help. If anyone can help me program the below scenario, I will be
thankful.
I have this file:
1,3,5,0.03
2,3,5,5,4,0.11
3,3,5,5,4,5,8,0.04
2,5,8,7,8,0.04
3,14,10,14,13,17,13,0.04
1,14,18,0.06
4,10,13,
Hi,
I want to know how many sheets can be created in Excel using xlrd package.
Thank you
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
23 matches
Mail list logo