Re: Python for philosophers

2013-05-14 Thread Ramchandra Apte
On Sunday, 12 May 2013 01:33:15 UTC+5:30, Citizen Kant wrote: > Hi, > this could be seen as an extravagant subject but that is not my original > purpose. I still don't know if I want to become a programmer or not. At this > moment I'm just inspecting the environment. I'm making my way to Python

Re: On-topic: alternate Python implementations

2012-08-04 Thread Ramchandra Apte
The first time I did reply not 'reply all', so I'm posting again. ;-) I think Cython is a Python implementation because you can only use the Python features, not the extra features. C++ is different because of the different rules (C was in a time of assembly and costly computers, C++ was made in th

Re: avlhqw avlhqeavlhqino ovfqalmw avlhqei avlhqeaivscunqw

2012-08-04 Thread Ramchandra Apte
Is this spam? If not, can you please explain the message better (I don't get it) and *Please* change the title, it look like spam. On 3 August 2012 21:58, Martin Michael Musatov wrote: > Thanks to technology, a memorandum of understanding (thanks from Tel > Aviva / s, F `u / n (I [I TO rotate HM

Re: conditional running of code portion

2012-08-04 Thread Ramchandra Apte
Try pypreprocessor . Better idea: You should be using the loggingmodule if you want to print debug information quickly.It uses threads and is optimized to run fast. On 5 August 2012 09:46, JW Huang wrote: > H

Re: when an iterable object is exhausted or not

2012-08-04 Thread Ramchandra Apte
An important use of range repeating. one_to_10 = range(1,10) one_to_5 = range(1,5) for x in one_to_5: for x in one_to_10:pass if range wasn't repeatable, range would have to be called 5 times compared with 1! On 5 August 2012 07:43, Steven D'Aprano < [email protected]> wrote

Re: conditional running of code portion

2012-08-06 Thread Ramchandra Apte
I just googled the OP's question and found a StackOverflow question. That question's solution mentions pypreprocessor. On 6 August 2012 08:20, Steven W. Orr wrote: > On 8/5/2012 12:43 AM, Ramchandra Apte wrote: > >> Try pypreprocessor >> <http://code.goog

Re: Pickle file and send via socket

2012-08-06 Thread Ramchandra Apte
This is *absolutely* possible. Did you know that IDLE uses this very method when run in sub-process mode! On 6 August 2012 19:02, S.B wrote: > Hello friends > > Does anyone know if it's possible to pickle and un-pickle a file across a > network socket. i.e: > First host pickles a file object and

Re: Pickle file and send via socket

2012-08-06 Thread Ramchandra Apte
You can use pickle.dumps<http://docs.python.org/library/pickle.html#pickle.dumps> and pickle.loads <http://docs.python.org/library/pickle.html#pickle.loads> On 6 August 2012 19:17, Ramchandra Apte wrote: > This is *absolutely* possible. > Did you know that IDLE uses this ve

Re: cant upload the python window popup

2012-08-06 Thread Ramchandra Apte
Please explain the problem like this: 1. What you expected 2. What happened 3. Other info. On 6 August 2012 19:25, Mario Blanco wrote: > I delete by error the python window inteface and now i cant reupload again > some advice is apreciated > thanks > > -- > http://mail.python.org/mailman/listinf

Re: Looking for a good introduction to object oriented programming with Python

2012-08-06 Thread Ramchandra Apte
Its a docstring - it documents the function/class Did you know that docstrings can be used for testing - look at the doctest standard library module! try: class A: def method(self): '''Sample method This method does the difficult task X. Call this method with no arguments.'''#docstring

Re: find out whether a module exists (without importing it)

2012-08-07 Thread Ramchandra Apte
You are correct. On 7 August 2012 14:38, Chris Angelico wrote: > On Tue, Aug 7, 2012 at 6:00 PM, Gelonida N wrote: > > modulename = 'my.module' > > cmd = 'import %s as amodule' > > try: > > exec(cmd) > > print "imported successfully" > > Someone will doubtless correct me if I'm wrong, b

Re: I thought I understood how import worked...

2012-08-07 Thread Ramchandra Apte
I don't think the modules are actually imported twice. The entry is just doubled;that's all On 7 August 2012 18:48, Roy Smith wrote: > I've been tracking down some weird import problems we've been having with > django. Our settings.py file is getting imported twice. It has some > non-idempoten

Re: [ANN] CubicWeb 3.8 released

2012-08-08 Thread Ramchandra Apte
You need to install Twisted(google for links) On 8 August 2012 18:49, wrote: > Hi Sylvain, > > I was trying to install Cubicweb on my Ubuntu 12.04. I believe it got > installed, but I do get this error. > > ~$ cubicweb-ctl > Traceback (most recent call last): > File "/usr/local/bin/cubicweb-ct

Re: print(....,file=sys.stderr) buffered?

2012-08-13 Thread Ramchandra Apte
As far as I know, stdout is usually buffered (not necessary) in both C++ and Python stderr is non-buffered in both C++ and Python (I can't imagine the point of stderr if it were buffered) Even with this, stdout usually come immediately - the situation you have shouldn't happen. Are you using an IDE

Re: Does anyone have an activate script for portable python?

2012-08-13 Thread Ramchandra Apte
PS:virtualenv is added to the stdlib in Python 3.3 On 13 August 2012 05:42, alex23 wrote: > On Aug 12, 9:09 am, Gelonida N wrote: > > In Pythons installed with virtualenv there is on windows an activate.bat > > script, that can be used to setup the cmd-shell such, that the search > > path for p

Re: [ANNOUNCE] Campaign to support the notmm project!

2012-08-14 Thread Ramchandra Apte
> I'm now really poor and cannot even finance the server hosting. You can use Google Code hosting for the project - even many Python Core Dev's stuff are done on it. -- http://mail.python.org/mailman/listinfo/python-list

Re: EXTERNAL: Re: pylagiarism -- Need help now! Please provide code...

2012-08-14 Thread Ramchandra Apte
Yes. On 14 August 2012 17:20, Ben Finney wrote: > Damon Register writes: > > > On 8/14/2012 5:32 AM, Simon Cropper wrote: > > > Anyone willing to contribute money to help with the compilation of > > > the code will get a portion of the profits. Just send me your > > > account details, name and

Re: something about split()???

2012-08-14 Thread Ramchandra Apte
(Much) more Pythonic solution: >>> filter(None,"|".split("|")) On 14 August 2012 15:14, Andreas Tawn wrote: > > I have a question about the split function? surpose a = "|",and when I > use a.split("|") , I got the list > > ['"",""] ,but I want to get the empty list,what should I do ? > > Somethi

Re: EXTERNAL: Re: pylagiarism -- Need help now! Please provide code...

2012-08-14 Thread Ramchandra Apte
On 14 August 2012 19:01, Ramchandra Apte wrote: > Yes. > > > On 14 August 2012 17:20, Ben Finney wrote: > >> Damon Register writes: >> >> > On 8/14/2012 5:32 AM, Simon Cropper wrote: >> > > Anyone willing to contribute money to help with the comp

Re: it's really strange.how does it work?

2012-08-14 Thread Ramchandra Apte
Even I got confused a bit: explaination: this is called iterable unpacking `start, stop = 0, start` is the same as: temp = start start = 0 stop = temp On 15 August 2012 10:37, levi nie wrote: > ok,what does "start, stop = 0, start" in the code mean? > it's really strange.how does it work? > > co

Re: something about split()???

2012-08-14 Thread Ramchandra Apte
filter is bad when you use lambda with it there are (good) cases for filter On 14 August 2012 22:39, Jean-Michel Pichavant wrote: > Ramchandra Apte wrote: > >> (Much) more Pythonic solution: >> >>> filter(None,"|".split("|")) >> >> O

Re: [ANNC] pybotwar-0.8

2012-08-16 Thread Ramchandra Apte
nah.. "war" sounds better than "contest" On 16 August 2012 14:59, Jean-Michel Pichavant wrote: > Lee Harr wrote: > >> pybotwar is a fun and educational game where players >> write computer programs to control simulated robots. >> >> http://pybotwar.googlecode.**com/

Re: Verify the integrity of the tar file with tarfile module?

2012-08-16 Thread Ramchandra Apte
Just opening the file may not create an error. You have to read some files to check for errors. On 15 August 2012 20:29, rudson alves wrote: > Hello, > > I took a Slackware package file .tar (uncompressed) and edited with random > characters to generate any error in its structure, as shown in th

Re: type(None)()

2012-08-16 Thread Ramchandra Apte
Are they the same object On 16 August 2012 21:01, Stefan Behnel wrote: > Steven D'Aprano, 16.08.2012 15:58: > >>> NoneType raises an error if you try to create a second instance. > > In my opinion, this is a PITA for None and better behaviour would be to > > return the pre-existing NoneType inst

Re: [ANNC] pybotwar-0.8

2012-08-16 Thread Ramchandra Apte
On 16 August 2012 21:00, Mark Lawrence wrote: > and "bottom" reads better than "top" > > > On 16/08/2012 15:37, Ramchandra Apte wrote: > >> nah.. "war" sounds better than "contest" >> >> On 16 August 2012 14:59, Jean-Mic

Re: [ANNC] pybotwar-0.8

2012-08-16 Thread Ramchandra Apte
I think I'll use Google Groups now. On 16 August 2012 21:10, Ramchandra Apte wrote: > > > On 16 August 2012 21:00, Mark Lawrence wrote: > >> and "bottom" reads better than "top" >> >> >> On 16/08/2012 15:37, Ramchandra Apte wrote:

Re: Top-posting &c. (was Re: [ANNC] pybotwar-0.8)

2012-08-18 Thread Ramchandra Apte
I am aware of this. I'm just to lazy to use Google Groups! "Come on Ramchandra, you can switch to Google Groups." On 17 August 2012 13:09, rusi wrote: > On Aug 17, 3:36 am, Chris Angelico wrote: > > On Fri, Aug 17, 2012 at 1:40 AM, Ramchandra Apte > wrote: > >

Re: ONLINE SERVER TO STORE AND RUN PYTHON SCRIPTS

2012-08-18 Thread Ramchandra Apte
Please don't use all caps. On 17 August 2012 18:16, coldfire wrote: > I would like to know that where can a python script be stored on-line from > were it keep running and can be called any time when required using > internet. > I have used mechanize module which creates a webbroswer instance to

Re: pythonic interface to SAPI5?

2012-08-18 Thread Ramchandra Apte
A simple workaround is to use: speak = subprocess.Popen("espeak",stdin = subprocess.PIPE) speak.stdin.write("Hello world!") time.sleep(1) speak.terminate() #end the speaking On 17 August 2012 21:49, Vojtěch Polášek wrote: > Hi, > I am developing audiogame for visually impaired users and I want

Re: remote read eval print loop

2012-08-18 Thread Ramchandra Apte
Not really. Try modifying ast.literal_eval. This will be quite secure. On 17 August 2012 19:36, Chris Angelico wrote: > On Fri, Aug 17, 2012 at 11:28 PM, Eric Frederich > wrote: > > Within the debugging console, after importing all of the bindings, there > > would be no reason to import anythin

Re: [ANNC] pybotwar-0.8

2012-08-18 Thread Ramchandra Apte
On 17 August 2012 18:23, Hans Mulder wrote: > On 16/08/12 23:34:25, Walter Hurry wrote: > > On Thu, 16 Aug 2012 17:20:29 -0400, Terry Reedy wrote: > > > >> On 8/16/2012 11:40 AM, Ramchandra Apte wrote: > >> > >>> Look you are the only person complain

Re: [ANNC] pybotwar-0.8

2012-08-21 Thread Ramchandra Apte
On Tuesday, 21 August 2012 12:41:39 UTC+5:30, Jamie Paul Griffin wrote: > [ Ramchandra Apte wrote on Sat 18.Aug'12 at 19:21:03 +0530 ] > > > > > I'll be using Google Groups (hopefully it won't top-post by default) to > > > post stuff. > > >

[email protected]

2012-08-24 Thread Ramchandra Apte
As BFDL, I hereby command everybody to stop the discussion. lets put time on useful stuff i am using google groups (i think it knows what to do) -- http://mail.python.org/mailman/listinfo/python-list

Re: squeeze install python-gi

2012-08-24 Thread Ramchandra Apte
On Friday, 24 August 2012 17:17:15 UTC+5:30, contro opinion wrote: > 我发现squeeze 不能安装python-gi,没有squeeze的版本 > > > from gi.repository import Gtk > > def destroy_cb(widget): > Gtk.main_quit() > > w = Gtk.Window() > w.connect('destroy', destroy_cb) > > l = Gtk.Label() > > l.set_text("Hello W

Re: Built-in open() with buffering > 1

2012-08-24 Thread Ramchandra Apte
`f._CHUNK_SIZE = 5` is modifying Python's internal variables - don't do that google buffering to find out what it is buffering is how much Python will keep in memory f.read(1) will actually read `buffering` bytes of memory so that when you read later, the reading can be done from memory On Friday,

Re: Flexible string representation, unicode, typography, ...

2012-08-24 Thread Ramchandra Apte
On Thursday, 23 August 2012 18:17:29 UTC+5:30, (unknown) wrote: > This is neither a complaint nor a question, just a comment. > > > > In the previous discussion related to the flexible > > string representation, Roy Smith added this comment: > > > > http://groups.google.com/group/comp.lang.

Re: Filter versus comprehension (was Re: something about split()???)

2012-08-24 Thread Ramchandra Apte
On Wednesday, 22 August 2012 22:13:04 UTC+5:30, Terry Reedy wrote: > On 8/22/2012 3:30 AM, Mark Lawrence wrote: > > > On 22/08/2012 06:46, Terry Reedy wrote: > > >> On 8/21/2012 11:43 PM, mingqiang hu wrote: > > >>> why filter is bad when use lambda ? > > >> > > >> Inefficient, not 'bad'. Bec

Re: psphere: how to make thread safe

2012-08-24 Thread Ramchandra Apte
On Wednesday, 22 August 2012 17:33:48 UTC+5:30, sajuptpm wrote: > Hi, > > > > psphere: Python interface for the VMware vSphere Web Services SDK > > > > I already developed an app using https://bitbucket.org/jkinred/psphere. But > getting lot of errors since psphere is not thread safe (I thi

Re: interfacing with x86_64 assembler

2012-09-01 Thread Ramchandra Apte
On Friday, 31 August 2012 19:28:11 UTC+5:30, Grant Edwards wrote: > On 2012-08-31, Mark Lawrence wrote: > > > On 31/08/2012 14:40, lipska the kat wrote: > > > > >> I was hacking away at some x86_64 assembler today > > >> when I found myself obsessively indenting my code > > >> by EXACTLY 4

Re: PipeController v0.1 - experimental tool to simulate simple UNIX-style pipes in Python

2012-09-01 Thread Ramchandra Apte
On Friday, 31 August 2012 03:27:54 UTC+5:30, vasudevram wrote: > I wrote PipeController recently to experiment with doing UNIX-style pipes in > Python. > > > > Blog post about it: > > > > http://jugad2.blogspot.in/2012/08/pipecontroller-v01-released-simulating.html > > > > The blog post

Re: Accessing AST at runtime

2012-09-01 Thread Ramchandra Apte
On Sunday, 2 September 2012 08:00:59 UTC+5:30, (unknown) wrote: > Hi, > > > > I would like to access the AST of a python object at runtime. I mean, if I > have this: > > > > def f(x): return x*x/2 > > > > Is there any way to interrogate the object f to find out the AST of the > expressi

Re: interfacing with x86_64 assembler

2012-09-01 Thread Ramchandra Apte
On Sunday, 2 September 2012 06:06:06 UTC+5:30, Chris Angelico wrote: > On Sun, Sep 2, 2012 at 10:10 AM, John Ladasky > > wrote: > > > I haven't seen this joke on the Net in years, does anyone still remember it? > > > > > > "C combines the power of assembly language with the readability and >

Re: py2c - an open source Python to C/C++ is looking for developers

2012-09-01 Thread Ramchandra Apte
On Tuesday, 31 July 2012 18:16:27 UTC+5:30, Stefan Behnel wrote: > Stefan Behnel, 31.07.2012 07:23: > > > From a look at the source code, it seems hard to bring it together with > > > anything. It looks very monolithic. > > > > Hmm, sorry, I mixed it up with "2c.py", which is yet another of t

Re: py2c - an open source Python to C/C++ is looking for developers

2012-09-01 Thread Ramchandra Apte
>That's reason enough for it. Do you plan to port all the standard python modules as well, though? Well, it should be quite easy because most of the _modules are either C accelerator (which there is no need to port) or a C wrapper (which should be trivial to port) -- http://mail.python.org/ma

Re: py2c - an open source Python to C/C++ is looking for developers

2012-09-01 Thread Ramchandra Apte
On Sunday, 2 September 2012 11:18:38 UTC+5:30, Michael Torrie wrote: > On 09/01/2012 09:15 PM, Ramchandra Apte wrote: > > > It converts to *pure* C/C++ *without* using Python or its API so that it > > can be the same speed as C/C++ > > > > Sounds like a fun proj

Re: py2c - an open source Python to C/C++ is looking for developers

2012-09-02 Thread Ramchandra Apte
On Sunday, 2 September 2012 12:53:35 UTC+5:30, Serhiy Storchaka wrote: > On 02.09.12 06:15, Ramchandra Apte wrote: > > > It converts to *pure* C/C++ *without* using Python or its API so that it > > can be the same speed as C/C++ > > > > How is it implemented

Re: Flexible string representation, unicode, typography, ...

2012-09-02 Thread Ramchandra Apte
On Sunday, 2 September 2012 17:53:16 UTC+5:30, Mark Lawrence wrote: > On 02/09/2012 13:00, Serhiy Storchaka wrote: > > > On 02.09.12 12:52, Peter Otten wrote: > > >> Ian Kelly wrote: > > >> > > >>> Rewriting the example to use locale.strcoll instead: > > >> > > >> sorted(li, key=functool

Re: python docs search for 'print'

2012-09-04 Thread Ramchandra Apte
On Tuesday, 4 September 2012 23:29:26 UTC+5:30, David Hoese wrote: > A friend made me aware of this: > > When a python beginner (2.x) quick searches for "print" on > > docs.python.org, the print function doesn't even come up in the top 20 > > results. The print statement isn't even listed as

Re: sockets,threads and interupts

2012-09-04 Thread Ramchandra Apte
On Tuesday, 4 September 2012 23:41:13 UTC+5:30, Grant Edwards wrote: > On 2012-09-04, MRAB wrote: > > > On 04/09/2012 16:26, loial wrote: > > >> I have threaded python script that uses sockets to monitor network > > >> ports. > > >> > > >> I want to ensure that the socket is closed cleanly i

Re: Error 32 - Broken Pipe . Please Help!!

2012-09-04 Thread Ramchandra Apte
On Tuesday, 4 September 2012 22:38:03 UTC+5:30, Sreenath k wrote: > Error: > > > > > > Exception in thread Thread-1: > > Traceback (most recent call last): > > File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner > > self.run() > > File > "/usr/lib/python2.7/dis

Re: python docs search for 'print'

2012-09-04 Thread Ramchandra Apte
On Wednesday, 5 September 2012 09:35:43 UTC+5:30, Terry Reedy wrote: > On 9/4/2012 11:22 PM, Ramchandra Apte wrote: > > > > > I was actually planning to write a bug on this. > > > > If you do, find the right place to submit it. > > bugs.python.org i

Re: python docs search for 'print'

2012-09-05 Thread Ramchandra Apte
On Wednesday, 5 September 2012 15:03:56 UTC+5:30, Terry Reedy wrote: > On 9/5/2012 1:22 AM, Ramchandra Apte wrote: > > > On Wednesday, 5 September 2012 09:35:43 UTC+5:30, Terry Reedy wrote: > > > > >> If you do find the right place, you should contribute somet

Re: is implemented with id ?

2012-09-05 Thread Ramchandra Apte
On Wednesday, 5 September 2012 14:44:23 UTC+5:30, Steven D'Aprano wrote: > On Wed, 05 Sep 2012 08:30:31 +0200, Franck Ditter wrote: > > > > > Hi ! > > > a is b <==> id(a) == id(b) in builtin classes. Is that true ? > > > > Not just for builtin classes, for any objects, provided that they ar

Re: why did the WindowsError occur?

2012-09-05 Thread Ramchandra Apte
On Wednesday, 5 September 2012 13:21:58 UTC+5:30, Mark Lawrence wrote: > On 05/09/2012 07:30, Levi Nie wrote: > > > my code: > > > import os > > > os.startfile(r'C:\Program Files\Internet Explorer.exe') > > > > > > the error: > > > os.startfile(r'C:\Program Files\Internet Explorer.exe') > >

Re: sockets,threads and interupts

2012-09-05 Thread Ramchandra Apte
On Wednesday, 5 September 2012 11:26:16 UTC+5:30, Dieter Maurer wrote: > loial writes: > > > > > I have threaded python script that uses sockets to monitor network ports. > > > > > > I want to ensure that the socket is closed cleanly in all circumstances. > > This includes if the script is

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-09-05 Thread Ramchandra Apte
On Saturday, 25 August 2012 04:03:52 UTC+5:30, Alex wrote: > I'm new to Python and have been using IDLE 3.2.3 to experiment with > > code as I learn. Despite being configured to use a 4 space indentation > > width, sometimes IDLE's "smart" indentation insists upon using width-8 > > tabs. > >

Re: simple client data base

2012-09-05 Thread Ramchandra Apte
On Monday, 3 September 2012 19:42:21 UTC+5:30, Manatee wrote: > Hello all, I am learning to program in python. I have a need to make a > > program that can store, retrieve, add, and delete client data such as > > name, address, social, telephone number and similar information. This > > would be

Re: Extract Text Table From File

2012-09-05 Thread Ramchandra Apte
On Monday, 27 August 2012 15:42:14 UTC+5:30, Laszlo Nagy wrote: > On 2012-08-27 11:53, Huso wrote: > > > Hi, > > > > > > I am trying to extract some text table data from a log file. I am trying > > different methods, but I don't seem to get anything to work. I am kind of > > new to python as

Re: sockets,threads and interupts

2012-09-05 Thread Ramchandra Apte
On Wednesday, 5 September 2012 18:34:32 UTC+5:30, Chris Angelico wrote: > On Wed, Sep 5, 2012 at 10:54 PM, Ramchandra Apte > wrote: > > > At least on Linux, if you kill a process using sockets, it takes about 10 > > seconds for socket to be closed. A program sh

Re: sockets,threads and interupts

2012-09-05 Thread Ramchandra Apte
On Wednesday, 5 September 2012 21:29:12 UTC+5:30, Ramchandra Apte wrote: > On Wednesday, 5 September 2012 18:34:32 UTC+5:30, Chris Angelico wrote: > > > On Wed, Sep 5, 2012 at 10:54 PM, Ramchandra Apte > > wrote: > > > > > > > At least on Linux,

Re: is implemented with id ?

2012-09-06 Thread Ramchandra Apte
On Thursday, 6 September 2012 12:14:19 UTC+5:30, Steven D'Aprano wrote: > On Wed, 05 Sep 2012 14:27:44 -0400, Terry Reedy wrote: > > > > > On 9/5/2012 8:48 AM, Ramchandra Apte wrote: > > > > > > > and "a==True" should be automatically

Re: python docs search for 'print'

2012-09-06 Thread Ramchandra Apte
On Thursday, 6 September 2012 01:54:45 UTC+5:30, Walter Hurry wrote: > On Wed, 05 Sep 2012 15:03:16 -0400, Terry Reedy wrote: > > > > > On 9/5/2012 8:45 AM, Ramchandra Apte wrote: > > > > > > > These ever increasing extra blank lines with each quote

Re: is implemented with id ?

2012-09-06 Thread Ramchandra Apte
On Wednesday, 5 September 2012 19:43:30 UTC+5:30, Steven D'Aprano wrote: > On Wed, 05 Sep 2012 05:48:26 -0700, Ramchandra Apte wrote: > > > > > Seeing this thread, I think the is statment should be removed. It has a > > > replacement syntax of id(x) ==

Re: Language workbench written in python3

2012-09-06 Thread Ramchandra Apte
On Thursday, 6 September 2012 02:34:17 UTC+5:30, Nestor Arocha wrote: > I'm developing a language workbench written in Python. The idea is to create > an environment where grammars and translators can interact easily. > > > > https://github.com/nesaro/pydsl > > > > any comments, feedback or

Re: is implemented with id ?

2012-09-06 Thread Ramchandra Apte
On Thursday, 6 September 2012 17:46:38 UTC+5:30, Roy Smith wrote: > In article <[email protected]>, > > Steven D'Aprano wrote: > > > > > On Wed, 05 Sep 2012 14:27:44 -0400, Terry Reedy wrote: > > > > &

Re: ===== Soft Skills Training In Chennai ======

2012-09-06 Thread Ramchandra Apte
On Thursday, 6 September 2012 11:26:21 UTC+5:30, mike pittenson wrote: > Ayus Technologies offers Dot net training in chennai,java/j2ee training in > chennai,SEO training in chennai,web designing training in chennai,soft skills > training in chennai,Software Testing training in chennai. > > >

Re: Language workbench written in python3

2012-09-06 Thread Ramchandra Apte
On Thursday, 6 September 2012 19:16:38 UTC+5:30, Dave Angel wrote: > On 09/06/2012 09:34 AM, Ramchandra Apte wrote: > > > Translator means what precisely? > > > > Examples of translators include compilers, assemblers, and > > interpreters. They also inclu

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-09-06 Thread Ramchandra Apte
On Thursday, 6 September 2012 19:13:23 UTC+5:30, Alex wrote: > Ramchandra Apte wrote: > > > > > On Saturday, 25 August 2012 04:03:52 UTC+5:30, Alex wrote: > > > > I'm new to Python and have been using IDLE 3.2.3 to experiment with > > > > >

Re: Language workbench written in python3

2012-09-08 Thread Ramchandra Apte
On Friday, 7 September 2012 01:18:45 UTC+5:30, Nestor Arocha wrote: > On Thursday, September 6, 2012 2:53:15 PM UTC+1, Ramchandra Apte wrote: > > > On Thursday, 6 September 2012 19:16:38 UTC+5:30, Dave Angel wrote: > > > > > > > On 09/06/201

Re: Looking for an IPC solution

2012-09-08 Thread Ramchandra Apte
On Friday, 7 September 2012 02:25:15 UTC+5:30, Dave Angel wrote: > On 09/06/2012 04:33 PM, Dennis Lee Bieber wrote: > > > > > > > > Note that this difference mainly applies to how the processes are > > > themselves are created... How the library wraps shared data is > > > possibly different

Re: Compile python code into a dll

2012-09-10 Thread Ramchandra Apte
On Monday, 10 September 2012 17:45:11 UTC+5:30, Rolf Wester wrote: > Hi, > > > > I have Python code that I would like to compile into a dll (I have to > > deliver a C/C++ callable dll and I don't want to reimpelement the Python > > code in C/C++). It's not for extending Python but I want to

Re: SAP MM Cupertino, CA

2012-09-10 Thread Ramchandra Apte
On Monday, 10 September 2012 18:51:10 UTC+5:30, Suresh Kumar wrote: > Hi, > > > > This is Girish, - IT Recruiter from SancroSoft USA Inc. > > > > Please respond with updated resume in MS-Word .doc Format with the > > following details to [email protected] > > > > Full Name : >

Re: generators as decorators simple issue

2012-09-11 Thread Ramchandra Apte
On Wednesday, 12 September 2012 07:58:10 UTC+5:30, pyjoshsys wrote: > I'm trying to call SetName on an object to prevent me from ever having to > call it explictly again on that object. Best explained by example. > [snip] In your decorator, you are using `yield cls` - it should be `return cls` 99

Re: Which Version of Python?

2012-09-11 Thread Ramchandra Apte
On Tuesday, 11 September 2012 22:19:08 UTC+5:30, Charles Hottel wrote: > I have a lot of programming experience in many different languages and now > > I want to learn Python. Which version do you suggest I download, Python 2.x > > or Python 3.x ? Also why should I prefer one over the other?

Re: python CAD libraries?

2012-09-11 Thread Ramchandra Apte
On Tuesday, 11 September 2012 02:40:55 UTC+5:30, Jayden wrote: > Are there any python CAD libraries that can > > > > (1) build simple 3D primitives solids such as spheres, cylinders and so on > > (2) perform bool operations on 3D solids > > (3) better if it has some transformations such has s

Re: Which Version of Python?

2012-09-12 Thread Ramchandra Apte
On Wednesday, 12 September 2012 14:04:56 UTC+5:30, alex23 wrote: > On 12 Sep, 16:31, Mark Lawrence wrote: > > > Perhaps this will sway youhttp://docs.python.org/dev/whatsnew/3.3.html > > > There is no longer an equivalent document for the Python 1.x or 2.x > > > series of releases. > > > >

Re: Which Version of Python?

2012-09-12 Thread Ramchandra Apte
On Wednesday, 12 September 2012 14:11:56 UTC+5:30, Ramchandra Apte wrote: > On Wednesday, 12 September 2012 14:04:56 UTC+5:30, alex23 wrote: > > > On 12 Sep, 16:31, Mark Lawrence wrote: > > > > > > > Perhaps this will sway youhttp://docs

Re: avoid the redefinition of a function

2012-09-12 Thread Ramchandra Apte
On Wednesday, 12 September 2012 18:26:36 UTC+5:30, Jabba Laci wrote: > Hi, > > > > I have an installer script that contains lots of little functions. It > > has an interactive menu and the corresponding function is called. Over > > time it grew long and when I want to add a new function, I sh

Re: python2.7 lack necessary bit to build module

2012-09-13 Thread Ramchandra Apte
On Thursday, 13 September 2012 14:17:29 UTC+5:30, 钟驰宇 wrote: > I'm in ubuntu10.04 and I decide to compile python2.7 from source myself to > build a GAE app.As a result,when I done with make command,it comes out with > the following warning: > > Python build finished, but the necessary bits to b

Re: How to limit CPU usage in Python

2012-09-21 Thread Ramchandra Apte
you On Saturday, 22 September 2012 05:14:15 UTC+5:30, Cameron Simpson wrote: > On 20Sep2012 12:53, Terry Reedy wrote: > > | On 9/20/2012 12:46 PM, Terry Reedy wrote: > > | > On 9/20/2012 11:12 AM, Rolando Cañer Roblejo wrote: > > | >> Is it possible for me to put a limit in the amount of proc

Re: Python 3.3 and .pyo files

2012-09-22 Thread Ramchandra Apte
On Saturday, 22 September 2012 18:51:01 UTC+5:30, Steven D'Aprano wrote: > On Fri, 21 Sep 2012 22:46:08 -0400, Terry Reedy wrote: > > > > > On 9/21/2012 5:10 AM, Marco wrote: > > >> I was trying to import a pyo module in Python 3.3, but Python does not > > >> find it: > > > > > > You appea

Re: portable way of locating an executable (like which)

2012-09-22 Thread Ramchandra Apte
On Friday, 21 September 2012 02:37:01 UTC+5:30, gelonida wrote: > I'd like to implement the equivalent functionality of the unix command > > /usr/bin/which > > > > The function should work under Linux and under windows. > > > > Did anybody already implement such a function. > > If not, is

Re: Functional way to compare things inside a list

2012-09-22 Thread Ramchandra Apte
On Saturday, 22 September 2012 12:50:08 UTC+5:30, Andrew Berg wrote: > On 2012.09.22 02:08, Jamie Paul Griffin wrote: > > > I find this intriguing, I had no idea bots existed to post to mailing > > > lists in this way. What's the point of them? > > > > To amuse their owners is my guess. > >

Re: Seome kind of unblocking input

2012-09-23 Thread Ramchandra Apte
On Saturday, 22 September 2012 01:24:46 UTC+5:30, Dennis Lee Bieber wrote: > On Fri, 21 Sep 2012 02:13:28 -0700 (PDT), [email protected] > > declaimed the following in gmane.comp.python.general: > > > > > Since I'm using threads and pipes everything works ok, except that when i > > ca

Re: Client Needs---QA Manual Tester at Sacramento, CA

2012-09-23 Thread Ramchandra Apte
On Saturday, 22 September 2012 04:09:55 UTC+5:30, ram dev wrote: > Good Day, > > We have an urgent Contract Openings in Folsom, CA > > Looking forward to submit your resume for below mentioned Requirement… > > If you are interested, Please forward your latest resume along with location > and

Re: Seome kind of unblocking input

2012-09-23 Thread Ramchandra Apte
On Sunday, 23 September 2012 23:20:37 UTC+5:30, Dennis Lee Bieber wrote: > On Sun, 23 Sep 2012 18:13:57 +0100, Mark Lawrence > > declaimed the following in > > gmane.comp.python.general: > > > > > On 23/09/2012 16:49, Ramchandra Apte wrote: > > > &g

Re: Does python have built command for package skeleton creation?

2012-09-23 Thread Ramchandra Apte
On Monday, 24 September 2012 09:59:12 UTC+5:30, Terry Reedy wrote: > On 9/23/2012 11:59 PM, alex23 wrote: > > > On Sep 21, 10:14 pm, xliiv wrote: > > >> On Friday, September 21, 2012 1:08:23 PM UTC+2, Tarek Ziadé wrote: > > >>> Python Paste is probably what you are looking for - see > > > >

Re: [RELEASED] Python 3.3.0 release candidate 3

2012-09-23 Thread Ramchandra Apte
On Monday, 24 September 2012 12:07:53 UTC+5:30, Paul Rubin wrote: > Georg Brandl writes: > > > Python 3.3 includes a range of improvements of the 3.x series, as well > > > as easier porting between 2.x and 3.x. Major new features and changes > > > in the 3.3 release series are: [good stuff sn

Re: Who's laughing at my responses, and who's not?

2012-09-25 Thread Ramchandra Apte
On Tuesday, 25 September 2012 10:40:02 UTC+5:30, Terry Reedy wrote: > On 9/25/2012 12:43 AM, Dwight Hutto wrote: > > > It sounds pretentious, but over the past several days, I've been > > > slammed on every post almost. All because of an argument over me not > > > posting a little context in a

Re: Article on the future of Python

2012-09-26 Thread Ramchandra Apte
On Tuesday, 25 September 2012 21:05:01 UTC+5:30, Steven D'Aprano wrote: > On Tue, 25 Sep 2012 09:26:19 -0400, Kevin Walzer wrote: > > > > > On 9/25/12 4:15 AM, Mark Lawrence wrote: > > >> Hi all, > > >> > > >> I though this might be of interest. > > >> > > >> http://www.ironfroggy.com/soft

Re: [python-list] python application file format

2012-09-26 Thread Ramchandra Apte
On Wednesday, 26 September 2012 18:29:14 UTC+5:30, Benjamin Jessup wrote: > Hello all, > > > > What do people recommend for a file format for a python desktop > > application? Data is complex with 100s/1000s of class instances, which > > reference each other. > > > > Write the file with

Re: new-style class or old-style class?

2012-09-26 Thread Ramchandra Apte
On Tuesday, 25 September 2012 20:14:05 UTC+5:30, Jayden wrote: > In learning Python, I found there are two types of classes? Which one are > widely used in new Python code? Is the new-style much better than old-style? > Thanks!! Next time just Google your questions. :-) Good luck with Python --

Re: [Python-Dev] [RELEASED] Python 3.3.0

2012-09-29 Thread Ramchandra Apte
On Saturday, 29 September 2012 18:55:36 UTC+5:30, eliben wrote: > On Sat, Sep 29, 2012 at 5:18 AM, Georg Brandl wrote: > > > On behalf of the Python development team, I'm delighted to announce the > > > Python 3.3.0 final release. > > > > > > > Yay :) +1 -- http://mail.python.org/mailman/

Re: Should one always add super().__init__() to the __init__?

2012-09-29 Thread Ramchandra Apte
On Saturday, 29 September 2012 18:57:48 UTC+5:30, Ramchandra Apte wrote: > Should one always add super().__init__() to the __init__? The reason for this > is the possibility of changing base classes (and forgetting to update the > __init__). This is my first post so I may be breaching

Should one always add super().__init__() to the __init__?

2012-09-29 Thread Ramchandra Apte
Should one always add super().__init__() to the __init__? The reason for this is the possibility of changing base classes (and forgetting to update the __init__). -- http://mail.python.org/mailman/listinfo/python-list

Re: [python-list] python application file format

2012-09-29 Thread Ramchandra Apte
On Saturday, 29 September 2012 02:05:07 UTC+5:30, Prasad, Ramit wrote: > Benjamin Jessup wrote: > > > Hello all, > > > > > > What do people recommend for a file format for a python desktop > > > application? Data is complex with 100s/1000s of class instances, which > > > reference each other

Re: For Counter Variable

2012-09-29 Thread Ramchandra Apte
On Tuesday, 25 September 2012 05:48:22 UTC+5:30, David Hutto wrote: > > Is the animated GIF on your website under 60MB yet? > > yeah a command line called convert, and taking out a few jpegs used to > > convert, and I can reduce it to any size, what's the fucking point of > > that question othe

Re: [RELEASED] Python 3.3.0

2012-09-29 Thread Ramchandra Apte
On Saturday, 29 September 2012 19:08:25 UTC+5:30, Stefan Behnel wrote: > Georg Brandl, 29.09.2012 14:18: > > > On behalf of the Python development team, I'm delighted to announce the > > > Python 3.3.0 final release. > > > [...] > > > * PEP 380, syntax for delegating to a subgenerator ("yield

Re: using "*" to make a list of lists with repeated (and independent) elements

2012-09-29 Thread Ramchandra Apte
On Thursday, 27 September 2012 04:14:42 UTC+5:30, Tim Chase wrote: > On 09/26/12 17:28, 8 Dihedral wrote: > > > 8 Dihedral於 2012年9月27日星期四UTC+8上午6時07分35秒寫道: > > In these conditions, how to make this list [[0,0,0],[0,0,0]] with "*" > > without this behavior? > > >>> >>> a

Re: How to investigate web script not running?

2012-09-29 Thread Ramchandra Apte
On Friday, 28 September 2012 18:45:41 UTC+5:30, Gilles wrote: > On Fri, 28 Sep 2012 14:16:22 +0200, "Michael Ross" > > wrote: > > >Do it the other way around: > > > > > ># cgitb before anything else > > >import cgitb > > >cgitb.enable() > > > > > ># so this error will be caught > > > fro

  1   2   >