Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ned Batchelder
On Wednesday, November 13, 2013 11:38:53 AM UTC-5, Ferrous Cranus wrote: Στις 13/11/2013 6:13 μμ, ο/η Steven D'Aprano έγραψε: and also is there a way to call it like #!/usr/bin/python Of course there is, but only if you wish to break your system. The OS will be expecting /usr/bin/python

Re: To whoever hacked into my Database

2013-11-13 Thread Ned Batchelder
On Wednesday, November 13, 2013 1:27:39 PM UTC-5, superchromix wrote: hi all, I've been thinking about learning Python for scientific programming.. but all of these flame war type posts make the user community look pretty lame. How did all of these nice packages get written when most of

Re: Packing byte fields and an array object into struct

2013-11-13 Thread Ned Batchelder
On Wednesday, November 13, 2013 1:31:49 PM UTC-5, krishna...@gmail.com wrote: Hello, I am trying to build a structure to be passed down to an I2C device driver. The driver expects a struct that has a data array of size 512 bytes among other things. This is my code - rd_wr =

Re: Packing byte fields and an array object into struct

2013-11-13 Thread Ned Batchelder
On Wednesday, November 13, 2013 3:41:03 PM UTC-5, krishna...@gmail.com wrote: Thanks for your reply Ned! I tried this your suggestion and this is what it complains... os_inst_bytes = struct.pack('7BI512s', 0, 0x51, 0x10, 5, 0, 0xD, 0x80, 0, '')

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ned Batchelder
On Wednesday, November 13, 2013 4:39:59 PM UTC-5, Ferrous Cranus wrote: Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε: On Wed, 13 Nov 2013 23:19:53 +0200 Ferrous Cranus wrote: Στις 13/11/2013 7:45 μμ, ο/η Chris “Kwpolska” Warrick έγραψε: Get ez_setup.py and get-pip.py, and run

Re: To whoever hacked into my Database

2013-11-13 Thread Ned Batchelder
On Wednesday, November 13, 2013 4:46:59 PM UTC-5, Ferrous Cranus wrote: root@secure:~/lib64# ls -al | grep libkey lrwxrwxrwx 1 root root 20 Jun 22 2012 libkeyutils.so.1 - libkeyutils.so.1.3.0* -rwxr-xr-x 1 root root 10192 Jun 22 2012 libkeyutils.so.1.3* -rwxr-xr-x 1 root root 32920 Jun 22

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ned Batchelder
On Wednesday, November 13, 2013 5:32:49 PM UTC-5, Mark Lawrence wrote: Wrong. You've once again not bothered to read the information that's been handed to you on a plate. If you'd followed the instructions you would not get the No such file or directory error shown above. I'm not going

Re: python 3.3 repr

2013-11-15 Thread Ned Batchelder
On Friday, November 15, 2013 6:28:15 AM UTC-5, Robin Becker wrote: I'm trying to understand what's going on with this simple program if __name__=='__main__': print(repr=%s % repr(u'\xc1')) print(%%r=%r % u'\xc1') On my windows XP box this fails miserably if run directly at a

Re: python 3.3 repr

2013-11-15 Thread Ned Batchelder
On Friday, November 15, 2013 7:16:52 AM UTC-5, Robin Becker wrote: On 15/11/2013 11:38, Ned Batchelder wrote: .. In Python3, repr() will return a Unicode string, and will preserve existing Unicode characters in its arguments. This has been controversial. To get the Python 2

Re: python 3.3 repr

2013-11-15 Thread Ned Batchelder
On Friday, November 15, 2013 9:43:17 AM UTC-5, Robin Becker wrote: Things went wrong when utf8 was not adopted as the standard encoding thus requiring two string types, it would have been easier to have a len function to count bytes as before and a glyphlen to count glyphs. Now as I

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 8:45:51 AM UTC-5, Ferrous Cranus wrote: What the difference between locate and find? and seen find show me some results, what now? 'rm -rf' those files or i will break something? and then how i'am gonna install those 2 modules for python 3.3.2? For locate

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 8:59:13 AM UTC-5, Ferrous Cranus wrote: HELP ME Στις 16/11/2013 3:53 μμ, ο/η Joel Goldstick έγραψε: not related to python Nikos, stop this. You are sending repeated emails with no new information, and no evidence that you have tried anything, about

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 10:45:38 AM UTC-5, Johannes Findeisen wrote: On Sat, 16 Nov 2013 07:32:36 -0800 (PST) Ferrous Cranus wrote: Τη Σάββατο, 16 Νοεμβρίου 2013 5:20:51 μ.μ. UTC+2, ο χρήστης Mark Lawrence έγραψε: On 16/11/2013 13:45, Ferrous Cranus wrote: root@secure [~]#

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

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

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 please not do so using

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 using double

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 people, would you

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(bff) Traceback (most recent call last): File stdin, line 1, in

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 people, would you please

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-topic questions. 2) Don't be abusive. http

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@secure

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): 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

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 the rest of the dribble deleted What are you? Some fucking moron? Multi-posting

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 alister.w...@ntlworld.com wrote: must be a strange quirk of pan turned off hide

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:12 +1100, Chris Angelico wrote: On Thu

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, November 20, 2013 11:29:54 AM UTC-5, Mark

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, November 20, 2013 12:37:31 PM UTC-5, Mark

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 variables

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 server that

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 possible to

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

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 to copy

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 i

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-topic, and i greatly appreciate

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

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, though

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 amjad...@gmail.com 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

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

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: Classic Rick Rant And will you be here to explain to time-travelling

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)', 'string', '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]',

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 n...@nedbatchelder.com 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 up

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:

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 torr...@gmail.com 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

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

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 n...@nedbatchelder.com: 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

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

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 n...@nedbatchelder.com wrote: Yes, a Queue object has a queue attribute: import Queue q = Queue.Queue() q.queue deque([]) But you shouldn't use it. It's part of the implementation

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

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

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

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

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 of

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 n...@nedbatchelder.com 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

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 c...@zip.com.au wrote: On 03Dec2013 12:18, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: I'd like to extracted elements from a heapq in a for loop. I feel my solution below is much too complicated. How

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 c...@zip.com.au wrote: On 30Nov2013 14:25, pec...@pascolo.net pec...@pascolo.net wrote: Dennis Lee Bieber wlfr...@ix.netcom.com writes: [NNTP] clients provide full-fledged

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

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
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
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 the root of the class hierarchy. -- Ned

Re: interactive help on the base object

2013-12-08 Thread Ned Batchelder
, 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
discussion of what was said. 5. (Coming next) Mark ignores the bulk of the discussion, picks out one detail, and continues making snide and incorrect remarks, skittering away from the light of reason. Maybe we could just not? -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org

Re: Movie (MPAA) ratings and Python?

2013-12-11 Thread Ned Batchelder
it was Windows-1252 (I'm 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

Re: Movie (MPAA) ratings and Python?

2013-12-11 Thread Ned Batchelder
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
) 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
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 Batchelder, http://nedbatchelder.com -- https

Re: Tracking the status of python script execution

2013-12-12 Thread Ned Batchelder
, 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

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

2013-12-15 Thread Ned Batchelder
(). -- 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
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
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
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
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
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
: a = b Bliss: a = b It was 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
it 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
, 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
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://nedbatchelder.com -- https://mail.python.org/mailman/listinfo

Google Groups + this list

2013-12-23 Thread Ned Batchelder
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 unavoidable part of this list. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman

Re: cascading python executions only if return code is 0

2013-12-23 Thread Ned Batchelder
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
android print android .. this will show where it's imported from .. dir(android) .. this will show the names available in the android module .. .. if any of them look like __version__ or VERSION, print that android.__version__ -- Ned Batchelder, http://nedbatchelder.com

Re: Please stop the trolling

2013-12-24 Thread Ned Batchelder
be trolling. 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 /sorry folks No need to apologize, just don't taunt people for amusement. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org

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: sorry folks [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
. 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 unavoidable part of this list. Do you disagree? -- Ned Batchelder, http://nedbatchelder.com

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. Can we

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 n...@nedbatchelder.com 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

<    1   2   3   4   5   6   7   8   9   10   >