Re: how to couper contenier of a canvas in an outer canvas???

2013-03-14 Thread Chris Angelico
On Fri, Mar 15, 2013 at 12:07 PM, alex23 wrote: > On Mar 15, 8:24 am, Rick Johnson wrote: >> Hmm, well before i can even start solving your problem, i'll need to >> spend some time figuring out what the hell you're problem is. o_O. >> "Maybe" you meant to say this: >> >> > how to [copy] all the [

Re: changes on windows registry doesn�t take effect immediately

2013-03-14 Thread Tim Roberts
iMath wrote: > >changes on windows registry doesn’t take effect immediately Well, that's not exactly the issue. The registry is being changed immediately. The issue is that IE doesn't check for proxy settings continuously. >but the changes on windows registry doesn’t take effect immediately,

Re: changes on windows registry doesn’t take effect immediately

2013-03-14 Thread Steven D'Aprano
On Thu, 14 Mar 2013 22:26:50 -0700, iMath wrote: > changes on windows registry doesn’t take effect immediately > > I am trying to change IE’s proxy settings by the following 2 code > snippets [...] > but the changes on windows registry doesn’t take effect immediately,so > is there some way

changes on windows registry doesn’t take effect immediately

2013-03-14 Thread iMath
changes on windows registry doesn’t take effect immediately I am trying to change IE’s proxy settings by the following 2 code snippets to enable the proxy by this code from winreg import * with OpenKey(HKEY_CURRENT_USER,r"Software\Microsoft\Windows\CurrentVersion\Internet Settings" ,0, K

Re: Yet another attempt at a safe eval() call

2013-03-14 Thread Ken Seehart
On 1/4/2013 5:33 AM, Steven D'Aprano wrote: > On Fri, 04 Jan 2013 07:24:04 -0500, Terry Reedy wrote: > >> On 1/3/2013 6:25 PM, Grant Edwards wrote: >>> I've written a small assembler in Python 2.[67], and it needs to >>> evaluate integer-valued arithmetic expressions in the context of a >>> symbol

Re: IOError:[Errno 27] File too large

2013-03-14 Thread Dave Angel
On 03/14/2013 04:12 PM, ch.valdera...@gmail.com wrote: Taking a wild guess, I think that you are using a Samba share on a Linux server. A file "FILENAME.xml;" was accidentally creating on this share from the Linux filesystem layer, since Linux will allow you to use semicolons in file names.

Re: editing a HTML file

2013-03-14 Thread Dave Angel
On 03/14/2013 02:09 PM, Tracubik wrote: Hi all, I'would like to make a script that automatically change some text in a html file. I need to make some changes in the text of tags My question is: there is a way to just "update/substitute" the text in the html tags or do i have to make a new mo

Re: how to couper contenier of a canvas in an outer canvas???

2013-03-14 Thread alex23
On Mar 15, 8:24 am, Rick Johnson wrote: > Hmm, well before i can even start solving your problem, i'll need to > spend some time figuring out what the hell you're problem is. o_O. > "Maybe" you meant to say this: > > > how to [copy] all the [canvas items] in [one] canvas [into another] canvas? > >

Re: String performance regression from python 3.2 to 3.3

2013-03-14 Thread Terry Reedy
On 3/14/2013 7:14 PM, Terry Reedy wrote: On 3/14/2013 6:48 AM, rusi wrote: On Mar 14, 11:47 am, Chris Angelico wrote: I expect that Python 3.2 will behave comparably to the 2.6 stats, but I don't have 3.2s handy - can someone confirm please? I have 3.2 but not 3.3. Can run it later today if

Re: String performance regression from python 3.2 to 3.3

2013-03-14 Thread Terry Reedy
On 3/14/2013 6:48 AM, rusi wrote: On Mar 14, 11:47 am, Chris Angelico wrote: I expect that Python 3.2 will behave comparably to the 2.6 stats, but I don't have 3.2s handy - can someone confirm please? I have 3.2 but not 3.3. Can run it later today if no one does. But better if someone with b

Re: Getting a list in user defined selection order

2013-03-14 Thread e . tekinalp
Am Donnerstag, 14. März 2013 10:34:31 UTC+1 schrieb e.tek...@gmx.de: > Hello everybody, > > > > I want to select components(vertices) in a particular Order with python. > > So when I create a list the main problem is, that maya is not listing the > verts in the correct selected order as I did.

Re: Generating Filenames from Feeds

2013-03-14 Thread Steven D'Aprano
On Thu, 14 Mar 2013 11:19:18 -0700, Chuck wrote: >> Seriously, if you don't post a minimal code example that shows the >> problem and with a full traceback you are asking strangers to do magic >> tricks for your pleasure. > > I'm asking more for a better way of generating destination filenames, >

Re: Pygame mouse cursor load/unload

2013-03-14 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default

Re: Getting a list in user defined selection order

2013-03-14 Thread Terry Reedy
On 3/14/2013 5:34 AM, e.tekin...@gmx.de wrote: Hello everybody, I want to select components(vertices) in a particular Order with python. So when I create a list the main problem is, that maya is not listing the verts in the correct selected order as I did. Here an example: I have selected fro

Re: Pygame mouse cursor load/unload

2013-03-14 Thread Ian Kelly
On Thu, Mar 14, 2013 at 4:16 PM, Alex Gardner wrote: > It's all working now with one exception. I just want to arrange the paddle > to the right side. I managed to do just that, but it won't move freely > vertically. I am not fully aware of the arguments of pygame.Rect(). I recommend you rea

Re: how to couper contenier of a canvas in an outer canvas???

2013-03-14 Thread Rick Johnson
On Thursday, March 14, 2013 7:16:05 AM UTC-5, olsr@gmail.com wrote: > how to couper all the obejcts in a canvas in an auther canvas? Hmm, well before i can even start solving your problem, i'll need to spend some time figuring out what the hell you're problem is. o_O. "Maybe" you meant to sa

Re: 2-D drawing/map with python

2013-03-14 Thread Matteo Boscolo
Il 12/03/2013 16:58, Huseyin Emre Guner ha scritto: Hello, I am newbie in Python. I would like to make a project using python. The main ideo of this project is that a user enters the x,y values to the Gui(PyQt or Gtk) and then a 2-D map is plotted due to the x,y values. First, I use Pygame comm

Re: Pygame mouse cursor load/unload

2013-03-14 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default

Re: IOError:[Errno 27] File too large

2013-03-14 Thread ch . valderanis
> Taking a wild guess, I think that you are using a Samba share on a Linux > > server. A file "FILENAME.xml;" was accidentally creating on this share > > from the Linux filesystem layer, since Linux will allow you to use > > semicolons in file names. But samba enforces the same restrictions

Re: Generating Filenames from Feeds

2013-03-14 Thread Chuck
> Seriously, if you don't post a minimal code example that shows the problem > and with a full traceback you are asking strangers to do magic tricks for > your pleasure. I'm asking more for a better way of generating destination filenames, not so much debugging questions. I only put my attem

Re: editing a HTML file

2013-03-14 Thread Jean-Michel Pichavant
- Original Message - > Hi all, > > I'would like to make a script that automatically change some text in > a > html file. > > I need to make some changes in the text of tags > > My question is: there is a way to just "update/substitute" the text > in > the html tags or do i have to make

Re: TypeError: 'float' object is not iterable

2013-03-14 Thread John Ladasky
On Thursday, March 14, 2013 3:12:11 AM UTC-7, Ana Dionísio wrote: > for b in range (len(t_amb)): > a=8 > for d in t_amb[b]: > a=a+1 > sheet.write(a,b+1,d) > > The error appear in "for d in t_amb[b]:" and I don't understand why. Can you > help me? It looks to me like you

editing a HTML file

2013-03-14 Thread Tracubik
Hi all, I'would like to make a script that automatically change some text in a html file. I need to make some changes in the text of tags My question is: there is a way to just "update/substitute" the text in the html tags or do i have to make a new modified copy of the html file? To be

Re: Generating Filenames from Feeds

2013-03-14 Thread MRAB
On 14/03/2013 15:38, Chuck wrote: HI all, I am trying to write a podcast catcher for fun, and I am trying to come up with a way to generate a destination filename to use in the function urlretrieve(url, destination). I would like the destination filename to end in a .mp3 extension. My first a

Re: Generating Filenames from Feeds

2013-03-14 Thread Joel Goldstick
On Thu, Mar 14, 2013 at 11:38 AM, Chuck wrote: > HI all, > > I am trying to write a podcast catcher for fun, and I am trying to come up > with a way to generate a destination filename to use in the function > urlretrieve(url, destination). I would like the destination filename to > end in a .mp

Generating Filenames from Feeds

2013-03-14 Thread Chuck
HI all, I am trying to write a podcast catcher for fun, and I am trying to come up with a way to generate a destination filename to use in the function urlretrieve(url, destination). I would like the destination filename to end in a .mp3 extension. My first attempts were parsing out the a

Re: Pygame mouse cursor load/unload

2013-03-14 Thread Ian Kelly
On Tue, Mar 12, 2013 at 5:33 PM, Alex Gardner wrote: > Sorry but im back to square one. My paddle isn't showing up at all! > http://pastebin.com/PB5L8Th0 paddle_rect.center = pygame.mouse.get_pos() This updates the paddle position. screen.blit(beeper, paddle_rect) This draws the padd

Re: What's the easiest Python datagrid GUI (preferably with easy database hooks as well)?

2013-03-14 Thread Wolfgang Keller
> I want to write a fairly trivial database driven application, it will > basically present a few columns from a database, allow the user to add > and/or edit rows, recalculate the values in one column and write the > data back to the database. > > I want to show the data and allow editing of the

how to couper contenier of a canvas in an outer canvas???

2013-03-14 Thread olsr . kamal
how to couper all the obejcts in a canvas in an auther canvas? -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-14 Thread 88888 Dihedral
Wolfgang Maier於 2013年3月13日星期三UTC+8下午6時43分38秒寫道: > Steven D'Aprano pearwood.info> writes: > > > > > > > > On Tue, 12 Mar 2013 17:03:08 +, Norah Jones wrote: > > > > > > > For example: > > > > a=[-15,-30,-10,1,3,5] > > > > > > > > I want to find a negative and a positive minimum. >

Re: TypeError: 'float' object is not iterable

2013-03-14 Thread Chris Rebert
On Thu, Mar 14, 2013 at 3:12 AM, Ana Dionísio wrote: > Hi!! > > I keep having this error and I don't know why: TypeError: 'float' object is > not iterable. In general, in the future, always include the full exception Traceback, not just the final error message. The extra details this provides ca

Re: String performance regression from python 3.2 to 3.3

2013-03-14 Thread rusi
On Mar 14, 11:47 am, Chris Angelico wrote: > I expect that Python 3.2 will behave comparably to the 2.6 stats, but > I don't have 3.2s handy - can someone confirm please? I have 3.2 but not 3.3. Can run it later today if no one does. But better if someone with both on the same machine do the com

Re: TypeError: 'float' object is not iterable

2013-03-14 Thread Joel Goldstick
On Thu, Mar 14, 2013 at 6:34 AM, Ana Dionísio wrote: > But isn't t_amb a list? I thought that the first piece of script would > create a list. > t_amb might be a list, but t_amb[b] is apparently a number of type float that is in that list > > I'm trying to create a list named t_amb with some valu

Re: TypeError: 'float' object is not iterable

2013-03-14 Thread MRAB
On 14/03/2013 10:12, Ana Dionísio wrote: Hi!! I keep having this error and I don't know why: TypeError: 'float' object is not iterable. I have this piece of code, that imports to python some data from Excel and saves it in a list: " t_amb = [] for i in range(sh2.nrows): t_amb.append(sh

Re: TypeError: 'float' object is not iterable

2013-03-14 Thread Ana Dionísio
But isn't t_amb a list? I thought that the first piece of script would create a list. I'm trying to create a list named t_amb with some values that are in a Excel sheet. And then I need to export that list to another Excel sheet -- http://mail.python.org/mailman/listinfo/python-list

Re: TypeError: 'float' object is not iterable

2013-03-14 Thread Joel Goldstick
On Thu, Mar 14, 2013 at 6:12 AM, Ana Dionísio wrote: > Hi!! > > I keep having this error and I don't know why: TypeError: 'float' object > is not iterable. > > I have this piece of code, that imports to python some data from Excel and > saves it in a list: > > " > t_amb = [] > > for i in range(sh2

TypeError: 'float' object is not iterable

2013-03-14 Thread Ana Dionísio
Hi!! I keep having this error and I don't know why: TypeError: 'float' object is not iterable. I have this piece of code, that imports to python some data from Excel and saves it in a list: " t_amb = [] for i in range(sh2.nrows): t_amb.append(sh2.cell(i,2).value) print t_amb " Here is e

Re: Sphinx highlighting

2013-03-14 Thread Jean-Michel Pichavant
- Original Message - > What controls the yellow highlight bar that Sphinx sometimes puts in > the > documentation? > E.g.: > .. py:function:: basic_parseStrTest () > generates bold-face text, where > .. py:function:: basicParseStrTest () > generates text with a yellow bar highlight. > > I

Re: Getting a list in user defined selection order

2013-03-14 Thread e . tekinalp
Ah sorry this is the correct snippet cmds.selectPref(tso = 1) vtx = cmds.ls(os = 1, flatten = 1) print vtx the other one wouldn't make any sense. :) -- http://mail.python.org/mailman/listinfo/python-list

Getting a list in user defined selection order

2013-03-14 Thread e . tekinalp
Hello everybody, I want to select components(vertices) in a particular Order with python. So when I create a list the main problem is, that maya is not listing the verts in the correct selected order as I did. Here an example: I have selected from a polySphere the following vtx [sphere.vtx400

Re: timeit module in IDLE

2013-03-14 Thread Chris Angelico
On Thu, Mar 14, 2013 at 6:21 PM, Terry Reedy wrote: > I believe everything in the doc should be in __all__. Open an issue on the > tracker and add terry.reedy as nosy. > Note on the issue that timeit.default_timer is not callable, contrary to the > doc (which should also be fixed). Thanks! Issue

Re: timeit module in IDLE

2013-03-14 Thread Terry Reedy
On 3/14/2013 2:58 AM, Chris Angelico wrote: While putting together some timing stats for the latest Python 3.3 string representation thread, I ran into an oddity in how IDLE handles timeit. The normal way to profile Python code, according to stuff I've found on the internet, is timeit.timeit: i

timeit module in IDLE

2013-03-14 Thread Chris Angelico
While putting together some timing stats for the latest Python 3.3 string representation thread, I ran into an oddity in how IDLE handles timeit. The normal way to profile Python code, according to stuff I've found on the internet, is timeit.timeit: >>> import timeit >>> timeit.timeit("s=s[:-1]+u'