Peter Otten <__pete...@web.de> Wrote in message:
> Alan Gauld wrote:
>
>>
>> As it stands it is impossible to tell how tempfile.py relates to
>> cgi.FieldStorage() or even if the error is related to that
>> at all.
>
> Here's what the cgi.FieldStorage.make_file() method looks like
>
> def
Steven D'Aprano Wrote in message:
> On Sun, May 25, 2014 at 12:48:40PM +0530, diliup gabadamudalige wrote:
>> I need to random pick a pygame sprite from a sprite class.
>> The random module does not allow this to be used on a group.
>> Is the shortest way to raed in the attributes thatr I need int
"jarod...@libero.it" Wrote in message:
> Dear All
>
> clubA= ["mary","luke","amyr","marco","franco","lucia", "sally","genevra","
> electra"]
> clubB= ["mary","rebecca","jane","jessica","judit","sharon","lucia", "sally","
> Castiel","Sam"]
>
> I have a list of names that I would to annotate in f
"Mitesh H. Budhabhatti" Wrote in
message:
(please post in text email, not html. Doesn't matter for most
people on this particular message, but it's the polite thing to
do)
I see others have answered the programming question, but there's
a separate one. What is the license of the particul
"jarod...@libero.it" Wrote in message:
> Dear all!
> I have two example files:
> tmp.csv:
> name value root
> mark 34 yes
>
> tmp2.csv
> name value root
>
>
> I want to print a different text if I have more than one row and if I have
> only one row. My code is this:
> with open("tm
Aaron Misquith Wrote in message:
>
The only thing i want from the ppt's is text and ignoring all graphical
representations. I
> need the text to perform various nltk operations.
> On Fri, May 30, 2014 at 11:54 PM, Alan Gauld
> wrote:
>> Bearing in mind that Powerpoint is intended for graph
Charles Agriesti Wrote in message:
>
> from swampy.World import World
> world = World()
> ImportError: No module name World
1. please use text mail on this mailing-list. Your email software
should have an option to change that.
2. You're referring to some nonstandard package called swampy, a
Gabriele Brambilla Wrote in message:
>
>
(missing because you posted in html. Please tell your email program to use text)
Simplify your program to where it's small and self contained. You
currently have a string built up from several parts. Since you
think the problem is in the glob call, yo
Deb Wyatt Wrote in message:
> Hi. Everywhere I have read, the 'standard practice' for indentation is 4
> spaces, but I am running into 2 space indentation in a lot of tutorials and
> such. Should I keep with the 4 spaces, or does it even matter, as long as it
> is consistent?
>
4 spaces is
diliup gabadamudalige Wrote in message:
>
there are many dictionaries and lists which are used in various functions. Is
it better/pythonic/efficient to have these inside the function itself or
declared at the beginning of the program in which case they will be global?
They are all read only. I
jason sam Wrote in message:
>
(Please use text mail, as html gets distorted and/or jumbled.
Also, many people here cannot see attachments, so you should
paste them into your text message. And be sure to put a marker
before each file indicating it's original filename)
self.update_grid()
F
Sydney Shall Wrote in message:
>
but I do not understand what defines a module
Please post in plain text, not html.
A module is a source file (eg. .py) or a compiled source file (eg
.pyc) that's generally intended to be used via an import.
--
DaveA
___
Myunggyo Lee Wrote in message:
You apparently posted this in html, and you tried to attach a data
file. Each of those will cause problems for some readers.
Please tell your email program to use text mail, and paste in
your data, don't attach it.
gpdic1={}
while 1:
line= inf2.readli
"Jorge L." Wrote in message:
(please post in text mode, as html carries a number of problems in
a text list like this one)
class Server(object)
def __init__(self, name)
self.name = name
def some_operation(self)
# stuff to be done with JLI
Pamela Wightley Wrote in message:
> ___
> Tutor maillist - Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
You apparently are running Windows, and in a corporate
environment. You d
Pamela Wightley Wrote in message:
>
>
This is a text mailing list. So leaving an html message blocks
some of us from seeing what you intended. Color and other
formatting vanishes for many. Please tell your email program to
post in text mode.
The problem with your fragment is that the ret
Mark Lawrence Wrote in message:
> On
> THINK BIG start small. Little steps. Divide and conquer. I'd guess
> that you've heard at least one of those if not all of them.
>
> Personally I don't believe that you can call yourself a professional
> programmer until you've inadvertantly written an
John Cast Wrote in message:
>
>
will be hosting this (for the foreseeable future at least) on my desktop.
There is another python script already written that generates the
excel spreadsheets (I did not write this). That script will be
ran on a fairly frequent basis so the webpage will constan
Steven D'Aprano Wrote in message:
> On Sat, Jul 12, 2014 at 09:33:20AM +0100, Alan Gauld wrote:
>
>> 2) Better (IMHO) is to convert message to lower case (or upper if
>> you prefer) and only do one comparison:
>>
>> while message.lower() != 'q':
>
> I second this advice, but with a slight modif
uga...@talktalk.net Wrote in message:
> I am running nodebox 1 on OSX v10.6.8, which is an open source OSX
> Python, 2D data visualiser, and although not legacy, the software it
> isn't well supported. (see http://nodebox.net/code/index.php/Home for
> further info). I believe nodebox 1, runs wi
LN A-go-go Wrote in message:
By trying to include an attachment, you make it impossible for me
to quote your actual message. Please use plain text message
without attachments, to maximize the number of people that can
read and readily respond.
> StatesOJ
> AK36
> AL39
> A
"yarteydegre...@gmail.com" Wrote in message:
>
>
I'm glad they were able to help. But please let me point out a
few procedural issues, for nex time.
You started a whole new thread just to say thanks. You should
only start one to ask a new question or start a new discussion.
Otherwise us
Glenn Lester Wrote in message:
>
?
You forgot to make your message a text one, and also omitted your
Python version. So I'll respond from memory, assuming you're
using version 3.5
The csv reader can make a dictionary from each line of the csv
file. So you can readily make a list o
Allahondoum Mbaibarem Wrote in message:
> ___
> Tutor maillist - Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
Post here using text messages, not html.
Wait 24 hours, not one, b
Allahondoum Mbaibarem Wrote in message:
>
>
(use text messages here)
Python is no more secure than the code written in it.
It is very reliable, according to the experience of thousands of
users. Much of that comes from it being open-source; many eyes
catch the bugs faster than anything propr
Deb Wyatt Wrote in message:
> assuming you're
>> using version 3.5
>>
>
> How do you get version 3.5? Python.org shows 3.41 as being the latest.
>
>
I could as easily figured 2.6. My point is that people need to
specify what version they're asking about.
3.5 is a dev version. Not for
Danny Yoo Wrote in message:
> > Python is only as secure as the code *you* write. If you write code
>> where you accept text from untrusted people over the Internet and then
>> execute it as code using eval() or exec(), then your code is vulnerable
>> to code injection attacks. The solution to thi
Marc Tompkins Wrote in message:
> On Tue, Aug 5, 2014 at 8:23 AM, Zachary Ware
> wrote:
>>
>> which it should be if the most recently
>> installed Python was 3.3 or 3.4, installed with default options.
>>
>
> And there we have my problem with this glorious new "feature". YOU
> CAN'T RELY ON IT,
Greg Markham Wrote in message:
Please post as text. Because you used html, I cannot quote your
message, or indeed even see it at all while replying. There are
other problems frequently triggered by html, but on to my
response.
You don't specify the python version you're writing for. I have
Terry--gmail Wrote in message:
>
>
Please don't post here in html mail. Tell your email program to
use text. Your program fragment displayed here as a mess, which
is one of many problems with html.
Please use reply-list (or whatever your email supports, like
reply-all and remove the extra r
Dima Kulik Wrote in message:
Please post in text mode. The html mode you used can cause
multiple problems.
Please specify your Python version and os version in any new
thread.It sometimes makes a big difference in the
solution.
Your primary problem is that you don't close the files.
But yo
Lucia Stockdale Wrote in message:
> Hi everyone,
Welcome to the list. And thanks for using text mode.
What's the Python version and os version. I expect this is crucial.
>
> I have been writing a program to print words backwards until an an empty line
> of input is entered,
> but after I put
LN A-go-go Wrote in message:
>
Thanks for a better subject line, and for starting a new thread
when you have a substantially new question. . Please use text
mail instead of html. The html you're using can cause several
different problems. And please do interleaved quoting, not
top-posting.
"Flynn, Stephen (L & P - IT)" Wrote in
message:
> The documentation (https://docs.python.org/3/library/sys.html) for
> Python 3.4.1 says that "This module provides access to some variables
> used or maintained by the interpreter and to functions that interact
> strongly with the interpreter. It i
Albert-Jan Roskam Wrote in message:
> Hi,
>
> I have data that is either floats or byte strings in utf-8. I need to cast
> both to unicode strings. I am probably missing something simple, but.. in the
> code below, under "float", why does [B] throw an error but [A] does not?
>
>..
>>>
LN A-go-go Wrote in message:
>
Please tell your email program to use text when posting here, The
html you used can cause numerous problems. One of them prevents
me from quoting context.
If you can get your data to a list of tuples, then you can sort
that list by something like
sorteddata =
LN A-go-go Wrote in message:
>
Please post in text mode. It's a real pain trying to respond to
the memory of your post.
sum () is a built-in function that will add all the floats in CL.
Of course you can't use it after you've overloaded it with a new
meaning.
In your loop, you refer to CL
Bo Morris Wrote in message:
>
>
subprocess.Popen("command") && add 1 to count. If count equals n number, do
something.
> I have tried count = 0 count += 1, but count does not seem to be
> incrementing.
It would be much better to post the code that "does not seem..."
There are many possi
Crush Wrote in message:
> My code is as follows...
>
> count = 0
> while count < 3:
> count += 1
>subprocess.Popen('command')
> if count == 3:
> sys.exit()
>
>
The line beginning "subp" is indented further than the one before
it, so this script would terminate with an indentation erro
Kate Reeher Wrote in message:
> I have a custom class called Game, and it has a variable called "goals". I'd
> like
> to make this a list of custom objects, with various information about the
> goals.
> class Game:
> goals = {}
That's a class attribute; the others below are instance
a
Please post in text mode, not html.
questions anon Wrote in message:
>
> lastdate=all_the_dates[1]
> onedateperday.append(lastdate)
> print onedateperday
> for date in all_the_dates:
> if date !=lastdate:
> lastdate=date
> onedateperday.append(lastdate)
There are a numbe
lei yang Wrote in message:
>
> I just use "xlwt" lib to newline in one cell, I find it display with one line
> in windows but works in linux, so I guess it maybe"shift+enter" to newline
Xlwt isn't in the Python stdlib, so some other forum is probably
preferable to tutor.
Just how are you
Madeleine Austen Wrote in message:
>
>
It says there are no arguements
I don't see any print functions with such text, so presumably
you're paraphrasing an exception traceback. Please quote the
entire traceback, as there is usually lots of information there.
And use copy/paste, don't atte
Bo Morris Wrote in message:
(Thanks for starting a new thread when asking a new question. But
please use text mode in your emails, not html.)
For the first version, write it as a filter, and pipe the two
commands together in the shell. So all you have to do is read a
line from stdin, parse
On 09/24/2014 05:19 AM, questions anon wrote:
Ok, I am continuing to get stuck. I think I was asking the wrong question
so I have posted the entire script (see below).
What I really want to do is find the daily maximum for a dataset (e.g.
Temperature) that is contained in monthly netcdf files whe
"Clayton Kirkwood" Wrote in message:
>
> haven’t been able to find an definitive answer
You should make your question clearer. Are you asking what your
code does, or what you should like it to do?
Either way, you should start with some sample code, and refer to
that in your questions. As it i
Phillip Pugh Wrote in message:
> I am trying to decide if Python is the right toolset for me. I do a lot of
> data analytics. Over the years I have used a lot of SQL and VBA, but the data
> sources are getting bigger. I am thinking Python may be what I need to use,
> but I am in the early stage
"Clayton Kirkwood" Wrote in message:
> I was trying to keep it generic.
> Wrapped data file:
> data-tmpl=""> href="http://finance.yahoo.com/q?s=SWKS";
> data-rapid_p="18">SWKS data-model="name:DatumModel;id:SWKS:qsi:wk52:low;"
> data-tmpl="change:yfin.datum">23.27', line_in)
Phillip Pugh Wrote in message:
> Thank you All!!
>
> I am impressed with the support. It was very helpful and timely. I was able
> to put together a script to do what I wanted. I know now that I wont be
> wasting time learning Python. As with any language, it is about
> understanding the s
Wrote in message:
>
>
(Please use text mail to post here)
roomWidth = 100.0. #BUGBUG
roomLength = 90.0
while roomWidth < 100 or roomWidth > 1000:
roomWidth = float(input("Please enter a room width between 100
and 1000: "))
if roomWidth >= 100 or roomWidth <= 1000:
print(
boB Stepp Wrote in message:
>
> I can live with 2.7.8 being the default Python, but if I wanted to
> make 3.4.2 the default, how would I go about doing it?
>
I haven't used Windows in a long while. When I did, I used
assoc.exe and ftype.exe to set my python to run py.exe. That
program is in
Crusier Wrote in message:
>
Attached are the two text files (stocklist.txt & stocklist1.txt) which I want
to do a comparison with the content of the file, Basically, I want to see if
there are any new numbers added to the file.
> Please comment on the sequence of the file:
1. First, Open
"Clayton Kirkwood" Wrote in message:
> Thanks all for the insight. I'm not sure I fully understand all of the code
> snippets, but in time...
>
> This is finally what I came up with:
>
> raw_table = ('''
> a: Asky: Dividend Yield
> b: Bidd: Dividend per Share
> b2: Ask (Realtime)
"Clayton Kirkwood" Wrote in message:
>
>
> !-Original Message-
> !From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On
> !Behalf Of Steven D'Aprano
...
>
> For clarification, a key only has one value which can be changed.
No, because the key has to be immutable, like a
Dave Angel Wrote
in message:
> "Clayton Kirkwood" Wrote in message:
>>
>>
>> !-Original Message-
>> !From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On
>> !Behalf Of Steven D'Aprano
> ...
>>
>> F
"Clayton Kirkwood" Wrote in message:
(Somehow, your email program seems to be using the exclamation
point to identify quoted lines, instead of the standard
greater-than symbol. Is that something you can correct, prrhaps
using "settings"?)
>
>
> !-Original Message-
> !From: Tuto
Dave Angel Wrote
in message:
> "Clayton Kirkwood" Wrote in message:
>
>
> Second question, why can't a numeric index be
>> used to make assignment to a specific location like a[1] = "some value"? If
>> the mechanism is to use a.index(1,"
Bill Bright Wrote in message:
> I have been working on a piece of code that I got from another tutorial. The
> code polls the GPIO pins on a Raspberry Pi. When it detects a switch being
> flipped, it plays a corresponding audio file. My problem is, if the switch
> remains flipped, the audio rep
Please use text mail for posting, and please use reply-list, or
whatever your mailer calls it when adding to a thread. So far,
you've got at least 3 threads covering a single topic.
Bill Bright Wrote in message:
>
>
The code below seems to work. My question is why does oldstates need to be
Please don't use html mail in a text newsgroup. And especially
don't select black on black for your foreground and background
colors.
Caroline H Wrote in message:
>
create a new sorted list consisting of all the elements of lst1 that also
appears in lst2 .
Are you permitted at this stage
>
Explain this double speak(>:
> [pair for pair in values if key == pair[0]]
> I understand the ‘for pair in values’. I assume the first
> ‘pair’ creates the namespace
The namespace question depends on the version of Python. Python
2.x does not do any scoping.
But in version 3.x, the var
"Clayton Kirkwood" Wrote in message:
>
>
> !-Original Message-
> !From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On
> !Behalf Of Dave Angel
> !Sent: Tuesday, October 28, 2014 6:34 PM
> !To: tutor@python.org
> !Subject:
"Martin A. Brown" Wrote in message:
>
> Hi there Clayton,
>
>> values = [ ('a', 1), ('b', 2), ('a', 5), ('c', 7)]
>> key = 'a'
>> pair=[] # -- this assignment is unnecessary
>> x=[pair for pair in values if key == pair[0]]
>> print(x)
>>
>> I get [('a', 1), ('a', 5)]
>
> I also get that re
"Clayton Kirkwood" Wrote in message:
>
>
>>-Original Message-
>>From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On
>>Behalf Of Dave Angel
>>Sent: Wednesday, October 29, 2014 5:30 AM
>>To: tutor@python.org
>>Subject
On 11/02/2014 01:43 AM, Clayton Kirkwood wrote:
To prove that a little knowledge is a little stupid or something to that
effect:
#for key in key_list:
#print(key)
#if key not in key_list0:
#print("Error:", key, "not available, start again")
#get_ne
On 11/02/2014 03:01 PM, Alex Kleider wrote:
I'm puzzled by the following behaviour:
The following works as I expect:
alex@x301:~/Python$ python3
Python 3.4.0 (default, Apr 11 2014, 13:05:18)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
code = """\
On 11/02/2014 03:05 PM, Clayton Kirkwood wrote:
-Original Message-
From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On
Behalf Of Alan Gauld
Sent: Sunday, November 02, 2014 1:04 AM
To: tutor@python.org
Subject: Re: [Tutor] all right students, what do we learn
On 02/11/1
Please evaluate your email program. Some of your newline s are
being lost in the paste into your email.
Matt Varner Wrote in message:
> TL:DR - Skip to "My Script: "subtrans.py"
>
>
>
> Optional Links to (perhaps) Helpful Images:
> 1. The SRT download button:
> http://i70.photobucket.com/alb
You're still using html mail, and still top-posting.
>
> But my curiosity is still begging me for an answer regarding my original
> approach. Is there a way to manage the functionality of be round function
> such that it does not strip any data to the right of the decimal point?
That's the w
William Becerra Wrote in message:
>
have the following code:
names = "John, Cindy, Peter"
def find(str, ch, s):
index = 0
while index < len(str):
if s==1:
for char in names[:4]:
if str[index] == ch:
return index + 1
You forgot to state your Python version. I'll assume 3.4
"Clayton Kirkwood" Wrote in message:
> I have the following code: import urllib.request,re,stringmonths =
> ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May.', 'Jun.', 'Jul.', 'Aug.', 'Sep.',
> 'Oct.', 'Nov.', 'Dec.']from urllib.request import urlop
Wrote in message:
>
>
>
>
>
>
> Hello, I can not for the life of me figure out where I have gone wrong. I
> wrote the following code as a simulation for the table top game x-wing. It
> basically simulates dice rolls but the issue is the fact that every time I
> choose a number of dice t
William Becerra Wrote in message:
> Hello, I'm new to programming using Python 2.7.8 and Windows 8 OSI'm reading
> How to Think Like a Computer Scientist - learning with pythonon chapter
> 12.2theres the following code: class Point: passblank = point()blank.x =
> 3.0blank.y = 4.0
>>>print b
Felisha Lawrence Wrote in message:
> Hello,
> I am trying to install a version of pyart in OSX and I keep getting this
> error
>
> --
> ImportError Traceback (most recent call last)
> in ()
>
Spyros Charonis Wrote in message:
>
> Dear group,
> I'm having a bit of trouble with understanding why my bubble sort
> implementation doesn't work. I've got the following function to perform a
> bubble sort operation on a list of numbers:
> def bubble_sort_ascending(unsorted):
> """ Sort
On 11/22/2014 09:28 PM, Mitch Raful wrote:
If I have code similar to this:
for object in objects:
do_something(object)
def do_something(obj):
other_object = Class( obj.property)
other_object.method( arg1, arg2)
do_stuff here with other_object
if problem:
p
On 11/23/2014 07:04 AM, John Feleppa wrote:
Dear all,
Has anyone solved the fourth challenge in Chapter 6 of Michael Dawson's
book, 'Python Programming for the absolute beginner'?
The challenge: 'Write a new *computer_move()* function for the Tic-Tac-Toe
game to plug the hole in the computer's
Please don't top-post. Trim the quoted portion to the parts you're
responding to, and put your response immediately after (each) section
you're commenting on.
Also, you're posting in html. That's not always a problem, but it often
is, depending on the vagaries of your email program. Just te
On 11/23/2014 01:05 PM, Mitch Raful wrote:
On Sun, Nov 23, 2014 at 11:07 AM, Dave Angel wrote:
Please don't top-post. Trim the quoted portion to the parts you're
responding to, and put your response immediately after (each) section you're
commenting on.
I this the correct
Please don't top-post. Put your response under the quote you're
responding to. And trim the parts that are no longer relevant. I've
rearranged this message to try to pretend that you did that.
> On Wed, Nov 26, 2014 at 3:46 PM, Alan Gauld
> wrote:
>
>> On 26/11/14 09:57, Sunil Tech wrote:
>
On 11/27/2014 11:07 AM, boB Stepp wrote:
x = "outer"
def tricky_func2():
y = x
print(x)
tricky_func2()
outer
So why does not print(x) see the global x and instead looks for the
local x?
The function is compiled during the import (or initial load if it's a
On 11/27/2014 11:39 AM, boB Stepp wrote:
On Thu, Nov 27, 2014 at 9:58 AM, Steven D'Aprano wrote:
No offense intended Bob, but this scares me. I know you're trying your
best, but "weak programming knowledge" and "radiation therapy" is not a
healthy combination.
Believe me, I think about this
On 11/27/2014 04:01 PM, Albert-Jan Roskam wrote:
I made a comparison between multiprocessing and threading. In the code below
(it's also here: http://pastebin.com/BmbgHtVL, multiprocessing is more than 100
(yes: one hundred) times slower than threading! That is
I-must-be-doing-something-
On 11/27/2014 05:55 PM, Dave Angel wrote:
On 11/27/2014 04:01 PM, Albert-Jan Roskam wrote:
for line in self.data:
if not line:
break
local_lookup.append(record_start)
if len(local_lookup) >
On 11/28/2014 05:53 AM, Albert-Jan Roskam wrote:
- Original Message -
From: Dave Angel
To: tutor@python.org
Cc:
Sent: Thursday, November 27, 2014 11:55 PM
Subject: Re: [Tutor] multiprocessing question
On 11/27/2014 04:01 PM, Albert-Jan Roskam wrote:
I made a comparison
On 12/03/2014 08:07 AM, jarod...@libero.it wrote:
thanks so much,here you have the error:
---
NameError Traceback (most recent call last)
in ()
43
On 12/15/2014 04:25 PM, Ken G. wrote:
I am sure there is a better way to refine the following lines.
Letting x equal a number from 1 to 28, go through 28 separate 'if'
statements to print a resulting value that equaled the value of x.
For example:
x = 8
if x = 1, print 'one'
if x = 2, print '
On 12/15/2014 05:49 PM, Steven D'Aprano wrote:
On Mon, Dec 15, 2014 at 04:25:42PM -0500, Ken G. wrote:
I am sure there is a better way to refine the following lines.
Letting x equal a number from 1 to 28, go through 28 separate 'if'
statements to print a resulting value that equaled the value o
On 12/15/2014 07:55 PM, Ken G. wrote:
Oh, it is not an assignment, Dave. It is an actual program I am using
for my benefit. I had to figure out on a fly, what is the name of a piece
of property that each number represent. I had to reckon something out
within a limited amount of time I had
On 12/18/2014 09:09 PM, Brandon Dorsey wrote:
Hello All,
Programming has always been a passion of mine,
A great start. Can you tell us a little more about yourself? Is Python
the first language you've tried, or are you successful at other
languages? Are you in school, at what level, do yo
On 12/20/2014 08:16 PM, Brandon Dorsey wrote:
I'm 28 years old, currently unemployed and not in school until fall of
2015 as a junior. I picked up python a little under a year ago, with the
hopes that I could make a career out of programming - when I finish school
that is. So, as of right now
On 12/22/2014 07:53 AM, Juan Christian wrote:
I have a 'logging' on my code using:
import logging
< ... >
logging.basicConfig(filename="bumpr.log", level=logging.INFO)
< ... >
The thing is that the default location of this output when running via
Windows Task Scheduler is 'C:/Windows/System32'.
On 12/22/2014 11:41 AM, Juan Christian wrote:
str(os.path.abspath(__file__)).replace('main.py', '')
So I get the full-path of my main dir where main.py is and all the other
modules/packages too, no matter if I'm on OSX/Win/Linux.
That's not the best way to get the directory path for a file.
On 12/22/2014 09:58 PM, Alex Kleider wrote:
On Dec 22, 2014 12:36 PM, wolfrage8...@gmail.com wrote:
On Mon, Dec 22, 2014 at 6:27 AM, Vishwas Pathak <
vishwas_pat...@persistent.com> wrote:
Your Disclaimer alone means that I can not respond to this question, or
else it would apparently become th
On 01/01/2015 11:48 PM, WolfRage wrote:
Final Code Using 2d List instead of Doubly Linked List.
Please don't top-post. Instead, post your comments inline with the
parts of the previous message to which you're responding.
Is there a reason you doublespaced the whole thing? And why did you
On 01/02/2015 05:25 AM, Brandon Dorsey wrote:
I know there is are easier ways to assign multiple objects to a variable,
but why, does the following code work? Why does it return a tuple versus a
list? I know it has something to do with the semi-colon, but I didn't know
it wouldn't raise an err
On 01/02/2015 10:53 AM, WolfRage wrote:
On 01/02/2015 10:37 AM, Alan Gauld wrote:
I use Thunderbird for posting too, and nobody has complained yet about
my code layout.
My account settings are:
Composition&Addressing
Compose in HTML - OFF
Auto quote original then "START REPLY BELOW QUOTE"
My
On 01/02/2015 10:55 AM, Dave Angel wrote:
On 01/02/2015 10:43 AM, Steven D'Aprano wrote:
On 03/01/15 02:14, WolfRage wrote:
Dave or Steve, what mail program do you use? It appears Thunderbird is
still posting the code all messed up. Which makes it impossible to
communicate effectively wit
On 01/02/2015 11:37 AM, WolfRage wrote:
On 01/02/2015 02:21 AM, Steven D'Aprano wrote:
What is the purpose of the **kwargs? It doesn't get used, it just
silently ignores them.
Hopefully you got the answer for this from the previous message.
Why does the GameTile record the coordinates as str
On 01/02/2015 12:57 PM, Alex Kleider wrote:
On 2015-01-01 17:35, Alan Gauld wrote:
Repeats replicates the reference to the object but
does not create a new object.
This part I can understand but, as Steven has pointed out,
this behaviour changes if the object being repeated is immutable.
Why
1901 - 2000 of 2089 matches
Mail list logo