Re: Detect if specific Python.app instance is already running

2015-06-08 Thread Andrei
On Monday, June 8, 2015 at 1:08:07 AM UTC+2, Ned Deily wrote: > In article <11e093d5-b78e-4ac6-9a7f-649cb2c2c...@googlegroups.com>, > Andrei wrote: > > Alright, I have had some development in > > http://stackoverflow.com/questions/30694560/detect-if-specific-python-app-

Re: Detect if specific Python.app instance is already running

2015-06-07 Thread Andrei
script. I guess it's more Cocoa-related question but I hope someone had same problem with tkinter etc. Andrei -- https://mail.python.org/mailman/listinfo/python-list

Detect if specific Python.app instance is already running

2015-06-07 Thread Andrei
undleName') if name in ('Python', 'MyApp'): print name # => prints Python So I need to find a way to mark a Python.app instance that runs MyApp script to be able to abort launching duplicate instances. Is there such way? Thanks, Andrei -- https://mail.python.org/mailman/listinfo/python-list

Re: Remove comma from tuples in python.

2014-02-20 Thread Mircescu Andrei
vineri, 21 februarie 2014, 08:49:01 UTC+2, Jaydeep Patil a scris: > I am getting below tuple from excel. > > How should i remove extra commas in each tuple to make it easy for operations. > > > > tuples is: > > seriesxlist1 = ((0.0), (0.01), (0.02), (0.03), (0.04), (0.05), (0.06), > (0.07), (

Re: Python 2.7 importing pyc files without py files

2014-02-20 Thread Mircescu Andrei
joi, 20 februarie 2014, 00:25:41 UTC+2, Emile van Sebille a scris: > On 2/19/2014 2:03 PM, Mircescu Andrei wrote: > > > > > If there are only pyc files, the loading time of the application is > > > much more than if I have pyc and py files. It is behind with 2 >

Python 2.7 importing pyc files without py files

2014-02-19 Thread Mircescu Andrei
Hi, I encountered a strange issue. I have an application which uses extensively python 2.7.6 (CPython). The issue that I see is the following: If there are only pyc files, the loading time of the application is much more than if I have pyc and py files. It is behind with 2 minutes more than i

Which Python Framework for REST API and Facebook Wrapper?

2013-09-28 Thread harry . andrei
I will be designing a REST based API for a cross-platform back end that will serve both desktop Facebook users as well as mobile users. It will handle operations such as user creation, retrieval of user and other data, payment verification and in the case of the desktop side, handle the html/css

Re: How to run a setup command with 'pip install'?

2011-08-25 Thread Andrei
'pip install pyrex' solved the problem (credit to @jezdez) -- http://mail.python.org/mailman/listinfo/python-list

How to run a setup command with 'pip install'?

2011-08-25 Thread Andrei
Hello, I have a trouble installing the DMSL package with pip. The package doesn't have *.c files, which must be produced with Cython by 'pyhton setup.py build_ext' command. How do I run it with 'pip install'? Please see http://stackoverflow.com/questions/7189336/ for

Re: replace string in a file

2008-03-15 Thread andrei . avk
On Mar 15, 3:54 pm, Unknown <[EMAIL PROTECTED]> wrote: > Hi, > I've got this code : > > cb = open("testfile", "r+") > f = cb.readlines() > for line in f: >     rx = re.match(r'^\s*(\d+).*', line) >     if not rx: >         continue >     else: >         serial = rx.group(1) >         now = time.tim

Re: escape string to store in a database?

2008-03-14 Thread andrei . avk
On Mar 14, 1:36 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Thu, 13 Mar 2008 19:55:27 -0700 (PDT), [EMAIL PROTECTED] declaimed > the following in comp.lang.python: > > > > > Thanks for the reply, Carsten, how would this work with UPDATE > > command? I get this error: > > >         cmd = "

Re: escape string to store in a database?

2008-03-13 Thread andrei . avk
On Mar 12, 8:32 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Wed, 2008-03-12 at 18:18 -0700, [EMAIL PROTECTED] wrote: > > These pieces of text may have single and double quotes in > > them, I tried escaping them using re module and string module and > > either I did something wrong, or they e

Re: a Roguelike in Python

2008-03-12 Thread andrei . avk
On Mar 12, 8:25 am, [EMAIL PROTECTED] wrote: > Seeing the 7DRL start up recently, i wanted to see what one was made > of. Python is the language i'm most familiar with so i searched for > some code to look at, but i couldn't find any. Can anyone direct me to > the right place? > > I did some search

escape string to store in a database?

2008-03-12 Thread andrei . avk
Hi, I'd like to store chunks of text, some of them may be very large, in a database, and have them searchable using 'LIKE %something%' construct. These pieces of text may have single and double quotes in them, I tried escaping them using re module and string module and either I did something wrong,

Re: Open a file with default handler app?

2008-03-12 Thread andrei . avk
On Mar 11, 11:50 pm, [EMAIL PROTECTED] wrote: > > Hey there, > I've had to do the same things for a program that I'm writing. The > following command should do the trick: > > os.startfile("yourfilehere") > > from the os module. Hope this helps! That's perfect, thanks a ton++! -- http://mail.pyth

Open a file with default handler app?

2008-03-11 Thread andrei . avk
Hi, I searched for this on google and in this group, but my awesome google-fu powers failed me. Is there a way to open any file using default program that'd open it? In other words, to do the same action as double-clicking in windows explorer? And secondly, is there a way to do the same thing for l

Re: Information manager/organizer with tags question.

2007-11-13 Thread andrei . avk
However they seem to have different focus and that's important because both are closed, at least now, so it's not the case I was thinking of of some light simple wiki system where I'd have to add a few features. Again, thanks for your response! -andrei > > There once was

Re: Information manager/organizer with tags question.

2007-11-13 Thread andrei . avk
However they seem to have different focus and that's important because both are closed, at least now, so it's not the case I was thinking of of some light simple wiki system where I'd have to add a few features. Again, thanks for your response! -andrei > > There once was

Re: Information manager/organizer with tags question.

2007-11-12 Thread andrei . avk
ook: > > http://nucular.sourceforge.net > > See the "demos" for examples of what you can do with it very easily. >-- Aaron Watters > > ===http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=unsuspecting+v... Sounds interesting and thanks for reply but I need

Information manager/organizer with tags question.

2007-11-11 Thread andrei . avk
Hello, I would like to write an information manager/organizer type of app but first I'd like to ask if there is something like that already existing. I asked on yahoo questions but did not get a response. I also searched freshmeat but even though they have plenty of projects that are tangentially

Re: Looking for a python IDE

2006-09-16 Thread Andrei
it won't help you if you want to build Qt apps, Eric doesn't work if you run Windows, etc. Yours, Andrei -- http://mail.python.org/mailman/listinfo/python-list

Get EXE (made with py2exe) path directory name

2006-06-05 Thread Andrei B
I need to get absolute path name of a file that's in the same dir as the exe, however the Current Working Directory is changed to somthing else. I turn my script into an executable with py2exe, then I create a shortcut to the EXE on the desktop. I change the "Start In" variable of the shortcut "C:

Re: semicolons

2005-04-11 Thread Andrei
just write Python in Python, PHP in PHP, C in C, etc. The semicolons are only a very small part of the differences between languages and their absence is detected by the compiler when you forget them. Yours, Andrei -- http://mail.python.org/mailman/listinfo/python-list