Re: Testing list sequence question -- thanks for the info

2023-03-05 Thread Grant Edwards
On 2023-03-05, Gabor Urban wrote: > Upgrading our Python to 3.7 seems to be out of question at the moment. Using an OrderedDict doesn't work for you? -- Grant -- https://mail.python.org/mailman/listinfo/python-list

Testing list sequence question -- thanks for the info

2023-03-05 Thread Gabor Urban
Hi guys, Thank you very much for the accurate answer. Upgrading our Python to 3.7 seems to be out of question at the moment. I will check the requirement specification if the order of the keys is important at all. It could be a wish only. -- Urbán Gábor Linux is like a wigwam: no Gates, no Win

Re:Re: why the connection set with “keep live” in urllib.request always set to be“closed, thanks

2020-08-18 Thread xuanwu348
Thanks all, I had met this problem was when I did restapi test. I send a request by python script and the time processed by server very short, and another request send by postman, the time seems normal, I compare the diff between these two request, obvious difference is the connection, which

Re: why the connection set with “keep live” in urllib.request always set to be“closed, thanks

2020-08-18 Thread Barry Scott
use the persistent connection. If you know your way around TCP sockets and protocols this is not that hard to write the code to do persistent connections for a client. Maybe look at a library like twisted? Its got all the building blocks you need to handle persistent connections. Barr

Re:Re: why the connection set with “keep live” in urllib.request always set to be“closed, thanks

2020-08-17 Thread xuanwu348
eeded. See Request for details. urllib.request module uses HTTP/1.1 and includes Connection:close header in its HTTP requests. === Does it mean urllib.request don't support 'keep alive'? Thanks 在 2020-08-18 04:51:03,"Barry"

Re: why the connection set with “keep live” in urllib.request always set to be“closed, thanks

2020-08-17 Thread Barry
> On 17 Aug 2020, at 18:23, xuanwu348 wrote: > > hi everyone > > > Good day, the code as below, I try to make a long connection by set the > connection to "keep-alive", but actually it's not as expected. Why? Thanks What this means is. Please web serv

why the connection set with “keep live” in urllib.request always set to be“closed, thanks

2020-08-17 Thread xuanwu348
hi everyone Good day, the code as below, I try to make a long connection by set the connection to "keep-alive", but actually it's not as expected. Why? Thanks import urllib.request as req headers = {"authorization": "Bearer {}".format(self.token

Research Invitation for OSS Community. Many thanks!

2019-08-13 Thread Sophy Guo
innovation capability of OSS community. I would very much appreciate if you could help to participate this research, and if you have any questions about the research, I am happy to answer, just e-mail me on bn1...@leeds.ac.uk. Thanks a lot! Best Regards, Sophy Guo -- https://mail.python.org

Re: Want to learn python as I have donne manual testing for 12 years. Please help to share opinion how to start. Thanks

2019-07-15 Thread copeterson07
On Monday, July 15, 2019 at 12:44:20 AM UTC-6, kumar...@gmail.com wrote: > Want to learn python as I have donne manual testing for 12 years. Please help > to share opinion how to start. Thanks I don't know your skill level with programming, but I have found this https://www.lear

Re: Want to learn python as I have donne manual testing for 12 years. Please help to share opinion how to start. Thanks

2019-07-15 Thread Aldwin Pollefeyt
en api (weather info?), connect a socket to pass data, plot some data on a chart/image, show info in your OS's status bar, write your own api, threading, ... On Mon, Jul 15, 2019 at 3:00 PM wrote: > Want to learn python as I have donne manual testing for 12 years. Please > help to sha

Want to learn python as I have donne manual testing for 12 years. Please help to share opinion how to start. Thanks

2019-07-15 Thread kumarscheen
Want to learn python as I have donne manual testing for 12 years. Please help to share opinion how to start. Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: What's wrong with these codes as failed to read the strings in Chinese? Is it because Chinese characters can't be read on Mac? Many thanks

2018-11-09 Thread Kevin Hu
Dear Annie, Looks like you’re trying to read in a file with encoded characters. By default Python3 reads file in bytes, and you’ll need to decode it. Looks like it’s utf-8 encoding. More at: https://docs.python.org/3/howto/unicode.html You can si

Re: What's wrong with these codes as failed to read the strings in Chinese? Is it because Chinese characters can't be read on Mac? Many thanks

2018-11-09 Thread Peter Otten
Cameron Simpson wrote: > In Python 3 the loop is much cleaner: > > with open('namelist.txt', encoding='utf-8') as f: > for line in f: > line = line.strip() > print("line =", line) In Python 2.7 you can use io.open(): import io with io.open('namelist.txt', encoding='utf-8') a

Re: What's wrong with these codes as failed to read the strings in Chinese? Is it because Chinese characters can't be read on Mac? Many thanks

2018-11-08 Thread Cameron Simpson
On 08Nov2018 19:30, Annie Lu wrote: # -*- coding: UTF-8 -*- ... f = open('/Users/annielu/Desktop/namelist1801.txt') namelist1801txt = f.read() f.close() namelist1801txt '\xe9\x99\x88\xe5\xb7\x8d\n\xe8\x83\xa1\xe6\x99\xba\xe5\x81\xa5\r\xe9\xbb\x84\xe5\x9d\xa4\xe6\xa6\x95\r\xe6\x9d\x8e\xe6\x98\x

What's wrong with these codes as failed to read the strings in Chinese? Is it because Chinese characters can't be read on Mac? Many thanks

2018-11-08 Thread Annie Lu
# -*- coding: UTF-8 -*- ... f = open('/Users/annielu/Desktop/namelist1801.txt') >>> namelist1801txt = f.read() >>> f.close() >>> namelist1801txt '\xe9\x99\x88\xe5\xb7\x8d\n\xe8\x83\xa1\xe6\x99\xba\xe5\x81\xa5\r\xe9\xbb\x84\xe5\x9d\xa4\xe6\xa6\x95\r\xe6\x9d\x8e\xe6\x98\x9f\xe7\x81\xbf\r\xe5\x88\x98\

Re: how to get a value from CSV specific cell (A7) thanks

2018-09-02 Thread alon . najman
On Saturday, September 1, 2018 at 9:19:29 PM UTC+3, alon@gmail.com wrote: > how to get a value from CSV specific cell (A7) thanks thanks all ! -- https://mail.python.org/mailman/listinfo/python-list

Re: how to get a value from CSV specific cell (A7) thanks

2018-09-02 Thread Peter Otten
alon.naj...@gmail.com wrote: > how to get a value from CSV specific cell (A7) thanks $ cat csv_sheet.py #!/usr/bin/python3 import re import csv import string LOOKUP = {c: i for i, c in enumerate(string.ascii_uppercase, 1)} def a2i(s): """ >>>

Re: how to get a value from CSV specific cell (A7) thanks

2018-09-01 Thread George Fischhof
(A7) thanks > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

how to get a value from CSV specific cell (A7) thanks

2018-09-01 Thread alon . najman
how to get a value from CSV specific cell (A7) thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: Thanks

2018-04-19 Thread Ben Finney
"viplued" writes: > Thank you very much for python, We're glad that Python is useful to people! Can you say a little about how Python has helped you? -- \ Eccles: “I'll get [the job] too, you'll see. I'm wearing a | `\Cambridge tie.” Greenslade: “What were you doing there?

Thanks

2018-04-19 Thread viplued
Thank you very much for python, -- https://mail.python.org/mailman/listinfo/python-list

Re: Express thanks

2017-08-27 Thread Abdur-Rahmaan Janhangeer
hi, liking py, i follow py discuss at pretty some places, i can say that upto now, py mailing lists are awesome just make a drop on irc ... Keep it up guys ! Abdur-Rahmaan Janhangeer, Mauritius abdurrahmaanjanhangeer.wordpress.com On 21 Aug 2017 18:38, "Hamish MacDonald" wrote: I wanted to

Re: Express thanks

2017-08-25 Thread Tim Golden
On 21/08/2017 15:34, Hamish MacDonald wrote: I wanted to give a shout out to the wonderfully passionate contributions to python I've witnessed following this and other mailing lists over the last little bit. The level of knowledge and willingness to help I've seen are truly inspiring. Super mo

Express thanks

2017-08-21 Thread Hamish MacDonald
I wanted to give a shout out to the wonderfully passionate contributions to python I've witnessed following this and other mailing lists over the last little bit. The level of knowledge and willingness to help I've seen are truly inspiring. Super motivating. Probably the wrong forum for such a

Re: Access flles on a Android device from Windows PC << YES! Thanks

2017-06-07 Thread Fred Fishbin
Yup, that seems to be the deal, and there doesn't seem tpo be a really simple way to deal with this. ...but at least I know what I need to look for. thanks! Freddie eryk sun wrote: >On Tue, Jun 6, 2017 at 7:36 PM, Fred Fishbin wrote: >> >> I want to write little progra

Re: any one used moviepy please come in!!! I need help, thanks!

2017-02-25 Thread Santhosh Kumar
Thanks a lot , I got this solution after installing ghostscript Regards sandy On Thu, Feb 23, 2017 at 6:15 PM, Billy Earney wrote: > imagemagick (ie, convert) has a policy.xml file that stops you from > accessing any resource that starts with '@'. > > type 'identif

Re: any one used moviepy please come in!!! I need help, thanks!

2017-02-23 Thread Billy Earney
imagemagick (ie, convert) has a policy.xml file that stops you from accessing any resource that starts with '@'. type 'identify -list policy' the first line should tell you where your policy.xml file is located. My policy.xml file is lcoated at /etc/ImageMagick-6/policy.xml open that file, and g

Re: any one used moviepy please come in!!! I need help, thanks!

2017-02-22 Thread sntc99
On Thursday, January 26, 2017 at 8:12:24 AM UTC+5:30, Tony Chen wrote: > On Wednesday, January 25, 2017 at 8:34:01 PM UTC+13, Chris Angelico wrote: > > On Wed, Jan 25, 2017 at 6:22 PM, Tony Chen > > wrote: > > > This error can be due to the fact that ImageMagick is not installed on > > > your co

Re: any one used moviepy please come in!!! I need help, thanks!

2017-01-25 Thread Tony Chen
On Wednesday, January 25, 2017 at 8:34:01 PM UTC+13, Chris Angelico wrote: > On Wed, Jan 25, 2017 at 6:22 PM, Tony Chen wrote: > > This error can be due to the fact that ImageMagick is not installed on your > > computer, or (for Windows users) that you didn't specify the path to the > > ImageMag

Re: any one used moviepy please come in!!! I need help, thanks!

2017-01-24 Thread Chris Angelico
On Wed, Jan 25, 2017 at 6:22 PM, Tony Chen wrote: > This error can be due to the fact that ImageMagick is not installed on your > computer, or (for Windows users) that you didn't specify the path to the > ImageMagick binary in file conf.py, or.that the path you specified is > incorrect So... i

any one used moviepy please come in!!! I need help, thanks!

2017-01-24 Thread Tony Chen
I have to use moviepy in one of my project. So I downloaded it, and tried the example code on the website. It gives me this error. Anyone can give me some help? Thank you very much! it gives this error: [MoviePy] This command returned an error !Traceback (most recent call last): File "tst.py",

thanks

2016-01-26 Thread Kawuma Julius
Thank you for developing us.We love you God bless you the more. I am Julius in Uganda learning computer. -- https://mail.python.org/mailman/listinfo/python-list

Need some direction in completing the exercise below, appreciate any input given, thanks!

2014-10-07 Thread wadson . espindola
The aim of this exercise is to combine the sample database, click tracking information from a test website and application, and information from user's social networks. The sample database contains the following fields and is made up of 500 records. first_name, last_name, company_na

Thanks

2014-07-24 Thread Martin S
So holiday is pretty much over. I've learnt the merest basics of Python and done two tools, on the way to webify one of them using Bottle. Which also is confusing. Oh well. I'm back to work so will go more into lurking mode. Just wanted to say thanks to all who have replied to my

Thanks for the help

2014-07-16 Thread Martin S
y CLI based. The tutorial I was following doesn't cover GUI or error correction so that will naturally be the next steps in completing the thing. Anyway, thanks for explaining the confusing points so far. Regards, Martin S -- https://mail.python.org/mailman/listinfo/python-list

Re: Proper deletion of selected items during map iteration in for loop: Thanks to all

2014-04-28 Thread Duncan Booth
Chris Angelico wrote: > # Snapshot of keys: > for k in list(d): > if f(k): del d[k] > > No extra loop at the end, no switching out and in of contents, just > one little change in the loop header. Obviously you don't want to do > this when you're deleting two out of three billion, but for sma

Re: Proper deletion of selected items during map iteration in for loop: Thanks to all

2014-04-26 Thread Roy Smith
In article <535c67e9$0$29965$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > I think the two obviously good enough approaches are: > > - save a "to be deleted" list, then delete those keys; > > - copy the "not to be deleted" items into a new dict There is a third possibility: I

Re: Proper deletion of selected items during map iteration in for loop: Thanks to all

2014-04-26 Thread Chris Angelico
On Sun, Apr 27, 2014 at 12:14 PM, Steven D'Aprano wrote: > I think the two obviously good enough approaches are: > > - save a "to be deleted" list, then delete those keys; > > - copy the "not to be deleted" items into a new dict For a small enough dict that the performance question doesn't matter

Re: Proper deletion of selected items during map iteration in for loop: Thanks to all

2014-04-26 Thread Steven D'Aprano
On Sat, 26 Apr 2014 12:25:27 -0700, Charles Hixson wrote: > On 04/25/2014 10:53 AM, Charles Hixson wrote: >> What is the proper way to delete selected items during iteration of a >> map? What I want to do is: >> >> for (k, v) in m.items(): >>if f(k): >> # do some processing of v and sa

Re: Proper deletion of selected items during map iteration in for loop: Thanks to all

2014-04-26 Thread Tim Chase
On 2014-04-26 12:25, Charles Hixson wrote: > I expect that I'll be deleting around 1/3 during > each iteration of the process...and then adding new ones back in. > There shouldn't be a really huge number of deletions on any > particular pass, but it will be looped through many times... If you have

Re: Proper deletion of selected items during map iteration in for loop: Thanks to all

2014-04-26 Thread Charles Hixson
On 04/25/2014 10:53 AM, Charles Hixson wrote: What is the proper way to delete selected items during iteration of a map? What I want to do is: for (k, v) in m.items(): if f(k): # do some processing of v and save result elsewhere del m[k] But this gives (as should be expected):

Re: Homework help requested, thanks to everyone.

2013-07-22 Thread Skip Montanaro
John> Another project I thought of was a Pig Latin translator. (But do kids today John> even know what Pig Latin is? Am I showing my age?) Chris> Even if they don't, they'll grok it no problem. It's simple enough. Google for "Python pig latin" to see a lot of "prior art". And it might be usefu

RE: Homework help requested, thanks to everyone.

2013-07-21 Thread Joseph Clark
al dependencies. // joseph w. clark , phd , visiting research associate \\ university of nebraska at omaha - college of IS&T > Date: Sun, 21 Jul 2013 13:49:40 -0700 > Subject: Homework help requested, thanks to everyone. > From: john_lada...@sbcglobal.net > To: python-list@python.org &g

Re: Homework help requested, thanks to everyone.

2013-07-21 Thread Roy Smith
In article , Chris Angelico wrote: > On Mon, Jul 22, 2013 at 6:49 AM, John Ladasky > wrote: > > Another project I thought of was a Pig Latin translator. (But do kids > > today even know what Pig Latin is? Am I showing my age?) > > > Even if they don't, they'll grok it no problem. It's simp

Re: Homework help requested, thanks to everyone.

2013-07-21 Thread Chris Angelico
On Mon, Jul 22, 2013 at 6:49 AM, John Ladasky wrote: > Another project I thought of was a Pig Latin translator. (But do kids today > even know what Pig Latin is? Am I showing my age?) Even if they don't, they'll grok it no problem. It's simple enough. ChrisA -- http://mail.python.org/mailma

Homework help requested, thanks to everyone.

2013-07-21 Thread John Ladasky
Thanks to everyone for their wealth of suggestions. I already had my students playing with turtle. And I had asked them to alphabetize a string (without having previously revealed the sorted() function). So far, I have taken up the suggestion of the number-guessing game. One of my students

Re: thanks!

2012-08-31 Thread Ben Finney
Tim Chase writes: > Or we can take the opportunity to thank you for all your work on > making this a relatively spam-free mailing list. So thanks! Indeed. This forum has a very high signal-to-noise ratio, largely due to efforts that are often invisible to the participants. Tha

Re: thanks! (was "Test message - please ignore")

2012-08-31 Thread Ethan Furman
. You can ignore it. Or we can take the opportunity to thank you for all your work on making this a relatively spam-free mailing list. So thanks! Seconded! :) -- http://mail.python.org/mailman/listinfo/python-list

Re: thanks! (was "Test message - please ignore")

2012-08-31 Thread Tim Chase
. > > You can ignore it. Or we can take the opportunity to thank you for all your work on making this a relatively spam-free mailing list. So thanks! -tkc -- http://mail.python.org/mailman/listinfo/python-list

Re: the script can not go through all the list, anyone could help, would be highly appreciated, thanks a lot !

2012-01-31 Thread MRAB
On 01/02/2012 00:00, Para wrote: the script can not go through all the list, anyone could help, would be highly appreciated, thanks a lot ! output: initial 7 lines: [9379, 'G', '0.1830'] [9378, 'G', '0.1752'] [9377, 'G', '0.1929'] [9

the script can not go through all the list, anyone could help, would be highly appreciated, thanks a lot !

2012-01-31 Thread Para
the script can not go through all the list, anyone could help, would be highly appreciated, thanks a lot ! output: initial 7 lines: [9379, 'G', '0.1830'] [9378, 'G', '0.1752'] [9377, 'G', '0.1929'] [9375, 'G', '0.1950&

Re: can some one help me with my code. thanks

2012-01-23 Thread Tamanna Sultana
On Jan 20, 9:23 pm, Steven D'Aprano wrote: > On Fri, 20 Jan 2012 16:21:30 -0800, Rick Johnson wrote: > > On Jan 20, 12:49 pm, Tamanna Sultana wrote: > >> > If you can give me some lead to fix the code I wrote below that will > >> > be great: > > > Your variable names need a bit more thought > > >

Re: can some one help me with my code. thanks

2012-01-23 Thread Tamanna Sultana
On Jan 20, 11:03 pm, Chris Angelico wrote: > On Sat, Jan 21, 2012 at 1:23 PM, Steven D'Aprano > > wrote: > > On Fri, 20 Jan 2012 16:21:30 -0800, Rick Johnson wrote: > >> Your variable names need a bit more thought > > >>> def average(bin): > > >> What is a "bin"? Maybe you shoulc have called this

Re: can some one help me with my code. thanks

2012-01-22 Thread Vincent Vande Vyvre
Le 20/01/12 20:30, Vincent Vande Vyvre a écrit : Le 20/01/12 19:49, Tamanna Sultana a écrit : can some one help me?? I would like to create a function that, given a bin, which is a list (example below), generates averages for t

Re: can some one help me with my code. thanks

2012-01-20 Thread Chris Angelico
On Sat, Jan 21, 2012 at 1:23 PM, Steven D'Aprano wrote: > On Fri, 20 Jan 2012 16:21:30 -0800, Rick Johnson wrote: >> Your variable names need a bit more thought >> >>> def average(bin): >> >> What is a "bin"? Maybe you shoulc have called this a "lst" eh? > > "Bin" is a standard English world. You

Re: can some one help me with my code. thanks

2012-01-20 Thread Steven D'Aprano
On Fri, 20 Jan 2012 16:21:30 -0800, Rick Johnson wrote: > On Jan 20, 12:49 pm, Tamanna Sultana wrote: >> > If you can give me some lead to fix the code I wrote below that will >> > be great: > > Your variable names need a bit more thought > >> def average(bin): > > What is a "bin"? Maybe you s

Re: can some one help me with my code. thanks

2012-01-20 Thread Jon Clements
On Jan 20, 9:26 pm, Terry Reedy wrote: > On 1/20/2012 2:46 PM, Terry Reedy wrote: > > > > > > > > > > > On 1/20/2012 1:49 PM, Tamanna Sultana wrote: > > >> can some one help me?? > >>> I would like to create a function that, given a bin, which is a list > >>> (example below), generates averages fo

Re: can some one help me with my code. thanks

2012-01-20 Thread Rick Johnson
On Jan 20, 12:49 pm, Tamanna Sultana wrote: > > If you can give me some lead to fix the code I wrote below that will be > > great: Your variable names need a bit more thought > def average(bin): What is a "bin"? Maybe you shoulc have called this a "lst" eh? >     num=[] Why would you call a l

Re: can some one help me with my code. thanks

2012-01-20 Thread Terry Reedy
On 1/20/2012 2:46 PM, Terry Reedy wrote: On 1/20/2012 1:49 PM, Tamanna Sultana wrote: can some one help me?? I would like to create a function that, given a bin, which is a list (example below), generates averages for the numbers separated by a string 'end'. I am expecting to have 4 averages f

Re: can some one help me with my code. thanks

2012-01-20 Thread Tim Chase
On 01/20/12 13:46, Terry Reedy wrote: def average(bin): num=[] total = 0.0 count=0 for number in bin: if number!='end': total += float(number) count+=1 else: num.append(total/count) total = 0.0

Re: can some one help me with my code. thanks

2012-01-20 Thread Terry Reedy
On 1/20/2012 1:49 PM, Tamanna Sultana wrote: can some one help me?? I would like to create a function that, given a bin, which is a list (example below), generates averages for the numbers separated by a string 'end'. I am expecting to have 4 averages from the above bin, since there are 4 sets

Re: can some one help me with my code. thanks

2012-01-20 Thread Vincent Vande Vyvre
Le 20/01/12 19:49, Tamanna Sultana a écrit : can some one help me?? I would like to create a function that, given a bin, which is a list (example below), generates averages for the numbers separated by a string 'end'. I am expecting to have 4 averages from th

can some one help me with my code. thanks

2012-01-20 Thread Tamanna Sultana
can some one help me?? > I would like to create a function that, given a bin, which is a list > (example below), generates averages for the numbers separated by a > string 'end'. I am expecting to have 4 averages from the above bin, > since there are 4 sets of numbers separated by 4 'end' strings

Re: there is a problem, holp someone could help me,thanks

2011-08-24 Thread rantingrick
On Aug 24, 10:59 am, kangshu...@hotmail.com wrote: > Now I have a problem and I holp someone can help me. > > def fib(x): >     if x==0 or x==1: return 1 >     else: return fib(x-1) + fib(x-2) This must be from "How not to program". Was this a personal pick or recommendation? -- http://mail.pyt

Re: there is a problem, holp someone could help me,thanks

2011-08-24 Thread nathan huang
piece of code: > > > def fib(x): > > if x==0 or x==1: return 1 > > else: return fib(x-1) + fib(x-2) > > > Could you explain how it works? > > Thanks for you help. > > > Vince > > When a function calls itself, as fib() does, it's calle

Re: there is a problem, holp someone could help me,thanks

2011-08-24 Thread John Gordon
you explain how it works? > Thanks for you help. > Vince When a function calls itself, as fib() does, it's called recursion. http://en.wikipedia.org/wiki/Recursion_(computer_science) Basically the fib() method keeps calling itself with smaller and smaller arguments until it gets 1 or 0.

there is a problem, holp someone could help me,thanks

2011-08-24 Thread kangshufan
Hi everyone I just study python for a few time. Now I have a problem and I holp someone can help me. There is a piece of code: def fib(x): if x==0 or x==1: return 1 else: return fib(x-1) + fib(x-2) Could you explain how it works? Thanks for you help. Vince -- http://mail.python.org

Re: dummy, underscore and unused local variables[thanks]

2011-06-13 Thread Tim Johnson
* Tim Johnson [110613 07:58]: > > :) I expect to be edified is so many ways, some > of them unexpected. Thanks for all of the responses and for those which might come later. I'm going to stick with the convention of using a variable beginning with `dummy' and stick

Re: Thanks for all responses

2011-06-01 Thread Chris Angelico
On Thu, Jun 2, 2011 at 3:29 AM, Wolfgang Meiners wrote: > Yes it helped a lot. One last question here: When i have free choice and > i dont know Python 2 and Python 3 very good: What would be the > recommended choice? Generally, Python 3. Unless there's something you really need in Python 2 (a mo

Re: Thanks for all responses

2011-06-01 Thread Wolfgang Meiners
Am 31.05.11 23:56, schrieb Chris Angelico: > On Wed, Jun 1, 2011 at 5:52 AM, Wolfgang Meiners > wrote: >> Whenever i 'cross the border' of my program, i have to encode the 'list >> of bytes' to an unicode string or decode the unicode string to a 'list >> of bytes' which is meaningful to the world

Re: Thanks for all responses

2011-05-31 Thread Chris Angelico
On Wed, Jun 1, 2011 at 5:52 AM, Wolfgang Meiners wrote: > Whenever i 'cross the border' of my program, i have to encode the 'list > of bytes' to an unicode string or decode the unicode string to a 'list > of bytes' which is meaningful to the world outside. Most people use "encode" and "decode" th

Thanks for all responses

2011-05-31 Thread Wolfgang Meiners
I think it helped me very much to understand the problem. So if i deal with nonascii strings, i have a 'list of bytes' and need an encoding to interpret this list and transform it to a meaningful unicode string. Decoding does the opposite. Whenever i 'cross the border' of my program, i have to en

HELP. This it is the code of tmb_import.py (to matter of .tmb to blender) I need tmb_exporter.py (to export of blender to .tmb) Thanks.

2011-05-11 Thread Jean Carlos Páez Ramírez
/?lbmj594ru6r4b67 PD: I need script to export in extension .tmb Thanks. -- http://mail.python.org/mailman/listinfo/python-list

HELP. This it is the code of tmb_import.py (to matter of .tmb to blender) I need tmb_exporter.py (to export of blender to .tmb) Thanks.

2011-05-11 Thread Jean Carlos Páez Ramírez
/?lbmj594ru6r4b67 PD: I need script to export in extension .tmb Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: This it is the code of tmb_import.py (to matter of .tmb to blender) I need tmb_exporter.py (to export of blender to .tmb) Thanks.

2011-05-10 Thread Gabriel Genellina
En Tue, 10 May 2011 15:51:03 -0300, Jean Carlos Páez Ramírez escribió: The attached file is script of blender fact in python that .tmb serves to concern archives (secondly attached file), unloadings to blender and uses Por lo que pude entender, tu problema es bastante específico de Blender,

This it is the code of tmb_import.py (to matter of .tmb to blender) I need tmb_exporter.py (to export of blender to .tmb) Thanks.

2011-05-10 Thread Jean Carlos Páez Ramírez
possible to be exported again to .tmb To unload in this Link: http://www.blender.org/ script: http://www.mediafire.com/?clmdgkymsfooddd secondly attached file: http://www.mediafire.com/?lbmj594ru6r4b67 PD: I need script to export in extension .tmb Thanks

Thanks...

2011-03-19 Thread wisecracker
://code.activestate.com/recipes/577612-seven-bit-colored-analogue-bar-graph-generator-dem/?in=lang-python Already it has been voted up to 3... Many thanks for the pointer chap, whoever it was, it looks like people are interested in what I do with Python... ;oD -- 73... Bazza, G0LCU... Team AMIGA... http

THANKS GOD! I GOT $2000 FROM PAYPAL....

2010-08-02 Thread paypal cash
THANKS GOD! I GOT $2000 FROM PAYPAL At http://ukcollegegirls.co.cc I have hidden the PayPal Form link in an image. in that website On Top Side Above search box , click on image and enter your PayPal id And Your name. -- http://mail.python.org/mailman/listinfo/python-list

Re: thanks casevh and Lee

2010-01-14 Thread Dave WB3DWE
Thanks Lee & casevh. I'm going to remove all python 3 versions, update to Ubuntu 9.10 and then do a clean installation of python 3.1.1 via Synaptic. Dave WB3DWE -- http://mail.python.org/mailman/listinfo/python-list

Re: Thanks for the help not given :)

2009-12-30 Thread Aahz
In article , J wrote: >> Jon Clements wrote: >> >>> You have a bear that likes a Python? The one I have just keeps going >>> on about Piglet and eating my honey reserves... > >As for Jon, and Aahz, I'd try the teddy bear approach, but the last >one I knew led me down the dark path to Perl and thu

Re: Thanks for the help not given :)

2009-12-29 Thread Ben Finney
you've found it so consistently helpful http://en.wikipedia.org/wiki/Rubber_duck_debugging>. Thanks for telling us how well it works! -- \ “Our products just aren't engineered for security.” —Brian | `\ Val

Re: Thanks for the help not given :)

2009-12-29 Thread J
own, as opposed to constantly asking someone else for an answer or trying to grep my way through various documents/tutorials/HOW-TOs/books/etc. So it really was meant as a thanks for the people here who do have $CLUE for helping me start getting one of my own. > As for me, my questions are

Re: Thanks for the help not given :)

2009-12-29 Thread Stefan Behnel
Phlip, 29.12.2009 23:58: And I hope you answered your questions here, if no one else did, to avoid dead search trails in the archives. You should have read the posting. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Thanks for the help not given :)

2009-12-29 Thread Phlip
To the OP - adding "... because Python sucks" to your subject lines will increase the quantity of answers - but possibly not the quality. You can also learn a little about good questions by answering others's here. And I hope you answered your questions here, if no one else did, to avoid dead

Re: Thanks for the help not given :)

2009-12-29 Thread Jon Clements
On Dec 29, 9:28 pm, a...@pythoncraft.com (Aahz) wrote: > In article , > > J   wrote: > > >So though I've only posted a small bit here and on python-win, I did > >want to thank y'all for helping me when you have, and even when you > >actually haven't! > > Get a teddybear, that helps, too.  ;-)  (I.e

Re: Thanks for the help not given :)

2009-12-29 Thread Aahz
In article , J wrote: > >So though I've only posted a small bit here and on python-win, I did >want to thank y'all for helping me when you have, and even when you >actually haven't! Get a teddybear, that helps, too. ;-) (I.e. try to explain your problem to a teddybear.) -- Aahz (a...@pythoncr

Thanks for the help not given :)

2009-12-29 Thread J
I just wanted to take a break from writing some code to thank the list for all the help you've NOT given me :-) And I do mean that but I should explain... At least three times today, I've been working on various bits of code, and run into a problem that I just could not figure out. And each

Re: A Special Thanks

2009-04-21 Thread Fuzzyman
On Apr 21, 3:52 pm, a...@pythoncraft.com (Aahz) wrote: > In article , > Nick Craig-Wood   wrote: > > > > >Python also converted me to using unit tests.  If you add unit tests > >into your methodology above then when you re-organize (or refactor to > >use the modern jargon) the code you can be 100%

Re: A Special Thanks

2009-04-21 Thread Aahz
In article , Nick Craig-Wood wrote: > >Python also converted me to using unit tests. If you add unit tests >into your methodology above then when you re-organize (or refactor to >use the modern jargon) the code you can be 100% sure that you didn't >break anything which is a wonderful feeling. N

Re: A Special Thanks

2009-04-21 Thread Nick Craig-Wood
norseman wrote: > I'm one of those that tries to get an outline of the project and then > puts in code as things become clear. Once the basics are working > reasonably I go back and organize the thing for maintainability. Then > finish flushing it out. It is the one stage I dread the most.

A Special Thanks

2009-04-20 Thread norseman
I'm one of those that tries to get an outline of the project and then puts in code as things become clear. Once the basics are working reasonably I go back and organize the thing for maintainability. Then finish flushing it out. It is the one stage I dread the most. Why not organize it up fr

Re: thanks very much indeed for your help is there a better way to do this (python3) newby

2009-02-24 Thread kshitij
On Feb 24, 6:29 am, "Rhodri James" wrote: > On Mon, 23 Feb 2009 23:33:31 -, Gary Wood wrote: > > '''exercise to complete and test this function''' > > import string > > def joinStrings(items): > >     '''Join all the strings in stringList into one string, > >     and return the result. For ex

Re: thanks very much indeed for your help is there a better way to do this (python3) newby

2009-02-23 Thread Rhodri James
On Mon, 23 Feb 2009 23:33:31 -, Gary Wood wrote: '''exercise to complete and test this function''' import string def joinStrings(items): '''Join all the strings in stringList into one string, and return the result. For example: >>> print joinStrings(['very', 'hot', 'day']) '

thanks very much indeed for your help is there a better way to do this (python3) newby

2009-02-23 Thread Gary Wood
'''exercise to complete and test this function''' import string def joinStrings(items): '''Join all the strings in stringList into one string, and return the result. For example: >>> print joinStrings(['very', 'hot', 'day']) 'veryhotday' ''' for i in items: return (''

Memory Leek, critique me. Thanks!!!

2008-08-29 Thread Kevin McKinley
s isn't my excuse to sloppy code, its just my explanation of why i've done the coding the way i have. I hope to keep getting better. Thanks, Kevin -- http://mail.python.org/mailman/listinfo/python-list

Re: Memory Leek, critique me. Thanks!!!

2008-08-29 Thread Peter Otten
Kevin McKinley wrote: > # I posted a few days ago about a memory leak that I think i'm having > # with my first Tkinter program. I've had trouble pinpointing what is > # wrong so i thought i would submit the code and see if anyone would like > # to critique it. Don't create new widgets every

Re: Memory Leek, critique me. Thanks!!!

2008-08-29 Thread cnb
you could prob abstract away a lot of that code, very similar-looking. then it would be easier to find bugs. -- http://mail.python.org/mailman/listinfo/python-list

Memory Leek, critique me. Thanks!!!

2008-08-29 Thread Kevin McKinley
# I posted a few days ago about a memory leak that I think i'm having with my first Tkinter program. # I've had trouble pinpointing what is wrong so i thought i would submit the code and see if anyone would # like to critique it. # I have one more problem that i can't figure out either.

Re: Thanks for help re: %userprofile%

2008-06-11 Thread Tim Roberts
[EMAIL PROTECTED] wrote: >The python community is very helpful to newbies like me. I did however >manage to solve my problem in the meantime. I needed the modification >time of certain files on various computers, but I didn't know the >usernames ahead of time, so I used windows %userprofile% meth

Thanks for help re: %userprofile%

2008-06-10 Thread bsagert
The python community is very helpful to newbies like me. I did however manage to solve my problem in the meantime. I needed the modification time of certain files on various computers, but I didn't know the usernames ahead of time, so I used windows %userprofile% method. Python likes forward slash

  1   2   >