Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 11:03:39 AM UTC-5, Ferrous Cranus wrote: > root@secure [~]# find / -name python3.4 | rm -rf > > root@secure [~]# locate python3.4 > /root/.local/lib/python3.4 > /usr/local/include/python3.4m > /usr/local/lib/libpython3.4m.a > /usr/local/lib/python3.4 > /usr/local/

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 11:48:19 AM UTC-5, YBM wrote: > Le 16.11.2013 16:32, Ferrous Cranus a écrit : > > root@secure [~]# locate python3.4 > > /root/.local/lib/python3.4 > > /usr/local/include/python3.4m > > /usr/local/lib/libpython3.4m.a > > /usr/local/lib/python3.4 > > /usr/local/share/ma

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 12:00:04 PM UTC-5, Ferrous Cranus wrote: > Στις 16/11/2013 6:46 μμ, ο/η YBM έγραψε: > > > Le 16.11.2013 17:30, Ferrous Cranus a écrit : > > >> Mark wrote: > > >> > > >>> If you have to deliberately post like this in an attempt to annoy > > >>> people, would you p

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 12:14:42 PM UTC-5, Ferrous Cranus wrote: > Στις 16/11/2013 6:46 μμ, ο/η YBM έγραψε: > > Le 16.11.2013 17:30, Ferrous Cranus a écrit : > >> Mark wrote: > >> > >>> If you have to deliberately post like this in an attempt to annoy > >>> people, would you please not do so

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 2:46:40 PM UTC-5, YBM wrote: > Le 16.11.2013 18:00, Nikos a écrit : > > Στις 16/11/2013 6:46 μμ, ο/η YBM έγραψε: > >> Le 16.11.2013 17:30, Ferrous Cranus a écrit : > >>> Mark wrote: > >>> > If you have to deliberately post like this in an attempt to annoy >

Re: inconsistency in converting from/to hex

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 5:16:58 PM UTC-5, Laszlo Nagy wrote: > We can convert from hex str to bytes with bytes.fromhex class method: > > >>> b = bytes.fromhex("ff") > > But we cannot convert from hex binary: > > >>> b = bytes.fromhex(b"ff") > Traceback (most recent call last): >File

Re: PYTHON 3.4 LEFTOVERS

2013-11-17 Thread Ned Batchelder
On Sunday, November 17, 2013 7:30:03 AM UTC-5, YBM wrote: > Le 17.11.2013 10:12, Nikos a écrit : > > Στις 16/11/2013 6:46 μμ, ο/η YBM έγραψε: > >> Le 16.11.2013 17:30, Ferrous Cranus a écrit : > >>> Mark wrote: > >>> > If you have to deliberately post like this in an attempt to annoy > pe

Re: PYTHON 3.4 LEFTOVERS

2013-11-17 Thread Ned Batchelder
On Sunday, November 17, 2013 7:45:05 AM UTC-5, Mark Lawrence wrote: > On 17/11/2013 12:34, Ned Batchelder wrote: > > YBM: I'm going to politely ask you again to please stop. > > > > 1) Don't answer off-topic questions here. It only encourages more > > off

Re: Where to find pip3 for python3

2013-11-17 Thread Ned Batchelder
On Sunday, November 17, 2013 8:28:43 AM UTC-5, Ferrous Cranus wrote: > python3.4 is gone at this stage. Now if i only could install pip for > Python 3.3.2 > > Here is what i have tried: > > root@secure [~]# which python3 > /usr/bin/python3 > > root@secure [~]# which pip > /usr/bin/pip > > root

Re: Python3 and its messed up modules which cannot even get installed properly

2013-11-17 Thread Ned Batchelder
On Sunday, November 17, 2013 9:42:25 AM UTC-5, Mark Lawrence wrote: > On 17/11/2013 14:17, Nikos wrote: > > == > > root@secure [~/distribute-0.6.49]# pip install pygeoip > > Downloading/unpacking pygeoip > > Downloading pygeoip-0.3.0.tar.gz (97kB)

Re: Self-defence

2013-11-17 Thread Ned Batchelder
On Sunday, November 17, 2013 12:09:44 PM UTC-5, Zero Piraeus wrote: > Note: I drafted a version of this post earlier today. I had been waiting > to see whether Nikos succeeded in baiting the list into yet another > round of unpleasantness before sending it, because I didn't want to > worsen the sit

Re: Obtaining "the" name of a function/method

2013-11-17 Thread Ned Batchelder
On Sunday, November 17, 2013 2:24:19 PM UTC-5, John Ladasky wrote: > Hi, folks, > > Here's a minimal Python 3.3.2 code example, and its output: > > = > > def foo(): > pass > > print(foo) > bar = foo > print(bar) > > ==

Re: Data structure question

2013-11-17 Thread Ned Batchelder
On Sunday, November 17, 2013 9:03:38 PM UTC-5, Joseph L. Casale wrote: > I have a need for a script to hold several tuples with three values, two text > strings and a lambda. I need to index the tuple based on either of the two > strings. Normally a database would be ideal but for a self-contained

Re: Doc generation from annotated source code

2013-11-18 Thread Ned Batchelder
On Monday, November 18, 2013 8:46:46 AM UTC-5, Laszlo Nagy wrote: > I just started rewritting my project from python 2 to python 3. I > noticed that there are these new parameter and return value annotations. > I have docstrings everywhere in my project, but I plan to convert many > of them into

Re: Where to find pip3 for Python 3.3.2?

2013-11-19 Thread Ned Batchelder
On Monday, November 18, 2013 10:57:23 PM UTC-5, Tony the Tiger wrote: > On Sun, 17 Nov 2013 11:22:05 +0200, Nikos wrote: > > > python3.4 is gone at this stage. Now if i only could install pip for > > Python 3.3.2 > > > > What are you? Some fucking moron? Multi-posting under different subjects

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Ned Batchelder
On Wednesday, November 20, 2013 11:29:54 AM UTC-5, Mark Lawrence wrote: > On 20/11/2013 15:34, Alister wrote: > > On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: > > > >> On Thu, Nov 21, 2013 at 2:09 AM, Alister > >> wrote: > >>> must be a strange quirk of pan & turned off hide to system

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Ned Batchelder
On Wednesday, November 20, 2013 12:37:31 PM UTC-5, Mark Lawrence wrote: > On 20/11/2013 17:12, Ned Batchelder wrote: > > On Wednesday, November 20, 2013 11:29:54 AM UTC-5, Mark Lawrence wrote: > >> On 20/11/2013 15:34, Alister wrote: > >>> On Thu, 21 Nov 2013 02:14:

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Ned Batchelder
On Wednesday, November 20, 2013 1:09:42 PM UTC-5, Mark Lawrence wrote: > On 20/11/2013 17:51, Ned Batchelder wrote: > > On Wednesday, November 20, 2013 12:37:31 PM UTC-5, Mark Lawrence wrote: > >> On 20/11/2013 17:12, Ned Batchelder wrote: > >>> On Wednesday, Novem

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Ned Batchelder
On Wednesday, November 20, 2013 1:35:06 PM UTC-5, Mark Lawrence wrote: > On 20/11/2013 18:18, Ned Batchelder wrote: > > On Wednesday, November 20, 2013 1:09:42 PM UTC-5, Mark Lawrence wrote: > >> On 20/11/2013 17:51, Ned Batchelder wrote: > >>> On Wednesday, Novem

Re: using getattr/setattr for local variables in a member function

2013-11-21 Thread Ned Batchelder
On Thursday, November 21, 2013 6:12:10 PM UTC-5, Catherine M Moroney wrote: > Hello, > > If I have a class that has some member functions, and all the functions > define a local variable of the same name (but different type), is there > some way to use getattr/setattr to access the local variable

Re: Having trouble setting up an extremely simple server...

2013-11-21 Thread Ned Batchelder
On Thursday, November 21, 2013 9:36:32 PM UTC-5, Cilantro MC wrote: > On Thursday, November 21, 2013 9:33:13 PM UTC-5, Roy Smith wrote: > > In article <9e773107-5a6c-486b-bef2-186101d8f...@googlegroups.com>, > > cilantr...@gmail.com wrote: > > > > > I'm attempting to set up an extremely simple se

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-22 Thread Ned Batchelder
On Friday, November 22, 2013 9:13:50 AM UTC-5, rusi wrote: > On Friday, November 22, 2013 6:22:29 PM UTC+5:30, Bharath Kummar wrote: > > Hello Sir/Mam,  > > Could you please help me with my current research ?  Am implementing the > > concept in python language.  > > My doubts are : > > 1)  Is it p

Re: python for everyday tasks

2013-11-22 Thread Ned Batchelder
On Friday, November 22, 2013 6:59:19 PM UTC-5, koch...@gmail.com wrote: > Hello, > > I'm about held a short course with the title indicated in the subjects. The > students are very experienced programmers of our company, with deep knoledge > on C, C++, C#, Perl and similar languages, but very li

Re: Showing Progress Bar

2013-11-23 Thread Ned Batchelder
On Saturday, November 23, 2013 6:36:28 AM UTC-5, Himanshu Garg wrote: > I want to show simple dots while my program copies the files. I have found > the code like: > > for i in range(10): > print '.', > time.sleep(1) > > But this will execute ten times as it is predefined and the task t

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Ned Batchelder
On Monday, November 25, 2013 7:32:30 AM UTC-5, Jurko Gospodnetić wrote: > Hi all. > >I was wondering what is the best way to install multiple Python > installations on a single Windows machine. > >Regular Windows installer works great as long as all your > installations have a separate

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Ned Batchelder
On Monday, November 25, 2013 2:32:12 PM UTC-5, Rick Johnson wrote: > On Saturday, November 23, 2013 7:38:47 PM UTC-6, Steven D'Aprano wrote: > > Where do you, an American, > > What the hell makes you believe I'm an American? Because i > speak fluent English? Because i embrace capitalism? Because >

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-26 Thread Ned Batchelder
On 11/25/13 10:33 PM, Rick Johnson wrote:> On Monday, November 25, 2013 2:10:04 PM UTC-6, Ned Batchelder wrote: >> Let's please avoid veering off into rants about language >> and philosophy now. > > Hello Ned. I respect the fact that you want to keep threads > on-to

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-26 Thread Ned Batchelder
On 11/26/13 8:26 PM, Rick Johnson wrote: On Tuesday, November 26, 2013 8:52:11 AM UTC-6, Chris Angelico wrote: On Wed, Nov 27, 2013 at 1:37 AM, Roy Smith [...] wrote: We live in an international world (otherwise we wouldn't need that annoying unicode stuff). When you say, "effort to be underst

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-27 Thread Ned Batchelder
On 11/26/13 11:24 PM, Rick Johnson wrote: On Tuesday, November 26, 2013 8:11:54 PM UTC-6, Ned Batchelder wrote: Rick, through all the verbiage, I've lost track of what you are advocating. The OP asks a question and uses the word doubt in a way that is unusual to you and many other, thoug

Re: Wrapping around a list

2013-11-27 Thread Ned Batchelder
On 11/27/13 6:14 AM, Chris Angelico wrote: On Wed, Nov 27, 2013 at 10:07 PM, Amjad Syed wrote: Thanks Chris for the reply. But i would like sliding function to be scalable, as input string can be of 100 letters. A hundred isn't much to work with, and your code will be fairly simple. Give it

Re: tkinter bug on mac maverick python 3.3.3

2013-11-27 Thread Ned Batchelder
On 11/27/13 6:32 AM, Dan Wissme wrote: Hi ! Am I the only one to get a bug in GUIs using tkinter on my Mac under maverick and Python 3.3.3 ? When will they get rid of Tcl/Tk which causes recurrent problems at almost each new Python version ! Please, for the rest of us... -dan It sounds lik

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-27 Thread Ned Batchelder
On 11/27/13 8:18 AM, Gene Heskett wrote: On Wednesday 27 November 2013 07:44:18 rusi did opine: On Wednesday, November 27, 2013 7:41:54 AM UTC+5:30, Ned Batchelder wrote: On 11/26/13 8:26 PM, Rick Johnson wrote: And will you be here to explain to time-travelling Shakespeare why we are

Re: '_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-27 Thread Ned Batchelder
On 11/27/13 2:40 PM, magnus.ly...@gmail.com wrote: When I run e.g. compile('sin(5) * cos(6)', '', 'eval').co_names, I get ('sin', 'cos'), which is just what I expected. But when I have a list comprehension in the expression, I get a little surprise: compile('[x*x for x in y]', '', 'eval').co_

Re: '_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-27 Thread Ned Batchelder
On 11/27/13 3:44 PM, Chris Kaynor wrote: On Wed, Nov 27, 2013 at 12:09 PM, Ned Batchelder mailto:n...@nedbatchelder.com>> wrote: * Is there perhaps a better way to achieve what I'm trying to do? What I'm really after, is to check that python expressions

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Ned Batchelder
On 11/27/13 8:57 PM, Victor Hooi wrote: Hi, I'm running pep8 across my code, and getting warnings about my long lines (> 80 characters). I'm wonder what's the recommended way to handle the below cases, and fit under 80 characters. My recommendations usually amount to: write more statements,

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Ned Batchelder
On 11/27/13 9:03 PM, Victor Hooi wrote: Hi, Also, forgot two other examples that are causing me grief: cur.executemany("INSERT INTO foobar_foobar_files VALUES (?)", [[os.path.relpath(filename, foobar_input_folder)] for filename in filenames]) I've already broken it u

Re: For-each behavior while modifying a collection

2013-11-28 Thread Ned Batchelder
On 11/28/13 10:49 AM, Valentin Zahnd wrote: Hello For-each does not iterate ober all entries of collection, if one removes elements during the iteration. Example code: def keepByValue(self, key=None, value=[]): for row in self.flows: if not row[key] in value: self.fl

Re: Managing Google Groups headaches

2013-11-28 Thread Ned Batchelder
On 11/28/13 11:23 AM, Travis Griggs wrote: Sent from my iPhone On Nov 28, 2013, at 7:40, Michael Torrie wrote: On 11/28/2013 08:08 AM, Chris Angelico wrote: Which is easier, fiddling around with your setup so you can post reasonably on Google Groups, or just getting a better client? With y

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-28 Thread Ned Batchelder
On 11/28/13 9:04 AM, Tim Chase wrote: On 2013-11-28 03:58, Steven D'Aprano wrote: input = open(self.full_path) output = open(self.output_csv, 'ab') with input as input, output as output: ... That's really clever! Why didn't I think of that? Because if the 2nd outp

Re: For-each behavior while modifying a collection

2013-11-29 Thread Ned Batchelder
On 11/28/13 5:14 PM, Valentin Zahnd wrote: 2013/11/28 Ned Batchelder : On 11/28/13 10:49 AM, Valentin Zahnd wrote: Hello For-each does not iterate ober all entries of collection, if one removes elements during the iteration. Example code: def keepByValue(self, key=None, value

Re: Python Unicode handling wins again -- mostly

2013-11-30 Thread Ned Batchelder
On 11/30/13 5:37 PM, Gregory Ewing wrote: wxjmfa...@gmail.com wrote: And do you know the origin of this typographical feature? Because, mechanically, the dot of the "i" broke too often. In my opinion, a very plausible explanation. It doesn't sound very plausible to me, because there are a lot

Re: how to implement a queue-like container with sort function

2013-12-02 Thread Ned Batchelder
On 12/2/13 6:41 AM, iMath wrote: 在 2013年11月29日星期五UTC+8下午10时57分36秒,Mark Lawrence写道: On 29/11/2013 12:33, iMath wrote: BTW ,the Queue object has an attribute 'queue' ,but I cannot find it described in the DOC ,what it means ? Really? AttributeError: type object 'Queue' has no attrib

Re: how to implement a queue-like container with sort function

2013-12-02 Thread Ned Batchelder
On 12/2/13 7:04 AM, Chris Angelico wrote: On Mon, Dec 2, 2013 at 10:58 PM, Ned Batchelder wrote: Yes, a Queue object has a queue attribute: >>> import Queue >>> q = Queue.Queue() >>> q.queue deque([]) But you shouldn't use it. It'

Re: Python Unicode handling wins again -- mostly

2013-12-02 Thread Ned Batchelder
On 12/2/13 9:46 AM, Mark Lawrence wrote: On 02/12/2013 12:39, wxjmfa...@gmail.com wrote: My English is far too be perfect, I think I understood it correctly. PS I did not even speak about the FSR. 1) Your English is far from perfect as you clearly do not understand the repeated requests *NO

Re: Python Unicode handling wins again -- mostly

2013-12-02 Thread Ned Batchelder
On 12/2/13 10:45 AM, Mark Lawrence wrote: On 02/12/2013 15:22, Ned Batchelder wrote: On 12/2/13 9:46 AM, Mark Lawrence wrote: On 02/12/2013 12:39, wxjmfa...@gmail.com wrote: My English is far too be perfect, I think I understood it correctly. PS I did not even speak about the FSR. 1

Re: Python Unicode handling wins again -- mostly

2013-12-02 Thread Ned Batchelder
On 12/2/13 3:38 PM, Ethan Furman wrote: On 11/29/2013 04:44 PM, Steven D'Aprano wrote: Out of the nine tests, Python 3.3 passes six, with three tests being failures or dubious. If you believe that the native string type should operate on code-points, then you'll think that Python does the right

Re: Python Unicode handling wins again -- mostly

2013-12-02 Thread Ned Batchelder
On 12/2/13 3:45 PM, Mark Lawrence wrote: On 02/12/2013 20:26, Terry Reedy wrote: On 12/2/2013 10:45 AM, Mark Lawrence wrote: the worst loser in the world Mark, I consider your continual direct personal attacks on other posters to be a violation of the PSF Code of Conduct, which *does* apply

Re: Code of Conduct, Trolls, and Thankless Jobs [was Re: Python Unicode handling wins again -- mostly]

2013-12-02 Thread Ned Batchelder
On 12/2/13 4:25 PM, Ethan Furman wrote: On 12/02/2013 12:45 PM, Mark Lawrence wrote: On 02/12/2013 20:26, Terry Reedy wrote: On 12/2/2013 10:45 AM, Mark Lawrence wrote: the worst loser in the world Mark, I consider your continual direct personal attacks on other posters to be a violation of

Re: Python Unicode handling wins again -- mostly

2013-12-02 Thread Ned Batchelder
On 12/2/13 4:44 PM, Ned Batchelder wrote: On 12/2/13 3:45 PM, Mark Lawrence wrote: On 02/12/2013 20:26, Terry Reedy wrote: On 12/2/2013 10:45 AM, Mark Lawrence wrote: the worst loser in the world Mark, I consider your continual direct personal attacks on other posters to be a violation of

Re: Python Unicode handling wins again -- mostly

2013-12-02 Thread Ned Batchelder
On 12/2/13 5:32 PM, Mark Lawrence wrote: On 02/12/2013 22:24, Ned Batchelder wrote: On 12/2/13 4:44 PM, Ned Batchelder wrote: On 12/2/13 3:45 PM, Mark Lawrence wrote: On 02/12/2013 20:26, Terry Reedy wrote: On 12/2/2013 10:45 AM, Mark Lawrence wrote: the worst loser in the world Mark, I

Re: Why is there no natural syntax for accessing attributes with names not being valid identifiers?

2013-12-03 Thread Ned Batchelder
On 12/3/13 12:14 PM, Piotr Dobrogost wrote: Hi! I find global getattr() function awkward when reading code. What is the reason there's no "natural" syntax allowing to access attributes with names not being valid Python identifiers in a similar way to other attributes? Something along the line o

Re: how to implement a queue-like container with sort function

2013-12-03 Thread Ned Batchelder
On 12/3/13 4:19 PM, Cameron Simpson wrote: On 04Dec2013 08:17, I wrote: On 02Dec2013 07:26, Ned Batchelder wrote: Actually, I had a long conversation in the #python IRC channel with the OP at the same time he was posting the question here, and it turns out he knows exactly how many entries

Re: extracting a heapq in a for loop - there must be more elegant solution

2013-12-03 Thread Ned Batchelder
On 12/3/13 4:43 PM, Ian Kelly wrote: On Tue, Dec 3, 2013 at 2:13 PM, Cameron Simpson wrote: On 03Dec2013 12:18, Helmut Jarausch wrote: I'd like to extracted elements from a heapq in a for loop. I feel my solution below is much too complicated. How to do it more elegantly? I can't believe no

Re: Managing Google Groups headaches

2013-12-04 Thread Ned Batchelder
On 12/4/13 11:07 AM, Mark Lawrence wrote: On 04/12/2013 15:50, Grant Edwards wrote: On 2013-12-04, Cameron Simpson wrote: On 30Nov2013 14:25, pec...@pascolo.net wrote: Dennis Lee Bieber writes: [NNTP] clients provide full-fledged editors and conversely full-fledged editors provide

Re: Why is there no natural syntax for accessing attributes with names not being valid identifiers?

2013-12-04 Thread Ned Batchelder
On 12/4/13 6:57 PM, Piotr Dobrogost wrote: On Thursday, December 5, 2013 12:09:52 AM UTC+1, Ethan Furman wrote: Perhaps you should look at different ways of spelling your identifiers? Why can't you use an underscore instead of a hyphen? So that underscore could be left for use inside fields'

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread Ned Batchelder
On 12/6/13 4:23 AM, Mark Lawrence wrote: On 06/12/2013 06:23, iMath wrote: Dearest iMath, wouldst thou be kind enough to partake of obtaining some type of email client that dost not sendeth double spaced data into this most illustrious of mailing lists/newsgroups. Thanking thee for thine partic

Re: One liners

2013-12-06 Thread Ned Batchelder
On 12/6/13 6:54 PM, Dan Stromberg wrote: Does anyone else feel like Python is being dragged too far in the direction of long, complex, multiline one-liners? Or avoiding temporary variables with descriptive names? Or using regex's for everything under the sun? What happened to using classes?

Re: Managing Google Groups headaches

2013-12-06 Thread Ned Batchelder
On 12/6/13 8:03 AM, rusi wrote: I think you're off on the wrong track here. This has nothing to do with >plain text (ascii or otherwise). It has to do with divorcing how you >store and transport messages (be they plain text, HTML, or whatever) >from how a user interacts with them. Evidently (

Re: Managing Google Groups headaches

2013-12-07 Thread Ned Batchelder
this list, and I doubt you have any new information. Rusi: if you are interested in the details, search the archives. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: interactive help on the base object

2013-12-07 Thread Ned Batchelder
ase" as an adjective, and when used that way it has connotations of something to turn your nose up at. I'm assuming that's not the impression we want to give! Maybe something like "The ultimate base class of all classes" would be better. I've heard this described as &q

Re: interactive help on the base object

2013-12-08 Thread Ned Batchelder
push people away with your style. We try hard to treat each other with respect, and I'll ask you to do the same. MarkJ Tacoma, Washington -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: interactive help on the base object

2013-12-09 Thread Ned Batchelder
hould really work, with no details. 3. The discussion expands to the point of Mark making some claim which sounds close to a truth, but seems actually wrong ("It matters to the computer"). 4. Reasonable people try to engage in an actual discussion of what was said. 5. (Coming

Re: Movie (MPAA) ratings and Python?

2013-12-11 Thread Ned Batchelder
assuming the last 5 is a typo). Windows-1252 is a super-set of ISO-8859-1, so any text that is correct ISO-8859-1 is also correct Windows-1252. In addition, it's not uncommon to find text marked as ISO-8859-1 that in fact has characters that make it Windows-1252. -- Ned Batchelder,

Re: Movie (MPAA) ratings and Python?

2013-12-11 Thread Ned Batchelder
, but instead on your attempt to output the result. Can you show the full traceback you're seeing? -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-12 Thread Ned Batchelder
ng a computer language. [*] I toyed with go(lang) and ruby 2 (only in a unicode perspective), I should say I had no problems. Why? No idea, it is too far beyond my knowlege. jmf -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-12 Thread Ned Batchelder
ou. You hold a (very) minority view about what Python does with text, and you are not able to convince people of your view. Isn't that frustrating? Perhaps you need a new approach. Python (2) is managing all this very well. Unfortunately, not in a friendly way. jmf -- Ned Batche

Re: Tracking the status of python script execution

2013-12-12 Thread Ned Batchelder
nt to using a more specialized approach, by way of modifying your program. I like Chris' idea of simply tracking the progress of the SQL queries since they are taking the time. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: request for guidance

2013-12-13 Thread Ned Batchelder
On Friday, December 13, 2013 12:15:22 AM UTC-5, jennifer stone wrote: > greetings > I am a novice who is really interested in contributing to Python projects. > How and where do I begin? > > thanking you in anticipation Jennifer, hi, welcome! If you are looking for help with the mechanics of op

Re: Type of an object: ‘obj.__class__’ versus ‘type(obj)’

2013-12-15 Thread Ned Batchelder
Also, don't overlook isinstance(). -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: New to Python, Help to get script working?

2013-12-16 Thread Ned Batchelder
e, the messages you post are your choice, but you should consider the effect they have on the people you are hoping to get help from. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: min max from tuples in list

2013-12-16 Thread Ned Batchelder
" must be "performant". And things that have consistency are of course... consistant (not consistent) In English, it's spelled consistent: http://en.wiktionary.org/wiki/consistant -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-16 Thread Ned Batchelder
bout everything wrong. Sort of like Microsoft's products. Sincerely, Wolfgang -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-19 Thread Ned Batchelder
it was all he knew. It sounds like you are saying he is incompetent. I hope that isn't what you meant. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: bytearray inconsistencies?

2013-12-20 Thread Ned Batchelder
o, you can split on it with: bytestring.split(bytes([0])), but that doesn't explain why find can take a simple zero, and split has to take a bytestring with a zero in it. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-20 Thread Ned Batchelder
s far too common to forget the dots... -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Line based graphic in canvas (vectorgraphic?) scale incorrectly on HDMI monitor.

2013-12-21 Thread Ned Batchelder
writing out recangles. I'm not sure how we can help without seeing any code. There's no information here that we can use to make a concrete suggestion. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Line based graphic in canvas (vectorgraphic?) scale incorrectly on HDMI monitor.

2013-12-21 Thread Ned Batchelder
On 12/21/13 2:12 PM, jonas.thornv...@gmail.com wrote: Den lördagen den 21:e december 2013 kl. 20:03:17 UTC+1 skrev Ned Batchelder: On 12/21/13 1:30 PM, jonas.thornv...@gmail.com wrote: Is there a way to make linebased graphic used in canvas scale correct on any monitor? I run in 1920

Re: cascading python executions only if return code is 0

2013-12-22 Thread Ned Batchelder
e case also, then: try: a() b() c() except Exception as e: # do something here Depending on how you want to deal with failures, you'd probably use your own subclass of Exception, but this is the general idea. Return codes can be awkward, especially in Python which has exception integrated so fully into the language, library, and culture. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Airplane mode control using Python?

2013-12-22 Thread Ned Batchelder
I've found online, so I assume it should work. My best guess is that you have named your own file android.py, shadowing the library you're trying to import. Name it something else, delete all the *.pyc files in your directory, and try again. -- Ned Batchelder, http://nedbatchelde

Google Groups + this list

2013-12-23 Thread Ned Batchelder
gainst Google Groups. When you call its results "crap" (for example), it can sound like an insult to the poster. You mean to refer to Google Groups, but remember you are also referring to the poster's words. 3) Don't let's get into protracted internal d

Re: cascading python executions only if return code is 0

2013-12-23 Thread Ned Batchelder
. Yes, the question had some ambiguity. That's why other people engaged with him to get to a useful point. Waxing philosophically about the impossibility of asking the question isn't helpful. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Airplane mode control using Python?

2013-12-23 Thread Ned Batchelder
m, then perhaps your android module is not the one you think it is. Try this to see what you get: >>> import android >>> print android .. this will show where it's imported from .. >>> dir(android) .. this will show the names available in the android m

Re: Please stop the trolling

2013-12-24 Thread Ned Batchelder
lling. This code point could have been a grapheme of a korean glyph (Hangul script) used to to populate a text widget of a gui toolkit. jmf No need to apologize, just don't taunt people for amusement. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listi

Re: Please stop the trolling

2013-12-24 Thread Ned Batchelder
On 12/24/13 10:55 AM, Mark Lawrence wrote: On 24/12/2013 15:28, Ned Batchelder wrote: On 12/24/13 9:58 AM, Mark Lawrence wrote: On 24/12/2013 10:22, wxjmfa...@gmail.com wrote: [once again snip double spaced google crap] This is gui related. http://en.wiktionary.org/wiki

Re: Google Groups + this list

2013-12-25 Thread Ned Batchelder
for example), it can sound like an insult to the poster. You mean to refer to Google Groups, but remember you are also referring to the poster's words. 3) Don't let's get into protracted internal debates about Google Groups. It is for the moment at least, an unav

Re: Google Groups + this list

2013-12-25 Thread Ned Batchelder
On 12/24/13 8:44 PM, ru...@yahoo.com wrote: On 12/23/2013 04:48 AM, Ned Batchelder wrote: On 12/22/13 11:52 PM, ru...@yahoo.com wrote: Come on Chris, it is just as easy to make typo or copy-and- paste errors in any other software as GG, there is no evidence that it was GG's fault. C

Re: Google Groups + this list

2013-12-26 Thread Ned Batchelder
On 12/25/13 11:17 PM, Chris Angelico wrote: On Thu, Dec 26, 2013 at 3:11 PM, Ned Batchelder wrote: Kevin started this thread by asking a question. Chris responded without helping the OP, and talked about Google Groups instead. That's not good. The only reason I didn't directly h

Re: Apache restart after source changes

2013-12-26 Thread Ned Batchelder
urden. I don't know what the options are for auto-restarting the kinds of web servers you'd use in production, I'm sure there are some. Someone here mentioned the Django web server, but that isn't intended for production use. -- Ned Batchelder, http://nedbatchelder.com -

Re: unicode to human readable format

2013-12-27 Thread Ned Batchelder
t. For help with the fundamentals, you can read or watch this PyCon presentation: Pragmatic Unicode, or, How Do I Stop the Pain? http://nedbatchelder.com/text/unipain.html -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: So, what's the real story on Python 2 vs Python 3?

2013-12-27 Thread Ned Batchelder
gestions in this thread, the six module on PyPI can help with the differences. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: need to print seconds from the epoch including the millisecond

2013-12-27 Thread Ned Batchelder
1388164054.84 2013-12-27 12:07:371388164057.62 2013-12-27 12:07:371388164057.81 2013-12-27 12:07:371388164057.99 2013-12-27 12:07:381388164058.18 2013-12-27 12:07:381388164058.37 2013-12-27 12:07:38 1388164058.54 20

Re: need to print seconds from the epoch including the millisecond

2013-12-27 Thread Ned Batchelder
to show your exact code. Still nothing. Is something wrong with the connectivity of this list? Matt posted his code about six hours before your message. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Unit tests and coverage

2013-12-29 Thread Ned Batchelder
simple function calls. Those tests will be easy to measure with coverage.py, and by the way, they'll run much faster and be easier to debug. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: need to print seconds from the epoch including the millisecond

2013-12-30 Thread Ned Batchelder
self: >>> import time >>> time.time() 1388407706.617985 >>> print time.time() 1388407709.21 >>> print "%.3f" % time.time() 1388407716.377 >>> print "%.4f" % time.time() 1388407726.1001 BTW, I sai

Re: need to print seconds from the epoch including the millisecond

2013-12-30 Thread Ned Batchelder
On 12/30/13 7:50 AM, Ned Batchelder wrote: BTW, I said something very similar in this thread 2.5 days ago: https://mail.python.org/pipermail/python-list/2013-December/663454.html I get the feeling not all messages are flowing to all places. Oops, and now Matt's reply to that message has

Re: What does --no-skip do in nose?

2013-12-31 Thread Ned Batchelder
ceback (most recent call last): File "/Users/ned/lab/test_foo.py", line 8, in test_fail assert 0 AssertionError ---------- Ran 3 tests in 0.003s FAILED (failures=1) -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: About some problem

2014-01-02 Thread Ned Batchelder
cceed at installing a Python 2 package. Then you won't find out until you try to run the package that it is incompatible. A mechanism to prevent this seems like a good idea, but since it wasn't in place at the dawn of Python 3, it would be difficult to put in place now. -- Ned B

Re: Blog "about python 3"

2014-01-04 Thread Ned Batchelder
s already in a rather broken state, as a combination of programming and Alice in Wonderland. ChrisA I really wish we could discuss these things without baiting trolls. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: "More About Unicode in Python 2 and 3"

2014-01-05 Thread Ned Batchelder
ate to the core devs why they should change things to improve this situation. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Blog "about python 3"

2014-01-05 Thread Ned Batchelder
ussion, but only if you will approach it honestly enough to leave open the possibility that you are wrong. I know I would be glad to learn details of Unicode that I have missed, but so far you haven't provided any. --Ned. I will not refrain you to waste your time in adjusting bytes, if the p

<    1   2   3   4   5   6   7   8   9   >