Daemonify my python script on Android

2013-12-22 Thread Kevin Peterson
Hi, I want to daemonify my python script on Android device. That is, it should be automatically invoked on boot up. Appreciate your help. Thanks KP -- https://mail.python.org/mailman/listinfo/python-list

Re: Airplane mode control using Python?

2013-12-22 Thread Mark Lawrence
On 23/12/2013 04:52, ru...@yahoo.com wrote: On 12/22/2013 08:33 PM, Chris Angelico wrote: On Mon, Dec 23, 2013 at 2:20 PM, Kevin Peterson wrote: I am trying to control Aeroplane mode on Android using Python code. I am running QPyPlus python. When I execute this code(that is widespread in the n

Numpy Folder Structure

2013-12-22 Thread Chandru Rajendran
Hi all, Please help me with how we can make our folder structure similar to Numpy Folder structure , so that we can make our installer similar to the numpy. With the folder structure now I am having , if I install , it is directly installing without the folder in site packages unlike numpy. Th

Re: Airplane mode control using Python?

2013-12-22 Thread Kevin Peterson
I will take care. Thanks, On Mon, Dec 23, 2013 at 10:22 AM, wrote: > On 12/22/2013 08:33 PM, Chris Angelico wrote: > > On Mon, Dec 23, 2013 at 2:20 PM, Kevin Peterson > wrote: > >> I am trying to control Aeroplane mode on Android using Python code. > >> I am running QPyPlus python. When I exe

Re: Airplane mode control using Python?

2013-12-22 Thread Chris Angelico
On Mon, Dec 23, 2013 at 3:52 PM, wrote: > Come on Chris, it is just as easy to make typo or copy-and- > paste errors in any other software as GG, there is no evidence > that it was GG's fault. Actually, formatting errors ARE often caused by Google Groups. Maybe it wasn't in this instance, but I

Re: 2nd Try: Trouble writing lines to file that include line feeds - Newbie

2013-12-22 Thread Dan Healy
Solved. Simply change the 'w' from the file.open method to an 'a' for append On Sunday, December 22, 2013 7:55:28 PM UTC-5, Dan Healy wrote: > Overview: I'm attempting to read strings from a serial port. Each string ends > with a carriage return and line feed. I want to write those strings to a

Re: Airplane mode control using Python?

2013-12-22 Thread rurpy
On 12/22/2013 08:33 PM, Chris Angelico wrote: > On Mon, Dec 23, 2013 at 2:20 PM, Kevin Peterson wrote: >> I am trying to control Aeroplane mode on Android using Python code. >> I am running QPyPlus python. When I execute this code(that is >> widespread in the net), >> >>#!/usr/bin/python >>

Re: cascading python executions only if return code is 0

2013-12-22 Thread Chris Angelico
On Mon, Dec 23, 2013 at 3:57 PM, Roy Smith wrote: > More specifically, the assertion exception will get caught way up in > some django middleware which will log a stack trace and return a HTTP > 50-something. This will typically be followed by somebody like me > noticing the stack dump and trying

Re: cascading python executions only if return code is 0

2013-12-22 Thread Roy Smith
In article <52b7a0e4$0$29994$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > Anyway, I may be completely misinterpreting what I'm reading. Perhaps the > assertion is checking a function invariant ("one of the strategies will > always succeed") in which case you're doing it exactly

Re: Airplane mode control using Python?

2013-12-22 Thread Ned Batchelder
On 12/22/13 10:41 PM, Michael Torrie wrote: On 12/22/2013 08:20 PM, Kevin Peterson wrote: Hi, I am trying to control Aeroplane mode on Android using Python code. I am running QPyPlus python. When I execute this code(that is widespread in the net), #!/usr/bin/python import android dro

Re: cascading python executions only if return code is 0

2013-12-22 Thread Chris Angelico
On Mon, Dec 23, 2013 at 2:54 PM, Mark Lawrence wrote: >> memory.get(1234) > > > You learn something new every day or April 1st come early? memory = {1:"Foo", 12:"Bar", 123:"Quux"} ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: cascading python executions only if return code is 0

2013-12-22 Thread Mark Lawrence
On 23/12/2013 03:45, Chris Angelico wrote: On Mon, Dec 23, 2013 at 2:43 PM, Mark Lawrence wrote: Another C thing to complain about, with functions like malloc the status code and value returned are one and the same thing, except that NULL is failure in this case. How's that a problem? Python

Re: cascading python executions only if return code is 0

2013-12-22 Thread Chris Angelico
On Mon, Dec 23, 2013 at 2:43 PM, Mark Lawrence wrote: > Another C thing to complain about, with functions like malloc the status > code and value returned are one and the same thing, except that NULL is > failure in this case. How's that a problem? Python has the same: memory.get(1234) will ret

Re: cascading python executions only if return code is 0

2013-12-22 Thread Mark Lawrence
On 23/12/2013 03:22, Chris Angelico wrote: On Mon, Dec 23, 2013 at 2:10 PM, Dennis Lee Bieber wrote: Having spent 22 years with VMS, 0 -> success is still a problem to me. Odd result codes (aka True) were 1-success/3-information, even results (False) were 0-warning/2-error/4-fatal Ha

Re: Airplane mode control using Python?

2013-12-22 Thread Michael Torrie
On 12/22/2013 08:20 PM, Kevin Peterson wrote: > Hi, > > I am trying to control Aeroplane mode on Android using Python code. > I am running QPyPlus python. When I execute this code(that is widespread > in the net), > > #!/usr/bin/python > import android droid = android.Android() > #

Re: Airplane mode control using Python?

2013-12-22 Thread Chris Angelico
On Mon, Dec 23, 2013 at 2:20 PM, Kevin Peterson wrote: > I am trying to control Aeroplane mode on Android using Python code. I am > running QPyPlus python. When I execute this code(that is widespread in the > net), > > #!/usr/bin/python > import android droid = android.Android() > #

Re: cascading python executions only if return code is 0

2013-12-22 Thread Chris Angelico
On Mon, Dec 23, 2013 at 2:10 PM, Dennis Lee Bieber wrote: > Having spent 22 years with VMS, 0 -> success is still a problem to me. > Odd result codes (aka True) were 1-success/3-information, even results > (False) were 0-warning/2-error/4-fatal Having spent a similar amount of time with U

Airplane mode control using Python?

2013-12-22 Thread Kevin Peterson
Hi, I am trying to control Aeroplane mode on Android using Python code. I am running QPyPlus python. When I execute this code(that is widespread in the net), #!/usr/bin/python import android droid = android.Android() # go to airplane mode droid.toggleAirplaneMode()

Re: python socket query

2013-12-22 Thread Chris Angelico
On Mon, Dec 23, 2013 at 2:05 PM, wrote: > I wrote a small program which creates the socket, bind to the socket, connect > to socket and send() close(). I see that there is no reply coming from server > and the TCP disconnect happens. > import socket > > def tcp(host, request, port=34567): > > s

Re: cascading python executions only if return code is 0

2013-12-22 Thread Chris Angelico
On Mon, Dec 23, 2013 at 1:33 PM, Steven D'Aprano wrote: > Anyway, I may be completely misinterpreting what I'm reading. Perhaps the > assertion is checking a function invariant ("one of the strategies will > always succeed") in which case you're doing it exactly right and I should > shut up now :-

python socket query

2013-12-22 Thread smilesonisamal
Hi, I am trying to write a TCP socket program in python. I am using python 2.6 in linux. I referred following link: http://www.ibm.com/developerworks/linux/tutorials/l-pysocks/section4.html I am actually writing the client-side stream socket. I wrote a small program which creates the socket,

Re: cascading python executions only if return code is 0

2013-12-22 Thread Steven D'Aprano
Roy Smith wrote: > In article <52b782db$0$6599$c3e8da3$54964...@news.astraweb.com>, > Steven D'Aprano wrote: > >> Code that relies on side-effects is usually a sign of poor >> design. > > I don't understand what you're trying to say there. I'm trying to say that code that relies on side-effec

Re: cascading python executions only if return code is 0

2013-12-22 Thread Chris Angelico
On Mon, Dec 23, 2013 at 12:24 PM, Roy Smith wrote: > Each SongPicker subclass encapsulates some logic for how to pick the > next song. It can also decide if the strategy it implements is > appropriate for the particular request; create() either returns an > instance of the class, or None. Return

Re: Newbie question. Are those different objects ?

2013-12-22 Thread alex23
On 21/12/2013 2:00 AM, Mark Lawrence wrote: Shall I write a PEP asking for a language change which requires that that stupid = sign is replaced by a keyword reading something like thenameonthelefthandsideisassignedtheobjectontherighthandside ? I propose: tag with -- https://mail.python.o

Re: testing

2013-12-22 Thread Roy Smith
In article <52b788bb$0$6599$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > Is this thing still working? Yes. Do you want to know how many times your previous message was posted? :-) -- https://mail.python.org/mailman/listinfo/python-list

Re: testing

2013-12-22 Thread Chris Angelico
On Mon, Dec 23, 2013 at 11:50 AM, Steven D'Aprano wrote: > Is this thing still working? Working fine. I saw three messages from you in the other thread. Sending to you as well as the list in case you're not receiving. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: cascading python executions only if return code is 0

2013-12-22 Thread Roy Smith
In article <52b782db$0$6599$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > Code that relies on side-effects is usually a sign of poor > design. I don't understand what you're trying to say there. A bit later in your post, you wrote: try: a() b() c() except SomeErr

testing

2013-12-22 Thread Steven D'Aprano
Is this thing still working? -- Steven -- https://mail.python.org/mailman/listinfo/python-list

Re: How can i return more than one value from a function to more than one variable

2013-12-22 Thread Steven D'Aprano
Something funny is going on here, not only has the original gone missing, but my reply apparently has also gone missing. Let me try again, and apologies for if you see duplicate messages. On Sunday, December 22, 2013 4:54:46 PM UTC-6, dec...@msn.com wrote: > basically what I wanna do is this : >

Re: How can i return more than one value from a function to more than one variable

2013-12-22 Thread Steven D'Aprano
Something funny is going on here, not only has the original gone missing, but my reply apparently has also gone missing. Let me try again, and apologies for if you see duplicate messages. On Sunday, December 22, 2013 4:54:46 PM UTC-6, dec...@msn.com wrote: > basically what I wanna do is this : >

Re: How can i return more than one value from a function to more than one variable

2013-12-22 Thread Dave Angel
On Sun, 22 Dec 2013 15:41:06 -0800 (PST), Bob Rashkin wrote: On Sunday, December 22, 2013 4:54:46 PM UTC-6, dec...@msn.com wrote: > How am I supposed to do so I can return also a value to the variable y WITHOUT printing 'Now x =', w, 'and y = ' , z a second time ? You are apparently aski

Re: How can i return more than one value from a function to more than one variable

2013-12-22 Thread Steven D'Aprano
Unfortunately, the original post seems to have gone missing here, so please excuse me for breaking threading. On Sunday, December 22, 2013 4:54:46 PM UTC-6, dec...@msn.com wrote: > basically what I wanna do is this : > > x = 4 > y = 7 > > def switch (z,w): > ***this will switch z to w and vice

Re: cascading python executions only if return code is 0

2013-12-22 Thread Steven D'Aprano
On Sun, 22 Dec 2013 15:37:04 -0300, Frank Cui wrote: > hey guys, > I have a requirement where I need to sequentially execute a bunch of > executions, each execution has a return code. the followed executions > should only be executed if the return code is 0. is there a cleaner or > more pythonic w

Re: cascading python executions only if return code is 0

2013-12-22 Thread Gregory Ewing
Frank Cui wrote: Someone else wrote: > > Frank, welcome to the group. Common convention is to put your response > below the exiting message, so that the conversation continues down the page. Thanks for informing the rules. He forgot to mention the most important rule, which is: DON'T qu

Re: cascading python executions only if return code is 0

2013-12-22 Thread Steven D'Aprano
On Sun, 22 Dec 2013 14:49:43 -0500, Ned Batchelder wrote: > On 12/22/13 2:10 PM, Frank Cui wrote: >> sorry, but what if I need to have different parameters in these >> functions ? > > Frank, welcome to the group. Common convention is to put your response > below the exiting message, so that the

Re: How can i return more than one value from a function to more than one variable

2013-12-22 Thread Joel Goldstick
return a tuple: return a, b, c or whatever On Sun, Dec 22, 2013 at 6:41 PM, Bob Rashkin wrote: > On Sunday, December 22, 2013 4:54:46 PM UTC-6, dec...@msn.com wrote: > > basically what I wanna do is this : > > > > > > > > x = 4 > > > > y = 7 > > > > def switch (z,w): > > > > ***this will swit

Re: How can i return more than one value from a function to more than one variable

2013-12-22 Thread Bob Rashkin
On Sunday, December 22, 2013 4:54:46 PM UTC-6, dec...@msn.com wrote: > basically what I wanna do is this : > > > > x = 4 > > y = 7 > > def switch (z,w): > > ***this will switch z to w and vice verca*** > > c= z > > z=w > > w=c > > print 'Now x =', w, 'and y = ' , z >

Re: cascading python executions only if return code is 0

2013-12-22 Thread Mark Lawrence
On 22/12/2013 22:51, Chris Angelico wrote: On Mon, Dec 23, 2013 at 9:14 AM, Frank Cui wrote: Thanks for pointing out. I accept your advice and will try to make the questions clearer and more straightforward to interpretate . I already took the suggestion of using exception-based handling over t

Re: cascading python executions only if return code is 0

2013-12-22 Thread Chris Angelico
On Mon, Dec 23, 2013 at 9:14 AM, Frank Cui wrote: > Thanks for pointing out. I accept your advice and will try to make the > questions clearer and more straightforward to interpretate . I already took > the suggestion of using exception-based handling over the return code. > > As to testing whethe

RE: cascading python executions only if return code is 0

2013-12-22 Thread Frank Cui
> Date: Sun, 22 Dec 2013 14:27:35 -0800 > Subject: Re: cascading python executions only if return code is 0 > From: rantingrickjohn...@gmail.com > To: python-list@python.org > > On Sunday, December 22, 2013 12:37:04 PM UTC-6, Frank Cui wrote: > > I have a requirement where I need to sequentially

Re: cascading python executions only if return code is 0

2013-12-22 Thread Rick Johnson
On Sunday, December 22, 2013 12:37:04 PM UTC-6, Frank Cui wrote: > I have a requirement where I need to sequentially execute > a bunch of executions, each execution has a return code. > the followed executions should only be executed if the > return code is 0. is there a cleaner or more pythonic wa

Re: cascading python executions only if return code is 0

2013-12-22 Thread Cameron Simpson
On 22Dec2013 16:53, Roy Smith wrote: > In article , > Cameron Simpson wrote: > > Roy's code _depends_ upon the return value being equivalent to False. > > Yes. You view this as a flaw. I view it as a feature :-) When I write functions which return a boolean indicating success/failure, I try

Re: cascading python executions only if return code is 0

2013-12-22 Thread Roy Smith
In article , Cameron Simpson wrote: > Roy's code _depends_ upon the return value being equivalent to False. Yes. You view this as a flaw. I view it as a feature :-) > A better approach would be: > > a() == 0 and b() == 1 and c() == 0 > > i.e. to explicitly check each return code against

Re: cascading python executions only if return code is 0

2013-12-22 Thread Cameron Simpson
On 22Dec2013 15:05, Roy Smith wrote: > In article , > Mark Lawrence wrote: > > > On 22/12/2013 19:17, Roy Smith wrote: > > > In article , > > > Frank Cui wrote: > > >> I have a requirement where I need to sequentially execute a bunch of > > >> executions, each execution has a return code. th

Re: Error while building Python doc

2013-12-22 Thread Christian Heimes
Am 22.12.2013 21:59, schrieb Terry Reedy: > Did you run "make -C Doc checkout" first? (I do not know what the -C > does, as I just do "make checkout" and occasionally make update in Doc > on Windows, which run Doc/make.bat. -C == change directory "make -C Doc html" is like "cd Doc; make html; cd

Re: BLANK PAGE when i try Filtering Adsense with abpy

2013-12-22 Thread Terry Reedy
On 12/22/2013 12:20 PM, em rexhepi wrote: I know is my fault i'm no good programmer, I'm a begginer that's why i need your help. I have a python 3.3 project to be finished. I did what i could there is not much help on google about this topic. The project is to load a webpage from any website

Re: Error while building Python doc

2013-12-22 Thread Terry Reedy
On 12/22/2013 1:53 PM, shankha wrote: Hi, I am trying to build Python documents as listed here http://docs.python.org/devguide/documenting.html#building-the-documentation make -C Doc html Error message: Checked out revision 89010. mkdir -p build/html build/doctrees python tools/sphinx-build.py

Re: BLANK PAGE when i try Filtering Adsense with abpy

2013-12-22 Thread MRAB
On 22/12/2013 18:08, Michael Torrie wrote: On 12/22/2013 10:20 AM, em rexhepi wrote: When I use my code it just displays nothing My code: #!/usr/local/bin/python3.1 import cgitb;cgitb.enable() import urllib.request response = urllib.request.build_opener() response.addheaders = [('User-agent',

Re: cascading python executions only if return code is 0

2013-12-22 Thread Roy Smith
In article , Mark Lawrence wrote: > On 22/12/2013 19:17, Roy Smith wrote: > > In article , > > Frank Cui wrote: > > > >> hey guys, > >> I have a requirement where I need to sequentially execute a bunch of > >> executions, each execution has a return code. the followed executions > >> should

RE: cascading python executions only if return code is 0

2013-12-22 Thread Frank Cui
> To: python-list@python.org > From: n...@nedbatchelder.com > Subject: Re: cascading python executions only if return code is 0 > Date: Sun, 22 Dec 2013 14:49:43 -0500 > > On 12/22/13 2:10 PM, Frank Cui wrote: > > sorry, but what if I need to have different parameters in these functions ? > > F

Re: cascading python executions only if return code is 0

2013-12-22 Thread Ned Batchelder
On 12/22/13 2:10 PM, Frank Cui wrote: sorry, but what if I need to have different parameters in these functions ? Frank, welcome to the group. Common convention is to put your response below the exiting message, so that the conversation continues down the page. (See my answer below... :)

RE: cascading python executions only if return code is 0

2013-12-22 Thread Frank Cui
sorry, but what if I need to have different parameters in these functions ? > To: python-list@python.org > From: breamore...@yahoo.co.uk > Subject: Re: cascading python executions only if return code is 0 > Date: Sun, 22 Dec 2013 19:31:21 + > > On 22/12/2013 19:17, Roy Smith wrote: > > In art

Re: cascading python executions only if return code is 0

2013-12-22 Thread Mark Lawrence
On 22/12/2013 19:17, Roy Smith wrote: In article , Frank Cui wrote: hey guys, I have a requirement where I need to sequentially execute a bunch of executions, each execution has a return code. the followed executions should only be executed if the return code is 0. is there a cleaner or more

RE: cascading python executions only if return code is 0

2013-12-22 Thread Frank Cui
Thanks, this looks beautiful > To: python-list@python.org > From: __pete...@web.de > Subject: Re: cascading python executions only if return code is 0 > Date: Sun, 22 Dec 2013 20:26:15 +0100 > > Frank Cui wrote: > > > hey guys, > > I have a requirement where I need to sequentially execute a bunch

Re: cascading python executions only if return code is 0

2013-12-22 Thread Gary Herron
On 12/22/2013 10:37 AM, Frank Cui wrote: hey guys, I have a requirement where I need to sequentially execute a bunch of executions, each execution has a return code. the followed executions should only be executed if the return code is 0. is there a cleaner or more pythonic way to do this oth

Re: cascading python executions only if return code is 0

2013-12-22 Thread Peter Otten
Frank Cui wrote: > hey guys, > I have a requirement where I need to sequentially execute a bunch of > executions, each execution has a return code. the followed executions > should only be executed if the return code is 0. is there a cleaner or > more pythonic way to do this other than the followi

Re: cascading python executions only if return code is 0

2013-12-22 Thread Roy Smith
In article , Frank Cui wrote: > hey guys, > I have a requirement where I need to sequentially execute a bunch of > executions, each execution has a return code. the followed executions should > only be executed if the return code is 0. is there a cleaner or more pythonic > way to do this othe

cascading python executions only if return code is 0

2013-12-22 Thread Frank Cui
hey guys, I have a requirement where I need to sequentially execute a bunch of executions, each execution has a return code. the followed executions should only be executed if the return code is 0. is there a cleaner or more pythonic way to do this other than the following ? if a() == 0:if

Error while building Python doc

2013-12-22 Thread shankha
Hi, I am trying to build Python documents as listed here http://docs.python.org/devguide/documenting.html#building-the-documentation make -C Doc html Error message: Checked out revision 89010. mkdir -p build/html build/doctrees python tools/sphinx-build.py -b html -d build/doctrees -D latex_pape

Re: BLANK PAGE when i try Filtering Adsense with abpy

2013-12-22 Thread Mark Lawrence
On 22/12/2013 17:20, em rexhepi wrote: I know is my fault i'm no good programmer, I'm a begginer that's why i need your help. I have a python 3.3 project to be finished. I did what i could there is not much help on google about this topic. The project is to load a webpage from any website and

Re: BLANK PAGE when i try Filtering Adsense with abpy

2013-12-22 Thread Michael Torrie
On 12/22/2013 10:20 AM, em rexhepi wrote: > When I use my code it just displays nothing > > My code: > #!/usr/local/bin/python3.1 > > import cgitb;cgitb.enable() > > import urllib.request > response = urllib.request.build_opener() > response.addheaders = [('User-agent', 'Mozilla/5.0')] > respons

Getting updates and restarting a long running url request.

2013-12-22 Thread Vincent Davis
I am using biopython's NCBIWWW.qblast which sends a request to the ncbi website and waits for a result. The relevant code can be found at the link below starting at about 151. Basically it is a while loop waiting for the blast query. http://biopython.org/DIST/docs/api/Bio.Blast.NCBIWWW-pysrc.html

Re: BLANK PAGE when i try Filtering Adsense with abpy

2013-12-22 Thread Chris Angelico
On Mon, Dec 23, 2013 at 4:20 AM, em rexhepi wrote: > I have a python 3.3 project to be finished. ... > > My code: > #!/usr/local/bin/python3.1 Your shebang says 3.1, are you sure that's correct? Maybe it's not finding the right interpreter. If this is running as CGI, which it seems to be, check

BLANK PAGE when i try Filtering Adsense with abpy

2013-12-22 Thread em rexhepi
I know is my fault i'm no good programmer, I'm a begginer that's why i need your help. I have a python 3.3 project to be finished. I did what i could there is not much help on google about this topic. The project is to load a webpage from any website and filter the ads. I'm using ABPY library t

Re: Datetime string reformatting

2013-12-22 Thread Andreas Perstinger
On 22.12.2013 11:58, Igor Korot wrote: My script receives a data from the csv file. In this csv file there is a datetime field. This datetime field is formatted as follows: %m/%d/%Y %H:%M:%S.{milliseconds}. I'm reading this field into the string with this format. The trouble comes from the fact

Re: [OT] vnc-problem with idle running as sudo on raspberry pi

2013-12-22 Thread Michael Torrie
On 12/22/2013 06:27 AM, Jean Dubois wrote: > I was wrong writing idle_as_root worked this way. As a matter of fact, > this method also does not work as expected, as can be seen from this > message: > > X11 connection rejected because of wrong authentication. > > New 'X' desktop is raspberrypi:1 >

Re: vnc-problem with idle running as sudo on raspberry pi

2013-12-22 Thread Jean Dubois
Op zondag 22 december 2013 14:02:47 UTC+1 schreef Jean Dubois: > I found the following solution to use idle on the raspberry pi > as sudoer (which is necessary or at least comfortable when programming the > GPIO) > 1. Open a terminal > 2. type cd ~/Desktop > 3. type touch idle_as_root > 4. type na

vnc-problem with idle running as sudo on raspberry pi

2013-12-22 Thread Jean Dubois
I found the following solution to use idle on the raspberry pi as sudoer (which is necessary or at least comfortable when programming the GPIO) 1. Open a terminal 2. type cd ~/Desktop 3. type touch idle_as_root 4. type nano idle_as_root 5. type in sudo idle 6. exit nano 7. type in sudo chmod +x id

Re: unicode to human readable format

2013-12-22 Thread Peter Otten
tomasz.kaczo...@gmail.com wrote: > Hi, > i'm looking for solution the unicode string translation to the more > readable format. I've got string like > s=s=[u'\u0105\u017c\u0119\u0142\u0144'] and have no idea how to change to > the human readable format. please help! No, you have a list of strings

Re: unicode to human readable format

2013-12-22 Thread Chris “Kwpolska” Warrick
On Sun, Dec 22, 2013 at 1:24 PM, wrote: > Hi, > i'm looking for solution the unicode string translation to the more readable > format. > I've got string like s=s=[u'\u0105\u017c\u0119\u0142\u0144'] and have no idea > how to change to the human readable format. please help! > > regards, > tomasz

unicode to human readable format

2013-12-22 Thread tomasz . kaczorek
Hi, i'm looking for solution the unicode string translation to the more readable format. I've got string like s=s=[u'\u0105\u017c\u0119\u0142\u0144'] and have no idea how to change to the human readable format. please help! regards, tomasz -- https://mail.python.org/mailman/listinfo/python-lis

Re: Datetime string reformatting

2013-12-22 Thread Mark Lawrence
On 22/12/2013 10:58, Igor Korot wrote: Hi, ALL, I am trying to comprehend what is required to get a successful processing. ;-) My script receives a data from the csv file. In this csv file there is a datetime field. This datetime field is formatted as follows: %m/%d/%Y %H:%M:%S.{milliseconds}. I'

Datetime string reformatting

2013-12-22 Thread Igor Korot
Hi, ALL, I am trying to comprehend what is required to get a successful processing. ;-) My script receives a data from the csv file. In this csv file there is a datetime field. This datetime field is formatted as follows: %m/%d/%Y %H:%M:%S.{milliseconds}. I'm reading this field into the string with