On Thu, Jan 5, 2017 at 3:19 PM, Deborah Swanson
wrote:
> I downloaded the code from the Package Index, but there really wasn't
> much in it. This is the entire .py file:
Ehh, wrong file. Try the one in the standard library:
https://github.com/python/cpython/blob/master/Lib/antigravity.py
https:/
Ionut Predoiu wrote, on January 05, 2017 11:07 PM
>
> Good morning,
>
> Thanks to all for feedback and advice.
> Because I am a beginner I will read more about versions of
> Python recommended by you.
>
> On the other side I am interested to know if exist some sites
> which have develop platfo
Hi Team,
How to match latter(caps and small) ,numbers and # symbol in python pexpect.
Thanks,
Iranna M
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Jan 6, 2017 at 9:11 PM, Antoon Pardon
wrote:
> Is there something going on with the mailinglist? Because I have receive
> a lot of double messages. One copy is fairly normal and is part of the
> discussion thread, the other is completely seperated. -- Antoon Pardon.
Yeah, I'm seeing the s
On Thursday, January 5, 2017 at 9:51:17 AM UTC-8, ArnoB wrote:
> On 02-01-17 12:38, Antonio Caminero Garcia wrote:
> > Hello, I am having a hard time deciding what IDE or IDE-like code editor
> > should I use. This can be overwhelming.
> >
> > So far, I have used Vim, Sublime, Atom, Eclipse with P
On Wednesday, January 4, 2017 at 1:10:04 PM UTC-8, Dietmar Schwertberger wrote:
> On 04.01.2017 07:54, Antonio Caminero Garcia wrote:
> > Unfortunately most of the time I am still using print and input functions.
> > I know that sucks, I did not use the pdb module, I guess that IDE debuggers
> >
Antoon Pardon wrote, on January 06, 2017 2:11 AM
>
> Is there something going on with the mailinglist? Because I
> have receive a lot of double messages. One copy is fairly
> normal and is part of the discussion thread, the other is
> completely seperated. -- Antoon Pardon.
Looks to me like th
Good afternoon,
Thank you for advice and promptitude in answer.
Keep in touch for further questions.
Kind regards.
On Thursday, January 5, 2017 at 2:57:23 PM UTC+2, Ionut Predoiu wrote:
> Good afternoon,
>
> I am a beginner in programming language.
> I want to know what version of Python I mus
On 06.01.2017 09:40, Antonio Caminero Garcia wrote:
So why not use the debugger interactively to develop
applications. As long as one sets the breakpoints in a meaningful way so you
can trace your code in a very productive way. Is that what you mean by
interactive environment?
Well, not exactly
The second hardest problem in computer science is cache invalidation.
The *hardest* problem is naming things.
In a hierarchical tree view widget that displays items like this:
Fiction
├─ Fantasy
│ ├─ Terry Pratchett
│ │ ├─ Discworld
│ │ │ ├─ Wyrd Sisters
│ │ │ └
this a all of facek you are veiw the latest post today newspaperp on view paperpkads.
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, 07 Jan 2017 00:03:37 +1100, Steve D'Aprano wrote:
> The *hardest* problem is naming things.
>
> Fiction
> ├─ Fantasy
> │ ├─ Terry Pratchett
> │ │ ├─ Discworld
> │ │ │ ├─ Wyrd Sisters
> │ │ │ └─ Carpe Jugulum
[...]
> what do we call the vertical and hori
On 2017-01-06 13:44, Dan Sommers wrote:
> On Sat, 07 Jan 2017 00:03:37 +1100, Steve D'Aprano wrote:
> > what do we call the vertical and horizontal line elements? I want
> > to make them configurable, which means the user has to be able to
> > pass an argument that specifies them ...
>
> pstree(1)
Example: you are looking for the minimum absolute value in a series of
integers. As soon as you encounter the first 0 it's unnecessary extra work
to check the remaining values, but the builtin min() will continue.
The solution is a minimum function that allows the user to specify a stop
value:
Steve D'Aprano writes:
[...]
> Fiction
> ├─ Fantasy
> │ ├─ Terry Pratchett
> │ │ ├─ Discworld
> │ │ │ ├─ Wyrd Sisters
> │ │ │ └─ Carpe Jugulum
> │ │ └─ Dodger
> │ └─ JK Rowling
[...]
> what do we call the vertical and horizontal line elements?
Box-draw
"VT52 special graphics characters", anyone? Credit where credit is due. Who
hasn't borked their output and wound up with their VT(52|100) in graphics
mode? :-)
https://en.wikipedia.org/wiki/VT52
Skip
--
https://mail.python.org/mailman/listinfo/python-list
On Tuesday, January 3, 2017 at 8:08:37 PM UTC, Uri Even-Chen wrote:
> Thank you, I'll consider to update our requirements to latest versions of
> all packages. Last time I checked in 22th December 2016 and all our
> requirements were the latest versions. In the meantime we can keep using
> Python 3
Hi all, I'd suggest that this http://blog.pyspoken.com/2017/01/02/how-best-to-c
oerce-python-objects-to-integers/ is not one of the greatest articles ever
written about Python exception handling. Other opinions are welcome.
Kindest regards.
Mark Lawrence.
--
https://mail.python.org/mailman/l
On 01/06/2017 05:03 AM, Steve D'Aprano wrote:
what do we call the vertical and horizontal line elements? I want to make
them configurable, which means the user has to be able to pass an argument
that specifies them. I have names for the individual components:
XXX = namedtuple("XXX", "vline tee
[Please help spread the word by forwarding to other relevant mailing
lists, user groups, etc. world-wide; thanks :-)]
ANNOUNCING
Python Events Calendars - Please submit your 2017 events
maintained by th
> How to match latter(caps and small) ,numbers and # symbol in python pexpect.
With a .*
child = pexpect.spawnu("ssh cbpapp@%s"% CBP[cust_cbp_server])
child.setecho(False)
child.logfile = open("/opt/webapi/logs/delete_accountID.log", "w")
child.expect(".*assword:")
On Thursday, January 5, 2017 at 5:49:46 PM UTC-5, Irmen de Jong wrote:
> On 4-1-2017 23:14, zxpat...@gmail.com wrote:
> > Hi everyone,
> >
> > I ran into a case that I need to create a work process of an application
> > (Jython so has to call using java.exe) which will collect the data based on
Peter Otten writes:
> Example: you are looking for the minimum absolute value in a series of
> integers. As soon as you encounter the first 0 it's unnecessary extra work
> to check the remaining values, but the builtin min() will continue.
>
> The solution is a minimum function that allows the u
On 1/6/2017 15:04, Peter Otten wrote:
Example: you are looking for the minimum absolute value in a series of
integers. As soon as you encounter the first 0 it's unnecessary extra work
to check the remaining values, but the builtin min() will continue.
The solution is a minimum function that allo
Good morning,
Thanks to all for feedback and advice. Because I am a beginner I will read more
about versions of Python recommended by you.
On the other side I am interested to know if exist some sites which have
develop platform where can be use for free Python from browsers, without have
it i
> On Thu, Jan 5, 2017 at 12:12 PM, Chris Clark
> wrote:
>> I want an IDE that I can use at work and home, linux and dare I say
>> windows.
>> Sublime, had to remove it from my work PC as it is not licensed.
>> Atom, loved it until it slowed down.
>> VIM, ok the best if you know vi inside out.
>> A
Terry Reedy wrote, on January 04, 2017 10:18 PM
>
> On 1/5/2017 12:11 AM, Deborah Swanson wrote:
> > Terry Reedy wrote, on January 04, 2017 3:58 PM
>
> >> To have a string interpreted as a clickable link, you send the
string to
> >> software capable of creating a clickable link, plus the informatio
On Thursday, January 5, 2017 at 9:51:17 AM UTC-8, ArnoB wrote:
> On 02-01-17 12:38, Antonio Caminero Garcia wrote:
> > Hello, I am having a hard time deciding what IDE or IDE-like code editor
should I use. This can be overwhelming.
> >
> > So far, I have used Vim, Sublime, Atom, Eclipse with PyDev,
Rhodri James wrote, on January 05, 2017 3:53 AM
>
> On 05/01/17 04:52, Deborah Swanson wrote:
> > My original question was in fact whether there was a way to make
> > clickable hyperlinks in a console. I was persuaded after about 10
> > replies that the answer was no,
>
> Then you were persuaded wr
Hi Team,
How to match latter(caps and small) ,numbers and # symbol in python pexpect.
Thanks,
Iranna M
--
https://mail.python.org/mailman/listinfo/python-list
On 4-1-2017 23:14, zxpat...@gmail.com wrote:
> Hi everyone,
>
> I ran into a case that I need to create a work process of an application
(Jython so has to call using java.exe) which will collect the data based on
what main process indicates.
>
> (1) I tried multiprocessing package, no luck. Java.e
Ionut Predoiu wrote:
> I am a beginner in programming language.
> I want to know what version of Python I must to learn to use, beside of
> basic language, because I want to integrate in my site 1 page in which
> users to can made calculus based on my formulas already write behind (the
> users wil
On Thu, Jan 5, 2017 at 11:02 AM, Charles Heizer wrote:
> I have a MySQL database that is not managed (yet) and I would like to get an
output or diff against my new model file. I'm using flask-sqlalchemy.
>
> Are there any modules that would help me discover the differences so that I
can script a m
On Thursday, January 5, 2017 at 12:32:19 PM UTC-8, fpp wrote:
> > On Thu, Jan 5, 2017 at 12:12 PM, Chris Clark
> > wrote:
> >> I want an IDE that I can use at work and home, linux and dare I say
> >> windows.
> >> Sublime, had to remove it from my work PC as it is not licensed.
> >> Atom, loved it
On Thu, Jan 5, 2017 at 7:09 AM, H Krishnan wrote:
>
> I am working on embedding Python in my application.
You forgot to tell us the version of Python that you're embedding.
> I have redirected sys.stdin and sys.stdout to call methods from a Qt TextEdit
> widget. Everything works fine except that
Is there something going on with the mailinglist? Because I have receive a lot
of double messages. One copy is fairly normal and is part of the discussion
thread, the other is completely seperated. -- Antoon Pardon.
--
https://mail.python.org/mailman/listinfo/python-list
On Wednesday, January 4, 2017 at 1:10:04 PM UTC-8, Dietmar Schwertberger wrote:
> On 04.01.2017 07:54, Antonio Caminero Garcia wrote:
> > Unfortunately most of the time I am still using print and input functions.
I know that sucks, I did not use the pdb module, I guess that IDE debuggers
leverage
Ionut Predoiu wrote, on January 05, 2017 11:07 PM
>
> Good morning,
>
> Thanks to all for feedback and advice.
> Because I am a beginner I will read more about versions of
> Python recommended by you.
>
> On the other side I am interested to know if exist some sites
> which have develop platform wh
Hello Mr.Eryk,
Thanks for the detailed explanation. After I added attribute support to my
extension class for stdio, the problem was resolved.
Regards,
Krishnan
On Fri, Jan 6, 2017 at 9:24 AM, eryk sun wrote:
> On Fri, Jan 6, 2017 at 1:06 AM, H Krishnan wrote:
> > I tried replacing sys.disp
On 01/05/2017 05:57 AM, Ionut Predoiu wrote:
> Good afternoon,
>
> I am a beginner in programming language. I want to know what version
> of Python I must to learn to use, beside of basic language, because I
> want to integrate in my site 1 page in which users to can made
> calculus based on my for
On Fri, Jan 6, 2017 at 1:06 AM, H Krishnan wrote:
> I tried replacing sys.displayhook with a function that does not print
> newline but the newline still got inserted. So, I am not sure where the
> newline is coming from. In any case, I could override sys.displayhook to add
> a newline at the end
On 01/05/2017 04:53 PM, Victor Porton wrote:
> Ionut Predoiu wrote:
>
>> I am a beginner in programming language.
>> I want to know what version of Python I must to learn to use, beside of
>> basic language, because I want to integrate in my site 1 page in which
>> users to can made calculus based
On Wednesday 04 January 2017 12:10, Cameron Simpson wrote:
> On 03Jan2017 12:57, Steve D'Aprano wrote:
>>I dislike the Unix-style Vim/Emacs text editors, I prefer a traditional
>>GUI-based editor. So my "IDE" is:
>>- Firefox, for doing searches and looking up documentation;
>>- an GUI programmer'
Thanks for your help.
>
> >
> > I am working on embedding Python in my application.
>
> You forgot to tell us the version of Python that you're embedding.
>
> I am using Python2.7.
> > I have redirected sys.stdin and sys.stdout to call methods from a Qt
> TextEdit
> > widget. Everything works fi
Tim Johnson writes:
> * Antonio Caminero Garcia [170102 20:56]:
>> Guys really thank you for your answers. Basically now I am more
>> emphasizing in learning in depth a tool and get stick to it so I
>> can get a fast workflow. Eventually I will learn Vim and its
>> python developing setup, I kno
Antoon Pardon wrote, on January 06, 2017 2:11 AM
>
> Is there something going on with the mailinglist? Because I
> have receive a lot of double messages. One copy is fairly
> normal and is part of the discussion thread, the other is
> completely seperated. -- Antoon Pardon.
Looks to me like the ma
On 2017-01-05, Antoon Pardon wrote:
> Is there something going on with the mailinglist? Because I have receive a
> lot
> of double messages. One copy is fairly normal and is part of the discussion
> thread, the other is completely seperated. -- Antoon Pardon.
Yep, there are a _lot_ of duplica
Setting up a new computer to run Ubuntu 16.04. Started using pip3 to
install all the python stuff I had on the old machine and got this message:
jfb@jims-1604:~$ sudo pip3 install matplotlib
[sudo] password for jfb:
The directory '/home/jfb/.cache/pip/http' or its parent directory is not
owned
On 06Jan2017 15:44, jim wrote:
Setting up a new computer to run Ubuntu 16.04. Started using pip3 to
install all the python stuff I had on the old machine and got this
message:
jfb@jims-1604:~$ sudo pip3 install matplotlib
[sudo] password for jfb:
The directory '/home/jfb/.cache/pip/http' or i
Grant Edwards wrote, on January 06, 2017 1:56 PM
>
> On 2017-01-05, Antoon Pardon wrote:
>
> > Is there something going on with the mailinglist? Because I have
> > receive a lot
> > of double messages. One copy is fairly normal and is part
> of the discussion
> > thread, the other is complete
Packages supplied by your distribution can be trusted more than packages
from PyPi. Just my two cents.
Most distros offer nearly all the useful Python modules directly from the
repo.
Virtual environments are great, but if you want to add libraries to your
system interpreter I'd recommend a simple
On 06Jan2017 11:37, Joaquin Alzola wrote:
Iranna Mathapati asked:
How to match latter(caps and small) ,numbers and # symbol in python pexpect.
With a .*
Ugh. Please not. Expect() accepts a nongreedy regular expression. ".*" is the
lazy "match absolutely anything" pattern. Generally overus
Hi all,
How do I access the rows and columns of a data frame crosstab output?
Here is code using a sample data and output.
a= pd.read_csv("cross.dat", skipinitialspace=True)
xc=pd.crosstab(a['nam'],a['x1'],margins=True)
print(xc)
x10 1
nam
A13 2
A21 4
I want to create a va
>From Ubuntu, why not try:
sudo apt-get install python-matplotlib
-Clint
On Fri, Jan 6, 2017 at 3:09 PM jim wrote:
> Setting up a new computer to run Ubuntu 16.04. Started using pip3 to
>
> install all the python stuff I had on the old machine and got this message:
>
>
>
> jfb@jims-1604:~$ sud
Peter Otten <__pete...@web.de> writes:
> How would you implement stopmin()?
Use itertools.takewhile
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, January 6, 2017 at 10:37:40 AM UTC-5, Ethan Furman wrote:
> On 01/06/2017 05:03 AM, Steve D'Aprano wrote:
>
> > what do we call the vertical and horizontal line elements? I want to make
> > them configurable, which means the user has to be able to pass an argument
> > that specifies the
On Friday, January 6, 2017 at 8:45:41 PM UTC-5, Mario R. Osorio wrote:
> On Friday, January 6, 2017 at 10:37:40 AM UTC-5, Ethan Furman wrote:
> > On 01/06/2017 05:03 AM, Steve D'Aprano wrote:
> >
> > > what do we call the vertical and horizontal line elements? I want to make
> > > them configurabl
On 06Jan2017 23:03, Clint Moyer wrote:
Packages supplied by your distribution can be trusted more than packages
from PyPi. Just my two cents.
Most distros offer nearly all the useful Python modules directly from the
repo.
I would agree with this on the whole. And also that it is generally bett
On 01/06/2017 05:03 AM, Steve D'Aprano wrote:
The second hardest problem in computer science is cache invalidation.
The *hardest* problem is naming things.
In a hierarchical tree view widget that displays items like this:
Fiction
├─ Fantasy
│ ├─ Terry Pratchett
│ │ ├─ Discw
I'm not sure what Python is complaining about here, or why.
Here's the example from the Python docs:
https://docs.python.org/3/library/collections.html#collections.namedtupl
e
EmployeeRecord = namedtuple('EmployeeRecord', 'name, age, title,
department, paygrade')
import csv
for emp in map(Empl
On Sat, Jan 7, 2017 at 2:46 PM, Deborah Swanson
wrote:
> And here's the Traceback in PyCharm:
> File "E:/Coding projects/Pycharm/Moving/moving_numberedtuples.py",
> line 139, in moving()
> for lst in map(listings._make, csv.reader(open('E:\\Coding
> projects\\Pycharm\\Moving\\Moving 2017 in.
Chris Angelico wrote, on January 06, 2017 8:05 PM
> To: python-list@python.org
> Subject: Re: Namedtuples: TypeError: 'str' object is not callable
>
>
> On Sat, Jan 7, 2017 at 2:46 PM, Deborah Swanson
> wrote:
> > And here's the Traceback in PyCharm:
> > File "E:/Coding projects/Pycharm/Movin
On Sat, Jan 7, 2017 at 4:07 PM, Deborah Swanson
wrote:
> And you would be precisely correct. I have a variable named 'map', and I
> intended to delete it and the code that used it, but totally forgot
> about it. It's still in there somewhere, but a simple search will find
> it.
>
> I really don't
Chris Angelico wrote, on January 06, 2017 9:14 PM
>
> On Sat, Jan 7, 2017 at 4:07 PM, Deborah Swanson
> wrote:
> >
> > I really don't know how long it would've taken me to think of that,
so
> > thank you!
>
> I have a well-trained crystal ball :)
>
> ChrisA
More like a very experienced eye.
Paul Rubin writes:
> Peter Otten writes:
>> How would you implement stopmin()?
>
> Use itertools.takewhile
How? It consumes the crucial stop element:
it = iter('what?')
list(takewhile(str.isalpha, it)) # ==> ['w', 'h', 'a', 't']
next(it, 42) # ==> 42
--
https://mail.python.org/mailman/
On Saturday, January 7, 2017 at 12:26:04 PM UTC+5:30, Jussi Piitulainen wrote:
> Paul Rubin writes:
>
> > Peter Otten writes:
> >> How would you implement stopmin()?
> >
> > Use itertools.takewhile
>
> How? It consumes the crucial stop element:
>
>it = iter('what?')
>list(takewhile(str.i
On Sat, 7 Jan 2017 12:03 am, Steve D'Aprano wrote:
> The second hardest problem in computer science is cache invalidation.
>
> The *hardest* problem is naming things.
Thanks everyone who answered, but I think some of you misunderstood my
question. I know that the individual characters themselves
101 - 167 of 167 matches
Mail list logo