From eliswilson at hushmail.com Wed May 1 00:05:33 2013 From: eliswilson at hushmail.com (eliswilson at hushmail.com) Date: Tue, 30 Apr 2013 18:05:33 -0400 Subject: [code-quality] Biggest Fake Conference in Computer Science Message-ID: <20130430220533.9274F14DBDE@smtp.hushmail.com> Biggest Fake Conference in Computer Science We are researchers from different parts of the world and conducted a study on the world?s biggest bogus computer science conference WORLDCOMP http://sites.google.com/site/worlddump1 organized by Prof. Hamid Arabnia from University of Georgia, USA. We submitted a fake paper to WORLDCOMP 2011 and again (the same paper with a modified title) to WORLDCOMP 2012. This paper had numerous fundamental mistakes. Sample statements from that paper include: (1). Binary logic is fuzzy logic and vice versa (2). Pascal developed fuzzy logic (3). Object oriented languages do not exhibit any polymorphism or inheritance (4). TCP and IP are synonyms and are part of OSI model (5). Distributed systems deal with only one computer (6). Laptop is an example for a super computer (7). Operating system is an example for computer hardware Also, our paper did not express any conceptual meaning. However, it was accepted both the times without any modifications (and without any reviews) and we were invited to submit the final paper and a payment of $500+ fee to present the paper. We decided to use the fee for better purposes than making Prof. Hamid Arabnia richer. After that, we received few reminders from WORLDCOMP to pay the fee but we never responded. This fake paper is different from the two fake papers already published (see https://sites.google.com/site/worlddump4 for details) in WORLDCOMP. We MUST say that you should look at the above website if you have any thoughts of participating in WORLDCOMP. DBLP and other indexing agencies have stopped indexing WORLDCOMP?s proceedings since 2011 due to its fakeness. See http://www.informatik.uni-trier.de/~ley/db/conf/icai/index.html for of one of the conferences of WORLDCOMP and notice that there is no listing after 2010. See Section 2 of http://sites.google.com/site/dumpconf for comments from well-known researchers about WORLDCOMP. The status of your WORLDCOMP papers can be changed from scientific to other (i.e., junk or non-technical) at any time. Better not to have a paper than having it in WORLDCOMP and spoil the resume and peace of mind forever! Our study revealed that WORLDCOMP is money making business, using University of Georgia mask, for Prof. Hamid Arabnia. He is throwing out a small chunk of that money (around 20 dollars per paper published in WORLDCOMP?s proceedings) to his puppet (Mr. Ashu Solo or A.M.G. Solo) who publicizes WORLDCOMP and also defends it at various forums, using fake/anonymous names. The puppet uses fake names and defames other conferences to divert traffic to WORLDCOMP. He also makes anonymous phone calls and threatens the critiques of WORLDCOMP (See Item 7 of Section 5 of above website). That is, the puppet does all his best to get a maximum number of papers published at WORLDCOMP to get more money into his (and Prof. Hamid Arabnia?s) pockets. Prof. Hamid Arabnia makes a lot of tricks. For example, he appeared in a newspaper to fool the public, claiming him a victim of cyber-attack (see Item 8 in Section 5 of above website). Monte Carlo Resort (the venue of WORLDCOMP for more than 10 years, until 2012) has refused to provide the venue for WORLDCOMP?13 because of the fears of their image being tarnished due to WORLDCOMP?s fraudulent activities. That is why WORLDCOMP?13 is taking place at a different resort. WORLDCOMP will not be held after 2013. The draft paper submission deadline is over but still there are no committee members, no reviewers, and there is no conference Chairman. The only contact details available on WORLDCOMP?s website is just an email address! We ask Prof. Hamid Arabnia to publish all reviews for all the papers (after blocking identifiable details) since 2000 conference. Reveal the names and affiliations of all the reviewers (for each year) and how many papers each reviewer had reviewed on average. We also ask him to look at the Open Challenge (Section 6) at https://sites.google.com/site/moneycomp1 and respond if he has any professional values. Sorry for posting to multiple lists. Spreading the word is the only way to stop this bogus conference. Please forward this message to other mailing lists and people. We are shocked with Prof. Hamid Arabnia and his puppet?s activities at http://worldcomp-fake-bogus.blogspot.com Search Google using the keyword worldcomp fake for additional links. From iman.zabet at gmail.com Wed May 1 01:36:42 2013 From: iman.zabet at gmail.com (Iman Zabet) Date: Wed, 1 May 2013 04:06:42 +0430 Subject: [code-quality] Biggest Fake Conference in Computer Science In-Reply-To: <20130430220533.9274F14DBDE@smtp.hushmail.com> References: <20130430220533.9274F14DBDE@smtp.hushmail.com> Message-ID: Could you please introduce yourself exactly??? On Wed, May 1, 2013 at 2:35 AM, wrote: > Biggest Fake Conference in Computer Science > > We are researchers from different parts of the world and conducted a study > on the world?s biggest > bogus computer science conference WORLDCOMP > http://sites.google.com/site/worlddump1 > organized by Prof. Hamid Arabnia from University of Georgia, USA. > > > We submitted a fake paper to WORLDCOMP 2011 and again (the same paper with > a modified title) to > WORLDCOMP 2012. This paper had numerous fundamental mistakes. Sample > statements from that > paper include: > > (1). Binary logic is fuzzy logic and vice versa > (2). Pascal developed fuzzy logic > (3). Object oriented languages do not exhibit any polymorphism or > inheritance > (4). TCP and IP are synonyms and are part of OSI model > (5). Distributed systems deal with only one computer > (6). Laptop is an example for a super computer > (7). Operating system is an example for computer hardware > > > Also, our paper did not express any conceptual meaning. However, it was > accepted both the times > without any modifications (and without any reviews) and we were invited to > submit the final paper > and a payment of $500+ fee to present the paper. We decided to use the fee > for better purposes than > making Prof. Hamid Arabnia richer. After that, we received few reminders > from WORLDCOMP to pay > the fee but we never responded. This fake paper is different from the two > fake papers already published > (see https://sites.google.com/site/worlddump4 for details) in WORLDCOMP. > > > We MUST say that you should look at the above website if you have any > thoughts of participating in > WORLDCOMP. DBLP and other indexing agencies have stopped indexing > WORLDCOMP?s proceedings > since 2011 due to its fakeness. See > http://www.informatik.uni-trier.de/~ley/db/conf/icai/index.html for > of one of the conferences of WORLDCOMP and notice that there is no listing > after 2010. See Section 2 of > http://sites.google.com/site/dumpconf for comments from well-known > researchers about > WORLDCOMP. > > > The status of your WORLDCOMP papers can be changed from scientific to > other (i.e., junk or > non-technical) at any time. Better not to have a paper than having it in > WORLDCOMP and spoil the > resume and peace of mind forever! > > > Our study revealed that WORLDCOMP is money making business, using > University of Georgia mask, for > Prof. Hamid Arabnia. He is throwing out a small chunk of that money > (around 20 dollars per paper > published in WORLDCOMP?s proceedings) to his puppet (Mr. Ashu Solo or > A.M.G. Solo) who publicizes > WORLDCOMP and also defends it at various forums, using fake/anonymous > names. The puppet uses > fake names and defames other conferences to divert traffic to WORLDCOMP. > He also makes anonymous > phone calls and threatens the critiques of WORLDCOMP (See Item 7 of > Section 5 of above website). That > is, the puppet does all his best to get a maximum number of papers > published at WORLDCOMP to get > more money into his (and Prof. Hamid Arabnia?s) pockets. Prof. Hamid > Arabnia makes a lot of tricks. For > example, he appeared in a newspaper to fool the public, claiming him a > victim of cyber-attack (see Item > 8 in Section 5 of above website). > > > Monte Carlo Resort (the venue of WORLDCOMP for more than 10 years, until > 2012) has refused to > provide the venue for WORLDCOMP?13 because of the fears of their image > being tarnished due to > WORLDCOMP?s fraudulent activities. That is why WORLDCOMP?13 is taking > place at a different resort. > WORLDCOMP will not be held after 2013. > > > The draft paper submission deadline is over but still there are no > committee members, no reviewers, > and there is no conference Chairman. The only contact details available on > WORLDCOMP?s website is > just an email address! > > We ask Prof. Hamid Arabnia to publish all reviews for all the papers > (after blocking identifiable details) > since 2000 conference. Reveal the names and affiliations of all the > reviewers (for each year) and how > many papers each reviewer had reviewed on average. We also ask him to look > at the Open Challenge > (Section 6) at https://sites.google.com/site/moneycomp1 and respond if he > has any professional values. > > > Sorry for posting to multiple lists. Spreading the word is the only way to > stop this bogus conference. > Please forward this message to other mailing lists and people. > > > We are shocked with Prof. Hamid Arabnia and his puppet?s activities at > http://worldcomp-fake-bogus.blogspot.com Search Google using the > keyword worldcomp fake for > additional links. > > _______________________________________________ > code-quality mailing list > code-quality at python.org > http://mail.python.org/mailman/listinfo/code-quality > -------------- next part -------------- An HTML attachment was scrubbed... URL: From graffatcolmingov at gmail.com Wed May 1 01:48:58 2013 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Tue, 30 Apr 2013 19:48:58 -0400 Subject: [code-quality] Biggest Fake Conference in Computer Science In-Reply-To: References: <20130430220533.9274F14DBDE@smtp.hushmail.com> Message-ID: This is spam. Ignore it On Apr 30, 2013 7:46 PM, "Iman Zabet" wrote: > Could you please introduce yourself exactly??? > > > On Wed, May 1, 2013 at 2:35 AM, wrote: > >> Biggest Fake Conference in Computer Science >> >> We are researchers from different parts of the world and conducted a >> study on the world?s biggest >> bogus computer science conference WORLDCOMP >> http://sites.google.com/site/worlddump1 >> organized by Prof. Hamid Arabnia from University of Georgia, USA. >> >> >> We submitted a fake paper to WORLDCOMP 2011 and again (the same paper >> with a modified title) to >> WORLDCOMP 2012. This paper had numerous fundamental mistakes. Sample >> statements from that >> paper include: >> >> (1). Binary logic is fuzzy logic and vice versa >> (2). Pascal developed fuzzy logic >> (3). Object oriented languages do not exhibit any polymorphism or >> inheritance >> (4). TCP and IP are synonyms and are part of OSI model >> (5). Distributed systems deal with only one computer >> (6). Laptop is an example for a super computer >> (7). Operating system is an example for computer hardware >> >> >> Also, our paper did not express any conceptual meaning. However, it was >> accepted both the times >> without any modifications (and without any reviews) and we were invited >> to submit the final paper >> and a payment of $500+ fee to present the paper. We decided to use the >> fee for better purposes than >> making Prof. Hamid Arabnia richer. After that, we received few reminders >> from WORLDCOMP to pay >> the fee but we never responded. This fake paper is different from the two >> fake papers already published >> (see https://sites.google.com/site/worlddump4 for details) in WORLDCOMP. >> >> >> We MUST say that you should look at the above website if you have any >> thoughts of participating in >> WORLDCOMP. DBLP and other indexing agencies have stopped indexing >> WORLDCOMP?s proceedings >> since 2011 due to its fakeness. See >> http://www.informatik.uni-trier.de/~ley/db/conf/icai/index.html for >> of one of the conferences of WORLDCOMP and notice that there is no >> listing after 2010. See Section 2 of >> http://sites.google.com/site/dumpconf for comments from well-known >> researchers about >> WORLDCOMP. >> >> >> The status of your WORLDCOMP papers can be changed from scientific to >> other (i.e., junk or >> non-technical) at any time. Better not to have a paper than having it in >> WORLDCOMP and spoil the >> resume and peace of mind forever! >> >> >> Our study revealed that WORLDCOMP is money making business, using >> University of Georgia mask, for >> Prof. Hamid Arabnia. He is throwing out a small chunk of that money >> (around 20 dollars per paper >> published in WORLDCOMP?s proceedings) to his puppet (Mr. Ashu Solo or >> A.M.G. Solo) who publicizes >> WORLDCOMP and also defends it at various forums, using fake/anonymous >> names. The puppet uses >> fake names and defames other conferences to divert traffic to WORLDCOMP. >> He also makes anonymous >> phone calls and threatens the critiques of WORLDCOMP (See Item 7 of >> Section 5 of above website). That >> is, the puppet does all his best to get a maximum number of papers >> published at WORLDCOMP to get >> more money into his (and Prof. Hamid Arabnia?s) pockets. Prof. Hamid >> Arabnia makes a lot of tricks. For >> example, he appeared in a newspaper to fool the public, claiming him a >> victim of cyber-attack (see Item >> 8 in Section 5 of above website). >> >> >> Monte Carlo Resort (the venue of WORLDCOMP for more than 10 years, until >> 2012) has refused to >> provide the venue for WORLDCOMP?13 because of the fears of their image >> being tarnished due to >> WORLDCOMP?s fraudulent activities. That is why WORLDCOMP?13 is taking >> place at a different resort. >> WORLDCOMP will not be held after 2013. >> >> >> The draft paper submission deadline is over but still there are no >> committee members, no reviewers, >> and there is no conference Chairman. The only contact details available >> on WORLDCOMP?s website is >> just an email address! >> >> We ask Prof. Hamid Arabnia to publish all reviews for all the papers >> (after blocking identifiable details) >> since 2000 conference. Reveal the names and affiliations of all the >> reviewers (for each year) and how >> many papers each reviewer had reviewed on average. We also ask him to >> look at the Open Challenge >> (Section 6) at https://sites.google.com/site/moneycomp1 and respond if >> he has any professional values. >> >> >> Sorry for posting to multiple lists. Spreading the word is the only way >> to stop this bogus conference. >> Please forward this message to other mailing lists and people. >> >> >> We are shocked with Prof. Hamid Arabnia and his puppet?s activities at >> http://worldcomp-fake-bogus.blogspot.com Search Google using the >> keyword worldcomp fake for >> additional links. >> >> _______________________________________________ >> code-quality mailing list >> code-quality at python.org >> http://mail.python.org/mailman/listinfo/code-quality >> > > > _______________________________________________ > code-quality mailing list > code-quality at python.org > http://mail.python.org/mailman/listinfo/code-quality > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fortharris at gmail.com Wed May 1 20:30:33 2013 From: fortharris at gmail.com (harry) Date: Wed, 1 May 2013 19:30:33 +0100 Subject: [code-quality] pep8 checker suggestion Message-ID: hi, i am currently working on an ide for python, i intended to enable pep8 checking by default but as it turned out, the checker was written purposefully for the command line making it a bit difficult and untidy to incorporate into the ide. i will therefore suggest that for future release, you enable the checker to be usable as a library so that the output can easily be processed and also the overal build of my ide will be a bit more compact. thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From florent.xicluna at gmail.com Wed May 1 21:00:08 2013 From: florent.xicluna at gmail.com (Florent) Date: Wed, 1 May 2013 21:00:08 +0200 Subject: [code-quality] pep8 checker suggestion In-Reply-To: References: Message-ID: Hello, I'm the current maintainer of pep8. I confirm that the project provides a public API and can be used as a library since version 1.3. http://pep8.readthedocs.org/en/latest/api.html There are many tools which already use it. If you need something different, feel free to open an issue on the issue tracker, on GitHub. -- Florent Xicluna 2013/5/1 harry > hi, i am currently working on an ide for python, i intended to enable pep8 > checking by default but as it turned out, the checker was written > purposefully for the command line making it a bit difficult and untidy to > incorporate into the ide. i will therefore suggest that for future release, > you enable the checker to be usable as a library so that the output can > easily be processed and also the overal build of my ide will be a bit more > compact. thanks. > > _______________________________________________ > code-quality mailing list > code-quality at python.org > http://mail.python.org/mailman/listinfo/code-quality > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From florent.xicluna at gmail.com Wed May 1 21:07:41 2013 From: florent.xicluna at gmail.com (Florent) Date: Wed, 1 May 2013 21:07:41 +0200 Subject: [code-quality] pep8 checker suggestion In-Reply-To: References: Message-ID: There are some examples of API usage here: http://pep8.readthedocs.org/en/latest/advanced.html Then you can have a look at Flake8 or other tools: https://github.com/jcrocholl/pep8/wiki/RelatedTools#integration-of-pep8-with-other-tools -- Florent 2013/5/1 Florent > Hello, > > I'm the current maintainer of pep8. I confirm that the project provides a > public API and can be used as a library since version 1.3. > http://pep8.readthedocs.org/en/latest/api.html > > There are many tools which already use it. > If you need something different, feel free to open an issue on the issue > tracker, on GitHub. > > -- > Florent Xicluna > > > 2013/5/1 harry > >> hi, i am currently working on an ide for python, i intended to enable >> pep8 checking by default but as it turned out, the checker was written >> purposefully for the command line making it a bit difficult and untidy to >> incorporate into the ide. i will therefore suggest that for future release, >> you enable the checker to be usable as a library so that the output can >> easily be processed and also the overal build of my ide will be a bit more >> compact. thanks. >> >> _______________________________________________ >> code-quality mailing list >> code-quality at python.org >> http://mail.python.org/mailman/listinfo/code-quality >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvain.thenault at logilab.fr Tue May 7 09:14:51 2013 From: sylvain.thenault at logilab.fr (Sylvain =?utf-8?B?VGjDqW5hdWx0?=) Date: Tue, 7 May 2013 09:14:51 +0200 Subject: [code-quality] news from the Pylint front In-Reply-To: References: <20130418125024.GE2439@logilab.fr> <516FECCB.2070704@ziade.org> Message-ID: <20130507071451.GD2627@logilab.fr> On 18 avril 10:15, Ian Cordasco wrote: > On Thu, Apr 18, 2013 at 8:53 AM, Tarek Ziad? wrote: > > On 4/18/13 2:50 PM, Sylvain Th?nault wrote: > >> Following the bitbucket move, we're currently discussing about moving > >> Pylint related > >> discussions from its current mailing-list > >> (python-projects at lists.logilab.org) to this > >> one. You can see from the archives [3] that this is not high traffic, but > >> neither > >> negligeable compared to this list current traffic. Of course I would like > >> to know > >> opinion from people here before acting anything. > > > > That would be very cool - it makes a lot of sense if we can all reunite in > > the same place > > What Tarek said x2. We made the mailing list with the hope of > consolidating conversation and having yet another place for running > ideas past each other. So code-quality is now the pylint mailing-list as well, and we stated that in http://docs.pylint.org/contribute.html#mailing-lists :) -- Sylvain Th?nault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42) Formations Python, Debian, M?th. Agiles: http://www.logilab.fr/formations D?veloppement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org From graffatcolmingov at gmail.com Sat May 11 01:57:47 2013 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Fri, 10 May 2013 19:57:47 -0400 Subject: [code-quality] [Python-ideas] Implicit string literal concatenation considered harmful? In-Reply-To: References: Message-ID: On May 10, 2013 7:51 PM, "Nick Coghlan" wrote: > > > On 11 May 2013 04:50, "Guido van Rossum" wrote: > > > > I just spent a few minutes staring at a bug caused by a missing comma > > -- I got a mysterious argument count error because instead of foo('a', > > 'b') I had written foo('a' 'b'). > > > > This is a fairly common mistake, and IIRC at Google we even had a lint > > rule against this (there was also a Python dialect used for some > > specific purpose where this was explicitly forbidden). > > > > Now, with modern compiler technology, we can (and in fact do) evaluate > > compile-time string literal concatenation with the '+' operator, so > > there's really no reason to support 'a' 'b' any more. (The reason was > > always rather flimsy; I copied it from C but the reason why it's > > needed there doesn't really apply to Python, as it is mostly useful > > inside macros.) > > > > Would it be reasonable to start deprecating this and eventually remove > > it from the language? > > I could live with it if we get "dedent()" as a string method. I'd be even happier if constant folding was extended to platform independent method calls on literals, but I don't believe there's a sane way to maintain the "platform independent" constraint. > > OTOH, it's almost on the scale of "remove string mod formatting". Shipping at least a basic linting tool in the stdlib would probably be almost as effective and substantially less disruptive. lib2to3 should provide some decent infrastructure for that. I have cc'd the code-quality mailing list since several linger authors are subscribed there. -------------- next part -------------- An HTML attachment was scrubbed... URL: From afayolle.ml at free.fr Sat May 11 14:12:39 2013 From: afayolle.ml at free.fr (Alexandre Fayolle ML) Date: Sat, 11 May 2013 14:12:39 +0200 Subject: [code-quality] [Python-ideas] Implicit string literal concatenation considered harmful? In-Reply-To: References: Message-ID: <518E35B7.8020404@free.fr> On 11/05/2013 01:57, Ian Cordasco wrote: > > > On May 10, 2013 7:51 PM, "Nick Coghlan" > wrote: > > > > > > On 11 May 2013 04:50, "Guido van Rossum" > wrote: > > > > > > I just spent a few minutes staring at a bug caused by a missing comma > > > -- I got a mysterious argument count error because instead of foo('a', > > > 'b') I had written foo('a' 'b'). > > > > > > This is a fairly common mistake, and IIRC at Google we even had a lint > > > rule against this (there was also a Python dialect used for some > > > specific purpose where this was explicitly forbidden). > > > > > > Now, with modern compiler technology, we can (and in fact do) evaluate > > > compile-time string literal concatenation with the '+' operator, so > > > there's really no reason to support 'a' 'b' any more. (The reason was > > > always rather flimsy; I copied it from C but the reason why it's > > > needed there doesn't really apply to Python, as it is mostly useful > > > inside macros.) > > > > > > Would it be reasonable to start deprecating this and eventually remove > > > it from the language? > > > > I could live with it if we get "dedent()" as a string method. I'd be > even happier if constant folding was extended to platform independent > method calls on literals, but I don't believe there's a sane way to > maintain the "platform independent" constraint. > > > > OTOH, it's almost on the scale of "remove string mod formatting". > Shipping at least a basic linting tool in the stdlib would probably be > almost as effective and substantially less disruptive. lib2to3 should > provide some decent infrastructure for that. > > I have cc'd the code-quality mailing list since several linger authors > are subscribed there. > > > > _______________________________________________ > code-quality mailing list > code-quality at python.org > http://mail.python.org/mailman/listinfo/code-quality I originally thought this was dangerous, and then changed my mind, and find this very useful when wrapping long strings to fit in 80 columns. I'll typically use such wrapping on SQL statements: cursor.execute('SELECT foo, bar FROM mytable ' 'WHERE baz = %(baz)s', {'baz': baz}) If you have a check for the number of mandatory arguments of a callable, you will catch some of the issues caused by this (not all of them though...) Then it's all a matter of the coding standards in your project / organization. So having a check for this in the various code checkers could probably be a nice addition, as long as it can be deactivated. -- Alexandre Fayolle -------------- next part -------------- An HTML attachment was scrubbed... URL: From zedr at zedr.com Sat May 11 16:28:52 2013 From: zedr at zedr.com (Rigel) Date: Sat, 11 May 2013 15:28:52 +0100 Subject: [code-quality] [Python-ideas] Implicit string literal concatenation considered harmful? In-Reply-To: <518E35B7.8020404@free.fr> References: <518E35B7.8020404@free.fr> Message-ID: On Sat, May 11, 2013 at 1:12 PM, Alexandre Fayolle ML wrote: > > I'll typically use such wrapping on SQL statements: > > cursor.execute('SELECT foo, bar FROM mytable ' > > 'WHERE baz = %(baz)s', > > {'baz': baz}) > > I prefer to use string concatenation using the 'addition' operator, which makes it more explicit: cursor.execute('SELECT foo, bar FROM mytable ' + 'WHERE baz = %(baz)s', {'baz': baz}) At compile time, they are implemented in the same way: >>> dis.dis(lambda: 'a' + 'a') 2 0 LOAD_CONST 2 ('aa') 3 RETURN_VALUE >>> dis.dis(lambda: 'a' 'a') 2 0 LOAD_CONST 1 ('aa') 3 RETURN_VALUE Rigel -------------- next part -------------- An HTML attachment was scrubbed... URL: From graffatcolmingov at gmail.com Sat May 11 20:15:31 2013 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Sat, 11 May 2013 14:15:31 -0400 Subject: [code-quality] Fwd: [Python-ideas] Implicit string literal concatenation considered harmful? In-Reply-To: References: <20130510211613.53f7649d@fsol> <26629027-323D-4BE3-A802-C6568A7157D7@underboss.org> <518E73E2.5060408@stackless.com> Message-ID: ---------- Forwarded message ---------- From: Nick Coghlan Date: Sat, May 11, 2013 at 12:48 PM Subject: Re: [Python-ideas] Implicit string literal concatenation considered harmful? To: Christian Tismer Cc: Stefan Behnel , "python-ideas at python.org" On Sun, May 12, 2013 at 2:37 AM, Christian Tismer wrote: > So if there was some notation (not specified yet how) that triggers correct > indentation at compile time without extra functional hacks, so that > > long_text = """ > this text is left justified > and this line indents by two spaces > """ > > is stripped the leading and trailing \n and indentation is justified, > then I think the need for the implicit whitespace operator would be small. Through participating in this thread, I've realised that the distinction between when I use a triple quoted string (with or without textwrap.dedent()) and when I use implicit string concatenation is whether or not I want the newlines in the result. Often I can avoid the issue entirely by splitting a statement into multiple pieces, but I think Guido's right that if we didn't have implicit string concatenation there's no way we would add it ("just use a triple quoted string with escaped newlines" or "just use runtime string concatenation"), but given that we *do* have it, I don't think it's worth the hassle of removing it over a bug that a lint program should be able to pick up. So I'm back to where I started, which is that if this kind of problem really bothers anyone, start thinking seriously about the idea of a standard library linter. Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia _______________________________________________ Python-ideas mailing list Python-ideas at python.org http://mail.python.org/mailman/listinfo/python-ideas From graffatcolmingov at gmail.com Sat May 11 20:18:45 2013 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Sat, 11 May 2013 14:18:45 -0400 Subject: [code-quality] [Python-ideas] Implicit string literal concatenation considered harmful? In-Reply-To: References: <20130510211613.53f7649d@fsol> <26629027-323D-4BE3-A802-C6568A7157D7@underboss.org> <518E73E2.5060408@stackless.com> Message-ID: On Sat, May 11, 2013 at 12:48 PM, Nick Coghlan wrote: > On Sun, May 12, 2013 at 2:37 AM, Christian Tismer wrote: > >> So if there was some notation (not specified yet how) that triggers correct >> indentation at compile time without extra functional hacks, so that >> >> long_text = """ >> this text is left justified >> and this line indents by two spaces >> """ >> >> is stripped the leading and trailing \n and indentation is justified, >> then I think the need for the implicit whitespace operator would be small. > > Through participating in this thread, I've realised that the > distinction between when I use a triple quoted string (with or without > textwrap.dedent()) and when I use implicit string concatenation is > whether or not I want the newlines in the result. Often I can avoid > the issue entirely by splitting a statement into multiple pieces, but > > I think Guido's right that if we didn't have implicit string > concatenation there's no way we would add it ("just use a triple > quoted string with escaped newlines" or "just use runtime string > concatenation"), but given that we *do* have it, I don't think it's > worth the hassle of removing it over a bug that a lint program should > be able to pick up. > > So I'm back to where I started, which is that if this kind of problem > really bothers anyone, start thinking seriously about the idea of a > standard library linter. Really this should be trivial for all of the linters that already exist. That aside, (and this is not an endorsement for this proposal) but can you not just do long_text = """\ this is left justified \ and this is continued on the same line and this is indented by two spaces """ I'm personally in favor of not allowing the concatenation to be on the same line but allowing it across multiple lines. While linters would be great for this, why not just introduce the SyntaxError since (as has already been demonstrated) some of the concatenation already happens at compile time. From graffatcolmingov at gmail.com Sat May 11 20:24:19 2013 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Sat, 11 May 2013 14:24:19 -0400 Subject: [code-quality] Implicit String Concatenation Threads Message-ID: Hey all, I've been forwarding (and trying to CC) our list on those messages as much as possible. In case any of you weren't already subscribed to the python-ideas list, Guido has proposed that python no longer allow the following: foo = ('abc' 'def' ) Mainly because it can cause confusing TypeErrors for the functions taking a certain number of arguments. There are a few ideas floating around that thread, one of which is that we (the code-quality tool authors) provide warnings or errors when someone does: foo('a' 'b') i.e., uses the implicit concatenation on a single line. I'm personally far more in favor of this (mainly for older versions of python) + a SyntaxError for newer versions but to allow the multi-line concatenation to continue. Some are in favor of adding a new string prefix like `m` or `s`. All of this aside, we may have to start including support for this in our tools so I wanted everyone to be well aware of the discussion. Hopefully people will continue the trend I've tried to start of CC'ing code-quality but that likely won't happen. Cheers, Ian From mbp at google.com Mon May 13 02:48:09 2013 From: mbp at google.com (Martin Pool) Date: Mon, 13 May 2013 10:48:09 +1000 Subject: [code-quality] Implicit String Concatenation Threads In-Reply-To: References: Message-ID: On 12 May 2013 04:24, Ian Cordasco wrote: > > Mainly because it can cause confusing TypeErrors for the functions > taking a certain number of arguments. There are a few ideas floating > around that thread, one of which is that we (the code-quality tool > authors) provide warnings or errors when someone does: > > foo('a' 'b') > > i.e., uses the implicit concatenation on a single line. > +1 -- Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: From graffatcolmingov at gmail.com Mon May 13 02:57:18 2013 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Sun, 12 May 2013 20:57:18 -0400 Subject: [code-quality] Implicit String Concatenation Threads In-Reply-To: References: Message-ID: On Sun, May 12, 2013 at 8:48 PM, Martin Pool wrote: > > On 12 May 2013 04:24, Ian Cordasco wrote: >> >> >> Mainly because it can cause confusing TypeErrors for the functions >> taking a certain number of arguments. There are a few ideas floating >> around that thread, one of which is that we (the code-quality tool >> authors) provide warnings or errors when someone does: >> >> foo('a' 'b') >> >> i.e., uses the implicit concatenation on a single line. > > > +1 You might want to add that to the main discussion over on python-ideas too. I think it is really the best solution, and we can all implement it pretty easily at the moment. From sylvain.thenault at logilab.fr Tue May 14 13:30:53 2013 From: sylvain.thenault at logilab.fr (Sylvain =?utf-8?B?VGjDqW5hdWx0?=) Date: Tue, 14 May 2013 13:30:53 +0200 Subject: [code-quality] [Python-projects] Pylint sprint dates: june 17-19 In-Reply-To: <20130506154040.GJ7781@logilab.fr> References: <20130418095514.GD2439@logilab.fr> <20130506154040.GJ7781@logilab.fr> Message-ID: <20130514113053.GF2574@logilab.fr> Hi there, On 06 mai 17:40, Sylvain Th?nault wrote: > talking to those who'll attend to the sprint: we have to organize the attendence > of Logilab people from Paris, and I propose to other to book room for them in the > same hotel. Just tell me if you're interested and for which nights you need an > hotel. I've rather set up a pad to prepare the sprint: http://piratepad.net/oAvsUoGCAC Those who'll attend should share information there about their travel, hotel and all. Those who intend to participate online are invited to add their name and avaibility. Anyone may suggest sprint topic and/or vote for the proposed ones. -- Sylvain Th?nault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42) Formations Python, Debian, M?th. Agiles: http://www.logilab.fr/formations D?veloppement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org From graffatcolmingov at gmail.com Wed May 22 05:17:07 2013 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Tue, 21 May 2013 23:17:07 -0400 Subject: [code-quality] [Announcement] flake8-docstrings Message-ID: Hey all, I'd like to announce the newest extension for Flake8 that I've poorly named flake8-docstrings. flake8-docstrings relies on the excellent pep257 for checking. Simon Andr? did most of the work to get it completed (so don't listen to PyPI, he's the real author). `pip install flake8-docstrings` is all you need to try it out. If you find any issues or wish to contribute, we would be happy to hear from you on BitBucket: https://bitbucket.org/icordasc/flake8-docstrings. -- Ian From drraph at gmail.com Mon May 27 15:05:37 2013 From: drraph at gmail.com (Raphael Clifford) Date: Mon, 27 May 2013 14:05:37 +0100 Subject: [code-quality] Variable declarations + pyflakes Message-ID: I have recently been talking to friends/colleagues about their reasons for not using python for large projects (say from a thousand lines of code and with at least three people contributing). One of the problems that comes up time and again is the difficulty in debugging python code and in particular the simple sounding job of catching typos. One specific suggestion is the following. Make variable declaration compulsory. For example. var foo = 15 [...] var foo = 10 should return an error. Similarly From drraph at gmail.com Mon May 27 15:09:35 2013 From: drraph at gmail.com (Raphael Clifford) Date: Mon, 27 May 2013 14:09:35 +0100 Subject: [code-quality] Variable declarations + pyflakes In-Reply-To: References: Message-ID: The email below was sent before it was finished. var foo = 15 [...] var foo = 10 should return an error. foo = 15 should return an error if foo was not declared before. The second answer of http://programmers.stackexchange.com/questions/15468/what-are-the-drawbacks-of-python (with 60 votes) has some more details of a very similar suggestion. Is it possible for use pyflakes with some suitably defined annotation to do something equivalent? Getting python devs to accept the suggestion for the core python language more not be at all plausible. Raphael On 27 May 2013 14:05, Raphael Clifford wrote: > I have recently been talking to friends/colleagues about their reasons > for not using python for large projects (say from a thousand lines of > code and with at least three people contributing). One of the problems > that comes up time and again is the difficulty in debugging python > code and in particular the simple sounding job of catching typos. One > specific suggestion is the following. > > Make variable declaration compulsory. For example. > > var foo = 15 > [...] > var foo = 10 > > should return an error. > > > Similarly From pludemann at google.com Mon May 27 20:58:24 2013 From: pludemann at google.com (Peter Ludemann) Date: Mon, 27 May 2013 11:58:24 -0700 Subject: [code-quality] Variable declarations + pyflakes In-Reply-To: References: Message-ID: Wouldn't static type-inferencing of Python give the same benefits, without forcing programmers to write "Java-like" declarations? Type inferencing would catch potential uninitialized variables, calling non-existent methods, etc. ... and combined with a tool like lib2to3 could be used to automatically insert type annotations into the code. On 27 May 2013 06:09, Raphael Clifford wrote: > The email below was sent before it was finished. > > var foo = 15 > [...] > var foo = 10 > > should return an error. > > > foo = 15 > > should return an error if foo was not declared before. > > The second answer of > > http://programmers.stackexchange.com/questions/15468/what-are-the-drawbacks-of-python > (with 60 votes) has some more details of a very similar suggestion. > > Is it possible for use pyflakes with some suitably defined annotation > to do something equivalent? Getting python devs to accept the > suggestion for the core python language more not be at all plausible. > > Raphael > > > > On 27 May 2013 14:05, Raphael Clifford wrote: > > I have recently been talking to friends/colleagues about their reasons > > for not using python for large projects (say from a thousand lines of > > code and with at least three people contributing). One of the problems > > that comes up time and again is the difficulty in debugging python > > code and in particular the simple sounding job of catching typos. One > > specific suggestion is the following. > > > > Make variable declaration compulsory. For example. > > > > var foo = 15 > > [...] > > var foo = 10 > > > > should return an error. > > > > > > Similarly > _______________________________________________ > code-quality mailing list > code-quality at python.org > http://mail.python.org/mailman/listinfo/code-quality > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pinard at iro.umontreal.ca Mon May 27 21:40:10 2013 From: pinard at iro.umontreal.ca (=?utf-8?Q?Fran=C3=A7ois_Pinard?=) Date: Mon, 27 May 2013 15:40:10 -0400 Subject: [code-quality] Variable declarations + pyflakes In-Reply-To: (Raphael Clifford's message of "Mon, 27 May 2013 14:09:35 +0100") References: Message-ID: <861u8sgqjp.fsf@iro.umontreal.ca> Raphael Clifford writes: I did not closely follow the previous conversation, please forgive me if I'm off topic. > Is it possible for use pyflakes with some suitably defined annotation > to do something equivalent? Getting python devs to accept the > suggestion for the core python language more not be at all plausible. Well, it might be interesting if pyflakes or some similar tool was able to make sense out of a few: assert isinstance(argument-identifier, some-class) statements at the beginning of a function. That would be not only valid Python, but meaningful code whenever executed, as it would ascertain the sanity of function arguments. Such "assert insinstance()" could be sprankled in other places as well for pyflakes to recognize, but I'm not sure it would not become fairly complex to process them all correctly and make proper/useful inferences. The drawback is that this would slow down the execution when used in frequently used, smallish functions. One might argue that assertions might be all turned into noops by using -O on the python call, but I do not buy this argument: turning off all assertions is like activating a kind of unsafe-mode, which people would not do in practice. Fran?ois From marc at rintsch.de Mon May 27 22:19:02 2013 From: marc at rintsch.de (Marc 'BlackJack' Rintsch) Date: Mon, 27 May 2013 22:19:02 +0200 Subject: [code-quality] Variable declarations + pyflakes In-Reply-To: <861u8sgqjp.fsf@iro.umontreal.ca> References: <861u8sgqjp.fsf@iro.umontreal.ca> Message-ID: <51A3BFB6.6010604@rintsch.de> On 27/05/13 21:40, Fran?ois Pinard wrote:> Raphael Clifford writes: > >> Is it possible for use pyflakes with some suitably defined annotation >> to do something equivalent? Getting python devs to accept the >> suggestion for the core python language more not be at all plausible. > > Well, it might be interesting if pyflakes or some similar tool was able > to make sense out of a few: > > assert isinstance(argument-identifier, some-class) But then code fails with valid values that are not instances of some-class. Duck typing would not work anymore. It's like static typing but with more typing. Ciao, Marc 'BlackJack' Rintsch -- ?A man should never be ashamed to own he has been in the wrong, which is saying, in other words, that he is wiser today than he was yesterday.? -- Jonathan Swift