[BangPypers] CFP for IndiaFOSS Conf. 2.0 is open

2022-05-23 Thread Vishal Arya
. About IndiaFOSS Conf.[2]: The goal of this conf. is to bring software developers, policymakers, communities and enthusiasts together so we can learn and inspire each other. Links: [0]: https://indiafoss.net/2022/cfp?new=1 [1]: https://fossunited.org/ [2]: https://indiafoss.net/ Vishal

Re: [BangPypers] [pythonpune] [X-post] [PythonExpress] Volunteer for Machine learning workshop

2017-09-13 Thread Vishal
Dear Vijay, Wanted to confirm that Jaypee University workshop is in Bhopal, because the college itself is located in Guna, which is a 5 hour drive from here. Can you confirm? Best regards, Vishal. On Sep 14, 2017 12:07 AM, "vijay kumar" wrote: > Hi , > Pythonexpress team

Re: [BangPypers] Meetup: Learn Algorithm with Python 1

2017-03-20 Thread Vishal
Same here. Keep it up BangPypers :) Best regards, Vishal Thanks and best regards, Vishal Sapre --- Please DONT print this email, unless you really need to. Save Energy & Paper. Save the Earth. On Mon, Mar 20, 2017 at 5:23 PM, Noufal Ibrahim wrote: > Excellent work everyone. Bangpy

Re: [BangPypers] Fwd: Error in python multiprocessing!

2016-08-27 Thread Vishal
Hi Akshay, For multiprocessing to work fine, everything used in the function and the function itself should be "pickle able". There were issues with function calls being pickled on Windows. Make sure you can pickle all your calls separately on your platform. Vishal On Aug 27, 201

Re: [BangPypers] [X-Post] Request for volunteer to conduct python workshop

2016-08-26 Thread Vishal
Hi Vijay, I stay in Bhopal, so I can take up the first two. Infact "SGSITS, Indore" is my alma-mater. Can you send me the contact persons in both cases? Thanks and best regards, Vishal Sapre Thanks and best regards, Vishal Sapre --- Please DONT print this email, unless you r

[BangPypers] Invite to Django Meetup @ HackerEarth Office

2016-06-10 Thread Vishal Pathik Gupta
CNx-2FpLAzTUCWSxk3Dhzj79bRBhrkCOvm-2FS1wb-2FCEUDgDNJZWhH412ThBwG9t17V2OLb0xCK01JF9XBSEAI48r8Db5A5xINdmQP0xhoKPmiRc-3D> Hope to see you there! Cheers! Vishal Pathik Gupta Developer Evangelist and Community Manager P: +91-7829765025 *www.hackerearth.com* <http://www.hacker

Re: [BangPypers] Python Software Foundation

2016-06-01 Thread Vishal
Congratulations !! :) Cheers, Vishal Thanks and best regards, Vishal Sapre --- Please DONT print this email, unless you really need to. Save Energy & Paper. Save the Earth. On Wed, Jun 1, 2016 at 7:39 PM, Annapoornima Koppad wrote: > Dear All, > > I am one of the Directors

Re: [BangPypers] BangPypers completes 10 years

2015-09-15 Thread Vishal
Oh I forgot to name Senthil Kumaran, whom I met later again at PyCon APAC 2011 in Singapore :) Thanks and best regards, Vishal Sapre --- Please DONT print this email, unless you really need to. Save Energy & Paper. Save the Earth. On Wed, Sep 16, 2015 at 12:45 AM, Vishal wrote: > D

Re: [BangPypers] BangPypers completes 10 years

2015-09-15 Thread Vishal
ats off to Anand B, Baiju, Anand C, Noufal, Ramdas and Kenneth...there are so many names to take. +5 for an open session in PyCon this time. Take care, Vishal Sapre Thanks and best regards, Vishal Sapre --- Please DONT print this email, unless you really need to. Save Energy & Paper. Save

Re: [BangPypers] Python script to open hyper terminal and send password text file

2015-08-14 Thread Vishal
Dear PythonConsultant, Try using PyWinAuto for automating these types of tasks. Vishal Thanks and best regards, Vishal Sapre --- Please DONT print this email, unless you really need to. Save Energy & Paper. Save the Earth. On Fri, Aug 14, 2015 at 6:18 PM, Noufal Ibrahim KV wrote: >

Re: [BangPypers] Python for RTOS

2014-10-01 Thread Vishal
Dear Tarun, your best bet in this case is the support from Segger. I am sure someone before must have used Python on embOS. Atleast they can help you compile it for the OS from python source. Take care, Vishal Sapre Thanks and best regards, Vishal Sapre --- Please DONT print this email

Re: [BangPypers] Return values

2014-09-20 Thread Vishal
around to the handler function in the calling code. Since one of the above members is always going to be None, a simple check in the handler will be fine..i guess. But all this is stylistic...so it depends. Take care, Vishal Thanks and best regards, Vishal Sapre --- Please DONT print this ema

Re: [BangPypers] [OT] When user interfaces become problems...

2014-09-19 Thread Vishal
Sorry...sent to the wrong list. my bad. take care, Vishal Thanks and best regards, Vishal Sapre --- Please DONT print this email, unless you really need to. Save Energy & Paper. Save the Earth. On Fri, Sep 19, 2014 at 10:02 PM, Vishal wrote: > > http://www.eetimes.com/author.asp?

[BangPypers] [OT] When user interfaces become problems...

2014-09-19 Thread Vishal
http://www.eetimes.com/author.asp?section_id=216&doc_id=1323983&_mc=NL_EET_EDT_EET_daily_20140919&cid=NL_EET_EDT_EET_daily_20140919&elq=cd039eec1e20423e942a0a85375c55be&elqCampaignId=19233 ​Enjoy,​ Vishal Sapre --- Please DONT print this email, unless you really need to.

Re: [BangPypers] "The Python I would like to see" - Armin Ronacher

2014-08-20 Thread Vishal
Dear All, Interesting to note that this same point (about instantiating multiple interpreters was raised on our mailing list...about 3-4 years back) by Yours Truly :)) See the mail chain titled: *"Ideas for Python concurrency..."* Life is coming full circle :) Take care, Vi

[BangPypers] How to be part of Python Software Society of India and also start a Python users group.

2014-06-26 Thread Vishal
rtunities exist for Python in all these > areas. OpenERP which is a python product is itself a great contender here. > > Plus we would also like to be part of the Python Software Society of > India. > > Can you point me to URLs where I can get more ​information on how to go > abo

Re: [BangPypers] Announcing the 3rd keynote speaker for PyCon India 2014!

2014-06-26 Thread Vishal
python product is itself a great contender here. Plus we would also like to be part of the Python Software Society of India. Can you point me to URLs where I can get more ​information on how to go about it. Thanks and best regards, Vishal Sapre Righill Electrics Pvt. Ltd. On Thu, Jun 26, 2014 at 10

Re: [BangPypers] JSON PARSER

2014-03-21 Thread Vishal
://pypi.python.org/pypi/ujson/ Take care, Vishal Thanks and best regards, Vishal Sapre --- "Life is 10% how you make it, and 90% how you take it" "बहुजन हिताय, बहुजन सुखाय (Benefit for most people, Happiness for most people.)" --- Please DONT print this email, unless you really

Re: [BangPypers] Packaging in Python

2014-01-13 Thread Vishal
executables/DLLs are restored just after they are installed. This is because UPXed DLLs cannot really be shared across the OS and so at runtime each new instance is a new one. That becomes memory heavy. Hope you get the gist. If not, send me an email. Thanks and best regards, Vishal Sapre

[BangPypers] [OT] Courtroom finds Toyota's faulty firmware caused Camry accident

2013-10-31 Thread Vishal
transcript of the courtroom discussion... http://www.eetimes.com/document.asp?doc_id=1319936&page_number=1 Thanks and best regards, Vishal Sapre --- "Life is 10% how you make it, and 90% how you take it" "बहुजन हिताय, बहुजन सुखाय (Benefit for most people, Happiness for most pe

Re: [BangPypers] [Novice] Question on File seek and tell methods

2013-06-16 Thread Vishal
= True print line elif 'stop_keyword' in line: print line break elif printStuff: print line Hope this helps, Vishal Sapre Thanks and best regards, Vishal Sapre --- "Life is 10% how you make it, and 90% how you take it" "बहुज

[BangPypers] hiredis on Windows

2013-04-22 Thread Vishal
willing to be kind enough make this available to the open source world at large would be doing a great job. Any takers :)) ? Thanks and best regards, Vishal Sapre p.s: I have access to hiredis.lib and hiredis.dll, but they would need ctypes/pywin32 wrappers to call. --- "Life is 10% how you m

Re: [BangPypers] Reorder Dictionary Size in python

2013-04-18 Thread Vishal
- Assign the old dict name to None >>> d1 = None - do a gc.collect() >>> import gc >>> gc.collect() you should see immediate results on process memory consumption. Enjoy Python Vishal Sapre On Wed, Apr 17, 2013 at 9:22 PM, Rahul R wrote: > Ahh , sorry If i

Re: [BangPypers] [Inpycon] Sad demise of our dear KG (Keneth Gonsalvas)

2012-08-03 Thread Vishal
Shocking and Sad !! Though never met him personally, his presence on this list was unmistakable. I remember him championing the cause of IPSS, and doing a lot to make it happen. May God bless his soul. My heartfelt condolences to all his loved ones. -- Vishal Sapre --- "Life is 10% ho

Re: [BangPypers] reload modules at the start of an app..

2012-07-14 Thread Vishal
On Sat, Jul 14, 2012 at 1:32 PM, Vishal wrote: > Hi, > > Wanted to find what you think about reloading modules just before app > start. This is to take care of repeated debugging sessions inside IDEs, > where changed 'py' files are not imported automatically by the I

[BangPypers] reload modules at the start of an app..

2012-07-14 Thread Vishal
on is called in your app. Any views on this approach? Pros/Cons/Better Approaches... etc Best regards, Vishal Sapre --- Please DONT print this email, unless you really need to. Save Energy & Paper. Save the Earth. ___ BangPypers maili

Re: [BangPypers] Python script to limit access to Internet...

2012-06-27 Thread Vishal
On Wed, Jun 27, 2012 at 1:43 PM, Kenneth Gonsalves wrote: > On Wed, 2012-06-27 at 13:34 +0530, Vishal wrote: > > I would like to limit internet access at my home, for some computers. > > Basically for a given time during the day (read schedule), I wish that > > the > &

[BangPypers] Python script to limit access to Internet...

2012-06-27 Thread Vishal
should be allowed. Something like what this software does: http://www.blumentals.net/inetprot/ And, of course I would like to do this in Python. Any pointers ? Thanks in advance. Best regards, Vishal Sapre ___ BangPypers mailing list BangPypers

Re: [BangPypers] Can we simulate USB using python

2012-06-11 Thread Vishal
The ''pop-up on USB plugged in'' is part of a OS hook that each OS provides for. So if you are running XP inside a VMWare session, the easiest way to do this in Python would be to tap into the win32 api using PyWin32. google for 'pywin32' and "USB

Re: [BangPypers] converting python to assembly..

2012-06-02 Thread Vishal
On Sat, Jun 2, 2012 at 12:10 AM, Sriram Karra wrote: > On Fri, Jun 1, 2012 at 6:44 PM, Vishal wrote: > > > > > > > a) "test.py" a very simple 1KB python file with a main function > > > b) "_c_test.c" a 35KB file that is generated by 2c-py >

Re: [BangPypers] converting python to assembly..

2012-06-01 Thread Vishal
Sending again. Since the files did not go through... :( On Fri, Jun 1, 2012 at 4:41 PM, Vishal wrote: > >> Hello Sriram, > > I think there is some confusion as to what the general-case Python to C > compiler's create. So I made a test case and have attached the i

Re: [BangPypers] converting python to assembly..

2012-06-01 Thread Vishal
On Fri, Jun 1, 2012 at 1:01 PM, Sriram Karra wrote: > On Thu, May 31, 2012 at 11:40 AM, Vishal wrote: > > > > I am looking for something more "simple", i.e. instead of writing C and > > compiling it to machine instructions...write python (restricted set..may &g

Re: [BangPypers] converting python to assembly..

2012-06-01 Thread Vishal
On Fri, Jun 1, 2012 at 11:32 AM, Anand Balachandran Pillai < abpil...@gmail.com> wrote: > On Thu, May 31, 2012 at 11:40 AM, Vishal wrote: > > > Hello, > > > > Does anybody know of any effort that can covert a relatively static > version > > of

[BangPypers] converting python to assembly..

2012-05-30 Thread Vishal
ting C and compiling it to machine instructions...write python (restricted set..may be) and convert it to machine instructions. Any pointers will be of big help.. Thanks and best regards, Vishal Sapre ___ BangPypers mailing list BangPypers@pytho

Re: [BangPypers] Https and http difference in behaviour urllib2

2012-05-08 Thread Vishal
http://docs.python-requests.org/en/latest/index.html This page mentions both: - underlying urllib3 (the line just before Testimonials) - Thread Safety (last point in Features) I am ** predicting ** that Requests will go into the std-lib very soon :)) Enjoy, Vishal Sapre On Tue, May 8, 2012

Re: [BangPypers] Handling bit sized fields in network headers

2012-05-07 Thread Vishal
On Mon, May 7, 2012 at 1:34 PM, Balachandran Sivakumar wrote: > Hi, > > On Mon, May 7, 2012 at 1:02 PM, Vishal wrote: > > One more thing...once you read the incoming bytes as strings, you'll have > > to convert them to numbers (using struct.unpack or array.tolist() or

Re: [BangPypers] Handling bit sized fields in network headers

2012-05-07 Thread Vishal
On Mon, May 7, 2012 at 12:31 PM, Balachandran Sivakumar < benignb...@gmail.com> wrote: > Hi, > > On Mon, May 7, 2012 at 12:21 PM, Vishal wrote: > > Hi, > > > > is this some standard protocol, if yes, then use a tool like scapy. If > this > > is no

Re: [BangPypers] Handling bit sized fields in network headers

2012-05-06 Thread Vishal
. else: return (val << startBit) | num & ~(mask << startBit) If you have to do this many times, you can make single line versions of specific cases and just inline it, instead of calling a function. Enjoy, Vishal On Fri, May 4, 2012 at 3:40 PM, Balachandran Sivakumar wrote: &g

[BangPypers] Interesting discussion about removing the GIL...again :))

2012-04-11 Thread Vishal
tiple threads to work '*well*' in the same Python process, rather than a lock. Can we come up with a patch that achieves this ? Calling all python tinkerers... Enjoy, Vishal Sapre ___ BangPypers mailing list BangPypers@python.org http://mail.pyt

Re: [BangPypers] [OT?] Re: Industrial Control Systems in Python

2012-04-05 Thread Vishal
On Thu, Apr 5, 2012 at 4:53 PM, sankarshan wrote: > On Wed, Mar 28, 2012 at 12:20 PM, Vishal wrote: > > > c) They cannot guarantee that this hardware is suitable for industry > > use...so as to avoid potential law suits from customers for whom the > board > > fails

Re: [BangPypers] Industrial Control Systems in Python

2012-04-05 Thread Vishal
On Mon, Mar 26, 2012 at 6:24 PM, Noufal Ibrahim wrote: > Vishal writes: > > [...] > > > 1) The scenario you describe is very close to what we would like to > > have...except that I wish to have an SBC running the actual control > > code in Python and a small mi

Re: [BangPypers] Industrial Control Systems in Python

2012-03-27 Thread Vishal
On Wed, Mar 28, 2012 at 12:12 PM, Anand Balachandran Pillai < abpil...@gmail.com> wrote: > On Mon, Mar 26, 2012 at 7:56 PM, Vishal wrote: > > > On Mon, Mar 26, 2012 at 6:24 PM, Noufal Ibrahim > >wrote: > > > > > Vishal writes: > > > > > &g

Re: [BangPypers] Industrial Control Systems in Python

2012-03-26 Thread Vishal
On Mon, Mar 26, 2012 at 6:24 PM, Noufal Ibrahim wrote: > Vishal writes: > > > [...] > > > 1) The scenario you describe is very close to what we would like to > > have...except that I wish to have an SBC running the actual control > > code in Python and a small

Re: [BangPypers] Industrial Control Systems in Python

2012-03-26 Thread Vishal
On Mon, Mar 26, 2012 at 1:30 PM, Noufal Ibrahim wrote: > Vishal writes: > > > [...] > > > Noufal, I would like to use a regular x86 processor with Linux > > (stripped down)... to avoid recompiling Python itself...to avoid one > > more variable in the entire p

Re: [BangPypers] Industrial Control Systems in Python

2012-03-26 Thread Vishal
On Mon, Mar 26, 2012 at 11:22 AM, Noufal Ibrahim wrote: > Vishal writes: > > > Hello, > > > > There is a need in our company to prototype some control systems in > Python. > > These would be general industrial control systems. > > After this prototype is ma

[BangPypers] Industrial Control Systems in Python

2012-03-25 Thread Vishal
pointers towards Single Board Computers that can be used? etc Thanks and best regards, Vishal Sapre --- "Life is 10% how you make it, and 90% how you take it" "बहुजन हिताय, बहुजन सुखाय (Benefit for most people, Happiness for most people.)" --- Please DONT print this email, unles

Re: [BangPypers] Need help in keeping dll's in another directory

2012-03-19 Thread Vishal
sometimes considered bad practice ( http://msdn.microsoft.com/en-us/library/windows/desktop/aa375142(v=vs.85).aspx ) -- Thanks and best regards, Vishal Sapre --- "Life is 10% how you make it, and 90% how you take it" "बहुजन हिताय, बहुजन सुखाय (Benefit for most people, Happiness

Re: [BangPypers] Popen.terminate() - WindowsError: [Error 5] Access is denied

2012-03-06 Thread Vishal
then using WMI or PyWin32 to kill them. Cheers, Vishal On Tue, Feb 28, 2012 at 11:49 PM, Nikunj Badjatya wrote: > Any clues guys? > > > > > On Tue, Feb 28, 2012 at 12:48 PM, wrote: > > > Howdy, > > > > Py ver - 3.2, Windows-XP . Logged in as user wit

[BangPypers] Has anybody tried this way of compiling Python...

2012-03-05 Thread Vishal
experiences.. Thanks and best regards, Vishal Sapre ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Zope : uninstallation error in windows

2012-02-21 Thread Vishal
Great find. This is general enough to be used in other full fledged programs as well. Thanks, Vishal On Mon, Feb 20, 2012 at 5:25 PM, Shashidhar Paragonda < shashidha...@gmail.com> wrote: > Hello Vishal, > > >>> Thanks for your advice. > >

Re: [BangPypers] Zope : uninstallation error in windows

2012-02-18 Thread Vishal
good since it could do the same for Linux, Mac and Windows, without any changes to driver script. take care, Vishal On Wed, Feb 15, 2012 at 4:22 PM, Shashidhar Paragonda < shashidha...@gmail.com> wrote: > Hello Python hackers, > > >>> I am facing typical uninstall

[BangPypers] [OT] Any Pythonistas in Central India (MP, CH)

2012-02-13 Thread Vishal
Dear All, I have moved to, Bhopal (MP), and wanted to get a check on people who might be staying here and listening on this list. Thanks and best regards, Vishal Sapre --- "Life is 10% how you make it, and 90% how you take it" "बहुजन हिताय, बहुजन सुखाय (Benefit for most people

Re: [BangPypers] log and figure out what bits are slow and optimize them.

2012-02-13 Thread Vishal
Enjoy, Vishal Sapre On Sun, Feb 12, 2012 at 1:08 PM, Saju M wrote: > Hi, > I wrote a decorator using cProfile. > Issue is log-file getting messed up with logs of unwanted method > calls(library calls). > I tried with prof.getstats() and prof.print_stats(), prof.getstats() force > to

Re: [BangPypers] win32com.client.Dispatch

2011-12-28 Thread Vishal
g a certain return type for all the functions that are exposed. Then the win32com module can query the DLL to see what functions are present. Please note that even if they cannot be queried, they can certainly be used, if you know their signature. Also look at how to launch an Automation Application from OLE Automation from Python examples on the web. There are slight differences in how you launch, and that may be the reason. PythonWin IDE that comes with the PyWin32 libraries has a OLE/COM Object viewer that should be able to show you all the functions that are exposed by a registered DLL. -- Thanks and best regards, Vishal Sapre ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] UML diagrams from python source code

2011-12-16 Thread Vishal
ttp://mail.python.org/mailman/listinfo/bangpypers > Hello, While it may not be of use to you now...BOUML can do the exact opposite of what you are asking. Try it out to see if it can consume Python and generate UML? -- Thanks and best regards, Vishal Sapre ___

[BangPypers] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective

2011-10-31 Thread Vishal
on is required ? (You can say the truth here...its not going to be made public and its not going to increase your competition :) ) Suggestions, pointers for nu-bee freelancers etc ? Hope this would be an interesting topic to everyone :)) -- Thanks and best regards, Vishal

Re: [BangPypers] Creating windows installer

2011-10-11 Thread Vishal
Hello Shashidhar, I have found the following path to be platform independent and highly stable. Windows: Python App --> *bbfreeze *--> InnoSetup Linux or MacOSX: Python App --> *bbfreeze *--> gz or bz2 or zip Hope this helps... Vishal Sapre On Mon, Sep 26, 2011 at 11:24 AM

Re: [BangPypers] how to write Operating System in python

2011-08-16 Thread Vishal
the details on PyCon APAC 2011 - SNAPy (A Python VM from Synapse Wireless...see Pycon video on blip.tv. The VM is proprietary - M2M (Machine 2 Machine) communication and control solutions from Telit Just another direction to whet your interest :)) Enjoy Python... Best regards, Vishal On Fri, Aug

Re: [BangPypers] need for Python based CRM/ERP system...extensible

2011-07-24 Thread Vishal
general skeleton that TRAC provides. Infact the plugins already available for TRAC have made it much more than a bug tracking system. Vishal -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "A Strong and Posi

[BangPypers] need for Python based CRM/ERP system...extensible

2011-07-23 Thread Vishal
collected. e) Allows users to search through all the data... Do you have any stars in mind? I also have a crazy idea of using TRAC and creating plugins for making it look like a CRM system. What do you think of this? -- Thanks and best regards, Vishal Sapre

Re: [BangPypers] python32 bit crash on win7 64bit machine

2011-07-18 Thread Vishal
more insight. Take care, Vishal On Fri, Jun 24, 2011 at 4:28 PM, Nitin Kumar wrote: > Hi All, > > I am facing python crash with my script on win7 64 bit machine. I am using > 32bit Python. > Some of the info (from the file > C:\Users\admin\AppData\Local\Temp\WERD22.tmp.WERIn

Re: [BangPypers] Python and Employment

2011-07-18 Thread Vishal
__ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > Thanks for this wonderful view. I loved reading it. -- Thanks and best regards, Vishal Sapre ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] [OT] getting a business email vendor

2011-06-29 Thread Vishal
*. Google Apps looks very attractive...but prices are high ($50/per account/per year)...where as many Indian vendors provide 5-10 email addresses at much lower price. Any suggestions? -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, bette

[BangPypers] PyCamp during PyCon India

2011-04-06 Thread Vishal
Hello, I think the PyCamp idea is a wonderful idea to spread Python awareness. Can we have something like this during PyCon India this year. Please point this email to the correct mailing list or point me to that mailing list... Thanks and best regards, Vishal Sapre -- Forwarded

Re: [BangPypers] chaining string operations..

2011-03-28 Thread Vishal
On Fri, Mar 25, 2011 at 5:45 PM, Vishal wrote: > On Fri, Mar 25, 2011 at 3:31 PM, Senthil Kumaran wrote: > >> On Fri, Mar 25, 2011 at 03:22:02PM +0530, Vishal wrote: >> >> > I have a string that can be many megabytes worth memory size, and i >> > want to >

Re: [BangPypers] chaining string operations..

2011-03-25 Thread Vishal
On Fri, Mar 25, 2011 at 3:31 PM, Senthil Kumaran wrote: > On Fri, Mar 25, 2011 at 03:22:02PM +0530, Vishal wrote: > > > I have a string that can be many megabytes worth memory size, and i > > want to > > If you have got that string from a file like object, instead of >

[BangPypers] chaining string operations..

2011-03-25 Thread Vishal
in Python itself, but I want to push this down to the C level. Is there a known way of doing this currently in Python, apart from producing my own Cython/C extension module. Thanks and best regards, Vishal Sapre ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] How to handle files efficiently in python

2011-03-24 Thread Vishal
On Thu, Mar 24, 2011 at 12:07 PM, Senthil Kumaran wrote: > On Thu, Mar 24, 2011 at 11:06:14AM +0530, Vishal wrote: > > setting l[0] to None, un-references the earlier string data associated > with > > that name, which is then (force) collected by the collect() call. > >

Re: [BangPypers] How to handle files efficiently in python

2011-03-23 Thread Vishal
On Thu, Mar 24, 2011 at 11:03 AM, Vishal wrote: > > > On Thu, Mar 24, 2011 at 7:56 AM, Senthil Kumaran wrote: > >> On Thu, Mar 24, 2011 at 02:25:04AM +0530, Vishal wrote: >> > if you could read the entire file in one go...(i.e. unless your file is >> mor

Re: [BangPypers] How to handle files efficiently in python

2011-03-23 Thread Vishal
On Thu, Mar 24, 2011 at 7:56 AM, Senthil Kumaran wrote: > On Thu, Mar 24, 2011 at 02:25:04AM +0530, Vishal wrote: > > if you could read the entire file in one go...(i.e. unless your file is > more > > than 50MB)...how about the following? > > >>> for line in rev

Re: [BangPypers] How to handle files efficiently in python

2011-03-23 Thread Vishal
# following is to keep the memory requirement low. # but this is optional, if you only want to print the lines, and then end the python process. l[0] = None gc.collect() print '\n'.join(l[1:]) ... do other stuff if you cannot read the entire file in one go...then the stackoverflow answer a

Re: [BangPypers] indentation problems

2011-02-24 Thread Vishal
pecify 'spaces for tabs' in their customization options. Just make sure everyone uses them. and you can use the tabnanny module to find out who is not using it :)) -- Thanks and best regards, Vishal Sapre ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] FOSS String library in C/C++ that matches Python string functions...

2011-02-21 Thread Vishal
On Mon, Feb 21, 2011 at 3:42 PM, Vishal wrote: > > > On Mon, Feb 21, 2011 at 3:36 PM, Roshan Mathews wrote: > >> On Mon, Feb 21, 2011 at 15:16, Vishal wrote: >> > But the bottleneck is the stellar string python >> > functionality that Python provides,

Re: [BangPypers] FOSS String library in C/C++ that matches Python string functions...

2011-02-21 Thread Vishal
On Mon, Feb 21, 2011 at 3:36 PM, Roshan Mathews wrote: > On Mon, Feb 21, 2011 at 15:16, Vishal wrote: > > But the bottleneck is the stellar string python > > functionality that Python provides, and is not available in the string.h > > from C library. > >

[BangPypers] FOSS String library in C/C++ that matches Python string functions...

2011-02-21 Thread Vishal
python functionality that Python provides, and is not available in the string.h from C library. Any pointers? Thanks in advance, Vishal Sapre ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Ideas for Python concurrency...

2011-02-09 Thread Vishal
On Wed, Feb 9, 2011 at 11:04 AM, Dhananjay Nene wrote: > On Tue, Feb 8, 2011 at 2:15 PM, Vishal wrote: > > > On Tue, Feb 8, 2011 at 2:10 PM, Baishampayan Ghose > >wrote: > > > > > > Mutliprocessing means, data copying, talking to each other through > >

Re: [BangPypers] Ideas for Python concurrency...

2011-02-08 Thread Vishal
Vikas, Thanks for the detailed info. What OS were you using for this project ? Thanks and best regards, Vishal On Tue, Feb 8, 2011 at 2:44 PM, vikas ruhil wrote: > Python GIL problem is solved you can look at here multiprocessing module > was > developed, which enables true

Re: [BangPypers] Ideas for Python concurrency...

2011-02-08 Thread Vishal
ation which might work around the > serialisation enforced by the GIL for CPU bound threads. > ___ > Thanks Noufal. You've explained my mental situation, with respect to the idea, exactly... :)) Vishal ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Ideas for Python concurrency...

2011-02-08 Thread Vishal
Threads in python create a new interpreter context, so the same interpreter switches to new byte codes. The original idea was to create a new interpreter for each thread, each one with its own GIL !!!. All within the same process. Vishal ___ BangPyper

Re: [BangPypers] Ideas for Python concurrency...

2011-02-08 Thread Vishal
On Tue, Feb 8, 2011 at 2:02 PM, Anand Chitipothu wrote: > 2011/2/8 Vishal : > > Hello, > > > > This might sound crazy..and dont know if its even possible, but... > > > > Is it possible that the Python process, creates copies of the interpreter > > for eac

[BangPypers] Ideas for Python concurrency...

2011-02-08 Thread Vishal
s and best regards, Vishal Sapre ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] getpython.net Sprint (was Re: User group meeting)

2011-01-30 Thread Vishal
Baiju, Small question...pardon me if it sounds stupid. What is the order in which the packages are listed here. http://getpython3.net/package Can we sort them by distribution name or something? -- Thanks and best regards, Vishal Sapre On Sun, Jan 30, 2011 at 8:48 PM, Baiju M wrote: >

Re: [BangPypers] Python 1.5.2 Application (compiled on PA-RISC) crashes on Itanium

2011-01-12 Thread Vishal
h to get this far. Have never worked on PA-RISC or Itanium, only knew superficially about Itanium because I worked for Intel till recently. For more details you would have to wait from some more knowledgeable answers. take care, Vishal On Wed, Jan 12, 2011 at 2:00 PM, Wah Meng Wong wrote: &

[BangPypers] Fwd: Suggestion for GUI

2011-01-10 Thread Vishal
single call to Traits, configure a UI for it. (that is if you have sprinkled Traits based types in your code :) ) Enjoy, Vishal -- Forwarded message -- From: Narendra Sisodiya Date: Mon, Jan 10, 2011 at 3:44 AM Subject: [BangPypers] Suggestion for GUI To: Bangalore Python Users Group

Re: [BangPypers] PyCon India videos up

2010-12-21 Thread Vishal
Checked out a few ones. They are good. Nice effort guys. A few ones have low voice quality, one was this one.. day2_hall1_part2<http://pyconindia.blip.tv/file/4533633/> Thanks and best regards, Vishal Sapre On Tue, Dec 21, 2010 at 1:57 PM, Noufal Ibrahim wrote: > > Thanks to Srira

Re: [BangPypers] task tracker and issue manager

2010-10-25 Thread Vishal
Ok. Sorry about that. +1 for Trac then. Also, if you its possible to shell out some moneyplease do have a look at Altassian's JIRA. For $10 for 10 users, its the cheapest and indeed one of the best project management tools. Thanks and best regards, Vishal Sapre On Mon, Oct 25, 2010 at

Re: [BangPypers] task tracker and issue manager

2010-10-25 Thread Vishal
For your requirements: +10 for Trac -2 for the agilo Trac plugin (has issues with ldap based authentication etc) ~ Vishal On Wed, Oct 20, 2010 at 3:02 PM, Kenneth Gonsalves wrote: > On Wed, 2010-10-20 at 13:48 +0530, Noufal Ibrahim wrote: > > However, both of these are 'mostly&#x

Re: [BangPypers] Co-operating threads

2010-10-25 Thread Vishal
Hi, I have greenlets on my system, but I dont see any info about gevent or eventlet on Windows. The websites all talk in terms of Linux, MacOsX etc... Do you know if the same are available on Windows too? or any kind of such framework for Windows. Thanks and best regards, Vishal Sapre On Sun

Re: [BangPypers] Beginner help

2010-10-02 Thread Vishal
if you are on Windows, try out PyScripter. I am sure you'll like it. Thanks and best regards, Vishal Sapre On Sat, Oct 2, 2010 at 4:51 PM, Noufal Ibrahim wrote: > On Sat, Oct 02 2010, Dennis Varkey wrote: > > > I heard about python and found that it was very simple to code. &g

Re: [BangPypers] something in python similar to java applets

2010-09-13 Thread Vishal
In case you wish to convert Python to JavaScript, you should definitely look at the python to javascript compiler at pyjamas. http://pyjs.org/#Supported <http://pyjs.org/#Supported>Vishal On Tue, Sep 14, 2010 at 10:04 AM, Dhananjay Nene wrote: > On Mon, Sep 6, 2010 at 6:32 PM, n

Re: [BangPypers] Clojure style multimethod functions in python

2010-08-25 Thread Vishal
Does anyone know of some speed performance comparison between multi-methods* vs* if-elif-else* vs* class based polymorphism ? Thanks and best regards, Vishal On Wed, Aug 25, 2010 at 11:15 AM, Baishampayan Ghose wrote: > >> Without making any change whatsoever to multi() and mul

[BangPypers] [JOB] [Python alongside Lex/Yacc/C] Staff Software Engineer @ National Semiconductor, bangalore, India

2010-08-13 Thread Vishal
Hi Friends, We have a position open at National Semiconductor. Please forward any references you may have, directly to me. Thanks and best regards, Vishal Sapre *Job *Description*: **Staff Software Engineer**.* * * ***Location** **Bangalore, KA* * * *Design Automation Group of NSC has CAD

Re: [BangPypers] Do you think a more declarative RE syntax would make the world a better place ?

2010-08-09 Thread Vishal
few times and that has clarified my understanding of the regular expressions in general. So now I can atleast look at a regex and successfully try to figure out what its trying to say. Thanks and best regards, Vishal On Tue, Aug 10, 2010 at 8:57 AM, Dhananjay Nene wrote: > On Mon, Aug 9, 2010

Re: [BangPypers] Do you think a more declarative RE syntax would make the world a better place ?

2010-08-09 Thread Vishal
Here are a couple more regular expression analyzers: http://xenon.stanford.edu/~xusch/regexp/analyzer.html <http://xenon.stanford.edu/~xusch/regexp/analyzer.html>a tool you can download to your pc: http://www.ultrapico.com/Expresso.htm On Mon, Aug 9, 2010 at 9:42 PM, Vishal wrote: &g

Re: [BangPypers] Do you think a more declarative RE syntax would make the world a better place ?

2010-08-09 Thread Vishal
On Mon, Aug 9, 2010 at 5:41 PM, Senthil Kumaran wrote: > On Mon, Aug 9, 2010 at 5:04 PM, Vishal wrote: > > # a(b|c)d+e* > > > > re1 = """ > > > > - literal: 'a' > > - one_of: 'b,c' > > - one_or_more_of: 'd

Re: [BangPypers] Do you think a more declarative RE syntax would make the world a better place ?

2010-08-09 Thread Vishal
complex, this textual representation may also become equally complex..or more so. Here's a website to find out 'quickly' what a regular expression means: http://rick.measham.id.au/paste/explain.pl Best regards, Vishal ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] Do you think a more declarative RE syntax would make the world a better place ?

2010-08-09 Thread Vishal
Hello fellas, I am trying to create a python function that can take an plain english description of a regular expression and return the regular expression to the caller. Currently I am thinking of the description in YAML format. So, we can store the description as a raw string variable, which is

Re: [BangPypers] Regarding web framework in Python

2010-06-06 Thread Vishal
easily for you. Also added advantage is that the client that you create is both a command line utility and a GUI (if you want to draw it on screen). Enjoy, Vishal Sapre On Mon, Jun 7, 2010 at 11:32 AM, Kenneth Gonsalves wrote: > On Monday 07 June 2010 11:21:59 Gopalakrishnan S wrote: > &g

Re: [BangPypers] Program_to_catch_changes_in_webpage

2010-05-27 Thread Vishal
, Vishal Sapre On Thu, May 27, 2010 at 1:53 PM, Noufal Ibrahim wrote: > On Thu, May 27, 2010 at 12:35 PM, nikunj badjatya > wrote: > > Hi All, > > I am actually using a web interface for outlook mails. Pointing the link > to > > my browser opens a page which shows me

Re: [BangPypers] python for parsing

2010-05-24 Thread Vishal
then adding other stuff over this can be continued in Python. Vishal On Mon, May 24, 2010 at 12:10 PM, Noufal Ibrahim wrote: > On Mon, May 24, 2010 at 12:06 PM, Rahul R wrote: > > Thanks Kunal , i am happy as well as sad , happy because my job has > become > > much simpler an

  1   2   >