[issue24513] decimal test version mismatch

2015-06-26 Thread Rusi
Rusi added the comment: On Fri, Jun 26, 2015 at 4:29 PM, Stefan Krah rep...@bugs.python.org wrote: Stefan Krah added the comment: For libmpdec (and thus _decimal) I've always used the latest version of dectest.zip. Upgrading decimaltestdata/* will not make any difference. Not sure Stefan

[issue24507] CRLF issues

2015-06-25 Thread Rusi
Rusi added the comment: The newest (at least newer) version seems to be http://speleotrove.com/decimal/ Top of page says: Welcome to the General Decimal Arithmetic website, which is now hosted at speleotrove.com. The page and file names here have not been changed from the names used

[issue24513] decimal test version mismatch

2015-06-25 Thread Rusi
New submission from Rusi: In http://bugs.python.org/issue24507 there was an apprehension about changing the decimal test versions. Poking around I find that the versions in headers of files in Lib/test/decimaltestdata refer to version 2.59 and the IBM link http://www2.hursley.ibm.com/decimal

[issue24507] CRLF issues

2015-06-24 Thread Rusi
New submission from Rusi: While trying to freshly setup a CPython repo, encountered the following CRLF issues: Mixed file -- both LF and CRLF (line 29 LF rest CRLF) Lib/venv/scripts/nt/Activate.ps1 Lib/test/decimaltestdata is a directory with mixed up files -- ie some CRLF some LF files

[issue23792] help crash leaves terminal in raw mode

2015-03-27 Thread Rusi
New submission from Rusi: Start python3.4 Do help(something) which invokes the pager Ctrl-C A backtrace results and after that the terminal is in raw mode even after exiting python [python 3.4 under debian testing with xfce4] -- components: IDLE messages: 239417 nosy: RusiMody

[issue20167] Exception on IDLE closing

2014-10-09 Thread Rusi
Rusi added the comment: Just confirming: idle 3.4.1-1 on debian testing Start idle3 Open recent file - some file Close file Close interpreter (and idle) Get this Exception ignored in: bound method _ComplexBinder.__del__ of idlelib.MultiCall._ComplexBinder object at 0x7fc53638f4e0 Traceback

[issue20167] Exception on IDLE closing

2014-10-09 Thread Rusi
Rusi added the comment: On Fri, Oct 10, 2014 at 8:46 AM, Terry J. Reedy rep...@bugs.python.org wrote: Terry J. Reedy added the comment: I verified that problem had returned on Windows as well. It would be good to have a test that would fail if the tcl error message changed again

[issue20167] Exception on IDLE closing

2014-10-09 Thread Rusi
Rusi added the comment: On Fri, Oct 10, 2014 at 8:49 AM, Rustom Mody rustompm...@gmail.com wrote: On Fri, Oct 10, 2014 at 8:46 AM, Terry J. Reedy rep...@bugs.python.org wrote: Terry J. Reedy added the comment: I verified that problem had returned on Windows as well. It would be good

Re: How to use the method loadtxt() of numpy neatly?

2013-12-20 Thread rusi
On Friday, December 20, 2013 11:18:53 AM UTC+5:30, chao dong wrote: HI, everybody. When I try to use numpy to deal with my dataset in the style of csv, I face a little problem. In my dataset of the csv file, some columns are string that can not convert to float easily. Some of them can

Re: Newbie question. Are those different objects ?

2013-12-20 Thread rusi
On Friday, December 20, 2013 8:46:31 PM UTC+5:30, dec...@msn.com wrote: y = raw_input('Enter a number:') print type y y = float(raw_input('Enter a number:')) print type y I'm assuming that y is an object. I'm also assuming that the second and the first y are different objects because they

Re: Newbie question. Are those different objects ?

2013-12-20 Thread rusi
On Friday, December 20, 2013 9:30:22 PM UTC+5:30, Mark Lawrence wrote: On 20/12/2013 15:34, rusi wrote: On Friday, December 20, 2013 8:46:31 PM UTC+5:30, dec...@msn.com wrote: y = raw_input('Enter a number:') print type y y = float(raw_input('Enter a number:')) print type y I'm

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

2013-12-19 Thread rusi
On Thursday, December 19, 2013 9:46:26 AM UTC+5:30, Roy Smith wrote: rusi wrote: Soon the foo has to split into foo1.c and foo2.c. And suddenly you need to understand: 1. Separate compilation 2. Make (which is separate from 'separate compilation') 3. Header files

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

2013-12-18 Thread rusi
On Tuesday, December 17, 2013 4:42:07 PM UTC+5:30, Oscar Benjamin wrote: On 17 December 2013 00:39, rusi wrote: I had a paper some years ago on why C is a horrible language *to teach with* http://www.the-magus.in/Publications/chor.pdf Thanks for this Rusi, I just read it and it describes

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

2013-12-18 Thread rusi
On Wednesday, December 18, 2013 8:53:54 PM UTC+5:30, Ethan Furman wrote: On 12/18/2013 12:18 AM, Steven D'Aprano wrote: On Tue, 17 Dec 2013 22:49:43 -0500, Paul Smith wrote: On Wed, 2013-12-18 at 01:33 +, Steven D'Aprano wrote: On 12/17/2013 04:32 PM, Roy Smith wrote: You never have

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

2013-12-18 Thread rusi
On Thursday, December 19, 2013 7:10:53 AM UTC+5:30, Roy Smith wrote: Grant Edwards wrote: I've always felt that there are features in C that don't make a lot of sense until you've actually implemented a compiler -- at which point it becomes a lot more obvious why some thing are done

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

2013-12-18 Thread rusi
On Thursday, December 19, 2013 6:19:04 AM UTC+5:30, Rhodri James wrote: On Tue, 17 Dec 2013 15:51:44 -, Wolfgang Keller wrote: The only issue for me was to figure out how to do in C what I already knew in Pascal. And I had to waste a *lot* more time and mental effort to mess with that

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

2013-12-18 Thread rusi
On Thursday, December 19, 2013 9:46:26 AM UTC+5:30, Roy Smith wrote: rusi wrote: Soon the foo has to split into foo1.c and foo2.c. And suddenly you need to understand: 1. Separate compilation 2. Make (which is separate from 'separate compilation') 3. Header files and libraries

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

2013-12-18 Thread rusi
On Thursday, December 19, 2013 10:20:54 AM UTC+5:30, Mark Lawrence wrote: On 19/12/2013 04:29, rusi wrote: On Thursday, December 19, 2013 6:19:04 AM UTC+5:30, Rhodri James wrote: On Tue, 17 Dec 2013 15:51:44 -, Wolfgang Keller wrote: The only issue for me was to figure out how to do

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

2013-12-17 Thread rusi
On Tuesday, December 17, 2013 9:51:07 PM UTC+5:30, larry@gmail.com wrote: On Tue, Dec 17, 2013 at 10:35 AM, Mark Lawrence wrote: I was in charge of the team at work that had to make all code Y2K compliant. I discovered the one bug that to my knowledge slipped through the net. Four

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

2013-12-17 Thread rusi
On Tuesday, December 17, 2013 4:35:31 PM UTC+5:30, Mark wrote: I am sorry, using google groups i cant tell what you see... Anyways, I guess i will just make lots of lines instead of long sentences? How about this, the first person that can get this to work for me... I will paypal them 20

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

2013-12-17 Thread rusi
On Tuesday, December 17, 2013 8:21:39 PM UTC+5:30, Neil Cerutti wrote: On 2013-12-17, Steven D'Aprano wrote: I would really like to see good quality statistics about bugs per program written in different languages. I expect that, for all we like to make fun of COBOL, it probably has few

Re: seeking a framework to automate router configurations

2013-12-17 Thread rusi
On Wednesday, December 18, 2013 8:10:20 AM UTC+5:30, Frank Cui wrote: Hi Pythoners, I'm looking for a tool or framework in which I can do a slight modification to achieve the following task: Asynchronously reset a large number of cisco routers back to their original configurations and push

Re: Logger module in python

2013-12-17 Thread rusi
On Wednesday, December 18, 2013 8:52:11 AM UTC+5:30, smileso...@gmail.com wrote: Hi, I am a newbie in python. I am looking for a existing module which I can import in my program to log the objects to a file? I know there is a module Data::Dumper in perl which dumps the objects to file.

Re: min max from tuples in list

2013-12-16 Thread rusi
On Sunday, December 15, 2013 9:11:15 AM UTC+5:30, Tim Roberts wrote: Dennis Lee Bieber wrote: Well performant is performant enough for the purposes of communicating on the python list I think :D Most probably could figure it out as being stylistically similar to conformant = something

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

2013-12-16 Thread rusi
On Tuesday, December 17, 2013 5:58:12 AM UTC+5:30, Ned Batchelder wrote: On 12/16/13 3:32 PM, Wolfgang Keller wrote: And ever after that experience, I avoided all languages that were even remotely similar to C, such as C++, Java, C#, Javascript, PHP etc. I think that's disappointing, for

Re: [newbie] Saving binaries in a specific way

2013-12-16 Thread rusi
On Tuesday, December 17, 2013 5:00:14 AM UTC+5:30, Djoser wrote: Basically I have a .dat file, so I get some numbers and make a different conversion. I'll try this struct script. I'm not used to it, but it seems to do what I want. Construct is a very powerful utility for binary parsing

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

2013-12-16 Thread rusi
On Tuesday, December 17, 2013 1:55:57 AM UTC+5:30, Mark wrote: I am sorry if the way I posted messages was incorrect. Like I said, I am new to google groups and python quite a bit but i am trying to do things correctly by you guys. The errors that I am getting were not necessarily posting

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

2013-12-16 Thread rusi
On Tuesday, December 17, 2013 6:14:59 AM UTC+5:30, Chris Angelico wrote: On Tue, Dec 17, 2013 at 11:39 AM, rusi wrote: I had a paper some years ago on why C is a horrible language *to teach with* http://www.the-magus.in/Publications/chor.pdf I believe people did not get then (and still dont

Re: Comparing values of counter in python 3.3

2013-12-15 Thread rusi
On Monday, December 16, 2013 7:29:31 AM UTC+5:30, alex23 wrote: # Need to compare values of counter and reject in function/routine in value in counter2 is higher then value in counter1 for a current key [(k,Counter2[k]) for k in Counter2 - Counter1] Why not just? Counter2 - Counter1

Re: Comparing values of counter in python 3.3

2013-12-15 Thread rusi
On Monday, December 16, 2013 8:10:57 AM UTC+5:30, Roy Smith wrote: rusi wrote: On Monday, December 16, 2013 7:29:31 AM UTC+5:30, alex23 wrote: # Need to compare values of counter and reject in function/routine in value in counter2 is higher then value in counter1 for a current key

Re: a question about list as an element in a tuple

2013-12-15 Thread rusi
On Monday, December 16, 2013 9:27:11 AM UTC+5:30, Chris Angelico wrote: On Mon, Dec 16, 2013 at 2:30 PM, liuerfire Wang wrote: TypeError: 'tuple' object does not support item assignment In [5]: a Out[5]: ([1, 1], []) no problem, there is an exception. But a is still changed. is this a

Re: CP65001 fails (was re: ...)

2013-12-14 Thread rusi
On Sunday, December 15, 2013 4:21:08 AM UTC+5:30, Steven D'Aprano wrote: Apart from annoying the bystanders, your repeated angry and abusive screeds aimed at JMF in particular but others as well over minor formatting issues is more disruptive than the issues you are complaining about. I am

Re: CP65001 fails (was re: ...)

2013-12-14 Thread rusi
On Sunday, December 15, 2013 10:30:12 AM UTC+5:30, Steven D'Aprano wrote: I'm sorry, I was under the impression that Mark had done most of the work. I hadn't realised that others had contributed most of the practical advice. To be fair, I added the stuff to the wiki on Mark's prompting.

Re: request for guidance

2013-12-14 Thread rusi
On Saturday, December 14, 2013 10:41:09 AM UTC+5:30, David Hutto wrote: Don't get me wrong, I didn't mean reinventing the wheel is a bad thing, just that once you get the hang of things, you need to display some creativity in your work to set yourself apart from the rest. Nowadays,

Re: request for guidance

2013-12-13 Thread rusi
On Friday, December 13, 2013 10:45:22 AM UTC+5:30, jennifer stone wrote: greetings I am a novice who is really interested in contributing to Python projects. How and where do I begin? Good to see new names! How much python do you know/studied/coded? --

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

2013-12-13 Thread rusi
On Friday, December 13, 2013 10:13:11 PM UTC+5:30, Chris Angelico wrote: On Sat, Dec 14, 2013 at 3:39 AM, Mark Lawrence wrote: You'll have to wait until the cows come home on two counts. One, he's never yet provided any evidence to support any statement that he's ever made here. Second,

Re: [newbie] trying socket as a replacement for nc

2013-12-13 Thread rusi
On Friday, December 13, 2013 5:50:03 PM UTC+5:30, Jean Dubois wrote: Op vrijdag 13 december 2013 09:35:18 UTC+1 schreef Mark Lawrence: Would you please read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing the double line spacing that accompanied the

Re: [newbie] trying socket as a replacement for nc

2013-12-13 Thread rusi
On Friday, December 13, 2013 5:50:03 PM UTC+5:30, Jean Dubois wrote: to make the script check itself whether pyhon2 or python3 should be used? As far as I know both (2 and 3) worked Do you have some reason to suspect one works and other not? --

Re: min max from tuples in list

2013-12-13 Thread rusi
On Friday, December 13, 2013 11:58:51 AM UTC+5:30, Robert Voigtländer wrote: I've heard the term used often. It means something like, performs well or runs fast. It may or may not be an English word, but that doesn't stop people from using it :-) If google can be used to mean make huge

Re: request for guidance

2013-12-13 Thread rusi
On Saturday, December 14, 2013 10:41:09 AM UTC+5:30, David Hutto wrote: Don't get me wrong, I didn't mean reinventing the wheel is a bad thing, just that once you get the hang of things, you need to display some creativity in your work to set yourself apart from the rest. Nowadays,

Re: Need help with file object

2013-12-12 Thread rusi
On Friday, December 13, 2013 9:59:25 AM UTC+5:30, Unix SA wrote: s=open('/tmp/file2') snipped s.write(line) Among other things you are missing a write mode (2nd optional argument to open) http://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files --

Re: Optimizing list processing

2013-12-12 Thread rusi
On Friday, December 13, 2013 8:31:37 AM UTC+5:30, Steven D'Aprano wrote: I don't know of any reasonable way to tell at runtime which of the two algorithms I ought to take. Hard-coding an arbitrary value (if len(table) 500) is not the worst idea I've ever had, but I'm hoping for

Re: grab dict keys/values without iterating ?!

2013-12-11 Thread rusi
Reordering to un-top-post. On 11.12.2013 06:47, Dave Angel wrote: On Wed, 11 Dec 2013 02:02:20 +0200, Tamer Higazi wrote: Is there a way to get dict by search terms without iterating the entire dictionary ?! I want to grab the dict's key and values started with 'Ar'... Your wording

Re: Is there any advantage to using a main() in python scripts?

2013-12-11 Thread rusi
On Wednesday, December 11, 2013 7:47:34 PM UTC+5:30, Roy Smith wrote: JL wrote: Python scripts can run without a main(). What is the advantage to using a main()? Is it necessary to use a main() when the script uses command line arguments? (See script below) #!/usr/bin/python import

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

2013-12-11 Thread rusi
On Wednesday, December 11, 2013 5:16:50 PM UTC+5:30, Oscar Benjamin wrote: The Electrical Engineering students will subsequently do low-level programming with registers etc. but at the earliest stage we just want them to think about how algorithms and programs work before going into all the

Re: grab dict keys/values without iterating ?!

2013-12-11 Thread rusi
On Wednesday, December 11, 2013 8:16:12 PM UTC+5:30, Roy Smith wrote: rusi wrote: The classic data structure for this is the trie: General idea: http://en.wikipedia.org/wiki/Trie In python: http://stackoverflow.com/questions/11015320/how-to-create-a-trie-in-python/ I agree

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

2013-12-11 Thread rusi
On Wednesday, December 11, 2013 8:54:30 PM UTC+5:30, Chris Angelico wrote: On Thu, Dec 12, 2013 at 1:44 AM, rusi wrote: It is this need to balance that makes functional programming attractive: - implemented like any other programming language - but also mathematically rigorous Attractive

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

2013-12-11 Thread rusi
On Wednesday, December 11, 2013 9:31:42 PM UTC+5:30, bob gailer wrote: On 12/11/2013 3:43 AM, Chris Angelico wrote: When you tell a story, it's important to engage the reader from the start...explain This is how to print Hello World to the console and worry about what exactly the console is

Re: Disable HTML in forum messages (was: Movie (MPAA) ratings and Python?)

2013-12-11 Thread rusi
On Thursday, December 12, 2013 6:42:42 AM UTC+5:30, Ben Finney wrote: Dan Stromberg writes: I found a remove formatting button in gmail's composer, and used it on this message. Does this message look like plain text? Still sent with an HTML part, so some other change must be needed to

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

2013-12-11 Thread rusi
On Thursday, December 12, 2013 7:12:32 AM UTC+5:30, Roy Smith wrote: rusi wrote: Kernighan and Ritchie set an important first in our field by making Hello World their first program. Yup. People tend to under-estimate the importance of this: Many assumptions need to be verified

Re: Trouble with Multi-threading

2013-12-11 Thread rusi
On Thursday, December 12, 2013 7:30:38 AM UTC+5:30, Roy Smith wrote: In article Steven D'Aprano wrote: When did this forum become so intolerant of even the tiniest, most minor breaches of old-school tech etiquette? Have we really got nothing better to do than to go on the war path over

Re: interactive help on the base object

2013-12-10 Thread rusi
On Tuesday, December 10, 2013 3:07:36 PM UTC+5:30, Mark Lawrence wrote: On 10/12/2013 05:16, rusi wrote: On Tuesday, December 10, 2013 10:40:27 AM UTC+5:30, Steven D'Aprano wrote: By the way, I'm curious. Why are discussions about object oriented coding off-topic to Python

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

2013-12-10 Thread rusi
On Tuesday, December 10, 2013 4:12:53 PM UTC+5:30, Oscar Benjamin wrote: On 9 December 2013 19:57, Terry Reedy wrote: On 12/9/2013 7:23 AM, Oscar Benjamin wrote: Hi all, I work in a University Engineering faculty teaching, among other things, programming. In our last meeting about

Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5

2013-12-10 Thread rusi
On Tuesday, December 10, 2013 9:52:47 PM UTC+5:30, Mark Lawrence wrote: On 10/12/2013 15:48, rurpy wrote: On 12/10/2013 06:47 AM, Chris Angelico wrote: On Wed, Dec 11, 2013 at 12:35 AM, harish.barvekar wrote: Also: You appear to be using Google Groups, which is the Mos Eisley of the

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

2013-12-09 Thread rusi
posts -- रुसि मोदि [Rusi Mody in devanagari so that GG will not use an obsolete charset] -- https://mail.python.org/mailman/listinfo/python-list

Re: Meta Fight About Posting (was: python programming help)

2013-12-09 Thread rusi
On Monday, December 9, 2013 9:14:08 PM UTC+5:30, Travis Griggs wrote: As long as we’re in full scale rant drift, I’d like to remind others of the time honored tradition of changing the post subject, when, er, uh, the subject changes. Because this obviously is not programming help anymore.

Re: Meta Fight About Posting (was: python programming help)

2013-12-09 Thread rusi
On Monday, December 9, 2013 9:55:19 PM UTC+5:30, rusi wrote: On Monday, December 9, 2013 9:14:08 PM UTC+5:30, Travis Griggs wrote: As long as we’re in full scale rant drift, I’d like to remind others of the time honored tradition of changing the post subject, when, er, uh, the subject

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

2013-12-09 Thread rusi
On Monday, December 9, 2013 5:53:41 PM UTC+5:30, Oscar Benjamin wrote: 5) Learning to program should be painful and we should expect the students to complain about it (someone actually said that!) but the pain makes them better programmers in the end. Yeah this will get some people's back up

Re: interactive help on the base object

2013-12-09 Thread rusi
On Tuesday, December 10, 2013 8:49:46 AM UTC+5:30, Steven D'Aprano wrote: On Mon, 09 Dec 2013 05:59:29 -0500, Ned Batchelder wrote: [...] And the cycle continues: [...] Maybe we could just not? Thanks Ned for your attempts at bringing some order and sense in these parts of the universe

Re: interactive help on the base object

2013-12-09 Thread rusi
On Tuesday, December 10, 2013 10:40:27 AM UTC+5:30, Steven D'Aprano wrote: By the way, I'm curious. Why are discussions about object oriented coding off-topic to Python? This is not a rhetorical question. Well OOP on the python list is certainly on topic. Interminable discussions about why

Re: Origin of eval()-ing in separate namespace object

2013-12-08 Thread rusi
On Sunday, December 8, 2013 4:05:54 PM UTC+5:30, Kalinni Gorzkis wrote: By which languages(s) Python was inspired to support evaluating expressions and executing statements in a separate “namespace” object? This syntax: eval(expression,globals) or exec(code,globals) What is the origin of

Re: Centring text in a rect in PyGame?

2013-12-08 Thread rusi
On Sunday, December 8, 2013 7:36:04 PM UTC+5:30, Tim Golden wrote: On 07/12/2013 12:41, Eamonn Rea wrote: First of all. Id like to say I have no idea how these mailing lists work, so I dont know if this'll come through right, but we'll see I guess :-) I'm coming from the Google Group

Re: Origin of eval()-ing in separate namespace object

2013-12-08 Thread rusi
On Sunday, December 8, 2013 8:09:39 PM UTC+5:30, Jussi Piitulainen wrote: rusi writes: On Sunday, December 8, 2013 4:05:54 PM UTC+5:30, Kalinni Gorzkis wrote: By which languages(s) Python was inspired to support evaluating expressions and executing statements in a separate namespace

Re: ASCII and Unicode

2013-12-08 Thread rusi
On Saturday, December 7, 2013 9:35:34 PM UTC+5:30, giacomo boffi wrote: Steven D'Aprano writes: Ironically, your post was not Unicode. [...] Your post was sent using a legacy encoding, Windows-1252, also known as CP-1252 i access rusi's post using a NNTP server, and in his post i see

Re: ASCII and Unicode

2013-12-08 Thread rusi
On Sunday, December 8, 2013 10:52:34 PM UTC+5:30, Steven D'Aprano wrote: On Sat, 07 Dec 2013 17:05:34 +0100, giacomo boffi wrote: Steven D'Aprano writes: Ironically, your post was not Unicode. [...] Your post was sent using a legacy encoding, Windows-1252, also known as CP-1252 i

Re: interactive help on the base object

2013-12-08 Thread rusi
On Monday, December 9, 2013 8:11:47 AM UTC+5:30, zipher wrote: What methods, if any does it provide? Are they all abstract? etc??? Pretty much nothing useful :-) py dir(object) [...] So (prodding the student), Why does everything inherit from Object if it provides no functionality?

Re: ASCII and Unicode

2013-12-08 Thread rusi
On Monday, December 9, 2013 1:41:41 AM UTC+5:30, giacomo boffi wrote: blush the wrong one.../ i.e, the one JUST BEFORE your change of subject --- if i look at the ellipsis post, i see the same encoding that you have mentioned sorry for the confusion And thank you for pointing the way to the

Re: interactive help on the base object

2013-12-08 Thread rusi
Thanks for the info. On Monday, December 9, 2013 9:46:30 AM UTC+5:30, Steven D'Aprano wrote: On Sun, 08 Dec 2013 18:58:09 -0800, rusi wrote: PS Can some kind soul inform me whether I could convince GG to unicode my post? Does GG not give you some way of inspecting the post's full headers

Re: python programming help

2013-12-08 Thread rusi
On Monday, December 9, 2013 10:37:38 AM UTC+5:30, ru...@yahoo.com wrote: On 12/08/2013 05:27 PM, Mark Lawrence wrote: On 09/12/2013 00:08, wrote: On 12/08/2013 12:17 PM, Chris Angelico wrote: On Mon, Dec 9, 2013 at 6:06 AM, rafaell wrote: [...] To the OP, please ignore the above, it's

Re: interactive help on the base object

2013-12-08 Thread rusi
On Monday, December 9, 2013 10:56:28 AM UTC+5:30, ru...@yahoo.com wrote: On 12/08/2013 09:46 PM, rusi wrote: On Monday, December 9, 2013 9:46:30 AM UTC+5:30, Steven D'Aprano wrote: On Sun, 08 Dec 2013 18:58:09 -0800, rusi wrote: [...] Does GG not give you some way of inspecting the post's

Re: Managing Google Groups headaches

2013-12-07 Thread rusi
On Saturday, December 7, 2013 3:46:02 PM UTC+5:30, wxjm...@gmail.com wrote: Rusi: unicode as a medium is universal in the same way that ASCII used to be Probably, you do not realize deeply how this sentence is correct. Unicode and ascii are constructed in the same way. It has not even

Re: One liners

2013-12-07 Thread rusi
On Saturday, December 7, 2013 10:26:04 PM UTC+5:30, Michael Torrie wrote: On 12/06/2013 08:27 PM, Roy Smith wrote: Steven D'Aprano wrote: The ternary if is slightly unusual and unfamiliar It's only unusual an unfamiliar if you're not used to using it :-) Coming from a C/C++

Re: Is It Bug?

2013-12-07 Thread rusi
On Sunday, December 8, 2013 6:28:24 AM UTC+5:30, Mahan Marwat wrote: Why this is not working. 'Hello, World'.replace('\\', '\\') To me, Python will interpret '' to '\\'. And the replace method will replace '\\' with '\'. So, the result will be 'Hello, \World'. But it's give me

Re: Managing Google Groups headaches

2013-12-06 Thread rusi
On Friday, December 6, 2013 1:06:30 PM UTC+5:30, Roy Smith wrote: Rusi wrote: On Thursday, December 5, 2013 6:28:54 AM UTC+5:30, Roy Smith wrote: The real problem with web forums is they conflate transport and presentation into a single opaque blob, and are pretty much universally

Re: Managing Google Groups headaches

2013-12-06 Thread rusi
On Friday, December 6, 2013 6:49:04 PM UTC+5:30, Chris Angelico wrote: On Sat, Dec 7, 2013 at 12:03 AM, rusi wrote: SQL databases (assuming thats the mediawiki backend) is another -- ok for data-structuring bad for presentation. No, SQL databases don't store structured text. MediaWiki just

Re: Managing Google Groups headaches

2013-12-06 Thread rusi
On Friday, December 6, 2013 7:18:19 PM UTC+5:30, Chris Angelico wrote: On Sat, Dec 7, 2013 at 12:32 AM, rusi wrote: I guess we are using 'structured' in different ways. All I am saying is that mediawiki which seems to present as html, actually stores its stuff as SQL -- nothing more

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

2013-12-06 Thread rusi
with it ? Yes but its easily correctable I recently answered this question to another poster here https://groups.google.com/forum/#!searchin/comp.lang.python/rusi$20google$20groups|sort:date/comp.lang.python/C51hEvi-KbY/KSeaMFoHtcIJ -- https://mail.python.org/mailman/listinfo/python-list

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

2013-12-06 Thread rusi
On Friday, December 6, 2013 8:42:02 PM UTC+5:30, Mark Lawrence wrote: The English I used was archaic, please ignore it :) Archaic is almost archaic Old is ever-young :D -- https://mail.python.org/mailman/listinfo/python-list

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

2013-12-06 Thread rusi
python library says: I, and Rusi, know enough, and take the effort, to overcome its shortcomings doesn't change that. But in fact his post takes care of 1 not 2. In all fairness I did not know that 2 is a problem until rurpy pointed it out recently and was not correcting it. In fact, I'd take

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

2013-12-06 Thread rusi
On Friday, December 6, 2013 9:55:54 PM UTC+5:30, Mark Lawrence wrote: On 06/12/2013 16:19, rusi wrote: So someone please update that page! This is a community so why don't you? Ok done (at least a first draft) I was under the impression that anyone could not edit -- https://mail.python.org

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

2013-12-06 Thread rusi
On Friday, December 6, 2013 10:11:04 PM UTC+5:30, MRAB wrote: On 06/12/2013 15:34, Steven D'Aprano wrote: On Fri, 06 Dec 2013 06:52:48 -0800, iMath wrote: yes ,I am a native Chinese speaker.I always post question by Google Group not through email ,is there something wrong with it ? your

Re: ASCII and Unicode [was Re: Managing Google Groups headaches]

2013-12-06 Thread rusi
On Saturday, December 7, 2013 12:30:18 AM UTC+5:30, Steven D'Aprano wrote: On Fri, 06 Dec 2013 05:03:57 -0800, rusi wrote: Evidently (and completely inadvertently) this exchange has just illustrated one of the inadmissable assumptions: unicode as a medium is universal in the same way

Re: ASCII and Unicode [was Re: Managing Google Groups headaches]

2013-12-06 Thread rusi
On Saturday, December 7, 2013 8:11:45 AM UTC+5:30, Chris Angelico wrote: On Sat, Dec 7, 2013 at 1:33 PM, rusi wrote: That seems to suggest that something is not right with the python mailing list config. No?? If in doubt, blame someone else, eh? I'd first check what your browser's

Re: Managing Google Groups headaches

2013-12-06 Thread rusi
On Saturday, December 7, 2013 7:54:50 AM UTC+5:30, Ned Batchelder wrote: On 12/6/13 8:03 AM, rusi wrote: Leaving aside whose fault this is (very likely buggy google groups), this mojibaking cannot happen if the assumption All text is ASCII were to uniformly hold. Of course with unicode

Re: Packaging a proprietary Python library for multiple OSs

2013-12-05 Thread rusi
On Thursday, December 5, 2013 3:44:50 PM UTC+5:30, Michael Herrmann wrote: Hi everyone, I am developing a proprietary Python library. The library is currently Windows-only, and I want to also make it available for other platforms (Linux Mac). I'm writing because I wanted to ask for your

Re: Managing Google Groups headaches

2013-12-05 Thread rusi
On Thursday, December 5, 2013 6:28:54 AM UTC+5:30, Roy Smith wrote: Rich Kulawiec wrote: Yes, I'm aware of web forums: I've used hundreds of them. They suck. They ALL suck, they just all suck differently. I could spend the next several thousand lines explaining why, but instead I'll

Re: Managing Google Groups headaches

2013-12-05 Thread rusi
On Thursday, December 5, 2013 4:17:11 AM UTC+5:30, Cameron Simpson wrote: On 03Dec2013 17:39, rusi wrote: On Wednesday, December 4, 2013 6:10:05 AM UTC+5:30, Cameron Simpson wrote: My first act on joining any mailing list is to download the entire archive into my local mail store. I have

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

2013-12-04 Thread rusi
On Wednesday, December 4, 2013 2:27:28 PM UTC+5:30, Ian wrote: On Tue, Dec 3, 2013 at 11:31 PM, rusi wrote: Its a more fundamental problem than that: It emerges from the OP's second post) that he wants '-' in the attributes. Is that all? Where does this syntax-enlargement stop? Spaces

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

2013-12-04 Thread rusi
On Wednesday, December 4, 2013 4:03:14 PM UTC+5:30, Chris Angelico wrote: On Wed, Dec 4, 2013 at 9:09 PM, rusi wrote: OP wants attribute identifiers like outer_fieldset-inner_fieldset-third_field. Say I have a python expression: obj.outer_fieldset-inner_fieldset-third_field I don't

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

2013-12-04 Thread rusi
On Wednesday, December 4, 2013 3:59:06 PM UTC+5:30, Antoon Pardon wrote: Op 04-12-13 11:09, rusi schreef: I used the spaces case to indicate the limit of chaos. Other characters (that already have uses) are just as problematic. I don't agree with the latter. As it is now python can make

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

2013-12-04 Thread rusi
On Wednesday, December 4, 2013 6:02:18 PM UTC+5:30, Antoon Pardon wrote: Op 04-12-13 13:01, rusi schreef: On Wednesday, December 4, 2013 3:59:06 PM UTC+5:30, Antoon Pardon wrote: Op 04-12-13 11:09, rusi schreef: I used the spaces case to indicate the limit of chaos. Other characters

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

2013-12-04 Thread rusi
On Thursday, December 5, 2013 8:13:49 AM UTC+5:30, Ian wrote: On Wed, Dec 4, 2013 at 3:09 AM, rusi wrote: On Wednesday, December 4, 2013 2:27:28 PM UTC+5:30, Ian wrote: On Tue, Dec 3, 2013 at 11:31 PM, rusi wrote: Its a more fundamental problem than that: It emerges from the OP's

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

2013-12-03 Thread rusi
On Tuesday, December 3, 2013 5:48:59 PM UTC+5:30, Helmut Jarausch wrote: Hi, 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 know I could use a while loop but I don't like it. How about def

Re: The input and output is as wanted, but why error?

2013-12-03 Thread rusi
On Tuesday, December 3, 2013 9:18:43 PM UTC+5:30, geez...@gmail.com wrote: I am trying to solve this problem: http://codeforces.com/problemset/problem/71/A The input and output is as wanted, but my answer keep rejected, here is my source code http://txt.do/1smv Please, I need help. I

Re: Managing Google Groups headaches

2013-12-03 Thread rusi
On Wednesday, December 4, 2013 6:10:05 AM UTC+5:30, Cameron Simpson wrote: Dennis Lee Bieber writes: [NNTP] clients provide full-fledged editors and conversely full-fledged editors provide NNTP clients GNU Emacs is a LISP operating system disguised as a word processor.

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

2013-12-03 Thread rusi
On Wednesday, December 4, 2013 11:15:05 AM UTC+5:30, Tim Roberts wrote: Piotr Dobrogost wrote: Attribute access syntax being very concise is very often preferred to dict's interface. It is not very concise. It is slightly more concise. x = obj.value1 x = dct['value1'] You

Re: Managing Google Groups headaches

2013-12-02 Thread rusi
On Monday, December 2, 2013 7:34:33 PM UTC+5:30, Neil Cerutti wrote: On 2013-12-02, Roy Smith wrote: The current situation does force a lot of technology-focused people, progammers in particular, into a low opinion of Google. The crappy usenet portal is poor marketing. If you think,

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

2013-12-02 Thread rusi
On Tuesday, December 3, 2013 6:45:42 AM UTC+5:30, iMath wrote: so is there any way to create a temporary file by Python here ? http://docs.python.org/2/library/tempfile.html -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] Managing Google Groups headaches

2013-12-02 Thread rusi
On Tuesday, December 3, 2013 7:13:03 AM UTC+5:30, Roy Smith wrote: Michael Torrie wrote: I wish Google hadn't bought a lot of things. Seems like they bye up a lot of cool, nerd-centric apps and companies and then turned them into apps that do less and do it poorly, but in a slick way

Re: [OT] Managing Google Groups headaches

2013-12-02 Thread rusi
On Tuesday, December 3, 2013 8:39:02 AM UTC+5:30, Michael Torrie wrote: On 12/02/2013 06:43 PM, Roy Smith wrote: And this is surprising, why? Well back when Google was a young hip company they billed themselves as a bunch of nerds making stuff for nerds. But yes we should have seen this

  1   2   3   4   5   6   7   8   9   10   >