Re: how to write add frequency in particular file by reading a csv file and then making a new file of multiple csv file by adding frequency

2017-06-22 Thread Jussi Piitulainen
Dennis Lee Bieber writes: > On Thu, 22 Jun 2017 22:46:28 +0300, Jussi Piitulainen declaimed the > following: > >> >> A pair of methods, str.maketrans to make a translation table and then >> .translate on every string, allows to do all that in one step: >> >> spacy = r'\/-.[]{}()' >> tr = str.maket

Re: comp.lang.python killfile rule

2017-06-22 Thread Gregory Ewing
Marko Rauhamaa wrote: I'm still wondering if those flurries of Italian calumnies are actually steganographic instructions to intelligence agents of some country. Or a C&C system for someone's botnet? -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Progress on the Gilectomy

2017-06-22 Thread Gregory Ewing
Marko Rauhamaa wrote: And, BTW, my rule of thumb came from experiences with the Hotspot JRE. I wouldn't take a Java implementation to be representative of the behaviour of GC systems in general. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Best way to ensure user calls methods in correct order?

2017-06-22 Thread Gregory Ewing
Steve D'Aprano wrote: There are a very few exceptions to this rule of thumb, such as opening connections to databases or files or similar. Another way to handle that is to have the connection method return another object that has the methods that should only be called for active connections. Th

Re: Progress on the Gilectomy

2017-06-22 Thread Rustom Mody
On Thursday, June 22, 2017 at 4:28:03 AM UTC+5:30, Steve D'Aprano wrote: > On Thu, 22 Jun 2017 08:23 am, breamoreboy wrote: > > > Don't you know that Lawrence D’Oliveiro has been banned from the mailing > > list > > as he hasn't got a clue what he's talking about, > > That's not why he was give

[Distutils] ANNOUNCE: Sunsetting of uploading to the legacy PyPI/TestPyPI

2017-06-22 Thread breamoreboy
Things are moving on in the pypi world https://mail.python.org/pipermail/distutils-sig/2017-June/030766.html -- Kindest regards. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: matplotlib change?

2017-06-22 Thread breamoreboy
On Thursday, June 22, 2017 at 3:33:36 PM UTC+1, Michael F. Stemper wrote: > I have some scripts running as cronjobs that capture the status > of some long-term processes and then periodically plot the data. > The box where they normally run went down yesterday for some > unknown reason, so I ran th

Re: how to write add frequency in particular file by reading a csv file and then making a new file of multiple csv file by adding frequency

2017-06-22 Thread breamoreboy
On Thursday, June 22, 2017 at 12:16:28 PM UTC+1, kishan.samp...@gmail.com wrote: > I want to write a common file in which It can add the frequency by adding > multiple csv file and if the same words are repeated in python then it should > add the frequency in the common file can any one help me p

Re: comp.lang.python killfile rule

2017-06-22 Thread jladasky
On Thursday, June 22, 2017 at 2:57:02 PM UTC-7, Chris Angelico wrote: > On Fri, Jun 23, 2017 at 7:21 AM, Marko Rauhamaa wrote: > > I'm still wondering if those flurries of Italian calumnies are actually > > steganographic instructions to intelligence agents of some country. > > It's a super-sneak

To connect to an AS400 over Python, do we have to pay for IBMs driver license?

2017-06-22 Thread gulsumramazanoglu
Hi, I just wonder a point about connecting to an AS400 DB2 over Python and if you can shed some light, I will be happy... To connect to a DB2 of a remote AS400 over any one of the Python DB API interfaces (ibm_db, pyodbc, pyDB2 or any other one) from Python on Windows, in any case do we have t

Re: comp.lang.python killfile rule

2017-06-22 Thread Chris Angelico
On Fri, Jun 23, 2017 at 7:21 AM, Marko Rauhamaa wrote: > John Black : > >> All, in case this is useful to anyone, this rule that tells my newsreader >> which posts to kill really cleans up the group. I could not find a way >> to key off of anything in the header except keywords because the From >

Re: comp.lang.python killfile rule

2017-06-22 Thread Marko Rauhamaa
John Black : > All, in case this is useful to anyone, this rule that tells my newsreader > which posts to kill really cleans up the group. I could not find a way > to key off of anything in the header except keywords because the From > keeps changing and I didn't want to overkill real posts.

comp.lang.python killfile rule

2017-06-22 Thread John Black
All, in case this is useful to anyone, this rule that tells my newsreader which posts to kill really cleans up the group. I could not find a way to key off of anything in the header except keywords because the From keeps changing and I didn't want to overkill real posts. I may have to add a t

Re: Progress on the Gilectomy

2017-06-22 Thread Steve D'Aprano
On Fri, 23 Jun 2017 01:07 am, breamore...@gmail.com wrote: > 11 comments on the thread "Instagram: 40% Py3 to 99% Py3 in 10 months" showing > that he knows as much about Unicode as LDO knows about garabge collection. Who cares? Every time he opens his mouth to write absolute rubbish he just make

Re: Progress on the Gilectomy (Posting On Python-List Prohibited)

2017-06-22 Thread CFK
On Jun 22, 2017 4:03 PM, "Chris Angelico" wrote: On Fri, Jun 23, 2017 at 5:22 AM, CFK wrote: > On Jun 22, 2017 9:32 AM, "Chris Angelico" wrote: > > On Thu, Jun 22, 2017 at 11:24 PM, CFK wrote: >> When >> I draw memory usage graphs, I see sawtooth waves to the memory usage which >> suggest that

Re: Progress on the Gilectomy (Posting On Python-List Prohibited)

2017-06-22 Thread Chris Angelico
On Fri, Jun 23, 2017 at 5:22 AM, CFK wrote: > On Jun 22, 2017 9:32 AM, "Chris Angelico" wrote: > > On Thu, Jun 22, 2017 at 11:24 PM, CFK wrote: >> When >> I draw memory usage graphs, I see sawtooth waves to the memory usage which >> suggest that the garbage builds up until the GC kicks in and re

Re: how to write add frequency in particular file by reading a csv file and then making a new file of multiple csv file by adding frequency

2017-06-22 Thread Jussi Piitulainen
Dennis Lee Bieber writes: > # lowerecase all, open hyphenated and / separated words, parens, > # etc. > ln = ln.lower().replace("/", " ").replace("-", " ").replace(".", " ") > ln = ln.replace("\\", " ").replace("[", " ").replace("]", " ") > ln = ln.replace("{", " ").replace("}", " ") >

Re: Progress on the Gilectomy

2017-06-22 Thread Ned Batchelder
On Thursday, June 22, 2017 at 11:07:36 AM UTC-4, bream...@gmail.com wrote: > On Wednesday, June 21, 2017 at 11:58:03 PM UTC+1, Steve D'Aprano wrote: > > On Thu, 22 Jun 2017 08:23 am, breamoreboy wrote: > > > > > Don't you know that Lawrence D’Oliveiro has been banned from the mailing > > > list >

Re: Progress on the Gilectomy (Posting On Python-List Prohibited)

2017-06-22 Thread CFK
On Jun 22, 2017 9:32 AM, "Chris Angelico" wrote: On Thu, Jun 22, 2017 at 11:24 PM, CFK wrote: > When > I draw memory usage graphs, I see sawtooth waves to the memory usage which > suggest that the garbage builds up until the GC kicks in and reaps the > garbage. Interesting. How do you actually

Re: matplotlib change?

2017-06-22 Thread Michael F. Stemper
On 2017-06-22 12:16, Michael F. Stemper wrote: On 2017-06-22 10:54, Dennis Lee Bieber wrote: On Thu, 22 Jun 2017 09:33:15 -0500, "Michael F. Stemper" declaimed the following: If the difference isn't due to a change in matplotlib, would it be something OS-dependent? How can I track it down?

Re: matplotlib change?

2017-06-22 Thread Michael F. Stemper
On 2017-06-22 12:56, bill.jans...@gmail.com wrote: On Thursday, June 22, 2017 at 10:14:21 AM UTC-7, Michael F. Stemper wrote: On 2017-06-22 09:50, breamore...@gmail.com wrote: On Thursday, June 22, 2017 at 3:33:36 PM UTC+1, Michael F. Stemper wrote: Is it likely that the difference in plot

Re: matplotlib change?

2017-06-22 Thread bill . janssen
On Thursday, June 22, 2017 at 10:14:21 AM UTC-7, Michael F. Stemper wrote: > On 2017-06-22 09:50, breamore...@gmail.com wrote: > > On Thursday, June 22, 2017 at 3:33:36 PM UTC+1, Michael F. Stemper wrote: > >> I have some scripts running as cronjobs that capture the status > >> of some long-term pr

Re: matplotlib change?

2017-06-22 Thread Michael F. Stemper
On 2017-06-22 10:54, Dennis Lee Bieber wrote: On Thu, 22 Jun 2017 09:33:15 -0500, "Michael F. Stemper" declaimed the following: If the difference isn't due to a change in matplotlib, would it be something OS-dependent? How can I track it down? What renderer is being used? Tk, wx, et

Re: matplotlib change?

2017-06-22 Thread Michael F. Stemper
On 2017-06-22 09:50, breamore...@gmail.com wrote: On Thursday, June 22, 2017 at 3:33:36 PM UTC+1, Michael F. Stemper wrote: I have some scripts running as cronjobs that capture the status of some long-term processes and then periodically plot the data. The box where they normally run went down y

Re: Progress on the Gilectomy

2017-06-22 Thread Chris Angelico
On Fri, Jun 23, 2017 at 1:48 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> not "aim for 400MB because the garbage collector is only 10% >> efficient". Get yourself a better garbage collector. Employ Veolia or >> something. > > It's about giving GC room (space- and timewise) to operate. Also, y

Re: Progress on the Gilectomy

2017-06-22 Thread Marko Rauhamaa
Marko Rauhamaa : > Chris Angelico : > >> not "aim for 400MB because the garbage collector is only 10% >> efficient". Get yourself a better garbage collector. Employ Veolia or >> something. > > It's about giving GC room (space- and timewise) to operate. Also, you > don't want your memory consumptio

Re: Progress on the Gilectomy

2017-06-22 Thread Marko Rauhamaa
Chris Angelico : > not "aim for 400MB because the garbage collector is only 10% > efficient". Get yourself a better garbage collector. Employ Veolia or > something. It's about giving GC room (space- and timewise) to operate. Also, you don't want your memory consumption to hit the RAM ceiling even

Re: Instagram: 40% Py3 to 99% Py3 in 10 months (Posting On Python-List Prohibited)

2017-06-22 Thread Chris Angelico
On Fri, Jun 23, 2017 at 1:14 AM, Dennis Lee Bieber wrote: > On Fri, 23 Jun 2017 00:50:36 +1000, Steve D'Aprano > declaimed the following: > >> >>Although, the Unicode Consortium thinks of them as more like private use >>characters, only even more private, and not characters :-) >> >>(If you ask m

EuroPython 2017: Call for on-site volunteers

2017-06-22 Thread M.-A. Lemburg
Would you like to be more than a participant and contribute to make this 2017 edition of EuroPython a smooth success? Help us! * EuroPython 2017 Volunteers * https://ep2017.europython.eu/en/registration/volunteers/ We have a few tasks that are open for attendees who

Re: Best way to ensure user calls methods in correct order?

2017-06-22 Thread Thomas Nyberg
[I accidentally sent this only to Peter, but wanted instead to send it to the list for anyone else who happens upon it...now sending to the list...] On 06/22/2017 04:31 PM, Peter Otten wrote: > If the order is linear like it seems to be the following might work: Thanks a lot! This removes the dup

Re: Best way to ensure user calls methods in correct order?

2017-06-22 Thread Thomas Nyberg
Thanks for the response! I see the reasoning, but I can't entirely square it with what I'm thinking. Probably it's either because I was hiding some of my intention (sorry if I wasted your time due to lack of details) or that I'm naive and regardless of intention doing something silly. On 06/22/201

Re: Instagram: 40% Py3 to 99% Py3 in 10 months (Posting On Python-List Prohibited)

2017-06-22 Thread Steve D'Aprano
On Thu, 22 Jun 2017 11:57 pm, Chris Angelico wrote: > On Thu, Jun 22, 2017 at 11:33 PM, Steve D'Aprano > wrote: >> and besides some Unicode code points are not >> characters at all). >> >> http://www.unicode.org/faq/private_use.html#noncharacters > > AIUI, "noncharacters" are like the IEEE float

Re: Best way to ensure user calls methods in correct order?

2017-06-22 Thread Steve D'Aprano
On Thu, 22 Jun 2017 11:53 pm, Thomas Nyberg wrote: > I have a situation in which I want a user to call methods in a certain > order and to force the re-calling of methods "down-stream" if upstream > methods are called again. Don't do that. It's fragile and an anti-pattern. Your methods have too m

matplotlib change?

2017-06-22 Thread Michael F. Stemper
I have some scripts running as cronjobs that capture the status of some long-term processes and then periodically plot the data. The box where they normally run went down yesterday for some unknown reason, so I ran them manually on another box so that others on the project could continue to watch

Re: Best way to ensure user calls methods in correct order?

2017-06-22 Thread Peter Otten
Thomas Nyberg wrote: > I have a situation in which I want a user to call methods in a certain > order and to force the re-calling of methods "down-stream" if upstream > methods are called again. An example of this sort of thing would be a > pipeline where calling methods again invalidates the resu

Best way to ensure user calls methods in correct order?

2017-06-22 Thread Thomas Nyberg
Hello, I have a situation in which I want a user to call methods in a certain order and to force the re-calling of methods "down-stream" if upstream methods are called again. An example of this sort of thing would be a pipeline where calling methods again invalidates the results of methods called

Re: Instagram: 40% Py3 to 99% Py3 in 10 months (Posting On Python-List Prohibited)

2017-06-22 Thread Chris Angelico
On Thu, Jun 22, 2017 at 11:33 PM, Steve D'Aprano wrote: > and besides some Unicode code points are not > characters at all). > > http://www.unicode.org/faq/private_use.html#noncharacters AIUI, "noncharacters" are like the IEEE floating point value "not-a-number". If you ask for the type of it in

Re: Progress on the Gilectomy

2017-06-22 Thread Chris Angelico
On Thu, Jun 22, 2017 at 11:27 PM, Marko Rauhamaa wrote: > CFK : > >> Yes, and this is why I suspect CPython would work well too. My usage >> pattern may be similar to Python usage patterns. The only way to know for >> sure is to try it and see what happens. > > I have a rule of thumb that your ap

Re: Instagram: 40% Py3 to 99% Py3 in 10 months (Posting On Python-List Prohibited)

2017-06-22 Thread Steve D'Aprano
On Wed, 21 Jun 2017 09:23 am, Lawrence D’Oliveiro wrote: > Though the Perl 6 folks claim their approach (encoding “characters” rather > than “code points”) is superior. Can you explain what you are referring to precisely? According to the Perl 6 docs, they do encode code points, not "characters"

Re: Progress on the Gilectomy

2017-06-22 Thread Marko Rauhamaa
CFK : > Yes, and this is why I suspect CPython would work well too. My usage > pattern may be similar to Python usage patterns. The only way to know for > sure is to try it and see what happens. I have a rule of thumb that your application should not need more than 10% of the available RAM. If y

Re: Progress on the Gilectomy (Posting On Python-List Prohibited)

2017-06-22 Thread Chris Angelico
On Thu, Jun 22, 2017 at 11:24 PM, CFK wrote: > When > I draw memory usage graphs, I see sawtooth waves to the memory usage which > suggest that the garbage builds up until the GC kicks in and reaps the > garbage. Interesting. How do you actually measure this memory usage? Often, when a GC frees u

Re: Progress on the Gilectomy (Posting On Python-List Prohibited)

2017-06-22 Thread CFK
On Jun 22, 2017 12:38 AM, "Paul Rubin" wrote: Lawrence D’Oliveiro writes: > while “memory footprint” depends on how much memory is actually being > retained in accessible objects. If the object won't be re-accessed but is still retained by gc, then refcounting won't free it either. > Once agai

Re: Progress on the Gilectomy

2017-06-22 Thread CFK
On Jun 21, 2017 1:38 AM, "Paul Rubin" wrote: Cem Karan writes: > I'm not too sure how much of performance impact that will have. My > code generates a very large number of tiny, short-lived objects at a > fairly high rate of speed throughout its lifetime. At least in the > last iteration of th

how to write add frequency in particular file by reading a csv file and then making a new file of multiple csv file by adding frequency

2017-06-22 Thread kishan . sampat . cerelabs
I want to write a common file in which It can add the frequency by adding multiple csv file and if the same words are repeated in python then it should add the frequency in the common file can any one help me please import re import operator import string class words: def __init__(self,fh)

ANN: Python Meeting Düsseldorf - 28.06.2017

2017-06-22 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG Python Meeting Düsseldorf http://pyddf.de/ Ein Tref