SimpleHTTPServer, external CSS, and Google Chrome

2010-09-17 Thread Justin Ezequiel
I am running python -m SimpleHTTPServer 80 on Windows XP Pro SP 3 (Python 2.5.4) browsing http://localhost/ using IE8 and FireFox 3.6, I get blue text on red background on Google Chrome 6.0 however, I get blue text on white background placing index.htm and styles.css (see below) under IIS, I get

Re: data structure suggestion (native python datatypes or sqlite; compound select)

2010-09-17 Thread Vlastimil Brom
2010/9/17 MRAB pyt...@mrabarnett.plus.com: On 17/09/2010 00:56, Vlastimil Brom wrote: 2010/9/17 MRABpyt...@mrabarnett.plus.com: On 16/09/2010 23:11, Vlastimil Brom wrote: ... I put together some code, which works as expected, but I suspect somehow, that there must be better ways of doing

Re: Embedded Systems development using Python

2010-09-17 Thread VGNU Linux
Hi All, Appreciate your response. Now I am going to use Telit Module GE865-QUAD with support for GPS and GPRS capabilities. It also has built-in python interpreter for developing application for the module. But still I have no idea which microprocessor/microcontroller to use. Can anyone help me

Re: program organization question for web development with python

2010-09-17 Thread Bruno Desthuilliers
Hans a écrit : (snip) Maybe I did not make my question clear. I never tried python web programing before, so I want to start from CGI. You can indeed learn quite a few things doing raw CGI - the most important one being why frameworks are a good idea !-) I read something about web

Re: Very stupid question about a % symbol

2010-09-17 Thread Steven D'Aprano
On Thu, 16 Sep 2010 11:25:06 -0400, J wrote: OK, this is a very stupid question about a very simple topic, but Google is failing me this morning... [...] Others have already answered your question, but for future reference, many people won't bother to read posts with a meaningless subject

Re: Very stupid question about a % symbol

2010-09-17 Thread Xavier Ho
On 17 September 2010 12:48, Terry Reedy tjre...@udel.edu wrote: Doubling an escape char, whatever it is, is a common convention: print(Print a {{}} format string line this: {{{}}}.format(2)) Print a {} format string line this: {2} Wow. That's convoluted. Took me a minute to process.

Re: compile Py2.6 on SL

2010-09-17 Thread Michel Claveau - MVP
Hello! SL (SilverLight) is a library/techno who give functions. You cannot compile Python on SL (SilverLight). @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: compile Py2.6 on SL

2010-09-17 Thread Jason Swails
On Fri, Sep 17, 2010 at 7:21 AM, Michel Claveau - MVP enleverlesx_xx...@xmclavxeaux.com.invalid wrote: Hello! SL (SilverLight) is a library/techno who give functions. You cannot compile Python on SL (SilverLight). I think the original thread meant Snow Leopard (the latest Mac OS X)

MySQL Query Problem

2010-09-17 Thread Victor Subervi
Hi; I have this code: cursor.execute('insert into Passengers values (Null, %s, %s, %s, %s, %s, %s, %s, %s, no, n/a)', (curr_flight, curr_customer, name, curr_sex, curr_weight, price, curr_rt, curr_confirmation)) Now, when I print it out, add quotes where necessary and enter it in at a

Re: MySQL Query Problem

2010-09-17 Thread Victor Subervi
Here's some more data: print 'insert into Passengers values (Null, %s, %s, %s, %s, %s, %s, %s, %s, no, n/a)' % (curr_flight, curr_customer, name, curr_sex, curr_weight, price, curr_rt, curr_confirmation) cursor.execute('insert into Passengers values (Null, %s, %s, %s, %s, %s, %s,

Re: Too many threads

2010-09-17 Thread mark . pelletier
On Sep 17, 1:38 am, Ned Deily n...@acm.org wrote: In article 20100917052259.ga28...@cskk.homeip.net,  Cameron Simpson c...@zip.com.au wrote: On 16Sep2010 22:14, Ned Deily n...@acm.org wrote: | In article 20100917043826.ga21...@cskk.homeip.net, |  Cameron Simpson c...@zip.com.au wrote:

Re: WMI in Python

2010-09-17 Thread alex23
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: Because machine-generated code has no place in a source file to be maintained by a human. Endlessly repeating your bigotry doesn't make it any more true. -- http://mail.python.org/mailman/listinfo/python-list

Compiling SWIG Extensions With VC2008 and VC2010 Both Installed

2010-09-17 Thread ElMariachi
I am attempting to compile a SWIG extension library for QuantLib (www.quantlib.org) on Windows 7 running Python 2.6. 2.6 needs VC2008 to compile extensions yet distutils cannot find this version, is there a way I can specify that this version be used? Currently, when I attempt a build, I get a

Re: MySQL Query Problem

2010-09-17 Thread Victor Subervi
I rebooted MySQL and it now works fine ;) On Fri, Sep 17, 2010 at 9:26 AM, Victor Subervi victorsube...@gmail.comwrote: Here's some more data: print 'insert into Passengers values (Null, %s, %s, %s, %s, %s, %s, %s, %s, no, n/a)' % (curr_flight, curr_customer, name, curr_sex,

Re: compile Py2.6 on SL

2010-09-17 Thread Aahz
In article 4c934f3c$0$5417$ba4ac...@reader.news.orange.fr, Michel Claveau - MVP enleverlesx_xx...@xmclavxeaux.com.invalid wrote: SL (SilverLight) is a library/techno who give functions. You cannot compile Python on SL (SilverLight). SL (Snow Leopard) is a popular platform for Python development.

Re: MySQL Query Problem

2010-09-17 Thread MRAB
On 17/09/2010 15:59, Victor Subervi wrote: I rebooted MySQL and it now works fine ;) I recommend that you always list the column names explicitly to be on the safe side: cursor.execute('insert into Passengers (flights_id, customer_id, name, sex , weight, price, round_trip, confirmation,

self-closing window with wxPython

2010-09-17 Thread Jabba Laci
Hi, I'd like to create a simple alarm application that shows an alarm window. The application should shut down automatically after 5 seconds. The problem is the following: * If I keep the mouse outside of the window, the application keeps running. Somehow self.Destroy() is not taken into account.

Configuring logging for Web applications

2010-09-17 Thread Vinay Sajip
For those of you writing web applications and having multiple web applications in the same Python process, if you are interesting in using Python logging to write to web-application-specific logs, you may be interested in this link:

Re: Debugger - fails to continue with breakpoint set

2010-09-17 Thread Lie Ryan
On 09/16/10 03:38, Ed Greenberg wrote: I'm pretty new to Python, but I am really enjoying it as an alternative to Perl and PHP. When I run the debugger [import pdb; pdb.set_trace()] and then do next and step, and evaluate variables, etc, when I hit 'c' for continue, we go to the end, just

Re: The trouble with dynamic attributes.

2010-09-17 Thread Lie Ryan
On 09/17/10 07:46, John Nagle wrote: There's a tendency to use dynamic attributes in Python when trying to encapsulate objects from other systems. It almost works. But it's usually a headache in the end, and should be discouraged. Here's why. I personally love them, they makes XML files

Re: it doesn't work ;) [class recursive function]

2010-09-17 Thread MRAB
On 17/09/2010 17:55, Ethan Furman wrote: MRAB wrote: On 16/09/2010 00:23, Ethan Furman wrote: I need some fresh eyes, or better brains, or both! 'next_item' is a generator, but it's just calling itself and discarding the result. I think it should be yielding the results to its caller. That

Re: it doesn't work ;) [class recursive function]

2010-09-17 Thread Ethan Furman
MRAB wrote: On 17/09/2010 17:55, Ethan Furman wrote: MRAB wrote: On 16/09/2010 00:23, Ethan Furman wrote: PS My apologies if this shows up twice, I haven't seen my other post yet and it's been 27 hours. That's probably because you sent it directly to me. That would explain it -- like I

Re: The trouble with dynamic attributes.

2010-09-17 Thread Ethan Furman
Lie Ryan wrote: [snip] And even dict-syntax is not perfect for accessing XML file, e.g.: a bfoo/b bbar/b /a should a['b'] be 'foo' or 'bar'? Attribute style access would also fail in this instance -- how is this worked-around? -- ~Ethan~ --

re.sub: escaping capture group followed by numeric(s)

2010-09-17 Thread Jon Clements
Hi All, (I reckon this is probably a question for MRAB and is not really Python specific, but anyhow...) Absolutely basic example: re.sub(r'(\d+)', r'\1', 'string1') I've been searching around and I'm sure it'll be obvious when it's pointed out, but how do I use the above to replace 1 with 11?

recording input/outputs, attributes and parameters of modules

2010-09-17 Thread Jojo Mwe
i would like to track all inputs/output to modules/functions -if a module retrieved and used files and run some analysis on them and produced other files in return, i would like to take not of this. i.e what i want is to record all input sand outputs to a module. and also to record all

Re: SimpleHTTPServer, external CSS, and Google Chrome

2010-09-17 Thread MrJean1
FWIW, There is a blue text on a red background in all 4 browsers Google Chrome 6.0.472.59, Safari 5.0.1 (7533.17.8), FireFox 3.6.9 and IE 6.0.2900.5512 with Python 2.7 serving that page on my Windows XP SP 3 machine. /Jean On Sep 16, 11:59 pm, Justin Ezequiel justin.mailingli...@gmail.com

Re: re.sub: escaping capture group followed by numeric(s)

2010-09-17 Thread MRAB
On 17/09/2010 19:21, Jon Clements wrote: Hi All, (I reckon this is probably a question for MRAB and is not really Python specific, but anyhow...) Absolutely basic example: re.sub(r'(\d+)', r'\1', 'string1') I've been searching around and I'm sure it'll be obvious when it's pointed out, but

Re: re.sub: escaping capture group followed by numeric(s)

2010-09-17 Thread Peter Otten
Jon Clements wrote: (I reckon this is probably a question for MRAB and is not really Python specific, but anyhow...) Absolutely basic example: re.sub(r'(\d+)', r'\1', 'string1') I've been searching around and I'm sure it'll be obvious when it's pointed out, but how do I use the above to

Re: re.sub: escaping capture group followed by numeric(s)

2010-09-17 Thread Jon Clements
On 17 Sep, 19:59, Peter Otten __pete...@web.de wrote: Jon Clements wrote: (I reckon this is probably a question for MRAB and is not really Python specific, but anyhow...) Absolutely basic example: re.sub(r'(\d+)', r'\1', 'string1') I've been searching around and I'm sure it'll be

Re: self-closing window with wxPython

2010-09-17 Thread Philip Semanchuk
On Sep 17, 2010, at 12:05 PM, Jabba Laci wrote: Hi, I'd like to create a simple alarm application that shows an alarm window. The application should shut down automatically after 5 seconds. The problem is the following: * If I keep the mouse outside of the window, the application keeps

parsing compact index files (*.cdx)

2010-09-17 Thread Ethan Furman
Greetings! Does anybody have any pointers, tips, web-pages, already written routines, etc, on parsing *.cdx files? I have found the pages on MS's sight for Foxpro, but they neglect to describe the compaction algorithm used, and my Google-fu has failed to find any sites with that information.

Re: parsing compact index files (*.cdx)

2010-09-17 Thread MRAB
On 17/09/2010 20:16, Ethan Furman wrote: Greetings! Does anybody have any pointers, tips, web-pages, already written routines, etc, on parsing *.cdx files? I have found the pages on MS's sight for Foxpro, but they neglect to describe the compaction algorithm used, and my Google-fu has failed to

Re: parsing compact index files (*.cdx)

2010-09-17 Thread Ethan Furman
Ethan Furman wrote: Greetings! Does anybody have any pointers, tips, web-pages, already written routines, etc, on parsing *.cdx files? I have found the pages on MS's sight for Foxpro, but they neglect to describe the compaction algorithm used, and my Google-fu has failed to find any sites

Re: Too much code - slicing

2010-09-17 Thread Andreas Waldenburger
On Thu, 16 Sep 2010 16:20:33 -0400 AK andrei@gmail.com wrote: I also like this construct that works, I think, since 2.6: code = dir[int(num):] if side == 'l' else dir[:-1*int(num)] I wonder when this construct will finally start to look good. /W -- INVALID? DE! --

Re: parsing compact index files (*.cdx)

2010-09-17 Thread Ethan Furman
MRAB wrote: On 17/09/2010 20:16, Ethan Furman wrote: Greetings! Does anybody have any pointers, tips, web-pages, already written routines, etc, on parsing *.cdx files? I have found the pages on MS's sight for Foxpro, but they neglect to describe the compaction algorithm used, and my Google-fu

How to make a web services in python ???

2010-09-17 Thread Ariel
Hi everybody, I need some help to find documentation about how to implements web services in python, could you help me please ??? Regards Thanks in advance Ariel -- http://mail.python.org/mailman/listinfo/python-list

Re: self-closing window with wxPython

2010-09-17 Thread Jabba Laci
Hi, 2) I saw this in the documentation for Destroy() -- Frames and dialogs are not destroyed immediately when this function is called -- they are added to a list of windows to be deleted on idle time, when all the window's events have been processed. That might be consistent with what

Re: The trouble with dynamic attributes.

2010-09-17 Thread Cameron Simpson
On 17Sep2010 10:53, Ethan Furman et...@stoneleaf.us wrote: | Lie Ryan wrote: | [snip] | And even dict-syntax is not perfect for accessing XML file, e.g.: | | a | bfoo/b | bbar/b | /a | | should a['b'] be 'foo' or 'bar'? | | Attribute style access would also fail in this instance -- how

Re: self-closing window with wxPython

2010-09-17 Thread Ian Kelly
On Fri, Sep 17, 2010 at 3:00 PM, Jabba Laci jabba.l...@gmail.com wrote: Hi, 2) I saw this in the documentation for Destroy() -- Frames and dialogs are not destroyed immediately when this function is called -- they are added to a list of windows to be deleted on idle time, when all the

Re: How to make a web services in python ???

2010-09-17 Thread Hidura
What kind of web-service you have in mind 2010/9/17, Ariel isaacr...@gmail.com: Hi everybody, I need some help to find documentation about how to implements web services in python, could you help me please ??? Regards Thanks in advance Ariel -- Enviado desde mi dispositivo móvil

Re: SendKeys and Python 2.7

2010-09-17 Thread Jakson A. Aquino
On Mon, Sep 13, 2010 at 4:02 PM, Michel Claveau - MVP enleverlesx_xx...@xmclavxeaux.com.invalid wrote: Sorry for time, but I am very busy... With Python + Pywin32, you can force the activation of a window (before send some keys...) See:  win32gui.SetForegroundWindow(w_handle) or  

[OS X 10.5] hitting TAB inserts ./ in interactive mode ?

2010-09-17 Thread Nik Krumm
Hi all, Thanks for your help. I installed python 2.7 on my Mac OS X 10.5.8 machine: nik$ python Python 2.7 (r27:82508, Jul 3 2010, 21:12:11) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type help, copyright, credits or license for more information. and now, when I hit TAB or paste in a code

Re: Too much code - slicing

2010-09-17 Thread Bas
On Sep 17, 10:01 pm, Andreas Waldenburger use...@geekmail.invalid wrote: On Thu, 16 Sep 2010 16:20:33 -0400 AK andrei@gmail.com wrote: I also like this construct that works, I think, since 2.6: code = dir[int(num):] if side == 'l' else dir[:-1*int(num)] I wonder when this construct

Porting PEP 3148 to 2.x series

2010-09-17 Thread k3xji
Hi, Is there any work on porting PEP 3148 back to 2.x series. That is a wonderful PEP, any many long-running applications are really in need of some stable library for handling stuff in async way just as proposed in this PEP. Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: Porting PEP 3148 to 2.x series

2010-09-17 Thread Ben Finney
k3xji sum...@gmail.com writes: Is there any work on porting PEP 3148 back to 2.x series. That is a wonderful PEP, any many long-running applications are really in need of some stable library for handling stuff in async way just as proposed in this PEP. Better would be to port those

Re: Too much code - slicing

2010-09-17 Thread Steven D'Aprano
On Fri, 17 Sep 2010 16:01:54 -0400, Andreas Waldenburger wrote: On Thu, 16 Sep 2010 16:20:33 -0400 AK andrei@gmail.com wrote: I also like this construct that works, I think, since 2.6: code = dir[int(num):] if side == 'l' else dir[:-1*int(num)] I wonder when this construct will

Why IterableUserDict?

2010-09-17 Thread Steven D'Aprano
I was writing some tests for a mapping class I have made, and I decided to run those same tests over dict and UserDict. The built-in dict passed all the tests, but UserDict failed one: class SimpleMappingTest(unittest.TestCase): type2test = UserDict.UserDict def test_iter(self):

Re: [OS X 10.5] hitting TAB inserts ./ in interactive mode ?

2010-09-17 Thread Ned Deily
In article 431250b2-391e-4a1f-ba72-08afb7159...@l25g2000prn.googlegroups.com, Nik Krumm nkr...@gmail.com wrote: Thanks for your help. I installed python 2.7 on my Mac OS X 10.5.8 machine: nik$ python Python 2.7 (r27:82508, Jul 3 2010, 21:12:11) [GCC 4.0.1 (Apple Inc. build 5493)] on

Re: WMI in Python

2010-09-17 Thread Lawrence D'Oliveiro
In message 210f30c4-22da-405f-ad4b-cc46841ca...@p22g2000pre.googlegroups.com, alex23 wrote: Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: Because machine-generated code has no place in a source file to be maintained by a human. Endlessly repeating your bigotry doesn't make

Re: socket.error: [Errno 98] Address already in use

2010-09-17 Thread Lawrence D'Oliveiro
In message 2f830099-4264-47bc-98ee-31950412a...@q21g2000prm.googlegroups.com, cerr wrote: I get a socket error [Errno 98] Address already in use when i try to open a socket that got closed before with close(). How come close() doesn't close the socket properly? The usual case this happens

[issue1653416] OS X print f, Hello produces no error: normal?

2010-09-17 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This is not an issue for 3.x because the io library doesn't use stdio. I'd say this is unlikely to get fixed in 2.7 as every call to stdio functions needs to be checked and updated. -- versions: -Python 3.1, Python 3.2

[issue9786] Native TLS support for pthreads

2010-09-17 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Ok, here is a patch. key creation returns -1 on error, and the caller can detect this and raise a fatal error. -- Added file: http://bugs.python.org/file18906/pthread_tls.patch ___

[issue1653416] OS X print f, Hello produces no error on read-only f: normal?

2010-09-17 Thread Eric O. LEBIGOT
Changes by Eric O. LEBIGOT eric.lebi...@normalesup.org: -- title: OS X print f, Hello produces no error: normal? - OS X print f, Hello produces no error on read-only f: normal? ___ Python tracker rep...@bugs.python.org

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: For some reason your file os.pyc is corrupted: I loaded it with a working python2.7: import marshal, dis pyc = open('bados.pyc', 'rb').read() code = marshal.loads(pyc[8:]) dis.dis(code) And it appears that all the jump instructions are

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems

2010-09-17 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Actually, looking at the man page, this seems to be normal: --- In order to change the owner or group, you must own the file and have the CHOWN privilege (see setprivgrp(1M)). [...] Note that a given user's or group's ability to use

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-09-17 Thread Owen
New submission from Owen j2.n...@gmail.com: OS: Windows 2003STD x64 en I have try to call python method from c++ dll by WINFUNCTYPE. But the 4th parameter is always None or 0 if the type is int or void* (float is works fine). Following is the part of source code:

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-09-17 Thread Owen
Changes by Owen j2.n...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9884 ___ ___ Python-bugs-list mailing list

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-17 Thread Tom Browder
Tom Browder tom.brow...@gmail.com added the comment: I'm using gcc-4.5.1. I'll try an older version: gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9880

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-17 Thread Tom Browder
Tom Browder tom.brow...@gmail.com added the comment: The build succeeded with the older version of gcc. I either have a mis-compiled gcc-4.5.1 (but the same version on another host worked okay) or gcc has a very subtle bug. I think this issue can be considered closed; however, it may be

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-17 Thread Tom Browder
Tom Browder tom.brow...@gmail.com added the comment: Correction on the bad gcc compiler: the actual version was a non-released version off the gcc-4.6 branch: gcc version 4.6.0 20100908 (experimental) (GCC). I'm filing a bug with gcc. Sorry for the wasted time. --

[issue9872] `a.b.my_function is not b.my_function` when `a` and `b` are both on `sys.path`

2010-09-17 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Benjamin, This behavior is involved in a problem I have with Django. When using Django, you have apps that live inside a project: my_project\ __init__.py my_app\ __init__.py views.py So if you have a view function in `views.py`,

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: You're welcome. Please join a link to the gcc bug when you have one. -- resolution: - invalid status: open - pending ___ Python tracker rep...@bugs.python.org

[issue9872] `a.b.my_function is not b.my_function` when `a` and `b` are both on `sys.path`

2010-09-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I suggest to report this to the Django team. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9872 ___

[issue9885] Function Round does not work properly in some conditions

2010-09-17 Thread paontis
New submission from paontis paor...@gmail.com: For example round(10., 1) returns 10.301 and round(1., 2)returns 1.3301 I exect they return 10.3 and 1.33 rispectively NOTE: other combinations work fine eg. round(10., 2) or round(1., 3) See IDLE commands

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-17 Thread Tom Browder
Tom Browder tom.brow...@gmail.com added the comment: Here is a link to the thread I started on the gcc-help mailing list concerning the issue: http://gcc.gnu.org/ml/gcc-help/2010-09/msg00170.html If I don't get a successful build with the current gcc trunk, I imagine this thread will

[issue9886] Make operator.itemgetter/attrgetter/methodcaller easier to discover

2010-09-17 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: The observation has been made that there are some idioms related to key functions passed to various methods and functions that aren't particularly easy to discover. One suggestion is to create a key function glossary entry that provides

[issue9886] Make operator.itemgetter/attrgetter/methodcaller easier to discover

2010-09-17 Thread Daniel Stutzbach
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com: -- nosy: +stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9886 ___ ___

[issue1690840] xmlrpclib methods submit call on __str__, __repr__

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: This has been fixed in py3k but not 2.7. Is it worth backporting the change? -- nosy: +BreamoreBoy resolution: - fixed stage: - committed/rejected status: open - pending type: - behavior versions: +Python 2.7, Python 3.1,

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2010-09-17 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 2.7, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1692335 ___

[issue1693546] email.Message set_param rfc2231 encoding incorrect

2010-09-17 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1693546 ___

[issue9887] distutil's build_scripts doesn't read utf-8 in all locales

2010-09-17 Thread Hagen Fürstenau
New submission from Hagen Fürstenau hfuerste...@gmx.net: LANG=C python3 setup.py build_scripts chokes on UTF-8 encoded scripts. The problem is that copy_scripts uses open without specifying an encoding. This issue may be related to #9561. -- assignee: tarek components: Distutils

[issue1699594] shlex fails to parse strings correctly

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Georg: seems like your r55549 and r0 fixed this, am I correct? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1699594

[issue1703592] have a way to ignore nonexisting locales in locale.setlocale

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is this still an issue on Debian and Ubuntu? -- nosy: +BreamoreBoy, lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1703592 ___

[issue9873] Allow bytes in some APIs that use string literals internally

2010-09-17 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: From the python-dev thread (http://mail.python.org/pipermail/python-dev/2010-September/103780.html): == So the domain of any polymorphic text manipulation functions we define would be: - Unicode strings - byte sequences where the

[issue1704474] optparse tests fail under Jython

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: How do we find out which versions of optparse and test_optparse jython is currently using? -- nosy: +BreamoreBoy versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue1705393] Select() failure (race condition)

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I've changed things in reply to msg85311, feel free to alter things again if you disagree. -- assignee: - d...@python components: +Documentation -Extension Modules, Library (Lib) nosy: +BreamoreBoy, d...@python versions: +Python

[issue1705520] pyunit should allow __unittest in locals to trim stackframes

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: is this still relevant? -- nosy: +BreamoreBoy versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1705520 ___

[issue1705520] pyunit should allow __unittest in locals to trim stackframes

2010-09-17 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: It is relevant and would be *possible* to implement. I'm not 100% convinced it is a good *enough* idea to make it worth adding though. I'd like to leave the issue open for the moment in case other people want to comment. --

[issue1703592] have a way to ignore nonexisting locales in locale.setlocale

2010-09-17 Thread Colin Watson
Colin Watson cjwat...@users.sourceforge.net added the comment: Yes, the same symptoms are still present. I'd argue that it generally isn't an error in practice for applications, and thus the net effect of this exception is negative; it's extraordinarily rare for a crash to be preferable to

[issue9885] Function Round does not work properly in some conditions

2010-09-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Please read http://docs.python.org/tutorial/floatingpoint.html Although your case isn't directly covered there, the root cause is the same. Floating point can't exactly represent 10.3. Note that in Python2.7 and 3.x, the repr will

[issue9885] Function Round does not work properly in some conditions

2010-09-17 Thread paontis
paontis paon...@gmail.com added the comment: ok thx very much for the explaination -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9885 ___ ___

[issue6627] threading.local() does not work with C-created threads

2010-09-17 Thread Swapnil Talekar
Swapnil Talekar swapnil...@gmail.com added the comment: As far as I know, the thread creation done in the file is not correct. While creating threads in C extension, there are certain rules to follow. Firstly, Python should be made thread-aware if it is not already i.e. call

[issue9877] Expose sysconfig._get_makefile_filename() in public API

2010-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9877 ___ ___ Python-bugs-list

[issue6627] threading.local() does not work with C-created threads

2010-09-17 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Swapnil's analysis looks correct to me - there are certain rules you have to follow before calling back into the Python interpreter core. If you don't follow them, the behaviour you will get is completely undefined. If the problem still

[issue6627] threading.local() does not work with C-created threads

2010-09-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: One more thing: in the sample code, the thread initializes no PyThreadState. So the ctypes callback creates a temporary PyThreadState just for the duration of the call. This explains the difference between threading.local and

[issue9882] abspath from directory

2010-09-17 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: -Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9882 ___ ___

[issue1706323] Updated ASTVisitor Classes

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is this still relevant given the addition of the ast module in r64064? -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue1708652] Exact matching

2010-09-17 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1708652 ___ ___

[issue1709112] test_1686475 of test_os pagefile.sys

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Brian/Tim the attached patches have not been applied, what do you make of this one? -- components: +Extension Modules -Windows nosy: +BreamoreBoy, brian.curtin, tim.golden ___ Python tracker

[issue1708652] Exact matching

2010-09-17 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: Does this request still stand? If so then I'll add it to the new regex module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1708652

[issue1710703] zipfile.ZipFile behavior inconsistent.

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I don't think the latest patch has been committed, could someone wave their magic wand please :) -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

[issue2236] Distutils' mkpath implementation ignoring the mode parameter

2010-09-17 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed for py3k in r84861, release31-maint in r84863 and release27-maint in r84862. Thanks for patch, Carlos Henrique Romano. -- nosy: +orsenthil resolution: - fixed stage: unit test needed - committed/rejected status: open -

[issue1724822] provide a shlex.split alternative for Windows shell syntax

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Already fixed by r55549 and r0. -- nosy: +BreamoreBoy resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1724822

[issue1727418] xmlrpclib waits indefinately

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can this be closed due to work on #6267? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1727418 ___

[issue1724822] provide a shlex.split alternative for Windows shell syntax

2010-09-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No, this feature request has not been satisfied. Georg fixed some subsidiary issues, but they did not in fact address the feature request for an shlex.split equivalent for Windows. Since no one has expressed interest in working on

[issue1729930] 2.5.1 latest svn fails test_curses and test_timeout

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I can't believe that this is still relevant. -- nosy: +BreamoreBoy resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1729930

[issue1730136] tkFont.__eq__ gives type error

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I think this one line patch still needs applying. -- nosy: +BreamoreBoy type: - behavior versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1730136

[issue1729930] 2.5.1 latest svn fails test_curses and test_timeout

2010-09-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The bug probably does still exist (see issue 7038 for a recent similar report). However, without a repeatable test case we can't fix it, so leaving this closed is fine. If the OP can still reproduce it we can try working on it again.

[issue1730372] Mesa with NPTL makes Python extensions crash with std::cerr

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Could a Linux guru try to reproduce this with the latest trunk, thanks. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1730372

[issue1732367] Document the constants in the socket module

2010-09-17 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: msg67121 states proposed changes were lost :( -- nosy: +BreamoreBoy resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1732367

  1   2   >