cryha 1.0 - Toolkit for crypto on database

2009-05-30 Thread Kless
I'm proud to release version 1.0 of cryha. Cryha is a Python toolkit for securing information into a data base; it lets hash passwords, and encrypt/decrypt personal information. It is ready for input of Unicode characters, and the schema is returned as Unicode. The text is stored according to

[RELEASED] Python 3.1 Release Candidate 1

2009-05-30 Thread Benjamin Peterson
On behalf of the Python development team, I'm happy to announce the first release candidate of Python 3.1. Python 3.1 focuses on the stabilization and optimization of the features and changes that Python 3.0 introduced. For example, the new I/O system has been rewritten in C for speed. File

problem with pylint + PyQt4

2009-05-30 Thread Vito De Tullio
I'm having probles using pylint on a PyQt4 application. $ cat TEST_pylint.py import PyQt4.QtCore from PyQt4.QtGui import QApplication $ python TEST_pylint.py # no import errors $ pylint --disable-msg=C0103 --disable-msg=C0111 --disable-msg=W0611 \ TEST_pylint.py

Re: lxml: traverse xml tree and retrieve element based on an attribute

2009-05-30 Thread Stefan Behnel
byron wrote: I am using the lxml.etree library to validate an xml instance file with a specified schema that contains the data types of each element. This is some of the internals of a function that extracts the elements: schema_doc = etree.parse(schema_fn) schema =

Browser based Canvas UI?

2009-05-30 Thread Ken Seehart
A couple years ago I stumbled upon an interesting technology but I can't seem to find it, and I can remember what it is called. Unfortunately this makes it difficult to search for. I am am aware of several partial matches (items that meet a subset of the requirement listed below). Does

Re: Python, Tkinter and popen problem

2009-05-30 Thread Piet van Oostrum
norseman norse...@hughes.net (n) wrote: n Piet van Oostrum wrote: norseman norse...@hughes.net (n) wrote: n I have tried both and Popen2.popen2(). n os.popen runs both way, contrary to docs. What do you mean `os.popen runs both way'? n It reads from child while console writes directly to

Re: Browser based Canvas UI?

2009-05-30 Thread CTO
On May 30, 4:12 am, Ken Seehart k...@seehart.com wrote: A couple years ago I stumbled upon an interesting technology but I can't seem to find it, and I can remember what it is called.  Unfortunately this makes it difficult to search for.  I am am aware of several partial matches (items that

Re: How does Python's OOP feel?

2009-05-30 Thread Teguh Iskanto
On Sat, May 30, 2009 at 2:50 PM, Benjamin Kaplan bs...@case.edu wrote: On Fri, May 29, 2009 at 9:41 PM, Lie Ryan lie.1...@gmail.com wrote: Ikon wrote: I'm rather new to Python. I have PHP for my main language and I do some Java. They all have a very strict OO schema. As I red through

Re: How to reuse TCP listening socket immediately after it was connected at least once?

2009-05-30 Thread Thomas Bellman
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message gvlppt$hk...@news.lysator.liu.se, Thomas Bellman wrote: Speaking as a sysadmin, running applications for production, programs not using SO_REUSEADDR should be taken out and shot. Not using SO_REUSEADDR means forcing a

Q: finding distance between 2 time's

2009-05-30 Thread martin
I made this little script (below) to look througt a dir to see if there are any files newer than .e.g. 1 hour. I have the loop through the dir working and can retreive file time as well as present time. both time variables are in the format returned by time.localtime() My question: How do I find

Re: How does Python's OOP feel?

2009-05-30 Thread Ken Seehart
Benjamin Kaplan wrote: On Fri, May 29, 2009 at 9:41 PM, Lie Ryan lie.1...@gmail.com mailto:lie.1...@gmail.com wrote: Ikon wrote: I'm rather new to Python. I have PHP for my main language and I do some Java. They all have a very strict OO schema. As I red through Python's

Re: Q: finding distance between 2 time's

2009-05-30 Thread jkv
Hi Martin, What i usally do is to convert the two times to seconds since epoch and compare the two values in seconds. You can use time.mktime to convert localtime to seconds since epoch. I added a few lines to your script, and now it ought to only print files newer than 3601 seconds (3600

Re: Questions about regex

2009-05-30 Thread bearophileHUGS
Jared.S., even if a regex doesn't look like a program, it's like a small program written in a strange language. And you have to test and comment your programs. So I suggest you to program in a more tidy way, and add unit tests (doctests may suffice here) to your regexes, you can also use the

Re: Browser based Canvas UI?

2009-05-30 Thread Ken Seehart
CTO wrote: On May 30, 4:12 am, Ken Seehart k...@seehart.com wrote: A couple years ago I stumbled upon an interesting technology but I can't seem to find it, and I can remember what it is called. Unfortunately this makes it difficult to search for. I am am aware of several partial matches

Re: Q: finding distance between 2 time's

2009-05-30 Thread martin
Thanks both The first answer is quite instuctive, the other one might be the one I'll use in the code, it's nicely compact and clear. So 2x thanks. :-) Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: What text editor is everyone using for Python

2009-05-30 Thread Hendrik van Rooyen
Lie Ryan lie..@gmail.com wrote: norseman wrote: Suggestion: Take a look at the top two most used OS you use and learn the default (most often available) text editors that come with them. Which means Notepad on Windows? you could live dangerously and use WordPad... - Hendrik --

Re: Q: finding distance between 2 time's

2009-05-30 Thread Steven D'Aprano
On Sat, 30 May 2009 12:06:55 +0200, jkv wrote: I added a few lines to your script, and now it ought to only print files newer than 3601 seconds (3600 seconds is one hour). ... #if file newer than one hour print a line if time_difference 3601: That's a potential off-by-one error.

Re: Questions about regex

2009-05-30 Thread Steven D'Aprano
On Fri, 29 May 2009 11:26:07 -0700, Jared.S.Bauer wrote: Hello, I'm new to python and I'm having problems with a regular expression. I use textmate as my editor and when I run the regex in textmate it works fine, but when I run it as part of the script it freezes. Could anyone help me

Re: What text editor is everyone using for Python

2009-05-30 Thread edexter
On May 30, 6:28 am, Hendrik van Rooyen m...@microcorp.co.za wrote: Lie Ryan lie..@gmail.com wrote: norseman wrote: Suggestion: Take a look at the top two most used OS you use and learn the default (most often available) text editors that come with them. Which means Notepad on

Re: Questions about regex

2009-05-30 Thread Rob Williscroft
wrote in news:fe9f707f-aaf3-4ca6-859a-5b0c63904fc0 @s28g2000vbp.googlegroups.com in comp.lang.python: text = re.sub('(\(/?[^\]+)\)', , text)#remove the HTML Python has a /r/ (raw) string literal type for regex's: text = re.sub( r'(\(/?[^\]+)\)', , text ) In raw strings python

Python and Glade: window not showing

2009-05-30 Thread Sven Arduwie
Can anyone help a python newbie and tell me why the simple window I created in Glade is not showing? This is the XML generated by Glade 3: ?xml version=1.0? interface requires lib=gtk+ version=2.16/ !-- interface-naming-policy project-wide -- object class=GtkWindow id=helloWorld

PyQt4 + WebKit

2009-05-30 Thread dudekksoft
Hello, I need to grab clicked links in QWebView. Everything is fine when I use linkClicked() signal. LinkDelegationPolicy is set to DelegateAllLinks and there is a problem. If some site has Javascript my procedure receives QUrl from linkClicked, next calls: webView.setUrl(url) #Where url is

Compiling and transporting modules/libraries in python

2009-05-30 Thread Abe
Hi all - I hope this is a simple question, but I've been running in circles trying to figure it out myself. Is there a good way to wrap up a library (e.g. numpy or matplotlib) so that I can use it on another machine without actually installing it? I use python at a home office and in a

Re: How to ask smart questions question

2009-05-30 Thread Aahz
In article 960af9f3-c445-4d6d-b277-76a123ee4...@s28g2000vbp.googlegroups.com, Carl Banks pavlovevide...@gmail.com wrote: On May 26, 7:48=A0am, Gary Herron gher...@islandtraining.com wrote: The proper response to a question like this has to be =A0

Re: MySQLdb 1.2.2 + python 2.6.2

2009-05-30 Thread Piet van Oostrum
monogeo mono...@gmail.com (m) wrote: m Hi all, m Are MySQLdb 1.2.2 and python 2.6.2 compatible? I went to m http://sourceforge.net/project/showfiles.php?group_id=22307, it m doesn't say it is compatible or not. m When trying to install MySQLdb 1.2.2 on my machine which is running m python 2.6.2

[RELEASED] Python 3.1 Release Candidate 1

2009-05-30 Thread Benjamin Peterson
On behalf of the Python development team, I'm happy to announce the first release candidate of Python 3.1. Python 3.1 focuses on the stabilization and optimization of the features and changes that Python 3.0 introduced. For example, the new I/O system has been rewritten in C for speed. File

Re: CRLF when doing os.system(ls -l) while using curses !!!

2009-05-30 Thread lsk040365
On May 29, 6:35 pm, Piet van Oostrum p...@cs.uu.nl wrote: lkenne...@gmail.com (l) wrote: l Here is the code and as you can see for yourself, the output is not l coming out on the screen with CRLF like it should.  How do I fix this? Don't use curses. Curses puts the terminal in raw mode

hash and __eq__

2009-05-30 Thread Aaron Brady
I am writing a mapping object, and I want to ask about the details of __hash__ and __eq__. IIUC if I understand correctly, the Python dict's keys' hash codes are looked up first in O( 1 ), then all the matching hash entries are compared on equality in O( n ). That is, the hash code just really

Re: Python and Glade: window not showing

2009-05-30 Thread Sven Arduwie
On 30 mei, 17:02, Sven Arduwie sven.ardu...@gmail.com wrote: Can anyone help a python newbie and tell me why the simple window I created in Glade is not showing? This is the XML generated by Glade 3: ?xml version=1.0? interface   requires lib=gtk+ version=2.16/   !--

Re: Python and Glade: window not showing

2009-05-30 Thread Dave Angel
Sven Arduwie wrote: On 30 mei, 17:02, Sven Arduwie sven.ardu...@gmail.com wrote: Can anyone help a python newbie and tell me why the simple window I created in Glade is not showing? This is the XML generated by Glade 3: ?xml version=.0? interface requires lib=tk+ version=2.16/ !--

Re: Python and Glade: window not showing

2009-05-30 Thread Sven Arduwie
On 30 mei, 21:02, Dave Angel da...@ieee.org wrote: Sven Arduwie wrote: On 30 mei, 17:02, Sven Arduwie sven.ardu...@gmail.com wrote: Can anyone help a python newbie and tell me why the simple window I created in Glade is not showing? This is the XML generated by Glade 3: ?xml

Re: hash and __eq__

2009-05-30 Thread Aaron Brady
On May 30, 12:11 pm, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sat, 30 May 2009 11:20:47 -0700 (PDT), Aaron Brady castiro...@gmail.com declaimed the following in gmane.comp.python.general: P.S.  I always feel like my posts should start like, A mapping object am writing I.  Not too

IndexError: tuple index out of range

2009-05-30 Thread Invert
My simple python script gives me an error when I try to execute it. Here is the error message: dan...@ibex:~/Desktop/python$ python3 str_format2Daniel.py Traceback (most recent call last): File str_format2Daniel.py, line 8, in module print ({0} is {1} years old {3} and .format(name,

how to free memory allocated by a function call via ctypes

2009-05-30 Thread Tzury Bar Yochay
Hi, Suppose I have the following function char *generateMessage(char *sender, char *reciever, char *message) ; now in c I would normally do char *msg = generateMessage(sender, reciever, message); // do something free(msg); My question is how do I free the memory allocated when I call this

Re: CRLF when doing os.system(ls -l) while using curses !!!

2009-05-30 Thread Piet van Oostrum
lsk040365 lkenne...@gmail.com (l) wrote: l Can you provide me with some sort of example possibly--I have been l fighting this for a while and I wouldn't be using curses but I have l designed the program with the extended ascii characters thereby making l a nice UI...? Nice UI This is so

Re: hash and __eq__

2009-05-30 Thread Piet van Oostrum
Aaron Brady castiro...@gmail.com (AB) wrote: AB I am writing a mapping object, and I want to ask about the details of AB __hash__ and __eq__. IIUC if I understand correctly, the Python AB dict's keys' hash codes are looked up first in O( 1 ), then all the AB matching hash entries are compared

Re: IndexError: tuple index out of range

2009-05-30 Thread MRAB
Invert wrote: My simple python script gives me an error when I try to execute it. Here is the error message: dan...@ibex:~/Desktop/python$ python3 str_format2Daniel.py Traceback (most recent call last): File str_format2Daniel.py, line 8, in module print ({0} is {1} years

Re: how to free memory allocated by a function call via ctypes

2009-05-30 Thread Benjamin Peterson
Tzury Bar Yochay Afro.Systems at gmail.com writes: My question is how do I free the memory allocated when I call this function using ctypes The return type of ctypes.create_string_buffer() will call free() when it is garbage collected. --

decoding keyboard input when using curses

2009-05-30 Thread Arnaud Delobelle
Hi all, I am looking for advice on how to use unicode with curses. First I will explain my understanding of how curses deals with keyboard input and how it differs with what I would like. The curses module has a window.getch() function to capture keyboard input. This function returns an

Re: decoding keyboard input when using curses

2009-05-30 Thread Arnaud Delobelle
Arnaud Delobelle arno...@googlemail.com writes: [...] I can pipe the stream of output from getch() directly through an ^^^ I mean *can't* instance of codecs.getreader('utf-8') because getch() sometimes returns the integer values of the 'special keys'. [...] I reread my post 3 times before

Re: hash and __eq__

2009-05-30 Thread Arnaud Delobelle
Piet van Oostrum p...@cs.uu.nl writes: Aaron Brady castiro...@gmail.com (AB) wrote: AB I am writing a mapping object, and I want to ask about the details of AB __hash__ and __eq__. IIUC if I understand correctly, the Python AB dict's keys' hash codes are looked up first in O( 1 ), then all the

Re: scripting and uploading in Python

2009-05-30 Thread Aahz
In article 3c1f0711-8da8-4610-bf8e-679eff0fa...@21g2000vbk.googlegroups.com, Mark Tarver dr.mtar...@ukonline.co.uk wrote: Generally I'd like to bring myself up to speed on scripting in Python. Any good reads - dead tree or otherwise? Assuming you have any programming experience, start with

Re: multiprocessing / forking memory usage

2009-05-30 Thread Aahz
In article mailman.771.1243360355.8015.python-l...@python.org, Randall Smith rand...@tnr.cc wrote: I'm trying to get a grasp on how memory usage is affected when forking as the multiprocessing module does. I've got a program with a parent process using wx and other memory intensive modules.

Python 2.6 for Windows 64-bit AMD

2009-05-30 Thread dineshv
I upgraded from Python 2.5.4 to Python 2.6.2 under the Windows 64-bit AMD version, but no external libraries (eg. pyparsing and Numpy 1.3) work. I noticed a few odd things: i. pyparsing could not find an entry for Python 2.6.2 in the Wondows Registry ii. Python 2.6.2 only allows per-machine

Re: Q: finding distance between 2 time's

2009-05-30 Thread jkv
mar...@hvidberg.net wrote: Thanks both The first answer is quite instuctive, the other one might be the one I'll use in t I didn't receive the other answer, could you please forward it to me? So 2x thanks. You are welcome. I took another look at your code, and you can compress it all to a if

Re: hash and __eq__

2009-05-30 Thread Terry Reedy
Aaron Brady wrote: I am writing a mapping object, and I want to ask about the details of __hash__ and __eq__. IIUC if I understand correctly, the Python dict's keys' hash codes are looked up first in O( 1 ), then all the matching hash entries are compared on equality in O( n ). That is, the

Re: IndexError: tuple index out of range

2009-05-30 Thread Terry Reedy
MRAB wrote: Invert wrote: My simple python script gives me an error when I try to execute it. Here is the error message: dan...@ibex:~/Desktop/python$ python3 str_format2Daniel.py Traceback (most recent call last): File str_format2Daniel.py, line 8, in module print ({0}

Re: hash and __eq__

2009-05-30 Thread Robert Kern
On 2009-05-30 17:29, Terry Reedy wrote: Aaron Brady wrote: I am writing a mapping object, and I want to ask about the details of __hash__ and __eq__. IIUC if I understand correctly, the Python dict's keys' hash codes are looked up first in O( 1 ), then all the matching hash entries are compared

Re: Python 2.6 for Windows 64-bit AMD

2009-05-30 Thread Terry Reedy
dineshv wrote: I upgraded from Python 2.5.4 to Python 2.6.2 under the Windows 64-bit AMD version, but no external libraries (eg. pyparsing and Numpy 1.3) work. I noticed a few odd things: i. pyparsing could not find an entry for Python 2.6.2 in the Wondows Registry I suspect that you did

Re: Python 2.6 for Windows 64-bit AMD

2009-05-30 Thread Martin v. Löwis
Can anyone shed any light on what's up with this build of Python 2.6.2? You probably tried to install the 32-bit version of PyParsing; this cannot work with the 64-bit version of Python. You either need to obtain a 64-bit version of pyparsing, or install the 32-bit version of Python. HTH,

Re: hash and __eq__

2009-05-30 Thread Piet van Oostrum
Arnaud Delobelle arno...@googlemail.com (AD) wrote: AD Piet van Oostrum p...@cs.uu.nl writes: Aaron Brady castiro...@gmail.com (AB) wrote: AB I am writing a mapping object, and I want to ask about the details of AB __hash__ and __eq__. IIUC if I understand correctly, the Python AB dict's

Metaclass mystery

2009-05-30 Thread LittleGrasshopper
I am experimenting with metaclasses, trying to figure out how things are put together. At the moment I am baffled by the output of the following code: Output is: instance of metaclass MyMeta being created (class '__main__.MyMeta', class '__main__.MyMeta')

how to find the last decorator of a chain

2009-05-30 Thread Gabriel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, I have something like this: @render(format=a) @render(format=b) @ def view(format, data): return data Each render will do something with 'data' if format match, and nothing if not. But if there is no more renders to eval, the last one

Re: Q: finding distance between 2 time's

2009-05-30 Thread John Machin
On May 30, 7:33 pm, mar...@hvidberg.net wrote: I made this little script (below) to look througt a dir to see if there are any files newer than .e.g. 1 hour. I have the loop through the dir working and can retreive file time as well as present time. both time variables are in the format

Re: how to find the last decorator of a chain

2009-05-30 Thread Benjamin Peterson
Gabriel gabriel at opensuse.org writes: In my understanding this equivalent to: render('a', render('b', view(***))) Is there any way to know, in this case, that 'a' is the 'default' format? You could set an attribute on the function indicating the default. --

Re: PyQt4 + WebKit

2009-05-30 Thread David Boddie
On Saturday 30 May 2009 17:39, dudekks...@gmail.com wrote: I need to grab clicked links in QWebView. Everything is fine when I use linkClicked() signal. LinkDelegationPolicy is set to DelegateAllLinks and there is a problem. If some site has Javascript my procedure receives QUrl from

Re: Metaclass mystery

2009-05-30 Thread LittleGrasshopper
On May 30, 4:01 pm, LittleGrasshopper seattleha...@yahoo.com wrote: I am experimenting with metaclasses, trying to figure out how things are put together. At the moment I am baffled by the output of the following code: Output is: instance of metaclass

Re: What text editor is everyone using for Python

2009-05-30 Thread Lawrence D'Oliveiro
In message wontl.14450$y61@news-server.bigpond.net.au, Lie Ryan wrote: norseman wrote: Suggestion: Take a look at the top two most used OS you use and learn the default (most often available) text editors that come with them. Which means Notepad on Windows? Or you could take a Linux

Re: DB-API execute params, am I missing something?

2009-05-30 Thread Lawrence D'Oliveiro
In message 55520c08-5b02-4231- b0f3-74eadecd6...@g1g2000yqh.googlegroups.com, John Machin wrote: ... suggest a better way. http://codecodex.com/wiki/index.php?title=Useful_MySQL_Routines#Quoting -- http://mail.python.org/mailman/listinfo/python-list

(windows) How to get information as string from a GreenHills project?

2009-05-30 Thread Jebel
I use python to start a GreenHills project in command line. And the GreenHills project create a string which is include the information that needed to be analyzed. How Can I return this string from GreenHills project to python? Thanks a lot. --

[issue3061] time.strftime() always decodes result with UTF-8

2009-05-30 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Committed as r73043, r73044 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3061 ___

[issue6148] Help well execute code it is called on

2009-05-30 Thread Ian Miers
New submission from Ian Miers imichaelmi...@gmail.com: when calling help() from the python interpreter on a function whose default argument is provided by another function ( e.g. def foo(bar=baz() ) : ), help will call baz(). This can cause problems because baz() can alter statefull data

[issue6148] Help well execute code it is called on

2009-05-30 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Default args are evaluated when the module is imported, if the arg is a function call, the function is called. You can see how the file is created just after the import, you don't even need to call help(). This behavior is documented here:

[issue6148] Help well execute code it is called on

2009-05-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Ezio is correct. The file is already created while importing bug, not due to the call to help(). -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6146] markup error in Doc/library/rlcompleter.rst

2009-05-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, applied in r73045. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6146 ___

[issue672115] Assignment to __bases__ of direct object subclasses

2009-05-30 Thread Lars
Lars gemer...@gmail.com added the comment: ok, i see what you mean, for me at this time the most important question is whta does class object(object) pass do, why can i change baseclasses after i redeclare object this way, and will it get me into trouble when i use this to let users

[issue6022] test_distutils leaves a 'foo' file behind in the cwd

2009-05-30 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Hi All, The test always fails even builddir == srddir , with and without directory links in src-/build-path. $ LD_LIBRARY_PATH=`pwd` ./python Python 2.7a0 (trunk:73046M, May 30 2009, 14:09:06) [GCC 4.2.4] on linux2 $ cat

[issue6022] test_distutils leaves a 'foo' file behind in the cwd

2009-05-30 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: P.S.: the test command start with LD_LIBRARY_PATH=`pwd` -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6022 ___

[issue5922] Multi-with patch

2009-05-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’d like to know whether my suggestion was rejected or merely overlooked. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5922 ___

[issue5922] Multi-with patch

2009-05-30 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Probably overlooked. Perhaps Georg will comment definitively later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5922 ___

[issue5922] Multi-with patch

2009-05-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I overlooked it, yes. But it also seems to me that it's no major problem :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5922 ___

[issue5922] Multi-with patch

2009-05-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Indeed, I called it nitpicking in the first place. I think it would be a micro-improvement, but still an improvement :) Thanks for replying. -- ___ Python tracker rep...@bugs.python.org

[issue998998] pickle bug - recursively memoizing class?

2009-05-30 Thread mike bayer
mike bayer mike...@zzzcomputing.com added the comment: im noticing my test case seems to work fine in py 3.0.1. haven't tested 2.6.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue998998

[issue6149] WeakValueDictionary constructor ported to Python 3.0 incorrectly

2009-05-30 Thread mike bayer
New submission from mike bayer mike...@zzzcomputing.com: The constructor for WeakValueDictionary does not obey the contract documented in its comments: # We inherit the constructor without worrying about the input # dictionary; since it uses our .update() method, we get the right #

[issue6149] WeakValueDictionary constructor ported to Python 3.0 incorrectly

2009-05-30 Thread mike bayer
Changes by mike bayer mike...@zzzcomputing.com: -- components: +Library (Lib) type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6149 ___

[issue6149] WeakValueDictionary constructor ported to Python 3.0 incorrectly

2009-05-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch for 3.1. -- keywords: +patch nosy: +pitrou priority: - high stage: - patch review versions: +Python 3.1 -Python 3.0 Added file: http://bugs.python.org/file14121/issue6149.patch ___

[issue6150] test_unicode fails in wide unicode build

2009-05-30 Thread Hagen Fürstenau
New submission from Hagen Fürstenau hfuerste...@gmx.net: ERROR: test_codecs_utf8 (__main__.UnicodeTest) -- Traceback (most recent call last): File Lib/test/test_unicode.py, line 911, in test_codecs_utf8

[issue6150] test_unicode fails in wide unicode build

2009-05-30 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - loewis nosy: +loewis priority: - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6150 ___

[issue6150] test_unicode fails in wide unicode build

2009-05-30 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- priority: release blocker - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6150 ___ ___

[issue6149] WeakValueDictionary constructor ported to Python 3.0 incorrectly

2009-05-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed in r73063. Thanks! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6149 ___

[issue5330] profile and cProfile do not report C functions called with keyword arguments

2009-05-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Updated patch, with test. -- nosy: +pitrou Added file: http://bugs.python.org/file14122/issue5330.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5330

[issue4618] print_function and unicode_literals don't work together

2009-05-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: - high stage: - needs patch type: - behavior versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4618 ___

[issue6127] Unexpected universal newline behavior (newline duplication) in Windows

2009-05-30 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I checked out the latest code from /branches/release26-maint and compiled it. Indeed the problem still exists. Python 2.6.2+ (release26-maint:73061M, May 30 2009, 16:57:28) [MSC v.1500 32 bit (Intel)] on win32 import io

[issue5330] profile and cProfile do not report C functions called with keyword arguments

2009-05-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r73064, r73065, r73066, r73067. Thanks! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5330

[issue1943] improved allocation of PyUnicode objects

2009-05-30 Thread Jim Jewett
Jim Jewett jimjjew...@users.sourceforge.net added the comment: There were a number of patches to support sharing of data between unicode objects. (By Larry Hastings?) They were rejected because (a) they were complicated, and (b) it was possible to provoke pathological memory retention.

[issue1943] improved allocation of PyUnicode objects

2009-05-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There were a number of patches to support sharing of data between unicode objects. (By Larry Hastings?) They were rejected because (a) they were complicated, and (b) it was possible to provoke pathological memory retention. Yes, it's

[issue6094] Python fails to build with Subversion 1.7

2009-05-30 Thread Jim Jewett
Jim Jewett jimjjew...@users.sourceforge.net added the comment: Would this patch mean that users of pre-1.7 subversion would get build failures? Is it possible to support both forms of wording? -- nosy: +jimjjewett ___ Python tracker

[issue6094] Python fails to build with Subversion 1.7

2009-05-30 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2009/5/30 Jim Jewett rep...@bugs.python.org: Jim Jewett jimjjew...@users.sourceforge.net added the comment: Would this patch mean that users of pre-1.7 subversion would get build failures?  Is it possible to support both forms of

[issue6151] Make PyDescr_COMMON conform to standard C

2009-05-30 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti alexan...@peadrop.com: PyDescrObject make use of the some undefined behavior noted in PEP 3123 for PyObject in Python 2.x. Although fixing this requires breaking backward-compatibility, this shouldn't be much a problem since PyDescrObject is only used

[issue6137] Pickle migration: Should pickle map copy_reg to copyreg?

2009-05-30 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: If I understood correctly, #3675 is about making pickle data generated by Python 3 readable by Python 2. However, this issue is about compatibility in the other direction—i.e., making Python 2 pickles readable by Python 3, which is

[issue956303] Update pickle docs to describe format of persistent IDs

2009-05-30 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: The updated documentation for pickle for Python 3 describes the requirement that persistent IDs should be alphanumeric strings when protocol 0 is used. http://docs.python.org/3.0/library/pickle.html#persistence-of-external-objects

[issue6152] Parellel regression testing

2009-05-30 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This experimental patch introduces a new option to run regression tests in parallel. The option is named '-j' by analogy with the corresponding `make` option. For example, to run up to two tests in parallel: ./python -m test.regrtest -j2

[issue6152] Parellel regression testing

2009-05-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file14125/regrtest.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6152 ___

[issue6152] Parellel regression testing

2009-05-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file14126/regrtest.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6152 ___

[issue6152] Parallel regression testing

2009-05-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- title: Parellel regression testing - Parallel regression testing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6152 ___

[issue6151] Make PyDescr_COMMON conform to standard C

2009-05-30 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The patch looks fine in principle. I believe many of the macro applications are unnecessary, because the type of the variables being accessed is already PyDescrObject. Not sure whether this can be applied to 3.1 still. --

[issue6153] email parsing - Rare Failure

2009-05-30 Thread Winston Ewert
New submission from Winston Ewert winstonew...@gmail.com: I was using email.message_from_string which eventually feeds block of 8192 bytes into the actual e-mail parsing code. However, in my case one the blocks split the \r\n at the end of a submessage. This caused the code to identify it as two

[issue4618] print_function and unicode_literals don't work together

2009-05-30 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4618 ___ ___ Python-bugs-list