Well firstly being windows I assume that you did a restart after install.
Python.org python doesn't come with the windows extensions which can be
installed separately.
On windows I use winpython is totally portable and can be installed as system
version includes all extensions as well as Numpy
Sam wrote:
> I need to pass a global variable into a python function. However, the
> global variable does not seem to be assigned after the function ends. Is
> it because parameters are not passed by reference? How can I get function
> parameters to be passed by reference in Python?
If the variab
Steven D'Aprano :
> On Thu, 20 Feb 2014 12:22:29 +0200, Marko Rauhamaa wrote:
>> I'm looking forward to the day when every application can add its own
>> keywords as is customary in Lisp.
>
> And what a wonderful day that will be! Reading any piece of code you
> didn't write yourself -- or wrote a
On 2014-02-21, Mircescu Andrei wrote:
> vineri, 21 februarie 2014, 08:49:01 UTC+2, Jaydeep Patil a scris:
>> I am getting below tuple from excel.
>>
>> How should i remove extra commas in each tuple to make it easy for
>> operations.
>>
>>
>>
>> tuples is:
>>
>> seriesxlist1 = ((0.0), (0.01),
Sam writes:
> I need to pass a global variable into a python function.
Python does not really have the concept "variable".
What appears to be a variable is in fact only the binding of an
object to a name. If you assign something to a variable,
all you do is binding a different object to the nam
This is just a tuple of integers and not a tuple of tuples of integers, the
parentheses around the number is just there for the evaluation.
> On 21 févr. 2014, at 08:02 AM, Mircescu Andrei
> wrote:
>
> vineri, 21 februarie 2014, 08:49:01 UTC+2, Jaydeep Patil a scris:
>> I am getting below tu
On Fri, Feb 21, 2014 at 5:59 PM, Steven D'Aprano
wrote:
> Then I can write code like:
>
> for for in in:
> while while:
> if if:
> raise raise
>
> which will go a long way to ensuring that my code is an hostile and
> unreadable as possible.
REXX allows that. Most people wo
Dear Python list,
Do you know of any open-source task, feature and issue trackers which
are built with Python?
Preferably with:
- git integration ("commits <> and <> solve issue/task <>"; "issue is
assigned to repo <>")
- prioritisation of tasks, features and issues
- ability to show dependencies
vineri, 21 februarie 2014, 08:49:01 UTC+2, Jaydeep Patil a scris:
> I am getting below tuple from excel.
>
> How should i remove extra commas in each tuple to make it easy for operations.
>
>
>
> tuples is:
>
> seriesxlist1 = ((0.0), (0.01), (0.02), (0.03), (0.04), (0.05), (0.06),
> (0.07), (
On Fri, Feb 21, 2014 at 5:51 PM, Steven D'Aprano
wrote:
> On Thu, 20 Feb 2014 20:39:10 +1100, Chris Angelico wrote:
>
>> In working on a proposal that might result in the creation of a new
>> keyword, I needed to ascertain what names were used extensively in
>> existing Python code.
>
> I would lo
On Thu, 20 Feb 2014 12:22:29 +0200, Marko Rauhamaa wrote:
> Chris Angelico :
>
>> In working on a proposal that might result in the creation of a new
>> keyword,
>
> I'm looking forward to the day when every application can add its own
> keywords as is customary in Lisp.
And what a wonderful da
On Thu, 20 Feb 2014 20:39:10 +1100, Chris Angelico wrote:
> In working on a proposal that might result in the creation of a new
> keyword, I needed to ascertain what names were used extensively in
> existing Python code.
I would love to steal^W see your script for doing this :-)
--
Steven
--
On Thu, 20 Feb 2014 14:46:35 +0200, Marko Rauhamaa wrote:
> I would imagine there would be dozens of "branches" in the interpreter
> if the latest interpreter were to support all past Python dialects (as
> it should, IMO).
Well thank goodness you're not in charge of Python's future development.
I am getting below tuple from excel.
How should i remove extra commas in each tuple to make it easy for operations.
tuples is:
seriesxlist1 = ((0.0), (0.01), (0.02), (0.03), (0.04), (0.05), (0.06), (0.07),
(0.08), (0.09), (0.1), (0.11))
please suggest me solution.
Regards
jay
--
https://ma
On Thu, 20 Feb 2014 22:48:18 +, John Gordon wrote:
> In shivang patel
> writes:
>
>> So, I kindly request to you please, give me a very brief info regarding
>> *Role of Project Manager*.
>
> In my organization, a project manager does these things (and a lot
> more):
What does this have to
On Friday, 21 February 2014 12:06:54 UTC+5:30, Rustom Mody wrote:
> On Friday, February 21, 2014 12:01:53 PM UTC+5:30, Jaydeep Patil wrote:
>
> > HI,
>
>
>
> > I have a tuple. I need to make sqaure of elements of tuple and after that i
> > want add all suared tuple elements for total. When i
On Thu, 20 Feb 2014 14:09:19 +0200, Marko Rauhamaa wrote:
> Chris Angelico :
>
>> Python has a facility like this. It doesn't namespace the keywords, but
>> it does let you choose whether to have them or not. In Python 2.5, you
>> could type "from __future__ import with_statement" to turn 'with'
On Friday, February 21, 2014 12:01:53 PM UTC+5:30, Jaydeep Patil wrote:
> HI,
> I have a tuple. I need to make sqaure of elements of tuple and after that i
> want add all suared tuple elements for total. When i trying to do it, below
> error came.
> Code:
> seriesxlist1 = ((0.0,), (0.01,), (0.0
I need to pass a global variable into a python function. However, the global
variable does not seem to be assigned after the function ends. Is it because
parameters are not passed by reference? How can I get function parameters to be
passed by reference in Python?
--
https://mail.python.org/mai
HI,
I have a tuple. I need to make sqaure of elements of tuple and after that i
want add all suared tuple elements for total. When i trying to do it, below
error came.
Code:
seriesxlist1 = ((0.0,), (0.01,), (0.02,), (0.03,), (0.04,), (0.05,), (0.06,),
(0.07,), (0.08,), (0.09,), (0.1,), (0.11,
Scott W Dunning Wrote in message:
> Hello,
>
> I am trying to make a function that allows me to color in a star that was
> drawn in Turtle. I just keep having trouble no matter what I do. Iâll
> post the code I have for the star (just in case). The ultimate goal is to
> create a script t
On Feb 20, 2014, at 5:48 PM, John Gordon wrote:
> In shivang patel
> writes:
>
>> So, I kindly request to you please, give me a very brief info regarding
>> *Role of Project Manager*.
>
> In my organization, a project manager does these things (and a lot more):
> Ensure that a requirements d
Hello,
I am trying to make a function that allows me to color in a star that was drawn
in Turtle. I just keep having trouble no matter what I do. I’ll post the code
I have for the star (just in case). The ultimate goal is to create a script
that’ll draw the American flag (we’re learning this
On Feb 20, 2014, at 9:41 PM, Scott W Dunning wrote:
> Hello,
>
> I am trying to make a function that allows me to color in a star that was
> drawn in Turtle. I just keep having trouble no matter what I do. I’ll post
> the code I have for the star (just in case). The ultimate goal is to cre
In shivang patel
writes:
> So, I kindly request to you please, give me a very brief info regarding
> *Role of Project Manager*.
In my organization, a project manager does these things (and a lot more):
Ensure that a requirements document exists, and is approved by both the
customer and the de
On Feb 20, 2014, at 8:54 AM, Dave Angel wrote:
> kxjakkk Wrote in message:
>> Let's say I have a sample file like this:
>>
>> Name1 2 34 5 6 78
>>
>> name1099-66-7871 A-F
On 2014-02-20 18:16, kjaku...@gmail.com wrote:
What I've got is
def stu_scores():
lines = []
with open("file.txt") as f:
lines.extend(f.readlines())
return ("".join(lines[11:]))
scores = stu_scores()
for line in scores:
fields = line.split()
name = fields[0]
kjaku...@gmail.com wrote:
> Error comes up saying "IndexError: list index out of range."
OK, then the 12th line starts with a whitespace char. Add more print
statements to see the problem:
> scores = stu_scores()
print scores
> for line in scores:
print repr(line)
> fields = line.
On Thu, Feb 20, 2014 at 7:16 PM, wrote:
> What I've got is
> def stu_scores():
> lines = []
> with open("file.txt") as f:
> lines.extend(f.readlines())
> return ("".join(lines[11:]))
This returns a string, not a list. Moreover, lines.extend() is
useless. Replace this with:
scores = stu_scores()
for line in scores:
fields = line.split()
name = fields[0]
print (fields)
Error comes up saying "IndexError: list index out of range."
--
https://mail.python.org/mailman/listinfo/python-list
On Feb 20, 2014 1:20 PM, wrote:
>
> What I've got is
> def stu_scores():
> lines = []
> with open("file.txt") as f:
> lines.extend(f.readlines())
> return ("".join(lines[11:]))
>
> scores = stu_scores()
> for line in scores:
> fields = line.split()
> name = fields[0]
Pr
What I've got is
def stu_scores():
lines = []
with open("file.txt") as f:
lines.extend(f.readlines())
return ("".join(lines[11:]))
scores = stu_scores()
for line in scores:
fields = line.split()
name = fields[0]
sum1 = int(fields[4]) + int(fields[5]) + int(fields[6
kxjakkk Wrote in message:
> Let's say I have a sample file like this:
>
> Name1 2 34 5 6 78
>
> name1099-66-7871 A-FY10067815998
> name2999-88-776
In <882091da-a499-477e-8f50-c5bdde7cd...@googlegroups.com> kxjakkk
writes:
> Let's say I have a sample file like this:
> Name1 2 34 5 6 78
>
> name1099-66-7871 A-FY1
On Feb 20, 2014 11:25 AM, "kxjakkk" wrote:
>
> Let's say I have a sample file like this:
>
> Name1 2 34 5 6 78
>
> name1099-66-7871 A-FY10067815998
> na
ApathyBear Wrote in message:
>
> On Thursday, February 20, 2014 12:54:54 AM UTC-8, Chris Angelico wrote:
>
>>Calling a class will create a new instance of it. [1] What you do with
>>it afterwards is separate.
>
> Okay. So what you are saying is that
> return(Athlete(temp1.pop(0),temp1.pop(0
Hello, Sir
I am Shivang Patel and Master of Computer Engineering Student.
In this current we are studying one subject name "Principals of management
" as part of syllabus. As per this subject, we have one assignment(Because
of we all student think, this subject is useless for us) -
*Talk with Pr
On Fri, Feb 21, 2014 at 3:26 AM, Marko Rauhamaa wrote:
> Chris Angelico :
>
>> Also, what happens if two modules (one of which might be your script)
>> written for different versions both import some third module? Should
>> they get different versions, based on what version tags they use
>> themse
Chris Angelico :
> Also, what happens if two modules (one of which might be your script)
> written for different versions both import some third module? Should
> they get different versions, based on what version tags they use
> themselves? Compatibility can't be changed that easily. You either ru
On 2/20/14 10:55 AM, Oscar Benjamin wrote:
On 20 February 2014 15:42, Ned Batchelder wrote:
As roundabout and advanced as that code is, it doesn't give the right answer
for me. It returns None. On my Mac, after activating a virtualenv:
Python 2.7.2 (default, Oct 11 2012, 20:14:37)
Let's say I have a sample file like this:
Name1 2 34 5 6 78
name1099-66-7871 A-FY10067815998
name2999-88-7766 A-FN99 1009691
In Hobie Audet
writes:
> 7. What it echoes back is "userxyzuserxyz". In other words, the
> REMOTE_USER value is repeated.
What username is recorded in the access_log file?
> executed correctly. By why the "REMOTE_USER" value is doubled is
> beyond my understanding. Is this a bug in the
On Thursday, February 20, 2014 4:42:54 PM UTC+1, Ned Batchelder wrote:
>
> As roundabout and advanced as that code is, it doesn't give the right
> answer for me. It returns None.
Indeed. I tried on Linux and got None both inside and outside virtualenv :(
Regards,
Piotr
--
https://mail.python.
On 20 February 2014 15:42, Ned Batchelder wrote:
>
> As roundabout and advanced as that code is, it doesn't give the right answer
> for me. It returns None. On my Mac, after activating a virtualenv:
>
> Python 2.7.2 (default, Oct 11 2012, 20:14:37)
> [GCC 4.2.1 Compatible Apple Clang 4.0
On Fri, Feb 21, 2014 at 2:14 AM, Marko Rauhamaa wrote:
> * you won't be finding old Python versions on newer operating system
>distributions,
>
> * even http://www.python.org/downloads/> isn't all that extensive
>and
>
> * the program may import modules that were written in different Py
On 20 February 2014 15:34, Piotr Dobrogost
wrote:
> On Thursday, February 20, 2014 4:22:53 PM UTC+1, Oscar Benjamin wrote:
>
>> You can find the default location in this roundabout way:
>
> I'm wondering if there's some API to get this info as what you showed is
> really roundabout way to achieve
On 2/20/14 10:34 AM, Piotr Dobrogost wrote:
On Thursday, February 20, 2014 4:22:53 PM UTC+1, Oscar Benjamin wrote:
I'm not sure if I understand the question. Are you trying to find
where a script would go if it had been installed as a result of
'python setup.py install' or 'pip install ...'?
On Thursday, February 20, 2014 4:22:53 PM UTC+1, Oscar Benjamin wrote:
>
> I'm not sure if I understand the question. Are you trying to find
> where a script would go if it had been installed as a result of
> 'python setup.py install' or 'pip install ...'?
> Yes.
> If so there are
> different p
On 2014-02-20 14:53, Hobie Audet wrote:
I'm running the Abyss Web Server X1 (v 2.9.0.1) on a Windows XP Home
(SP3) system and am using Python 3.3 for a scripting language. I'm
having a problem getting the environment variable "REMOTE_USER". Here's
the situation:
1. I have created a user under
On 20 February 2014 14:27, Piotr Dobrogost
wrote:
> Is there cross-platform way to get default directory for binary files
> (console scripts for instance) the same way one can use sys.executable to get
> path to the Python's interpreter in cross-platform way?
>
> Context:
> There's Python script
Chris Angelico :
> If the interpreter were to include every dialect of "old Python", then
> it would have a lot more than two branches. They would, in fact,
> increase exponentially with every Python version.
It shouldn't be *that bad*; the linux kernel is grappling with the glut
of system calls,
On 2/20/14 9:27 AM, Piotr Dobrogost wrote:
Hi!
Is there cross-platform way to get default directory for binary files (console
scripts for instance) the same way one can use sys.executable to get path to
the Python's interpreter in cross-platform way?
Context:
There's Python script which runs
I'm running the Abyss Web Server X1 (v 2.9.0.1) on a Windows XP Home
(SP3) system and am using Python 3.3 for a scripting language. I'm
having a problem getting the environment variable
"REMOTE_USER". Here's the situation:
1. I have created a user under Abyss. The userid is "userxyz"..
2.
Hi!
Is there cross-platform way to get default directory for binary files (console
scripts for instance) the same way one can use sys.executable to get path to
the Python's interpreter in cross-platform way?
Context:
There's Python script which runs various tools like pip using subprocess and w
joi, 20 februarie 2014, 00:25:41 UTC+2, Emile van Sebille a scris:
> On 2/19/2014 2:03 PM, Mircescu Andrei wrote:
>
>
>
> > If there are only pyc files, the loading time of the application is
>
> > much more than if I have pyc and py files. It is behind with 2
>
> > minutes more than if it
On Thu, Feb 20, 2014 at 11:46 PM, Marko Rauhamaa wrote:
>> And at some point, the new keywords must just become standard.
>
> That's an explicit program of destroying backwards-compatibility: a war
> on legacy code. That may be the Python way, but it's not a necessary
> strategy.
>
>> There's no p
Chris Angelico :
> On Thu, Feb 20, 2014 at 11:09 PM, Marko Rauhamaa wrote:
>>from __py35__ import syntax
>
> It's more self-documenting with the __future__ directive, because it
> says *what* syntax you're importing from the future.
As a developer, I will probably want to state the Python di
MR/ Mrs
* Al madinah international university which win dependence Malaysian
Ministry of Higher Education Malaysia (MOHE) and also winning the adoption of
all academic programs and courses, the university that are approved by the
Malaysian funds and private academy, which deals with q
On Thu, Feb 20, 2014 at 11:09 PM, Marko Rauhamaa wrote:
> How about blocking the introduction of new keywords for ever except if
> you specify:
>
>from __py35__ import syntax
>
> Eventually, every Python module would likely begin with a statement like
> that, and it would document the assumpti
Chris Angelico :
> Python has a facility like this. It doesn't namespace the keywords,
> but it does let you choose whether to have them or not. In Python 2.5,
> you could type "from __future__ import with_statement" to turn 'with'
> into a keyword. After Python 2.6, it's always a keyword.
That c
On Thu, Feb 20, 2014 at 10:28 PM, Marko Rauhamaa wrote:
> Chris Angelico :
>
>> On Thu, Feb 20, 2014 at 9:22 PM, Marko Rauhamaa wrote:
>>> py35.unless x > 7:
>>> return
>>
>> What about return? Are you allowed to namespace that? And 'from' and
>> 'import' and '*'?
>
> Old keywords are gua
On Thu, Feb 20, 2014 at 10:28 PM, Marko Rauhamaa wrote:
> A coworker pointed out that the gist of the PEP has already been
> implemented by https://pypi.python.org/pypi/fuckit>.
I love how that's categorized "Topic :: Software Development ::
Quality Assurance". It certainly assures _something_ ab
Chris Angelico :
> On Thu, Feb 20, 2014 at 9:22 PM, Marko Rauhamaa wrote:
>> py35.unless x > 7:
>> return
>
> What about return? Are you allowed to namespace that? And 'from' and
> 'import' and '*'?
Old keywords are guaranteed not to clash with programs. Introducing new
keywords runs tha
On Thu, Feb 20, 2014 at 9:22 PM, Marko Rauhamaa wrote:
> from py35 import *
>
> That way, you could choose between:
>
> unless x > 7:
> return
>
> and:
>
> py35.unless x > 7:
> return
>
> in case you have already made use of the name "unless" in your program.
What about return?
Chris Angelico :
> In working on a proposal that might result in the creation of a new
> keyword,
I'm looking forward to the day when every application can add its own
keywords as is customary in Lisp.
> I needed to ascertain what names were used extensively in existing
> Python code
One advant
Thank you Chris. And thank you to everyone else. This has tremendously helped
me. This google group is definitely the best place for python
questions/discussion.
PS: Chris, I will be looking at that tutorial now.
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Feb 20, 2014 at 8:22 PM, ApathyBear wrote:
> On Thursday, February 20, 2014 12:54:54 AM UTC-8, Chris Angelico wrote:
>
>>Calling a class will create a new instance of it. [1] What you do with
>>it afterwards is separate.
>
> Okay. So what you are saying is that
> return(Athlete(temp1.pop(
In working on a proposal that might result in the creation of a new
keyword, I needed to ascertain what names were used extensively in
existing Python code. Out of random curiosity, I asked my script what
names were the most commonly used. The script responded with 21854
names and a total of 297164
On Thursday, February 20, 2014 12:54:54 AM UTC-8, Chris Angelico wrote:
>Calling a class will create a new instance of it. [1] What you do with
>it afterwards is separate.
Okay. So what you are saying is that return(Athlete(temp1.pop(0),temp1.pop(0),
temp1)) IS in fact creating an instance of
On 02/20/2014 12:26 AM, ApathyBear wrote:
Thanks for pointing out the missing parenthesis, it makes sense now why there
was an error.
I suppose my question now is (and forgive my ignorance about classes, this is
my first time learning them) why is it calling Athlete with some arguments? In
or
On Thu, Feb 20, 2014 at 7:26 PM, ApathyBear wrote:
> Thanks for pointing out the missing parenthesis, it makes sense now why there
> was an error.
>
> I suppose my question now is (and forgive my ignorance about classes, this is
> my first time learning them) why is it calling Athlete with some
Thanks for pointing out the missing parenthesis, it makes sense now why there
was an error.
I suppose my question now is (and forgive my ignorance about classes, this is
my first time learning them) why is it calling Athlete with some arguments? In
order to make a class object, don't you need t
Le 20/02/2014 08:32, ApathyBear a écrit :
I have two questions that come along with the following code:
--
from __future__ import print_function
def sanitize(time):
if '-' in time:
splitter = '-'
On Thu, Feb 20, 2014 at 6:32 PM, ApathyBear wrote:
> 1. What does this line of code mean:
> return(Athlete(temp1.pop(0),temp1.pop(0), temp1)
>
> Is it making an Athlete class? if you can give examples to help explain what
> this is doing that would be helpful.
It's supposed to be calling Athlete
74 matches
Mail list logo