Re: question about an exciting gotcha for unittests (and elsewhere) ...

2010-04-23 Thread Cameron Simpson
On 23Apr2010 15:37, I wrote: | class Backend(object): | def serialise(self, value): | ''' Convert a value for external string storage. | ''' | if isinstance(value, Node): [...] | return :%s:%s % (value.type, value.name) | t = type(value) | assert t in

Re: Windows debugging symbols for python 2.5.4 and pywin32 214

2010-04-23 Thread Mark Hammond
On 22/04/2010 7:23 AM, Alexandre Fayolle wrote: Hi everyone, I have a production server running a Windows Service written in Python, which uses python 2.5.4 (yes I know it is old, but I am somewhat stuck with this for now) and pywin32 214. Given a set of manipulations, I get a stack overflow

Re: Tkinter question

2010-04-23 Thread eb303
On Apr 22, 5:55 pm, Rotwang sg...@hotmail.co.uk wrote: James Mills wrote: On Wed, Apr 21, 2010 at 8:45 PM, Rotwang sg...@hotmail.co.uk wrote: [...] From reading the documentation myself (pydoc)... It would seem your only option is to make a thread out of this (not my preferred way - I

Re: question about an exciting gotcha for unittests (and elsewhere) ...

2010-04-23 Thread Cameron Simpson
On 23Apr2010 16:15, I wrote: | On 23Apr2010 15:37, I wrote: | | class Backend(object): | | def serialise(self, value): | | ''' Convert a value for external string storage. | | ''' | | if isinstance(value, Node): [...] | | return :%s:%s % (value.type, value.name) | |

Re: Linux servers, network and file names

2010-04-23 Thread Rebelo
Infinity77 wrote: Hi All, I apologize in advance if this sounds like a stupid question but I am really no expert at all in network things, and I may be looking in the wrong direction altogether. At work we have a bunch of Linux servers, and we can connect to them with our Windows PCs over a

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-23 Thread Bryan
Steven D'Aprano wrote: John Nagle wrote:    Is nlargest smart enough to decide when it's cheaper to track the N largest entries on a linear pass through the list than to sort? It *always* does a linear pass through the list (linear, that is in the length of the entire list). It tracks the n

question about an exciting gotcha for unittests (and elsewhere) ...

2010-04-23 Thread Cameron Simpson
I've run into a problem unittesting something I'm writing. I have a little node tracking class I'm using to track items and attributes. An item is a Node object, and the collection is a NodeDB. So I'm writing some unittests, thus: class Node(dict): [...] class NodeDB(dic): [...] class

Re: Linux servers, network and file names

2010-04-23 Thread Martin P. Hellwig
On 04/22/10 15:13, Infinity77 wrote: cut For me: //SERVER/gavana/Folder/FileName.txt Colleague: //SERVER/Colleague/Folder/FileName.txt So, no matter what I do, the file name stored in the database is user- dependent and not universal and common to all of us. If that user dependent part

Smtpd module

2010-04-23 Thread Johny
I would like to use smtpd module to write very simple smtp server but this server must: 1. accept several connections at the same time( like a forking server) 2. have basic authentication that is it must understand AUTH command. Does anyone know if the smtpd module have both? Thanks Ba. --

Re: Calling multiple programs with subprocess

2010-04-23 Thread Bryan
amit asked: How does one go about calling multiple programs using subprocess? This is the program flow: C:\ wrenv.exe C:\ make clean .. The 'wrenv.exe' is necessary since it sets up the proper environment for building. How do I use subprocess to execute 'wrenv.exe' and then the 'make

Making special method names, work with __getattr__

2010-04-23 Thread Antoon Pardon
The following is a proof of concept. The idea is to have variables that represent symbolic names/expressions, you can work with like ordinary values, but that can be evaluated later. This is the code: import operator from

Re: when should I explicitly close a file?

2010-04-23 Thread Adam Tauno Williams
On Fri, 2010-04-23 at 16:29 +1200, Lawrence D'Oliveiro wrote: In message mailman.2119.1271898215.23598.python-l...@python.org, Chris Rebert wrote: On Wed, Apr 21, 2010 at 5:53 PM, Lawrence D'Oliveiro wrote: In message 4bc9aad...@dnews.tpgi.com.au, Lie Ryan wrote: Since in python nothing

FW: help req debugging

2010-04-23 Thread sanam singh
hi, i am using wingware to debug python.however i also want to debug my c modules which have been called in my python script simultaneously. so i have followed instructions given on http://www.wingware.com/doc/howtos/debugging-extension-modules-on-linux . as a result i launch my python

Re: when should I explicitly close a file?

2010-04-23 Thread Alf P. Steinbach
* Adam Tauno Williams: On Fri, 2010-04-23 at 16:29 +1200, Lawrence D'Oliveiro wrote: In message mailman.2119.1271898215.23598.python-l...@python.org, Chris Rebert wrote: On Wed, Apr 21, 2010 at 5:53 PM, Lawrence D'Oliveiro wrote: In message 4bc9aad...@dnews.tpgi.com.au, Lie Ryan wrote: Since

Re: question about an exciting gotcha for unittests (and elsewhere) ...

2010-04-23 Thread Peter Otten
Cameron Simpson wrote: and it's failing. I've traced the failure cause, ending up with this assertion message from the end of serialise() above: AssertionError: class '__main__.Node' HOST:foo:{} class 'cs.nodedb.node.Node' Experienced users will see at once what's happened: I've made

Re: Windows debugging symbols for python 2.5.4 and pywin32 214

2010-04-23 Thread Alexandre Fayolle
On Friday 23 April 2010 08:36:01 Mark Hammond wrote: On 22/04/2010 7:23 AM, Alexandre Fayolle wrote: Hi everyone, I have a production server running a Windows Service written in Python, which uses python 2.5.4 (yes I know it is old, but I am somewhat stuck with this for now) and pywin32

Re: Tkinter question

2010-04-23 Thread Rotwang
eb303 wrote: On Apr 22, 5:55 pm, Rotwang sg...@hotmail.co.uk wrote: [...] From my experience, mixing Tkinter with threads is a bad idea. As most GUI toolkits, it really doesn't like to be manipulated from different threads, so you might end up getting weird problems or even crashes. By the

Re: question about an exciting gotcha for unittests (and elsewhere) ...

2010-04-23 Thread Cameron Simpson
On 23Apr2010 13:25, Peter Otten __pete...@web.de wrote: | Cameron Simpson wrote: | and it's failing. I've traced the failure cause, ending up with this | assertion message from the end of serialise() above: | |AssertionError: class '__main__.Node' HOST:foo:{} class |

ANN: eGenix mxODBC Zope Database Adapter 2.0.1

2010-04-23 Thread eGenix Team: M.-A. Lemburg
ANNOUNCEMENT mxODBC Zope Database Adapter Version 2.0.1 for Zope and the Plone CMS Available for Zope 2.12 and later on

py3 tkinter Text accepts what bytes?

2010-04-23 Thread Matthias Kievernagel
Hello, I stumbled upon this one while porting some of my programs to Python 3.1. The program receives messages from a socket and displays them in a tkinter Text. Works fine in Python 2 and Python 3.1. The problems arrived when I wanted to know the details... First surprise: Text.insert accepts

Re: Linux servers, network and file names

2010-04-23 Thread Infinity77
Hi Martin All, On Apr 23, 9:50 am, Martin P. Hellwig wrote: On 04/22/10 15:13, Infinity77 wrote: cut For me:  //SERVER/gavana/Folder/FileName.txt Colleague: //SERVER/Colleague/Folder/FileName.txt So, no matter what I do, the file name stored in the database is user- dependent and not

Re: how does a queue stop the thread?

2010-04-23 Thread Steve
On Apr 21, 6:08 pm, kaiix kvn@gmail.com wrote: A simple thread pool example. My question is, since *MyThread.run* will loop endless, how does the thread know the time to quit? how does the *queue* notify the thread? is there any shared variables, like a *lock*? When I set daemon false,

Re: Tkinter question

2010-04-23 Thread eb303
On Apr 23, 1:58 pm, Rotwang sg...@hotmail.co.uk wrote: eb303 wrote: On Apr 22, 5:55 pm, Rotwang sg...@hotmail.co.uk wrote: [...] From my experience, mixing Tkinter with threads is a bad idea. As most GUI toolkits, it really doesn't like to be manipulated from different threads, so you

Re: py3 tkinter Text accepts what bytes?

2010-04-23 Thread eb303
On Apr 23, 2:00 pm, Matthias Kievernagel mkie...@pirx.sirius.org wrote: Hello, I stumbled upon this one while porting some of my programs to Python 3.1. The program receives messages from a socket and displays them in a tkinter Text. Works fine in Python 2 and Python 3.1. The problems

SEXY CAMRON SEXY PRETTY CAMERON SEXY HOT HOLLYWOOD STARS HOT HOLLYWWOD CELEBERITIES SEXY HOLLYWOOD GIRLS SEXY BIKINI GIRLS SEXY CHINESE GIRLS SEXY PAKISTANI GIRLS SEXY INDIAN GIRLS

2010-04-23 Thread Naeem
SEXY CAMRON SEXY PRETTY CAMERON SEXY HOT HOLLYWOOD STARS HOT HOLLYWWOD CELEBERITIES SEXY HOLLYWOOD GIRLS SEXY BIKINI GIRLS SEXY CHINESE GIRLS SEXY PAKISTANI GIRLS SEXY INDIAN GIRLS on http://hollywood6y.blogspot.com/SEXY CAMRON SEXY PRETTY CAMERON SEXY HOT HOLLYWOOD STARS HOT

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-23 Thread Grant Edwards
On 2010-04-22, D'Arcy J.M. Cain da...@druid.net wrote: On Thu, 22 Apr 2010 15:04:01 +0100 Tim Golden m...@timgolden.me.uk wrote: So please tell me if there is one or not. I really need this soon. Appreciate a lot. Assuming top-k doesn't mean something obscurely statistical: You really

Difficulty w/json keys

2010-04-23 Thread Red
My apologies for what is probably a simple question to most on this group. However, I am new to python and very new to json. I am trying to read in a json file from a twitter download. There are, generally, two types of lines: those lines with text and the other lines. I am only interested in

font change

2010-04-23 Thread Vikram Moule
Q1. I want to change the font of the menu . I want to write the menu items like File in my native language.I was successful writing the text in the window in my font. But I am not able to write the menu items in same font. In fact I am not able to find how to change the font of the menu. I am

Re: py3 tkinter Text accepts what bytes?

2010-04-23 Thread Matthias Kievernagel
eb303 eric.brunel.pragma...@gmail.com wrote: On Apr 23, 2:00 pm, Matthias Kievernagel mkie...@pirx.sirius.org wrote: Hello, I stumbled upon this one while porting some of my programs to Python 3.1. The program receives messages from a socket and displays them in a tkinter Text. Works fine

Re: Difficulty w/json keys

2010-04-23 Thread Jim Byrnes
Red wrote: My apologies for what is probably a simple question to most on this group. However, I am new to python and very new to json. I am trying to read in a json file from a twitter download. There are, generally, two types of lines: those lines with text and the other lines. I am only

Re: python 2.6 py2exe wx app fails

2010-04-23 Thread Robin Becker
On 22/04/2010 13:56, Robin Becker wrote: I'm trying to move a wxPython application forward to 2.6, but although the app runs fine in 2.6 when run directly when I build the app into an exe using py2exe I get this popup message application failed to initialize properly (0xc142) when I try

Re: Difficulty w/json keys

2010-04-23 Thread Rolando Espinoza La Fuente
On Fri, Apr 23, 2010 at 10:20 AM, Red wanderingaen...@comcast.net wrote: [...] for line in f:        j = json.loads(line)        if 'text' in j:                if 'lang' in j:                        lang = j['lang']                        print language, lang                text = j['text']

Re: Difficulty w/json keys

2010-04-23 Thread J. Cliff Dyer
You need to know what your input data actually looks like, and the best thing for that is a little bit of formatting. I bet you can figure out the problem yourself, once you see the structure of your data more clearly. I've reformatted the JSON for you to help out. On Fri, 2010-04-23 at 07:20

[Python3] Reading a binary file and wrtiting the bytes verbatim in an utf-8 file

2010-04-23 Thread fab
Hello. I have to read the contents of a binary file (a PNG file exactly), and dump it into an RTF file. The RTF-file has been opened with codecs.open in utf-8 mode. As I expected, the utf-8 decoder chokes on some combinations of bits; how can I tell python to dump the bytes as they are, without

Re: Making special method names, work with __getattr__

2010-04-23 Thread Chris Rebert
On Fri, Apr 23, 2010 at 2:41 AM, Antoon Pardon apar...@forel.vub.ac.be wrote: The following is a proof of concept. The idea is to have variables that represent symbolic names/expressions, you can work with like ordinary values, but that can be evaluated later. This is the code:

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-23 Thread Steven Howe
Really! Learn to use google better. I just used python sort list Look at: http://wiki.python.org/moin/HowTo/Sorting Read about list.sort. Try, at a command prompt (assuming you have a unix shell), pydoc list search for sort; read it. It mentions 'reverse'. then slice the list to your desired

Re: [Python3] Reading a binary file and wrtiting the bytes verbatim in an utf-8 file

2010-04-23 Thread Chris Rebert
On Fri, Apr 23, 2010 at 9:22 AM, f...@slick.airforce-one.org wrote: I have to read the contents of a binary file (a PNG file exactly), and dump it into an RTF file. The RTF-file has been opened with codecs.open in utf-8 mode. As I expected, the utf-8 decoder You mean encoder. chokes on

DLLs loading in interpreter but not with direct run on Windows

2010-04-23 Thread JTimoty
Hi, I've got a weird problem, apparently related to the way python searches for DLLs on Windows. I compiled PyQt4 (no errors) but scripts that use it fail with DLL load failed: Invalid access to memory location. If I play with loading the modules inside the interpreter, I see no errors. Even

Re: [Python3] Reading a binary file and wrtiting the bytes verbatim in an utf-8 file

2010-04-23 Thread Chris Rebert
On Fri, Apr 23, 2010 at 9:48 AM, Chris Rebert c...@rebertia.com wrote: On Fri, Apr 23, 2010 at 9:22 AM,  f...@slick.airforce-one.org wrote: I have to read the contents of a binary file (a PNG file exactly), and dump it into an RTF file. snip how can I tell python to dump the bytes as they are,

Re: [Python3] Reading a binary file and wrtiting the bytes verbatim ?in an utf-8 file

2010-04-23 Thread fab
Thanks, I'll try this. I have no idea how you'd go about reading the contents of such a file in a sensible way. The purpose is to embed PNG pictures in an RTF file that will be read by OpenOffice. It seems that OpenOffice reads RTF in 8-bit, so it should be ok. The RTF is produced from a TeX

Re: Pydev 1.5.6 Released (Django Integration)

2010-04-23 Thread Fabio Zadrozny
Pydev 1.5.6 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Question, Does it have a feature to evaluate the current edit buffer and continue with an interactive prompt? Yes. See:

Re: question about an exciting gotcha for unittests (and elsewhere) ...

2010-04-23 Thread Terry Reedy
On 4/23/2010 8:03 AM, Cameron Simpson wrote: On 23Apr2010 13:25, Peter Otten__pete...@web.de wrote: | Move the unit tests into a separate script and have that import the module | cs.nodedb.node. Hmm. I have been very attracted by the idea of having the unittest in the module itself, and run

Re: Difficulty w/json keys

2010-04-23 Thread Terry Reedy
On 4/23/2010 10:20 AM, Red wrote: My apologies for what is probably a simple question to most on this group. However, I am new to python and very new to json. I am trying to read in a json file from a twitter download. There are, generally, two types of lines: those lines with text and the

Re: Difficulty w/json keys

2010-04-23 Thread Terry Reedy
On 4/23/2010 10:51 AM, Jim Byrnes wrote: I can't help you directly with your problem but have you seen this: http://arstechnica.com/open-source/guides/2010/04/tutorial-use-twitters-new-real-time-stream-api-in-python.ars Yes. Ignore the part about push versus pull (you are already doing the

Re: question about an exciting gotcha for unittests (and elsewhere) ...

2010-04-23 Thread Gabriel Genellina
En Fri, 23 Apr 2010 03:15:16 -0300, Cameron Simpson c...@zip.com.au escribió: On 23Apr2010 15:37, I wrote: | Experienced users will see at once what's happened: I've made a Node | myself in the test using the local class, and the Node class is thus | __main__.Node. However, my sql Backend

Re: Tkinter question

2010-04-23 Thread Rotwang
eb303 wrote: On Apr 23, 1:58 pm, Rotwang sg...@hotmail.co.uk wrote: [...] I didn't. How do I get Python to display the draw window, other than by using mainloop()? Well, mainloop doesn't actually display anything. It's just the event loop for tk. So since you run your program within IDLE,

Re: Smtpd module

2010-04-23 Thread Gabriel Genellina
En Fri, 23 Apr 2010 06:30:42 -0300, Johny pyt...@hope.cz escribió: I would like to use smtpd module to write very simple smtp server but this server must: 1. accept several connections at the same time( like a forking server) I think asyncore takes care of that. 2. have basic

Re: Calling multiple programs with subprocess

2010-04-23 Thread Amit Uttamchandani
On Thu, Apr 22, 2010 at 10:12:47PM -0400, Dave Angel wrote: amit wrote: How does one go about calling multiple programs using subprocess? This is the program flow: C:\ wrenv.exe C:\ make clean .. .. The 'wrenv.exe' is necessary since it sets up the proper environment for building.

Re: On Class namespaces, calling methods

2010-04-23 Thread Aahz
In article 4bc120bd$0$8850$c3e8...@news.astraweb.com, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: I can only think of two circumstances where old-style classes are *wrong*: if you use multiple inheritance with a diamond diagram (...now you have THREE problems *wink*), if you

Re: csv.py sucks for Decimal

2010-04-23 Thread Phlip
On Apr 22, 5:03 pm, MRAB pyt...@mrabarnett.plus.com wrote: It might be a stupid question, but have you tried passing in the Decimal() object itself? Yep. Nope. Might as well (we ain't working today). But sorry, as usual, for my tone, and thanks all for playing! --

Re: csv.py sucks for Decimal

2010-04-23 Thread Phlip
On Apr 22, 6:15 pm, Jerry Hill malaclyp...@gmail.com wrote: 10,10.0,10.00,10 That's an int, a float, a Decimal and a string, all of which appear to be formatted as I would expect. When you point your finger 'cause your plan fell thru you got three more fingers, pointing back at you! --Dire

JOBS IN SWEDEN SWEDEN JOBS MEDICAL JOBS IN SWEDEN FINANCE JOBS IN SWEDEN ACCOUNTS JOBS IN SWEDEN ADMIN JOBS IN SWEDEN SALES JOBS IN SWEDEN ON http://jobsinsweden-net.blogspot.com/

2010-04-23 Thread saima81
JOBS IN SWEDEN SWEDEN JOBS MEDICAL JOBS IN SWEDEN FINANCE JOBS IN SWEDEN ACCOUNTS JOBS IN SWEDEN ADMIN JOBS IN SWEDEN SALES JOBS IN SWEDEN ON http://jobsinsweden-net.blogspot.com/ JOBS IN SWEDEN SWEDEN JOBS MEDICAL JOBS IN SWEDEN FINANCE JOBS IN SWEDEN ACCOUNTS JOBS IN SWEDEN ADMIN JOBS IN

problem when running .py file

2010-04-23 Thread Tingting HAN
Dear Officer, I first apologize that I am totally new for python. I have downloaded a code packet “triMC3D” from online, and within it there is a file “configuration.py”.I downloaded and installed python and some related packages, tried very hard, but there is still the following error: the

Re: when should I explicitly close a file?

2010-04-23 Thread Steven D'Aprano
On Fri, 23 Apr 2010 13:19:41 +0200, Alf P. Steinbach wrote: But for a literal context-free interpretation e.g. the 'sys.getrefcount' function is not documented as CPython only and thus an implementation that didn't do reference counting would not be a conforming Python implementation. Since

Re: Difficulty w/json keys

2010-04-23 Thread Red
Thanks to Cliff and Rolando who saw where my real problem was. Terry,Jim: I had not seen the tutorial before, so I'll have to dig into that as well. So little time. Cheers On Apr 23, 10:06 am, J. Cliff Dyer j...@sdf.lonestar.org wrote: You need to know what your input data actually looks

Re: Difficulty w/json keys

2010-04-23 Thread Red
On Apr 23, 1:17 pm, Terry Reedy tjre...@udel.edu wrote: On 4/23/2010 10:20 AM, Red wrote: My apologies for what is probably a simple question to most on this group. However, I am new to python and very new to json. I am trying to read in a json file from a twitter download. There are,

Re: Smtpd module

2010-04-23 Thread Miki
Hello, I would like to use smtpd module to write very simple smtp server but this server must: 1. accept several connections at the same time( like a forking server) 2. have basic authentication  that is it must understand AUTH command. Does anyone know if the smtpd module have both?

Re: How to get live streaming of friends tweets??

2010-04-23 Thread Florian Diesch
http://arstechnica.com/open-source/guides/2010/04/tutorial-use-twitters-new-real-time-stream-api-in-python.ars has some explanations about how to use real-time stream API eka (Esteban) ekagauranga...@gmail.com writes: IMO the real time update is your work to do. You can poll, to say, each

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-23 Thread Raymond Hettinger
On Apr 22, 10:49 am, John Nagle na...@animats.com wrote: Chris Rebert wrote: 2010/4/22 Jo Chan csj...@gmail.com: Hi,friends.  I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums? I only know about max which is poorly a top-1

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-23 Thread Raymond Hettinger
On Apr 23, 1:24 am, Bryan bryanjugglercryptograp...@yahoo.com wrote: That is interesting. The above algorithm for nlargest is better, but to use it for nsmallest requires a largest-on-top heap, which the module does not bother to implement. FWIW, the pure python versions differ because they

Re: problem when running .py file

2010-04-23 Thread Gabriel Genellina
En Fri, 23 Apr 2010 18:43:41 -0300, Tingting HAN hihigh...@gmail.com escribió: I first apologize that I am totally new for python. I have downloaded a code packet “triMC3D” from online, and within it there is a file “configuration.py”.I downloaded and installed python and some related

Re: Calling multiple programs with subprocess

2010-04-23 Thread Kushal Kumaran
On Sat, Apr 24, 2010 at 1:21 AM, Amit Uttamchandani amit.ut...@gmail.com wrote: On Thu, Apr 22, 2010 at 10:12:47PM -0400, Dave Angel wrote: amit wrote: How does one go about calling multiple programs using subprocess? This is the program flow: C:\ wrenv.exe C:\ make clean .. .. The

NotImplemented used in Decimal

2010-04-23 Thread Steven D'Aprano
I'm reading the source code for decimal.Decimal, and I see that the arithmetic operations (__add__, __sub__, etc.) start with code like this: if other is NotImplemented: return other I don't understand the purpose of this. I presume that it is *not* for the use-case of: d

Re: NotImplemented used in Decimal

2010-04-23 Thread Kushal Kumaran
On Sat, Apr 24, 2010 at 8:54 AM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: I'm reading the source code for decimal.Decimal, and I see that the arithmetic operations (__add__, __sub__, etc.) start with code like this:        if other is NotImplemented:            return other

SAUDI ARABIAN GIRLS MUSLIM SEXY GIRLSSEXU SAUDI GIRLS SEXY HOT GIRLS SEXY ARABIAN GIRLS SEXY ARABIAN LADIES SEXY HOT SAID GIRLS HOT ARABIAN GIRLS SEXY DATING SAUDI GIRLS HOT WIFE O

2010-04-23 Thread Naeem
SAUDI ARABIAN GIRLS MUSLIM SEXY GIRLSSEXU SAUDI GIRLS SEXY HOT GIRLS SEXY ARABIAN GIRLS SEXY ARABIAN LADIES SEXY HOT SAID GIRLS HOT ARABIAN GIRLS SEXY DATING SAUDI GIRLS HOT WIFE ON http://hollywood6y.blogspot.com/ SAUDI ARABIAN GIRLS MUSLIM SEXY GIRLSSEXU SAUDI GIRLS SEXY HOT GIRLS

[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-04-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor victor.stin...@haypocalc.com added the comment: Even if this issue doesn't fix all the configure complete mess, I think that it improves it a little bit. Open new issues if you would like to fix other parts of the

[issue7567] Messed up terminal after calling curses.initscr() twice.

2010-04-23 Thread Sreejith Madhavan
Sreejith Madhavan sreeji...@gmx.com added the comment: Thanks for the patch. I can confirm that the patch works for 64bit builds of python-2.6.5 on Solaris (amd64 and sparc) and RHEL5 amd64. The curses library used was ncurses-5.7 with widechar support. -- nosy: +Sreejith.Madhavan

[issue8325] improve regrtest command line help

2010-04-23 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Thanks for proofreading. I've uploaded a new version here with typo fix, but do not removed 1., 2. numbering. It is a very awesome feature of console UI. When you're in a hurry (and you always in a hurry when you forget something) it is

[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-04-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Marc-Andre Lemburg wrote: Marc-Andre Lemburg m...@egenix.com added the comment: Please change the configure.in script to only override the CFLAGS in case they were set before entering the AC_PROG_CC part ! Sorry, this should have

[issue8325] improve regrtest command line help

2010-04-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8325 ___ ___ Python-bugs-list

[issue8503] smtpd module does not allow

2010-04-23 Thread mike s
New submission from mike s sucha...@kovagroup.ca: The SMTPServer supplied by the smtpd library allows clients to send mail to any domain. This makes the server attractive to spammers, thinking they have found an open relay. The patch below adds an accept_domain method to SMTPServer

[issue8503] smtpd module does not allow domain filtering

2010-04-23 Thread mike s
Changes by mike s sucha...@kovagroup.ca: -- title: smtpd module does not allow - smtpd module does not allow domain filtering ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8503 ___

[issue8503] smtpd SMTPServer does not allow domain filtering

2010-04-23 Thread mike s
Changes by mike s sucha...@kovagroup.ca: -- title: smtpd module does not allow domain filtering - smtpd SMTPServer does not allow domain filtering ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8503

[issue8451] syslog.syslog('msg') logs message with ident python.

2010-04-23 Thread Sean Reifschneider
Sean Reifschneider j...@tummy.com added the comment: Committed as 80396. Included a change to let openlog(3) pick the ident instead of using the static string python. -- resolution: - accepted status: open - closed ___ Python tracker

[issue8451] syslog.syslog('msg') logs message with ident python.

2010-04-23 Thread Sean Reifschneider
Sean Reifschneider j...@tummy.com added the comment: Ported to python3 and committed as 80401. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8451 ___

[issue7384] curses crash on FreeBSD

2010-04-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Mark, thanks for reviewing the patch. In the new patch, I added a skip for OS X. Buildbot testing looks good. In particular, one FreeBSD bot passes test_curses now (the other one is hanging in multiprocessing). For most bots nothing

[issue7384] curses crash on FreeBSD

2010-04-23 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment: I did some digging on my side, the fact you see ncurses referenced from readline is due to the build linking readline to libtermcap: cc -fstack-protector -shared -Wl,-x -o libreadline.so.8 -Wl,-soname,libreadline.so.8

[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6

2010-04-23 Thread Tim Lyons
New submission from Tim Lyons guy.lin...@gmail.com: A database created under python 2.5 cannot be opened under python 2.6. It gives the error message DB_RUNRECOVERY: Fatal error, run database recovery -- process-private: unable to find environment , and a database created under python 2.6

[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6

2010-04-23 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Jesus, any idea? -- assignee: - jcea nosy: +jcea, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8504 ___

[issue7384] curses crash on FreeBSD

2010-04-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Yes, readline uses only the termcap part of ncurses. I think that --with-termlib is the correct option, see: http://www.mail-archive.com/util-linux...@vger.kernel.org/msg00273.html -- ___

[issue8325] improve regrtest command line help

2010-04-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hello I don’t know what “the tool I am using to commit the patch” is (I don’t commit patches), but every program I tested does not use numbers with usage/synopsis lines. Having the name of the program at the start of each line prevents me from

[issue7384] curses crash on FreeBSD

2010-04-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Actually this means that we should also look for -ltinfo in the ldd check (A Redhat buildbot would be nice). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7384

[issue8503] smtpd SMTPServer does not allow domain filtering

2010-04-23 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: This is the right place, thanks for the patch! Since this is a feature request it can only be added to 3.2 (and 2.8, if such a thing ever exists). -- nosy: +eric.smith priority: - normal stage: - unit test needed type: - feature

[issue8468] bz2: support surrogates in filename, and bytes/bytearray filename

2010-04-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited: r80402 (py3k), r80403 (3.1). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8468

[issue8477] _ssl: support surrogates in filenames, and bytes/bytearray filenames

2010-04-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: key_file and cert_file are mandatory (see newPySSLObject()) and bytearray are now more accepted by PyUnicode_FSConverter() (see #8485). New version of the patch is simpler and shorter. Support bytearray is a little bit to much

[issue8242] Improve support of PEP 383 (surrogates) in Python3: meta-issue

2010-04-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- dependencies: +Don't accept bytearray as filenames, or simplify the API ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8242 ___

[issue8477] _ssl: support surrogates in filenames, and bytes/bytearray filenames

2010-04-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file17017/ssl_surrogates.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8477 ___

[issue8124] mywrite() ignores PyFile_WriteString() errors

2010-04-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited: r80404 (py3k), r80405 (3.1). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8124

[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6

2010-04-23 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: The database compatibility is dictated by the underlying Berkeley DB library used. Reporter, please do this: (asuming you are using bsddb lib in the standard lib, not external project pybsddb) 1. Open a python2.5 shell. 2. import bsddb 3.

[issue8505] 2to3 fix_future.py removes __future__ imports, but should it?

2010-04-23 Thread Barry A. Warsaw
New submission from Barry A. Warsaw ba...@python.org: Lines such as the following are removed by fix_future.py in 2to3 from __future__ import absolute_import, unicode_literals I think this is unnecessary and I have a case where it causes problems. It's unnecessary because this import is

[issue8506] SimpleXMLRPCServer Socket not closed after shutdown call

2010-04-23 Thread Erik Schweller
New submission from Erik Schweller othere...@gmail.com: Calling shutdown on a SimpleXMLRPCServer will stop the server but does not close the socket, meaning new connections to the same address will fail. Example: srv = SimpleXMLRPCServer((ip, port),

[issue5639] Support TLS SNI extension in ssl module

2010-04-23 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5639 ___ ___ Python-bugs-list mailing list

[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6

2010-04-23 Thread Peter Landgren
Peter Landgren peter.tal...@telia.com added the comment: I could add what I have found using bsddb in Python 2.5 and 2.6 under Windows XP SP3. In my installation: Python 2.5.4 bsddb 4.4.5.3 Python 2.6.4 bsddb 4.7.3 What I did: In Gramps imported an XML backup file to a empty bsddb database. It

[issue8477] _ssl: support surrogates in filenames, and bytes/bytearray filenames

2010-04-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: key_file and cert_file are mandatory No, they are not. Not for a client connection, at least. Also, please add at least a simple test. -- ___ Python tracker rep...@bugs.python.org

[issue8507] abc.abstractproperty does not copy docstring

2010-04-23 Thread Robert Escriva
New submission from Robert Escriva bugs.pyt...@mail.robescriva.com: Attached file shows interpreter session where the bug manifests. It was my expectation that abc.abstractproperty would copy the docstring just like property. Instead, the docstring is the one for abc.abstractproperty itself.

[issue8507] abc.abstractproperty does not copy docstring

2010-04-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: - normal versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8507 ___

[issue1563] asyncore and asynchat incompatible with Py3k str and bytes

2010-04-23 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: Removed file: http://bugs.python.org/file11018/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1563 ___

[issue1563] asyncore and asynchat incompatible with Py3k str and bytes

2010-04-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Since no doc only patch has been proposed and there is some disagreement as to whether it is needed anyway, I'm closing this per msg88559. -- resolution: - out of date stage: - committed/rejected status: open - closed

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-04-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Hearing no further argument to the contrary, I'm closing this as invalid. -- resolution: - invalid stage: unit test needed - committed/rejected status: open - closed ___ Python tracker

[issue8508] 2to3 fixer for gettext's .ugettext

2010-04-23 Thread Barry A. Warsaw
New submission from Barry A. Warsaw ba...@python.org: gettext module in Python 3 does not have a .ugettext method because everything's already unicodes. Here's a fixer for that. -- components: 2to3 (2.x to 3.0 conversion tool) files: fix_ugettext.py messages: 104015 nosy: barry

  1   2   >