Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Steven D'Aprano
On Wed, 30 Jan 2008 19:40:24 -0500, Blubaugh, David A. wrote: I do not understand why no one has answered the following question: Has anybody worked with Gene Expression Programming Yes, people have worked with Gene Expression Programming. I don't know who. I don't know where. But I'm

Re: Removing Pubic Hair Methods

2008-01-30 Thread George Sakkis
On Jan 30, 5:03 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Wed, 30 Jan 2008 15:29:45 +0100, Wildemar Wildenburger wrote: Gerardo Herzig wrote: I will use genital().extend(), thats for shure ^^ Well, you never go wrong with apply(genital(), females), do you? `apply()` is

booleans, hash() and objects having the same value

2008-01-30 Thread Ryszard Szopa
Hi all, I've just read PEP 285 so I understand why bool inherits from int and why, for example, ((False - True)*True)**False==1. This was necessary for backwards compatibility and to give the beast some ability to do moral reasoning. For example, Python knows to value the whole truth more than

Re: Dictionary Keys question

2008-01-30 Thread Ryszard Szopa
On Jan 31, 12:08 am, Dustan [EMAIL PROTECTED] wrote: The underlying order is a result, in part, of the key's hash codes*. Integers are hash coded by their integer values, therefore, they appear in numeric order. Strings, however, use an algorithm that ensures as unique hash codes as possible.

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Paul McGuire
On Jan 30, 6:40 pm, Blubaugh, David A. [EMAIL PROTECTED] wrote: I do not understand why no one has answered the following question: Has anybody worked with Gene Expression Programming   David Blubaugh Sorry, I was too busy reading the posts about the pubic hair. And did you really wait

Re: Removing Pubic Hair Methods

2008-01-30 Thread Asun Friere
On Jan 31, 3:13 am, Steve Holden [EMAIL PROTECTED] wrote: Wildemar Wildenburger wrote: Well, you never go wrong with apply(genital(), females), do you? Never?! class PowerSocket () : def __init__ (self, plug=female, active=False) : self.plug = plug self.active = active females = [p

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Tim Chase
I do not understand why no one has answered the following question: Has anybody worked with Gene Expression Programming Well, my father's name is Gene, and he's expressed software wants that I've implemented in Python...so yes, I guess I've done some Gene Expression Programming... ;-P

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Grant Edwards
On 2008-01-31, Daniel Fetchinson [EMAIL PROTECTED] wrote: I do not understand why no one has answered the following question: Has anybody worked with Gene Expression Programming Hm, maybe because nobody did? Just a thought. It can also be that everyone worked with it but everyone is

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread ajaksu
On Jan 30, 10:40 pm, Blubaugh, David A. [EMAIL PROTECTED] wrote: I do not understand why no one has answered the following question: Has anybody worked with Gene Expression Programming David Blubaugh I see. You don't understand. That's a fact. I'm sure there are free online resources

Re: Module/package hierarchy and its separation from file structure

2008-01-30 Thread Ben Finney
Peter Schuller [EMAIL PROTECTED] writes: I *DON'T* want anything to depend on the physical location on disk. Importing the code in the first place will — unavoidably, it seems to me — depend on the file location from which to load the module. After that, nothing depends on the physical

python modules collection

2008-01-30 Thread J. Peng
Hello, Is there a site for python,which collects most kinds of python modules? like CPAN for Perl. Sometime I want to use a module,like the time/date modules,don't know where I should search from. Sorry if I have repeated this question on the list. Thanks! --

Re: python modules collection

2008-01-30 Thread Guilherme Polo
2008/1/30, J. Peng [EMAIL PROTECTED]: Hello, Is there a site for python,which collects most kinds of python modules? like CPAN for Perl. Sometime I want to use a module,like the time/date modules,don't know where I should search from. Sorry if I have repeated this question on the list.

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Shane Geiger
The answer is here: http://www.google.com/search?q=gene+expression+programming+python Tim Chase wrote: I do not understand why no one has answered the following question: Has anybody worked with Gene Expression Programming Well, my father's name is Gene, and he's expressed

Re: Python UML Metamodel

2008-01-30 Thread gagsl-py2
--- sccs cscs [EMAIL PROTECTED] escribió: Gabriel Genellina [EMAIL PROTECTED] a écrit : En Tue, 29 Jan 2008 21:25:26 -0200, sccs cscs escribió: I find an OPEN SOURCE tool (http://bouml.free.fr/) that Recently generates Python code from UML model. Does it keep the model

Re: Removing Pubic Hair Methods

2008-01-30 Thread MRAB
On Jan 31, 12:57 am, Asun Friere [EMAIL PROTECTED] wrote: On Jan 31, 3:13 am, Steve Holden [EMAIL PROTECTED] wrote: Wildemar Wildenburger wrote: Well, you never go wrong with apply(genital(), females), do you? Never?! class PowerSocket () : def __init__ (self, plug=female,

Re: booleans, hash() and objects having the same value

2008-01-30 Thread Terry Reedy
Ryszard Szopa [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | | (Also, it is not completely clear what it means for two Python objects | to have the same value. Objects of different types compare unequal unless provision is made otherwise. See

Re: booleans, hash() and objects having the same value

2008-01-30 Thread Steven D'Aprano
On Wed, 30 Jan 2008 17:14:32 -0800, Ryszard Szopa wrote: Hi all, I've just read PEP 285 so I understand why bool inherits from int and why, for example, ((False - True)*True)**False==1. And don't think that the choice was uncontroversial. This was necessary for backwards compatibility

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Grant Edwards
On 2008-01-31, ajaksu [EMAIL PROTECTED] wrote: On Jan 30, 10:40 pm, Blubaugh, David A. [EMAIL PROTECTED] wrote: I do not understand why no one has answered the following question: Has anybody worked with Gene Expression Programming David Blubaugh I see. You don't understand. That's a

Re: Removing Pubic Hair Methods

2008-01-30 Thread MRAB
On Jan 31, 1:09 am, George Sakkis [EMAIL PROTECTED] wrote: On Jan 30, 5:03 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Wed, 30 Jan 2008 15:29:45 +0100, Wildemar Wildenburger wrote: Gerardo Herzig wrote: I will use genital().extend(), thats for shure ^^ Well, you never go

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Steve Holden
Grant Edwards wrote: On 2008-01-31, Daniel Fetchinson [EMAIL PROTECTED] wrote: I do not understand why no one has answered the following question: Has anybody worked with Gene Expression Programming Hm, maybe because nobody did? Just a thought. It can also be that everyone worked

Re: REALLY simple xml reader

2008-01-30 Thread Ivan Illarionov
from xml.etree import ElementTree as et from decimal import Decimal root = et.parse('file/with/your.xml') debits = dict((debit.attrib['category'], Decimal(debit.find('amount').text)) for debit in root.findall('debit')) for cat, amount in debits.items(): ... print '%s: %s' % (cat,

small problem with re.sub

2008-01-30 Thread Astan Chee
Hi, I have a html text stored as a string. Now I want to go through this string and find all 6 digit numbers and make links from them. Im using re.sub and for some reason its not picking up the previously matched condition. Am I doing something wrong? This is what my code looks like: htmlStr =

Re: Has Anyone Worked with Gene Expression Programming ???????????????????????????

2008-01-30 Thread Sergio Correia
Try contacting Ryan O'Neil ryanjoneil at gmail.com. He is the author of pygep http://code.google.com/p/pygep/ , and is probably working here: http://www.gepsoft.com/ If you don't get an answer, it means that THEY found him first. This message will self destruct in ... range(3, 0, -1) ... On Jan

Re: writing Python in Emacs

2008-01-30 Thread alitosis
Rob Wolfe wrote: The good news is that I managed to configure completion for Python in Emacs using pymacs, python-mode.el, pycomplete.el and pycomplete.py. For contents of my pycomplete.el, pycomplete.py and necessary settings in .emacs see below. Thanks for that! I've been hoping something

Re: Removing Pubic Hair Methods

2008-01-30 Thread Ben Finney
MRAB [EMAIL PROTECTED] writes: On Jan 31, 12:57 am, Asun Friere [EMAIL PROTECTED] wrote: Ouch!! If on the other hand 'females' is populated by instances of (or merely includes instances of) class 'Human', I suggest you test for female.consent somewhere in your code! The Pythonic

Re: Removing Pubic Hair Methods

2008-01-30 Thread Sergio Correia
So in this case it is REALLY better to ask for permission rather than forgiveness? On Jan 30, 2008 10:30 PM, Ben Finney [EMAIL PROTECTED] wrote: MRAB [EMAIL PROTECTED] writes: On Jan 31, 12:57 am, Asun Friere [EMAIL PROTECTED] wrote: Ouch!! If on the other hand 'females' is populated by

Re: small problem with re.sub

2008-01-30 Thread Gabriel Genellina
En Thu, 31 Jan 2008 01:01:30 -0200, Astan Chee [EMAIL PROTECTED] escribió: I have a html text stored as a string. Now I want to go through this string and find all 6 digit numbers and make links from them. Im using re.sub and for some reason its not picking up the previously matched

A design problem

2008-01-30 Thread Dan Upton
Or: How to write Python like a Python programmer, not a Java programmer. This will be a little long-winded... So I just recently started picking up Python, mostly learning the new bits I need via Google and otherwise cobbling together the functions I've already written. It occurred to me though

Fwd: small problem with re.sub

2008-01-30 Thread Sergio Correia
See this: http://www.regular-expressions.info/python.html (the Search and Replace part) You are referring to the group as (?P=id), when you should be using r\gname. HTH, Sergio On Jan 30, 2008 10:01 PM, Astan Chee [EMAIL PROTECTED] wrote: Hi, I have a html text stored as a string. Now I want

Re: small problem with re.sub

2008-01-30 Thread Mark Tolonen
Astan Chee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have a html text stored as a string. Now I want to go through this string and find all 6 digit numbers and make links from them. Im using re.sub and for some reason its not picking up the previously matched

Re: Why the HELL has nobody answered my question!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Dirk Collins
Blubaugh, David A. wrote: I do not understand why no one has answered the following question: Has anybody worked with Gene Expression Programming Not me, and I'm not expecting too. In addition, I'm not actually trying to figure out if anyone else is working with Gene Expression

Re: HI all

2008-01-30 Thread Nick J Chackowsky
[EMAIL PROTECTED] wrote: I am shravan tiwari, i want to know that how i'll run any python file(*.py) on command prompt r python GUI. i tried this python test.py but i have got error, syntax error. so can i get the solution. I'm thinking you're running on a Windows computer, and that the

Re: A design problem

2008-01-30 Thread Gabriel Genellina
En Thu, 31 Jan 2008 01:57:41 -0200, Dan Upton [EMAIL PROTECTED] escribió: Or: How to write Python like a Python programmer, not a Java programmer. This will be a little long-winded... So I just recently started picking up Python, mostly learning the new bits I need via Google and

Re: Has Anyone Worked with Gene Expression Programming ???????????????????????????

2008-01-30 Thread Daniel Fetchinson
To Anyone, Has anyone worked with Gene Expression Programming??? Specifically, has anyone out there worked with pygep software package??? I have a few questions David Blubaugh -- Actually, it turns out I might say I'm a world known expert of Gene Expression

Online Debugging

2008-01-30 Thread Yansky
I'm trying to debug a script on my server and it's taking forever using print to find the error. I've tried to use the debugging examples on this page http://webpython.codepoint.net/debugging but they don't seem to be working for me. Is there an easier/better way to debug online scripts? I was

Design question - Sharing of single object by multiple processes

2008-01-30 Thread Mike D
Hello, I've just picked up the Python language and am really enjoying it. I've just signed up to this mailing list and I'm looking forward to taking part in some discussions. My first post is a question I've been pondering for the last couple of days: For relatively static data (such as a

Re: Removing Pubic Hair Methods

2008-01-30 Thread Steven D'Aprano
(Top-posting corrected.) On Wed, 30 Jan 2008 22:38:30 -0500, Sergio Correia wrote: On Jan 30, 2008 10:30 PM, Ben Finney [EMAIL PROTECTED] wrote: MRAB [EMAIL PROTECTED] writes: On Jan 31, 12:57 am, Asun Friere [EMAIL PROTECTED] wrote: Ouch!! If on the other hand 'females' is populated by

Write Python like a Python programmer (was: A design problem)

2008-01-30 Thread Ben Finney
Gabriel Genellina [EMAIL PROTECTED] writes: En Thu, 31 Jan 2008 01:57:41 -0200, Dan Upton [EMAIL PROTECTED] escribió: Or: How to write Python like a Python programmer, not a Java programmer. This will be a little long-winded... So I just recently started picking up Python, mostly

Re: A design problem

2008-01-30 Thread Paddy
On Jan 31, 3:57 am, Dan Upton [EMAIL PROTECTED] wrote: Or: How to write Python like a Python programmer, not a Java programmer. This will be a little long-winded... ... and so on. The way I was going to approach it was to every time through the loop, read the data for one of the

RE: Has Anyone Worked with Gene Expression Programming???????????????????????????

2008-01-30 Thread Ryan Ginstrom
On Behalf Of Daniel Fetchinson Actually, it turns out I might say I'm a world known expert of Gene Expression Programming. The only thing is that some higher powers are preventing me from telling you about it. I'm really sorry, I hope you understand. Please don't ask questions. It's not

Re: Wo killed Benazir Bhutto of Pakistan = NEOCON/ZIOCON many layers of deception

2008-01-30 Thread Eddie Davis
A moron posting from google? How unusual! -- Posted via a free Usenet account from http://www.teranews.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Sine Wave Curve Fit Question

2008-01-30 Thread Iain Mackay
Thanks folks - I'll have a think about both of these options. -- http://mail.python.org/mailman/listinfo/python-list

Re: Telnet Program

2008-01-30 Thread Tim Roberts
Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Tue, 29 Jan 2008 16:23:28 -0800 (PST), [EMAIL PROTECTED] [EMAIL PROTECTED] declaimed the following in comp.lang.python: Telnet(192.168.2.75,5000): send '\n\n' Should that be \r\n (or, if two lines is intended, \r\n\r\n) I don't think so.

Re: Removing Pubic Hair Methods

2008-01-30 Thread George Sakkis
On Jan 30, 9:27 pm, MRAB [EMAIL PROTECTED] wrote: On Jan 31, 1:09 am, George Sakkis [EMAIL PROTECTED] wrote: On Jan 30, 5:03 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Wed, 30 Jan 2008 15:29:45 +0100, Wildemar Wildenburger wrote: Gerardo Herzig wrote: I will use

Re: Dictionary Keys question

2008-01-30 Thread Marc 'BlackJack' Rintsch
On Wed, 30 Jan 2008 17:19:13 -0800, Ryszard Szopa wrote: BTW, can anybody explain me how is the hash function implemented in Python? It calls the `__hash__()` method on the object that was given as argument. So there's not *the* hash function, but every type implements its own. Fallback is

list traversal and remove

2008-01-30 Thread [EMAIL PROTECTED]
I supposed the below code will print seven 2 and generate the list li without 2. Strangely it only print four 2. If you change the number of 2 in the list, the results are all beyond expectation. I know the other way to achieve the expected goal, but why this is happening? Could somebody enlight

Do You Want a GSM Mobile with Amazing Features? Please click here

2008-01-30 Thread Farooq
www.enmac.com.hk GSM Mobile Phones, Digital iPods, Digital Clocks, Digital Pens, Digital Quran. Enjoy these products with Islamic Features (Complete Holy Quran with Text and Audio, Tafaseer books, Ahadees Books, Daily Supplications, Universal Qibla Direction, Prayer Timing and much more) visit our

Re: Telnet Program

2008-01-30 Thread Tim Roberts
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thank You for the response. I did set the debugging level. I get back this. Telnet(192.168.2.75,5000): recv 'Password: ' Telnet(192.168.2.75,5000): send '*\n' Telnet(192.168.2.75,5000): recv '\r\x00\r\nlogged in successfully\r\n'

[issue1971] ctypes exposing the pep 3118 buffer interface

2008-01-30 Thread Thomas Heller
New submission from Thomas Heller: The attached patch against py3k makes ctypes expose the pep 3118 buffer interface. The code is also available in the py3k-ctypes-pep3118 branch. -- components: Extension Modules files: ctypes-pep3118.patch keywords: patch messages: 61844 nosy: theller

[issue1953] Compact int and float freelists

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: I've moved the methods back to the sys module and added API docs for the C and Python code. -- title: gc.compact_freelists - Compact int and float freelists Added file: http://bugs.python.org/file9325/trunk_compact_freelist2.patch

[issue1968] Unused number magic methods leaked into Py2.6

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: -- priority: - high type: - behavior __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1968 __ ___ Python-bugs-list mailing list

[issue1966] infinite loop in httplib

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: I'm not sure if the patch can get into 2.3 and 2.4. It's up to Martin to decide. -- assignee: - loewis keywords: +easy, patch nosy: +loewis, tiran priority: - high __ Tracker [EMAIL PROTECTED]

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Sounds interesting and good! -- keywords: +patch nosy: +tiran priority: - normal type: - rfe __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1970 __

[issue1969] split and rsplit in bytearray are inconsistent

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Fixed in r60437 with unit test. Thanks for the report! -- nosy: +tiran resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1969 __

[issue1967] Backport dictviews to 2.6

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: -- priority: - normal type: - rfe __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1967 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1391] Adds the .compact() method to bsddb db.DB objects

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: -- priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1391 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1965] Move trunc() to math module

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: -- priority: - high __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1965 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: This should also be backported to Py2.6. -- versions: +Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1970 __ ___

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: Removed file: http://bugs.python.org/file9326/trunk_unispace.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1970 __ ___ Python-bugs-list

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Sorry, this patch doesn't contain my current work. Added file: http://bugs.python.org/file9327/trunk_unispace.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1970 __

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: I agree! The new patch applies cleanly to the trunk. I've fixed some white spaces and renamed the tables to _Py_ascii_ Added file: http://bugs.python.org/file9326/trunk_unispace.patch __ Tracker [EMAIL PROTECTED]

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Nice patch ! -- nosy: +lemburg __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1970 __ ___ Python-bugs-list mailing list

[issue1964] Slight adjustment to sphinx print-media stylesheet

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: - georg.brandl keywords: +patch nosy: +georg.brandl priority: - normal type: - rfe __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1964 __

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Please make those stables static... In general, everything that's not needed outside an object file should be made static to avoid naming conflicts. For static symbols, there's no need to prefix them with any Py indicator.

[issue1973] bytes.fromhex('') raises SystemError

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Thanks! :) Fixed in r60439 -- keywords: +patch nosy: +tiran priority: - normal resolution: - fixed status: open - closed type: - crash __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1973

[issue1973] bytes.fromhex('') raises SystemError

2008-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. Unittest should be covered by removing the test_bytes workaround mentioned in #1972 :) Added file: http://bugs.python.org/file9329/fromhex.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1973

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ok, thanks. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1970 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Antoine Pitrou
New submission from Antoine Pitrou: Currently some tests in test_bytes.py only test bytearray, others only test bytes. Here is a patch to try to make test coverage more extensive. You'll notice there is a small hack in test_fromhex, that's because bytes.fromhex is buggy, I'll open a separate bug

[issue1973] bytes.fromhex('') raises SystemError

2008-01-30 Thread Antoine Pitrou
New submission from Antoine Pitrou: bytearray.fromhex('') bytearray(b'') bytes.fromhex('') Traceback (most recent call last): File stdin, line 1, in module SystemError: Objects/stringobject.c:3131: bad argument to internal function -- components: Interpreter Core messages: 61855

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Good idea but could you please use typ2test instead of a decorator? It involves too much magic. -- keywords: +patch nosy: +tiran priority: - normal resolution: - accepted type: - rfe __ Tracker [EMAIL PROTECTED]

[issue1970] Speedup unicode whitespace and linebreak detection

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: I've applied the patch to the trunk in r60440. It will be merged into 3.0 soonish. Thanks for your work Keep it going! :) -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED]

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Antoine Pitrou
Changes by Antoine Pitrou: Added file: http://bugs.python.org/file9331/bytestest.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1972 __ ___ Python-bugs-list mailing list

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, here is a patch using type2test instead :) Added file: http://bugs.python.org/file9330/bytestest.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1972 __

[issue1943] improved allocation of PyUnicode objects

2008-01-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Yes, definitely. Some comments on style in your first patch: * please use unicode-length instead of the macro LENGTH you added * indents in unicodeobject.c are 4 spaces * line length should stay below 80 __ Tracker

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, that import functools at top of the file certainly can be removed... __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1972 __ ___

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Thanks again! Applied in r60442 -- resolution: accepted - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1972 __

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2008-01-30 Thread Chris Withers
New submission from Chris Withers: Somewhere in email.MIMEText.MIMEText.as_string (I'm not sure where) long subject headers are folded using a newline followed by a tab: from email.MIMEText import MIMEText m = MIMEText('foo') m['Subject']='AA '*40 m.as_string() 'Content-Type: text/plain;

[issue1943] improved allocation of PyUnicode objects

2008-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: After some more tests I must qualify what I said. The freelist patch is an improvement in some situations. In others it does not really have any impact. On the other hand, the PyVarObject version handles memory-bound cases dramatically better, see below. With a

[issue1745035] DoS smtpd vulnerability

2008-01-30 Thread Jesús Cea Avión
Changes by Jesús Cea Avión: -- nosy: +jcea _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1745035 _ ___ Python-bugs-list mailing list Unsubscribe:

[issue756914] SSL support for poplib

2008-01-30 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: no activity. Please do reopen if the offer still stands. -- nosy: +draghuram resolution: - out of date status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue756914

[issue600362] relocate cgi.parse_qs() into urlparse

2008-01-30 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: I know that Senthil has been working on consolidating url related functionalities so I am adding him to the list. -- nosy: +draghuram, orsenthil versions: +Python 2.6, Python 3.0 Tracker [EMAIL PROTECTED]

[issue1975] signals in thread problem

2008-01-30 Thread Andriy Pylypenko
New submission from Andriy Pylypenko: Hello, This issue is actually a follow up of issue 960406. The patch applied there brought in a problem at least under FreeBSD. The problem is extremely annoying so I made an effort to uncover the source of it. Here is an example code that shows the

[issue1976] pybsddb leak in using cursors

2008-01-30 Thread Jesús Cea Avión
Changes by Jesús Cea Avión: -- severity: normal - major type: - resource usage __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1976 __ ___ Python-bugs-list mailing list

[issue799104] CPPFLAGS should not be aded to ldshard command

2008-01-30 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: For the record, the latest Lib/distutils/sysconfig.py still seems to have this behaviour (please correct me if I am wrong). I am closing this as there is no activity for quite some time. -- nosy: +draghuram resolution: - wont fix status: open -

[issue1966] infinite loop in httplib

2008-01-30 Thread Jesús Cea Avión
Changes by Jesús Cea Avión: -- nosy: +jcea __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1966 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1977] Python reinitialization test

2008-01-30 Thread Christian Heimes
New submission from Christian Heimes: The patch adds a new test and a new executable. The executable calls Py_Initialze() and Py_Finalize() multiple times in a row. The test also shows that Python looses about 35 references in each round. $ ./test_reinit round 1 [7751 refs] round 2 [7797 refs]

[issue1966] infinite loop in httplib

2008-01-30 Thread Mike Klaas
Mike Klaas added the comment: I wouldn't advocate that it go in to 2.3/2.4. The only security issue is a possible DoS, but I think that is unlikely. There is already an attack vector for python code using (timeout-less) httplib by simply returning the response very slowly (1byte/sec).

[issue1966] infinite loop in httplib

2008-01-30 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- versions: -Python 2.3, Python 2.4 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1966 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1977] Python reinitialization test

2008-01-30 Thread Martin v. Löwis
Martin v. Löwis added the comment: I'm not sure what the purpose of this test is. When would it pass, when would it fail? I don't think it is a bug if a Py_Initialize()/Py_Finalize() cycle loses references. -- nosy: +loewis __ Tracker [EMAIL PROTECTED]

[issue1977] Python reinitialization test

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Martin v. Löwis wrote: Martin v. Löwis added the comment: I'm not sure what the purpose of this test is. When would it pass, when would it fail? I don't think it is a bug if a Py_Initialize()/Py_Finalize() cycle loses references. Today my attempts to

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2008-01-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Checked-in rev 60453. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1771 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2008-01-30 Thread Raymond Hettinger
Changes by Raymond Hettinger: -- status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1771 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1234] semaphore errors on AIX 5.2

2008-01-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Christian, could you apply this patch ? It needs a working autoconf 2.61 installation which I currently don't have. The patch itself, does the trick, so should go in. Thanks. -- assignee: lemburg - tiran __ Tracker

[issue1234] semaphore errors on AIX 5.2

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Fixed in r60464 (trunk) and r60465 (25) -- resolution: accepted - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1234 __

[issue1978] Python(2.5.1) will be crashed when i use _ssl module in multi-threads environment in linux.

2008-01-30 Thread [EMAIL PROTECTED]
New submission from [EMAIL PROTECTED]: Python-2.5.1 will be crashed when i use _ssl module in multi-threads environment in linux. the sample code looks as below(A https server is running on host which ip is 192.168.5.151 and many certificates and keys in PEM format are in the directory

[issue1978] Python(2.5.1) will be crashed when i use _ssl module in multi-threads environment in linux.

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: - janssen components: +Extension Modules -None keywords: +patch nosy: +janssen priority: - high __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1978 __

[issue1967] Backport dictviews to 2.6

2008-01-30 Thread Thomas Wouters
Changes by Thomas Wouters: Removed file: http://bugs.python.org/file9320/dictviews_backport.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1967 __ ___ Python-bugs-list

[issue1967] Backport dictviews to 2.6

2008-01-30 Thread Thomas Wouters
Thomas Wouters added the comment: After talking to Guido, got rid of the future import magic in favour of just providing 'viewkeys', 'viewitems' and 'viewvalues' methods of dicts. This makes efficient 2.6-and-3.0 dict-using code possibly by making 2to3 translate the view-methods directly to

[issue1905] PythonLauncher not working correctly on OS X 10.5/Leopad

2008-01-30 Thread Mark Dickinson
Mark Dickinson added the comment: I can reproduce this in the trunk, on OS X 10.5.1/Intel: after a ./configure --enable-framework make sudo make altinstall ctrl-clicking on a simple python file on the Desktop and selecting OpenWith - PythonLauncher fails to run the script and gives

[issue1978] Python(2.5.1) will be crashed when i use _ssl module in multi-threads environment in linux.

2008-01-30 Thread Bill Janssen
Bill Janssen added the comment: Thanks for the patch. I'm of two minds about this. It may well be an appropriate patch for 2.5.2 -- I seem to recall having to do something much like this in the new SSL module -- but it patches the old SSL code which we are replacing for 2.6. And I'd recommend

<    1   2   3   >