On 07/25/2013 12:03 PM, CTSB01 wrote:
I have the following code that runs perfectly:
def psi_j(x, j):
rtn = []
for n2 in range(0, len(x) * j - 2):
n = n2 / j
r = n2 - n * j
rtn.append(j * x[n] + r * (x[n + 1] - x[n]))
On 07/24/2013 08:51 PM, David M. Cotter wrote:
update: okay so the python27.dll is in /windows/system32 so ignore that
i've set my include directory correct, so i can compile
i've set my "additional libraries" directory to the "libs" directory (where the ".lib" files are.
(note: NOT including
On 07/22/2013 03:09 PM, san wrote:
How to read/load the cmake file in python and access its elements.
I have a scenario, where i need to load the make file and access its elements.
I have tried reading the make file as text file and parsing it,but its not the
ideal solution
Please let me know h
y load the .ui files:
http://srinikom.github.io/pyside-docs/PySide/QtUiTools/QUiLoader.html
Dave Cook
--
http://mail.python.org/mailman/listinfo/python-list
://qt-project.org/wiki/Packaging_PySide_applications_on_Windows
Dave Cook
--
http://mail.python.org/mailman/listinfo/python-list
On 07/20/2013 02:37 PM, Joshua Landau wrote:
On 20 July 2013 19:04, Dave Angel wrote:
On 07/20/2013 01:03 PM, Joshua Landau wrote:
Still, it seems to me that it should be optimizable for sensible
builtin types such that .translate is significantly faster, as there's
no theoretical extra
On 07/20/2013 01:03 PM, Joshua Landau wrote:
On 20 July 2013 12:57, Serhiy Storchaka wrote:
20.07.13 14:16, Joshua Landau написав(ла):
However, some quick timing shows that translate has a very
high penalty for missing characters and is a tad slower any way.
Really, though, there sh
On 07/19/2013 09:04 PM, Devyn Collier Johnson wrote:
Chris Angelico said that casefold is not perfect. In the future, I want
to make the perfect international-case-insensitive if-statement. For
now, my code only supports a limited range of characters. Even with
casefold, I will have s
On 07/19/2013 05:44 PM, Devyn Collier Johnson wrote:
On 07/19/2013 12:22 PM, Steven D'Aprano wrote:
On Fri, 19 Jul 2013 09:22:48 -0400, Devyn Collier Johnson wrote:
I have some code that I want to simplify. I know that a for-loop would
work well, but can I make re.sub perform all of the below
On 07/19/2013 06:08 PM, Devyn Collier Johnson wrote:
On 07/19/2013 01:59 PM, Steven D'Aprano wrote:
As for the case-insensitive if-statements, most code uses Latin letters.
Making a case-insensitive-international if-statement would be
interesting. I can tackle that later. For now, I on
On 07/19/2013 06:35 PM, Chris Angelico wrote:
On Sat, Jul 20, 2013 at 4:54 AM, wrote:
And do not forget memory. The €uro just become expensive.
sys.getsizeof('
)
26
sys.getsizeof('€')
40
I do not know. When an €uro char need 14 bytes more that
a dollar, I belong to those who thing there
On 07/18/2013 10:16 PM, CTSB01 wrote:
Does something like
def phi_m(x, m):
rtn = []
for n2 in range(0, len(x) * m - 2):
n = n2 / m
r = n2 - n * m
rtn.append(m * x[n] + r * (x[n + 1] - x[n]))
print ('n2 =', n2, ': n ='
Python
--
DaveA
Hi Dave,
There aren't any emails in the Cc slot so I imagine that part is fine, I will
definitely edit the extra quotes though I made the mistake of thinking it was
just google being google.
Exactly. And remember, the list is comp.lang.python, while googlegroups
On 07/18/2013 07:04 PM, CTSB01 wrote:
On Thursday, July 18, 2013 6:49:03 PM UTC-4, Ian wrote:
On Jul 18, 2013 4:23 PM, "CTSB01" wrote:
File "", line 2
... rtn = []
^
The "..." is the continuation prompt from the interactive interpreter, not part
of the code. Don't
On 07/18/2013 12:38 AM, fronag...@gmail.com wrote:
On Thursday, July 18, 2013 9:07:24 AM UTC+8, Dave Angel wrote:
On 07/17/2013 08:44 PM, fronag...@gmail.com wrote:
On Thursday, July 18, 2013 1:38:34 AM UTC+8, Dave Angel wrote:
On 07/17/2013 09:18 AM, fronag...@gmail.com wrote:
On Wednesday
On 07/17/2013 09:50 PM, Chris Angelico wrote:
On Thu, Jul 18, 2013 at 11:44 AM, wrote:
Hi everyone. I am starting to learn python and I decided to start with what I
though was a simple script but I guess now. All I want to do is return what
current network location I am using on my mac. Ever
On 07/17/2013 08:44 PM, fronag...@gmail.com wrote:
On Thursday, July 18, 2013 1:38:34 AM UTC+8, Dave Angel wrote:
On 07/17/2013 09:18 AM, fronag...@gmail.com wrote:
On Wednesday, July 17, 2013 7:42:45 PM UTC+8, Dave Angel wrote:
On 07/17/2013 07:10 AM, fronag...@gmail.com wrote:
On Wednesday
On 07/17/2013 09:18 AM, fronag...@gmail.com wrote:
On Wednesday, July 17, 2013 7:42:45 PM UTC+8, Dave Angel wrote:
On 07/17/2013 07:10 AM, fronag...@gmail.com wrote:
On Wednesday, July 17, 2013 6:07:22 PM UTC+8, Dave Angel wrote:
On 07/16/2013 11:04 PM, fronag...@gmail.com wrote:
Noted on
On 07/17/2013 07:10 AM, fronag...@gmail.com wrote:
On Wednesday, July 17, 2013 6:07:22 PM UTC+8, Dave Angel wrote:
On 07/16/2013 11:04 PM, fronag...@gmail.com wrote:
Noted on the quoting thing.
Regarding the threading, well, first, I'm not so much a programmer as someone
who knows a b
On 07/16/2013 11:04 PM, fronag...@gmail.com wrote:
Noted on the quoting thing.
Regarding the threading, well, first, I'm not so much a programmer as someone
who knows a bit of how to program.
And it seems that the only way to update a tkinter window is to use the
.update() method, which is wh
On 07/16/2013 09:51 PM, fronag...@gmail.com wrote:
If you are going to use googlegroups, then at least bypass its worst
bugs, like double-spacing everything it quotes.
http://wiki.python.org/moin/GoogleGroupsPython
Yeah, I understand that tkinter isn't really designed for 'logic is runn
On 07/16/2013 08:57 PM, fronag...@gmail.com wrote:
Hm. So I've written a GUI in tkinter. I've found two performance issues, I was
hoping someone could point me in the right direction.
Firstly, I'm using an image as a border, namely:
This works, yes, but is annoyingly laggy on an older
On 07/16/2013 01:29 PM, Daniel Kersgaard wrote:
I'm having a little trouble, tried Googling it, but to no avail. Currently, I'm
working on making a snake game, however I'm stuck on a simple border. The only
thing I need help with is when you run the program, the bottom right corner of
the bord
On 07/15/2013 08:30 AM, Chris Angelico wrote:
On Mon, Jul 15, 2013 at 10:26 PM, Jean-Michel Pichavant
wrote:
Basically, I need to transfer numbers (int). Possibly dictionaries like
{string: int} in order to structure things a little bit.
I strongly recommend JSON, then. It's a well-known sys
On 07/15/2013 06:20 AM, Jean-Michel Pichavant wrote:
In text format... sorry for my previous html post
Hello everyone,
I'd like to exchange some simple python objects over the internet.
I initially planned to use Pyro, after reading
http://pythonhosted.org/Pyro4/security.html I'm still puzzled
On 07/13/2013 10:37 AM, wxjmfa...@gmail.com wrote:
The FSR is naive and badly working. I can not force people
to understand the coding of the characters [*].
That would be very hard, since you certainly do not.
I'm the first to recognize that Python and/or Pike are
free to do what they wis
On 2013-07-13, fronag...@gmail.com wrote:
> I'm wondering what is the best, 'most pythonic' way
I recommend PyPubsub:
http://pubsub.sourceforge.net/
Dave Cook
--
http://mail.python.org/mailman/listinfo/python-list
On 07/12/2013 07:56 AM, Ferrous Cranus wrote:
Στις 12/7/2013 2:47 μμ, ο/η Wayne Werner έγραψε:
On Thu, 4 Jul 2013, Νίκος Γκρ33κ wrote:
Στις 4/7/2013 6:10 μμ, ο/η MRAB έγραψε:
What do you mean "I don't know how to catch the exception with
OSError"? You've tried "except socket.gaierror" and "ex
On 07/12/2013 10:18 AM, Νικόλας wrote:
Hello, iam still looking for a way to identify the city of my website
visitors.
I cant even import the module even though my 'pip install geopip2' wa
successful
Either it wasn't successful, or it's not the package you thought. There
are lots of
On 07/12/2013 08:34 AM, Chris “Kwpolska” Warrick wrote:
On Fri, Jul 12, 2013 at 2:25 PM, Devyn Collier Johnson
wrote:
One more thing Devyn should do is watch the “To:” field and make sure
it says python-list@python.org, because the above message was sent to
Chris only, and that is not
On 07/11/2013 12:57 AM, Jason Friedman wrote:
Other than using a database, what are my options for allowing two processes
to edit the same file at the same time? When I say same time, I can accept
delays. I considered lock files, but I cannot conceive of how I avoid race
conditions.
In gener
On 07/09/2013 09:29 PM, David T. Ashley wrote:
We develop embedded software for 32-bit micros using Windows as the
development platform.
We are seeking a general purpose scripting language to automate
certain tasks, like cleaning out certain directories of certain types
of files in preparation f
On 07/09/2013 06:01 PM, Russel Walker wrote:
Sorry for the vague title. Probably best to just show you the code that
explains it better.
This is a simplified example of what I want to do:
# THIS DOESN'T WORK
from random import choice
class Expr(object):
"""
Expr(expr, op, val) -> a
On 07/09/2013 01:29 AM, Kumita Bruce wrote:
Agree.
Sir, this mailing list is for Python discussion. :)
Save your breath. saadharana and saishreemathi are spambots, and are
undoubtedly not "listening."
--
DaveA
--
http://mail.python.org/mailman/listinfo/python-list
On 07/09/2013 12:06 PM, Ferrous Cranus wrote:
What is the reason of a spambot? Spam a usenet forum to gain what?
Spam is unsolicited advertising. A bot is a robot, or other automated
device. So Spambots on a usenet newsgroup send apparently innocent
questions that also contain lin
On 07/09/2013 10:26 AM, Ferrous Cranus wrote:
Στις 9/7/2013 4:32 μμ, ο/η Chris Angelico έγραψε:
On Tue, Jul 9, 2013 at 11:23 PM, Ferrous Cranus
wrote:
Could python somehow brute force http://192.168.1.1/login.php giving
user
and pass trying to guess the password?
Could it be able to pass valu
On 07/09/2013 09:30 AM, alex.ha...@gmail.com wrote:
Hello!
I'm new here and fairly new to Python. I am attempting to read a data file into
python and adding it to a 2D list to make it easy to use further down the line.
My data file is just 7 numbers in a row seperated by commas and each bulk o
On 07/09/2013 09:00 AM, Neil Cerutti wrote:
Interestingly similar scheme. It wonder if 5-bit chars was a
common compression scheme. The Z-machine spec was never
officially published either. I believe a "task force" reverse
engineered it sometime in the 90's.
Baudot was 5 bits. It used s
On 07/09/2013 08:22 AM, Neil Cerutti wrote:
On 2013-07-08, Dave Angel wrote:
I appreciate you've been around a long time, and worked in a
lot of languages. I've programmed professionally in at least
35 languages since 1967. But we've come a long way from the
6bit characters
On 07/08/2013 05:49 PM, Chris Angelico wrote:
On Tue, Jul 9, 2013 at 6:56 AM, Dave Angel wrote:
But Unicode has nothing to do with Guido, and it has existed for about 25
years (if I recall correctly).
Depends how you measure. According to [1], the work kinda began back
then (25 years ago
On 07/08/2013 01:53 PM, ferdy.blat...@gmail.com wrote:
Hi Steven,
thank you for your reply... I really needed another python guru which
is also an English teacher! Sorry if English is not my mother tongue...
"uncorrect" instead of "incorrect" (I misapplied the "similarity
principle" like "unplea
On 07/08/2013 09:10 AM, Joshua Landau wrote:
On 8 July 2013 13:27, Dave Angel wrote:
One of your classmates has already posted the question. However, you win
the prize for a better subject line. Or are you the same student, changing
your name and wasting our time by starting a new thread
On 07/08/2013 08:02 AM, Steven D'Aprano wrote:
On Mon, 08 Jul 2013 11:39:21 +0100, Joshua Landau wrote:
Or you can (be sane) and put it at no indentation:
"""
a_wonderful_set_of_things = {
...,
not_missing_an_end_brace
}
"""
I consider that the least aesthetically pleasing,
On 07/08/2013 08:01 AM, Kenz09 wrote:
Hi, I have been given a task to do. I am a new to programming and Python.
My task is to :
-Create a function that is called from the main function, that accepts a number
as a parameter and determines if the number is even or odd.
the next one is,
-To create
On 07/07/2013 01:06 PM, inq1ltd wrote:
python help,
I can log into a web site with pexpect but
what I want to do is pipe the opening window
to a file.
Logging into the site opens the site window
but I can't get the window to a file.
I can't use screen capture I need to get
pexpect to pipe it
On 07/06/2013 04:41 AM, Νίκος Gr33k wrote:
Στις 6/7/2013 11:30 πμ, ο/η Chris Angelico έγραψε:
On Sat, Jul 6, 2013 at 6:01 PM, � Gr33k wrote:
Is there any way to pinpoint the visitor's exact location?
Yes. You ask them to fill in a shipping address. They may still lie,
or they may choose
On 07/05/2013 04:44 PM, Tim Roberts wrote:
? Gr33k wrote:
Is there a way to extract out of some environmental variable the Geo
location of the user being the city the user visits out website from?
Perhaps by utilizing his originated ip address?
It is possible to look up the geographic r
On 07/05/2013 06:33 AM, Νίκος Gr33k wrote:
Στις 5/7/2013 12:21 μμ, ο/η Dave Angel έγραψε:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.3/os.py", line 669, in __getitem__
value = self._data[self.encodekey(key)]
KeyError: b
On 07/05/2013 04:49 AM, Νίκος Gr33k wrote:
I don't think running it via 'cli' would help much, since its a
cgi-script and ip addr function have no meaning calling them in plain
our of a cgi environment but here it is:
No idea how to parse "have no meaning calling them in plain our of
On 07/05/2013 03:48 AM, bill papanastasiou wrote:
hello , good morning
how i can pùt one python file in website ?
Whose website? If it's your own, log into the server, and use cp. Or if
you're remote with ssh access, use scp. And if you really have a bunch
of files to remotely transfer, u
On 07/05/2013 04:00 AM, Νίκος Gr33k wrote:
Στις 5/7/2013 10:50 πμ, ο/η Dave Angel έγραψε:
The line started as:
> host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0]
refactor that to:
remadd = os.environ('REMOVE_ADDR')
tuple3 = sock
On 07/05/2013 03:13 AM, Νίκος Gr33k wrote:
Στις 5/7/2013 10:06 πμ, ο/η Lele Gaifax έγραψε:
try:
host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0]
except:
host = "Reverse DNS Failed"
Yes i uses to had it like that, until i was looking for ways to make it
h
On 07/05/2013 02:51 AM, Νίκος Gr33k wrote:
Please help because i just happened to noticed that after having this code:
try:
host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0]
except Exception as e:
host = "Reverse DNS Failed"
Don't ever catch a bare Exception class.
.
The only form builders for Eclipse that I'm aware of are for Swing or
SWT. You would need to use Jython (if you want to stick with a Python
implementation) to interface with these.
Dave Cook
--
http://mail.python.org/mailman/listinfo/python-list
On 07/04/2013 09:24 PM, Steven D'Aprano wrote:
On Thu, 04 Jul 2013 17:54:20 +0100, Rotwang wrote:
[...]
Anyway, none of the calculations that has been given takes into account
the fact that names can be /less/ than one million characters long.
Not in *my* code they don't!!!
*wink*
The
act
ful extensions, installable at a button-press --
in[search for package]. Like SublimeREPL. I know
Emacs/Vim will do better at REPLs, but few others will.
* Etc. This goes on.
Looking at Dave Angel's list, Sublime Text pretty-much aces it.
What I don't understand is where he says:
The m
On 07/04/2013 11:11 AM, kanchan.n.maha...@gmail.com wrote:
On Thursday, July 4, 2013 5:03:20 PM UTC+2, Oscar Benjamin wrote:
On 4 July 2013 13:48, wrote:
On Tuesday, April 8, 2008 10:06:46 PM UTC+2, Torsten Bronger wrote:
[snip]
If you do "import foo" inside bar and "import bar" insi
On 07/04/2013 08:48 AM, kanchan.n.maha...@gmail.com wrote:
On Tuesday, April 8, 2008 10:06:46 PM UTC+2, Torsten Bronger wrote:
Hallöchen!
I have a rather fat module that represents a document parser --
inline elements, block elements, and the like. Now I want to split
it into many modules to m
/) that i usually take my KML files to.
Is there any work similar this happened in python before?
Thanks for any help in advance,
Cheers,
Dave
--
http://mail.python.org/mailman/listinfo/python-list
On 07/04/2013 06:03 AM, Νίκος wrote:
Στις 4/7/2013 12:59 μμ, ο/η Dave Angel έγραψε:
On 07/04/2013 04:37 AM, Νίκος wrote:
I just started to have this error without changing nothing
in my index.html(template) and metrites.py(which ipen the template)
[Thu Jul 04 11:35:14 2013] [error] [client
On 07/04/2013 04:37 AM, Νίκος wrote:
I just started to have this error without changing nothing
in my index.html(template) and metrites.py(which ipen the template)
[Thu Jul 04 11:35:14 2013] [error] [client 108.162.229.97] Original
exception was: [Thu Jul 04 11:35:14 2013] [error] [client
108.1
On 07/04/2013 03:32 AM, cutems93 wrote:
I am researching on editors for my own reference. I found that each of them has
some features that other don't, but I am not sure which features are
significant/necessary for a GOOD editor. What features do you a good editor
should have? Keyboard shortcu
On 07/04/2013 03:59 AM, Νίκος wrote:
Στις 4/7/2013 10:32 πμ, ο/η cutems93 έγραψε:
I am researching on editors for my own reference. I found that each of
them has some features that other don't, but I am not sure which
features are significant/necessary for a GOOD editor. What features do
you a g
On 07/04/2013 01:32 AM, Steven D'Aprano wrote:
Well, if I ever have more than 63,000,000 variables[1] in a function,
I'll keep that in mind.
[1] Based on empirical evidence that Python supports names with length at
least up to one million characters long, and assuming that eac
On 07/02/2013 06:06 AM, Chris “Kwpolska” Warrick wrote:
On Tue, Jul 2, 2013 at 11:40 AM, Νίκος wrote:
Στις 2/7/2013 10:21 πμ, ο/η Cameron Simpson έγραψε:
On 02Jul2013 08:57, Νίκος wrote:
| Thank you, the error have been caused due to the fact that the
| uploading procedure of my edited 'pela
On 07/01/2013 05:16 PM, rusi wrote:
On Tuesday, July 2, 2013 1:32:44 AM UTC+5:30, Dave Angel wrote:
Yes in this specific instance all this is probably true.
I believe however, that Joel's intent in reposting this is more global (and
important) in its scope, viz:
If this list per
On 07/01/2013 03:32 PM, Joel Goldstick wrote:
I copied the original question so that the rant on the other thread
can continue. Let's keep this thread ontopic
number_drawn=()
def load(lot_number,number_drawn):
first=input("enter first lot: ")
last=input("enter last lot: ")
for l
On 07/01/2013 07:00 AM, preri...@gmail.com wrote:
I got it. The working directory was different. Sorry, I'm new and didn't the
working directory has to be the location of the data. I thought the location of
.py file and data file should be same. Thanks! Es. Robert Kern.
Python didn't make th
On 06/29/2013 07:29 AM, fob...@gmail.com wrote:
Hi,
Using Python 2.7 on Linux, presumably? It'd be better to be explicit.
I am trying to use a program called MeCab, which does syntax analysis on
Japanese text. The problem I am having is that it returns a byte string and if
I try to print
x27;]
Since you're using the arrogant and buggy GoogleGroups, this
http://wiki.python.org/moin/GoogleGroupsPython.
I see the line,a being correct but print (i) does not show up after 2. and
index error comes up. I am too confused now. Please guide.
Thanks in advance.
Thanks for he
On 06/28/2013 09:20 PM, Titiksha Joshi wrote:
Hi,
I am working on the following code but am getting the error: list index out of
range. I surfed through the group but somehow I am not able to fix my
error.Please guide.Structure is given below:
m is a list of 5 elements. I have to match elements
On 06/27/2013 02:05 PM, Terry Reedy wrote:
On 6/27/2013 8:54 AM, Andrew Berg wrote:
I've begun writing a program with an interactive prompt, and it needs
to parse input from the user. I thought the argparse module would be
great for this,
It is outside argparse's intended domain of applicatio
On 06/27/2013 11:39 AM, darpan6aya wrote:
That worked out. I was trying to encode it the entire time.
Now I realise how silly I am.
Thanks MRAB. Once Again. :D
you're not silly, it's a complex question. MRAB is good at guessing
which part is messing you up.
However, when you're writing a
On 06/27/2013 09:49 AM, Andrew Berg wrote:
On 2013.06.27 08:08, Roy Smith wrote:
Can you give us a concrete example of what you're trying to do?
The actual code I've written so far isn't easily condensed into a short simple
snippet.
I'm trying to use argparse to handle all the little details o
On 06/27/2013 11:11 AM, Mok-Kong Shen wrote:
Could one write Python codes and have them run on one's own mobile
phone? If yes, are there some good literatures? Thanks in advance.
M. K. Shen
I've not tried it, but that's what QPython is supposed to do.
http://qpython.com/
--
DaveA
--
http:
On 06/27/2013 09:37 AM, Tim wrote:
On Thursday, June 27, 2013 9:16:50 AM UTC-4, Joshua Landau wrote:
On 26 June 2013 14:09, Tim wrote:
I am extending a parser and need to create many classes that are all subclassed
from the same object (defined in an external library). When my module is
loa
On 06/25/2013 06:28 PM, miguel olivares varela wrote:
I try to parse a soap/xml answer like:
http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
http://schemas.xmlsoap.org/soap/encoding/"
On 06/25/2013 04:37 PM, Bryan Britten wrote:
Joel -
I don't want to send it to a text file because it's just meant to serve as a
reference for the user to get an idea of what words are mentioned. The words
being analyzed are responses to a survey questions and the primary function of
this scr
On 06/25/2013 03:38 PM, Stig Sandbeck Mathisen wrote:
jonathan.slend...@gmail.com writes:
Any suggestions for a good name, for a framework that does automatic
server deployments?
Whatever you choose, make sure it is easily searchable. Googling for
"puppet" and "chef" only recently gave releva
On 06/25/2013 12:15 PM, jyoun...@kc.rr.com wrote:
Thank you Rusi and Christian!
Something I don't think was mentioned was that reading a text file in
Python 3, and specifying latin-1, will work simply because every
possible 8-bit byte is a character in Latin-1 That doesn't mean that
those
On 06/25/2013 09:55 AM, Peter Otten wrote:
Marco Perniciaro wrote:
Hi,
I've been working with Python for a long time.
Yet, I came across an issue which I cannot explain.
Recently I have a new PC (Windows 7).
Previously I could call a Python script with or without the "python" word
at the begin
On 06/25/2013 03:58 AM, akshay.k...@gmail.com wrote:
Thanks Dave.
I'm using Python 2.7 and am working on Linux Mint.
Does it mean that I cant load the functions within the dll whilst on Linux. I
thought that was what ctypes was used for.
Please correct me if I misunderstood what you
On 06/25/2013 03:54 AM, Chris “Kwpolska” Warrick wrote:
On Tue, Jun 25, 2013 at 9:45 AM, Dave Angel wrote:
You're on Linux or similar, and dll's are the way a Windows executable is
named.
dll’s are libraries for windows, not executables (/lib not /bin)
Try going back to
On 06/24/2013 08:20 AM, Lutz Horn wrote:
Hi,
Am 24.06.2013 14:12 schrieb christheco...@gmail.com:
username=raw_input("Please enter your username: ")
password=raw_input("Please enter your password: ")
if username == "john doe" and password == "fopwpo":
print "Login Successful"
else:
pr
On 06/25/2013 03:32 AM, akshay.k...@gmail.com wrote:
Thanks for the reply Mark. I did what you suggested.
But now I'm getting an error like this.
Traceback (most recent call last):
File "start.py", line 15, in
hunspell = cdll.LoadLibrary('/home/kuro/Desktop/notepad/Hunspellx64.dll')
On 06/24/2013 05:43 PM, chrem wrote:
Le 24/06/13 23:35, chrem a écrit :
Hi,
what is the best way to find out all exceptions for a class?
E.g. I want to find out all exceptions related to the zipfile (I'm
searching for the Bad password exception syntax).
thanks for your help or feedback,
Christ
On 06/24/2013 04:12 PM, John Gordon wrote:
In
pablobarhamal...@gmail.com writes:
isWhite = True
def change(event):
if event.x > x1 and event.x < x2 and event.y > y1 and event.y < y2:
if isWhite:
w.itemconfig(rect, fill="blue")
isWhite = False
On 06/24/2013 03:00 PM, John Gordon wrote:
In
=?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?= writes:
while True:
username = raw_input("Please enter your username: ")
password = raw_input("Please enter your password: ")
if username == "john doe" and password == "fopwpo":
On 06/22/2013 09:20 PM, MRAB wrote:
On 23/06/2013 00:56, Dave Angel wrote:
Certainly the reorderability of the format string is significant. Not
only can it be reordered, but more than one instance of some of the
values is permissible if needed. (What's missing is a decent handli
On 06/22/2013 08:27 PM, Chris Angelico wrote:
On Sun, Jun 23, 2013 at 9:56 AM, Dave Angel wrote:
On 06/22/2013 07:37 PM, Chris Angelico wrote:
On the contrary, i18n should be done with config files. The format
string
**as specified in the physical program**
is the key to the actual
On 06/22/2013 07:37 PM, Chris Angelico wrote:
On Sun, Jun 23, 2013 at 9:28 AM, Dave Angel wrote:
On 06/22/2013 07:12 PM, Chris Angelico wrote:
On Sun, Jun 23, 2013 at 1:24 AM, Rick Johnson
wrote:
_fmtstr = "Item wrote to MongoDB database {0}, {1}"
msg = _fmtstr.format(_a
On 06/22/2013 07:12 PM, Chris Angelico wrote:
On Sun, Jun 23, 2013 at 1:24 AM, Rick Johnson
wrote:
_fmtstr = "Item wrote to MongoDB database {0}, {1}"
msg = _fmtstr.format(_arg1, _arg2)
As a general rule, I don't like separating format strings and their
arguments. That's one of the more
On 06/20/2013 06:20 AM, Jonathan Harden wrote:
Hi,
We have a class which executes external processes in a controlled environment and does
"things" specified by the client program with each line of output. To do this
we have been attaching stdout from the subprocess.Popen to a pseudo terminal (
On 06/19/2013 05:14 PM, arturo balbuena wrote:
Hello guys...
I´m a begginer in Python, I'm doing a Hangman game, but I'm having trouble with
this blank space. I would be greatful if you help me. :)
Here's my code:
http://snipplr.com/view/71581/hangman/
When I run the code it says: Invalid Syn
On 06/19/2013 03:14 AM, Chris Angelico wrote:
On Wed, Jun 19, 2013 at 3:42 PM, Dave Angel wrote:
Names are *one of* the ways we specify which objects are to be used. (We can
also specify objects via an container and a subscript or slice, or via an
attribute of another object. And probably
I think this is an excellent description of name binding with mutable
objects. I just have one clarification to insert below.
On 06/19/2013 01:08 AM, Tim Roberts wrote:
Nick the Gr33k wrote:
On 16/6/2013 4:55 ??, Tim Roberts wrote:
Nick the Gr33k wrote:
Because Python lets you use arbitr
On 06/18/2013 09:51 PM, Steven D'Aprano wrote:
Even if the regex engine is just as efficient at doing simple character
matching as `in`, and it probably isn't, your regex tries to match all
eleven characters of "ENQUEUEING" while the `in` test only has to match
three, "ENQ".
The rest of
On 06/18/2013 12:49 PM, Johannes Bauer wrote:
Hi group,
I've tracked down a bug in my application to a rather strange
phaenomenon: os.putenv() doesn't seem to have any effect on my platform
(x86-64 Gentoo Linux, Python 3.2.3):
os.getenv("PATH")
'/usr/joebin:/usr/local/bin:/usr/bin:/bin:/usr/g
On 06/17/2013 10:42 PM, Steven D'Aprano wrote:
On Mon, 17 Jun 2013 21:06:57 -0400, Dave Angel wrote:
On 06/17/2013 08:41 PM, Steven D'Aprano wrote:
In Python 3.2 and older, the data will be either UTF-4 or UTF-8,
selected when the Python compiler itself is compiled.
I thin
On 06/17/2013 08:41 PM, Steven D'Aprano wrote:
In Python 3.2 and older, the data will be either UTF-4 or UTF-8, selected
when the Python compiler itself is compiled.
I think that was a typo. Do you perhaps UCS-2 or UCS-4
In Python 3.3, the data will
be stored in either Latin-1, UTF-4,
901 - 1000 of 3558 matches
Mail list logo