PyCon DE 2011 - Only Four Days Left to Submit your Proposal

2011-07-12 Thread Mike Müller
PyCon DE 2011 - Only Four Days Left to Submit your Proposal === The deadline for talk proposals is July 15, 2011. You would like to talk about your Python project to the German-speaking Python community? Just submit your proposal within

[ANN] Passlib 1.5 Released

2011-07-12 Thread Eli Collins
I'm happy to announce the release of Passlib 1.5. Passlib is a comprehensive password hashing library for Python, supporting over 20 different hash schemes and an extensive framework for managing existing hashes. This release brings a long-requested feature: Python 3 support! Other not-so-major

Announcing Python Tools for Visual Studio RC1

2011-07-12 Thread Dino Viehland
Hello, We're pleased to announce the release of Python Tools for Visual Studio - RC 1 [http://pytools.codeplex.com/releases/view/64009]. This release includes lots of bug fixes and several new features selected from the top voted features on CodePlex. Some of the most significant changes are

PyModel-0.9: Model-based testing in Python

2011-07-12 Thread Jon Jacky
PyModel-0.9, an open-source model-based testing framework in Python, has been released. Code, documents, and downloads are available: http://staff.washington.edu/jon/pymodel/www/ http://pypi.python.org/pypi/PyModel https://github.com/jon-jacky/PyModel Version 0.9 adds new functionality,

Re: Python bug? Indexing to matrices

2011-07-12 Thread Ben Finney
David davidb...@gmail.com writes: Should the following line work for defining a matrix with zeros? c= [[0]*col]*row No. Python lists are not matrixes and are not arrays. If you want good implementations of arrays and matrices, use NumPy URL:http://numpy.scipy.org/. -- \ “Properly

Re: Virtual functions are virtually invisible!

2011-07-12 Thread Chris Angelico
On Tue, Jul 12, 2011 at 7:46 AM, rantingrick rantingr...@gmail.com wrote: Actually no i was purposely implying Mt. Vesuvius. You know, the VOLCANO that erupted and left poor Pompeii in ruins? Here is some text from the wiki verbatim: Yes, I do know that mountain. But it doesn't have very many

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-12 Thread Steven D'Aprano
Thorsten Kampe wrote: * sturlamolden (Mon, 11 Jul 2011 06:44:22 -0700 (PDT)) On 11 Jul, 14:39, Ben Finney ben+pyt...@benfinney.id.au wrote: The Unix model is: a collection of general-purpose, customisable tools, with clear standard interfaces that work together well, and are easily

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-12 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.12 05:24 AM, Steven D'Aprano wrote: Rather than taking advantage of that convenience, commercial vendors put barriers in the way and try to carve out little walled gardens. Did they not learn anything from AOL? DRM and activation

What Programing Language are the Largest Website Written In?

2011-07-12 Thread Xah Lee
maybe this will be of interest. 〈What Programing Language Are the Largest Website Written In?〉 http://xahlee.org/comp/website_lang_popularity.html - i don't remember how, but today i suddenly got reminded that Facebook is written in PHP. So, on the spur of the

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-12 Thread Chris Angelico
On Tue, Jul 12, 2011 at 8:24 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Where is the Windows equivalent of yum or apt-get? Why isn't there a central repository of independent and third party Windows software? It seems clear to me that it is the major open source communities

Re: Python bug? Indexing to matrices

2011-07-12 Thread sturlamolden
On 12 Jul, 07:39, David davidb...@gmail.com wrote: Should the following line work for defining a matrix with zeros? c= [[0]*col]*row No. The rows will be aliased. This will work: c = [[0]*col for i in range(row)] Note that Python lists are not ment to be used as matrices. We have NumPy or

Re: Python bug? Indexing to matrices

2011-07-12 Thread sturlamolden
On 12 Jul, 14:59, sturlamolden sturlamol...@yahoo.no wrote:    ma = np.matrix(a)    mb = np.matrix(b)    a*b ma*mb Sorry for the typo. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python bug? Indexing to matrices

2011-07-12 Thread David
Thank all for the very helpful replies. The goal of the matrix multiply exercise was just to help my son and I learn Python better. I now understand *why* my initialization of [c] was wrong and I am continuing to check out numpy and scipy. Regards, David --

Set run vars with each call

2011-07-12 Thread Gnarlodious
Question. Is there a special method or easy way to set default values with each call to an instance? Any ideas to make it easier? What I want to do is have a constantly updating set of values which can be overridden. Just thought there was an easy way to set that up. -- Gnarlie --

Re: Set run vars with each call

2011-07-12 Thread Alister Ware
On Tue, 12 Jul 2011 06:32:32 -0700, Gnarlodious wrote: Question. Is there a special method or easy way to set default values with each call to an instance? Any ideas to make it easier? What I want to do is have a constantly updating set of values which can be overridden. Just thought there

How to write a file generator

2011-07-12 Thread Billy Mays
I want to make a generator that will return lines from the tail of /var/log/syslog if there are any, but my function is reopening the file each call: def getLines(): with open('/var/log/syslog', 'rb') as f: while True: line = f.readline() if line:

Re: Lisp refactoring puzzle

2011-07-12 Thread Terry Reedy
On 7/11/2011 11:37 PM, Xah Lee wrote: it's funny, in all these supposedly modern high-level langs, they don't provide even simple list manipulation functions such as union, intersection, and the like. Not in perl, not in python, Union and intersection are set operations, not list operations.

Re: Lisp refactoring puzzle

2011-07-12 Thread jvt
I might argue that it isn't quite right (or politic) to call those who resist technological changes idiots so much as to observe they often have goals which cannot wait for the ideal expressive system. People love python not because Python is the platonic programming language, but because it does

Re: Lisp refactoring puzzle

2011-07-12 Thread WJ
Xah Lee wrote: it's funny, in all these supposedly modern high-level langs, they don't provide even simple list manipulation functions such as union, intersection, and the like. Not in perl, not in python, not in lisps. Ruby has them. Intersection: [2,3,5,8] [0,2,4,6,8] ==[2, 8]

Re: Lisp refactoring puzzle

2011-07-12 Thread Chris Kaynor
On Mon, Jul 11, 2011 at 8:37 PM, Xah Lee xah...@gmail.com wrote: it's funny, in all these supposedly modern high-level langs, they don't provide even simple list manipulation functions such as union, intersection, and the like. Not in perl, not in python, not in lisps. (sure, lib exists, but

Re: How to write a file generator

2011-07-12 Thread bruno.desthuilli...@gmail.com
On Jul 12, 4:46 pm, Billy Mays no...@nohow.com wrote: I want to make a generator that will return lines from the tail of /var/log/syslog if there are any Err... I must have missed something, but python files are their own iterators. Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5]

Re: How to write a file generator

2011-07-12 Thread Thomas Jollans
On 07/12/2011 04:46 PM, Billy Mays wrote: I want to make a generator that will return lines from the tail of /var/log/syslog if there are any, but my function is reopening the file each call: def getLines(): with open('/var/log/syslog', 'rb') as f: while True: line

Re: Lisp refactoring puzzle

2011-07-12 Thread fortunatus
I think the problem with so-called forward looking or highest level languages is that they tend to become domain specific. What Lispers are always saying is construct your own high level language out of your favorite Lisp. Of course no one else will use it then, or even discuss it, unless you

Python Wizard, with apologies to The Who

2011-07-12 Thread John Keisling
After too much time coding Python scripts and reading Mark Lutz's Python books, I was inspired to write the following lyrics. For those too young to remember, the tune is that of Pinball Wizard, by The Who. May it bring you as much joy as it brought me! I cut my teeth on BASIC At scripting I'm

Re: How to write a file generator

2011-07-12 Thread Billy Mays
On 07/12/2011 11:52 AM, Thomas Jollans wrote: On 07/12/2011 04:46 PM, Billy Mays wrote: I want to make a generator that will return lines from the tail of /var/log/syslog if there are any, but my function is reopening the file each call: def getLines(): with open('/var/log/syslog', 'rb')

Re: Python Wizard, with apologies to The Who

2011-07-12 Thread Matty Sarro
I don't know whether to LOL or mourn the part of me that just died inside :-P j/k j/k clever song, and it made me laugh :) On Tue, Jul 12, 2011 at 12:40 PM, John Keisling maththespia...@gmail.com wrote: After too much time coding Python scripts and reading Mark Lutz's Python books, I was

Re: Lisp refactoring puzzle

2011-07-12 Thread Terry Reedy
On 7/11/2011 11:37 PM, Xah Lee wrote: watch the first episode of Douglas Crockford's talk here: http://developer.yahoo.com/yui/theater/video.php?v=crockonjs-1 The link includes a transcript of the talk, which I read I suspect Lee likes Crockford because they both think they are smarter

Re: How to write a file generator

2011-07-12 Thread sturlamolden
On 12 Jul, 16:46, Billy Mays no...@nohow.com wrote: I know the problem lies with the StopIteration, but I'm not sure how to tell the caller that there are no more lines for now. Try 'yield None' instead of 'raise StopIteration'. Sturla -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Wizard, with apologies to The Who

2011-07-12 Thread Tim Daneliuk
On 7/12/2011 11:40 AM, John Keisling said this: After too much time coding Python scripts and reading Mark Lutz's Python books, I was inspired to write the following lyrics. For those too young to remember, the tune is that of Pinball Wizard, by The Who. May it bring you as much joy as it

Re: Set run vars with each call

2011-07-12 Thread Gnarlodious
On Jul 12, 8:46 am, Alister Ware wrote: I thought that was the role of the __init__ function class Something:         def __init__(self):                 self.value=some value OK, that sets a value at init time. But is there a similar built-in to run whenever the class instance is called?

Re: Python Wizard, with apologies to The Who

2011-07-12 Thread Tim Daneliuk
On 7/12/2011 12:08 PM, Tim Daneliuk said this: On 7/12/2011 11:40 AM, John Keisling said this: After too much time coding Python scripts and reading Mark Lutz's Python books, I was inspired to write the following lyrics. For those too young to remember, the tune is that of Pinball Wizard, by

Re: Set run vars with each call

2011-07-12 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.12 12:32 PM, Gnarlodious wrote: OK, that sets a value at init time. But is there a similar built-in to run whenever the class instance is called? What do you mean by call an instance? Do you want to run certain code whenever any

Re: How to write a file generator

2011-07-12 Thread Terry Reedy
On 7/12/2011 10:46 AM, Billy Mays wrote: I want to make a generator that will return lines from the tail of /var/log/syslog if there are any, but my function is reopening the file each call: def getLines(): with open('/var/log/syslog', 'rb') as f: while True: line = f.readline() if line: yield

new python contracts library

2011-07-12 Thread Rodney Gomes
Hey I recently created a contracts library for python and was wondering if anyone finds it useful or wants to have additional features added ? Feel free to open new issues on the github project. https://github.com/rlgomes/contracts This is just a v0.1 and I welcome any and all suggestions to

Re: Python Wizard, with apologies to The Who

2011-07-12 Thread Phlip
That modeling and sim guy Sure codes some mean Python! C-; And he changes key on the fly, too! -- http://mail.python.org/mailman/listinfo/python-list

Re: Lisp refactoring puzzle

2011-07-12 Thread gene heskett
On Tuesday, July 12, 2011 02:08:02 PM Terry Reedy did opine: On 7/11/2011 11:37 PM, Xah Lee wrote: watch the first episode of Douglas Crockford's talk here: http://developer.yahoo.com/yui/theater/video.php?v=crockonjs-1 The link includes a transcript of the talk, which I read I

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-12 Thread CM
One reason there hasn't been much demand for a GUI builder is that, in many cases, it's just as simpler or simpler to code a GUI by hand. I use a GUI builder because I'd rather click less than type more. I just tried that in Boa Constructor; with ~10 mouse clicks I produced 964 characters of

Re: Python Wizard, with apologies to The Who

2011-07-12 Thread John Keisling
On Jul 12, 11:34 am, Tim Daneliuk tun...@tundraware.com wrote: On 7/12/2011 12:08 PM, Tim Daneliuk said this: On 7/12/2011 11:40 AM, John Keisling said this: After too much time coding Python scripts and reading Mark Lutz's Python books, I was inspired to write the following lyrics. For

Re: Set run vars with each call

2011-07-12 Thread Ian Kelly
On Tue, Jul 12, 2011 at 11:50 AM, Andrew Berg bahamutzero8...@gmail.com wrote: On 2011.07.12 12:32 PM, Gnarlodious wrote: OK, that sets a value at init time. But is there a similar built-in to run whenever the class instance is called? What do you mean by call an instance? Do you want to run

Re: Python Wizard, with apologies to The Who

2011-07-12 Thread Carl Banks
On Tuesday, July 12, 2011 9:40:23 AM UTC-7, John Keisling wrote: After too much time coding Python scripts and reading Mark Lutz's Python books, I was inspired to write the following lyrics. For those too young to remember, the tune is that of Pinball Wizard, by The Who. May it bring you as

Re: How to write a file generator

2011-07-12 Thread Thomas Jollans
On 07/12/2011 06:42 PM, Billy Mays wrote: On 07/12/2011 11:52 AM, Thomas Jollans wrote: On 07/12/2011 04:46 PM, Billy Mays wrote: I want to make a generator that will return lines from the tail of /var/log/syslog if there are any, but my function is reopening the file each call: def

Re: Lisp refactoring puzzle

2011-07-12 Thread Petter Gustad
Xah Lee xah...@gmail.com writes: it's funny, in all these supposedly modern high-level langs, they don't provide even simple list manipulation functions such as union, intersection, and the like. Not in perl, not in python, not in lisps. In Common Lisp you have: CL-USER (union '(a b c) '(b c

Re: How to write a file generator

2011-07-12 Thread Thomas Jollans
On 07/12/2011 06:42 PM, Billy Mays wrote: On 07/12/2011 11:52 AM, Thomas Jollans wrote: On 07/12/2011 04:46 PM, Billy Mays wrote: I want to make a generator that will return lines from the tail of /var/log/syslog if there are any, but my function is reopening the file each call: def

Complete Google Advertising Solutions

2011-07-12 Thread Amelia Grace
TheItValley is a capable web development application, software combination, search engine optimization, E-commerce, E-banking and complete Google advertising solution Organization based in UK main branches office in Sweden, Norway and Pakistan. The Internet is the most efficient and greatest

Re: Lisp refactoring puzzle

2011-07-12 Thread Neil Cerutti
On 2011-07-12, Petter Gustad newsmailco...@gustad.com wrote: Xah Lee xah...@gmail.com writes: it's funny, in all these supposedly modern high-level langs, they don't provide even simple list manipulation functions such as union, intersection, and the like. Not in perl, not in python, not in

Re: Lisp refactoring puzzle

2011-07-12 Thread WJ
Petter Gustad wrote: Xah Lee xah...@gmail.com writes: it's funny, in all these supposedly modern high-level langs, they don't provide even simple list manipulation functions such as union, intersection, and the like. Not in perl, not in python, not in lisps. In Common Lisp you have:

Re: Python Wizard, with apologies to The Who

2011-07-12 Thread Phlip
That's pretty funny.  I knew what it would be even when I saw the cut-off subject line, and I am too young to remember it. Carl Banks TTTO [She put the lime in the] Coconut: Brother wrote a database, he finish it on time His sister add requirements, refactor every line She change

Building Python 2.5.6 on Ubuntu Natty

2011-07-12 Thread Ricardo Bánffy
Hi folks. Has anyone succeeded in building Python 2.5.6 from sources in Ubuntu Natty? I installed all the build dependencies and keep getting running build_ext /usr/include/sqlite3.h: version 3.7.4 Traceback (most recent call last): File ./setup.py, line 1545, in module main() File

Re: Enhanced dir() function

2011-07-12 Thread Ethan Furman
Ethan Furman wrote: Tim Chase wrote: If it came in as an effortless (i.e. O(1) where I do it once and never again; not an O(n) where n=the number of times I invoke Python) default replacement for dir(), I'd reach for it a lot more readily. I seem to recall there's some environment-var or

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-12 Thread rantingrick
On Jul 12, 1:43 pm, CM cmpyt...@gmail.com wrote: One reason there hasn't been much demand for a GUI builder is that, in many cases, it's just as simpler or simpler to code a GUI by hand. I use a GUI builder because I'd rather click less than type more. I just tried that in Boa

Re: Set run vars with each call

2011-07-12 Thread Ben Finney
Gnarlodious gnarlodi...@gmail.com writes: OK, [the ‘__init__’ method] sets a value at init time. But is there a similar built-in to run whenever the class instance is called? You can write a ‘__call__’ method which will be called when the instance is called. But I suspect that's still not

Re: Enhanced dir() function

2011-07-12 Thread rantingrick
On Jun 30, 11:29 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: The dir() function is designed for interactive use, inspecting objects for the names of attributes and methods. Here is an enhanced version that allows you to pass a glob to filter the names you see: meh, I

Re: Enhanced dir() function

2011-07-12 Thread rantingrick
On Jul 1, 12:20 pm, Tim Chase python.l...@tim.thechases.com wrote: If it came in as an effortless (i.e. O(1) where I do it once and never again; not an O(n) where n=the number of times I invoke Python) default replacement for dir(), I'd reach for it a lot more readily.  I seem to recall

Installing PyPy alongside Python 2.7 on Windows?

2011-07-12 Thread Ben Sizer
I'd like to evaluate the recent build of PyPy on the project I'm currently working on, but am not sure how best to go about it. So my question is simply - how would I go about installing PyPy alongside Python 2.7 on Windows? In particular, unzipping PyPy and adding it to the PATH is easy enough,

Re: Python Wizard, with apologies to The Who

2011-07-12 Thread Ethan Furman
John Keisling wrote: After too much time coding Python scripts and reading Mark Lutz's Python books, I was inspired to write the following lyrics. For those too young to remember, the tune is that of Pinball Wizard, by The Who. May it bring you as much joy as it brought me! Absolutely

Re: Lisp refactoring puzzle

2011-07-12 Thread Pascal J. Bourguignon
Neil Cerutti ne...@norwich.edu writes: What's the rationale for providing them? Are the definitions obvious for collections that a not sets? The rational is to prove that Xah is dumb. -- __Pascal Bourguignon__ http://www.informatimago.com/ A bad day in () is better than a

Re: How to write a file generator

2011-07-12 Thread Thomas Rachel
Am 12.07.2011 16:46 schrieb Billy Mays: I want to make a generator that will return lines from the tail of /var/log/syslog if there are any, but my function is reopening the file each call ... I have another solution: an object which is not an iterator, but an iterable. class

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-12 Thread CM
On Jul 12, 5:18 pm, rantingrick rantingr...@gmail.com wrote: On Jul 12, 1:43 pm, CM cmpyt...@gmail.com wrote: One reason there hasn't been much demand for a GUI builder is that, in many cases, it's just as simpler or simpler to code a GUI by hand. I use a GUI builder because I'd

Re: Set run vars with each call

2011-07-12 Thread Steven D'Aprano
Gnarlodious wrote: Question. Is there a special method or easy way to set default values with each call to an instance? Any ideas to make it easier? What I want to do is have a constantly updating set of values which can be overridden. Just thought there was an easy way to set that up. All

mrjob v0.2.7 released

2011-07-12 Thread Jimmy Retzlaff
What is mrjob? - mrjob is a Python package that helps you write and run Hadoop Streaming jobs. mrjob fully supports Amazon's Elastic MapReduce (EMR) service, which allows you to buy time on a Hadoop cluster on an hourly basis. It also works with your own Hadoop cluster. Some

Re: Python Wizard, with apologies to The Who

2011-07-12 Thread Steven D'Aprano
John Keisling wrote: After too much time coding Python scripts and reading Mark Lutz's Python books, I was inspired to write the following lyrics. For those too young to remember, the tune is that of Pinball Wizard, by The Who. May it bring you as much joy as it brought me! [...] I wouldn't

Re: Lisp refactoring puzzle

2011-07-12 Thread Gregory Ewing
Xah Lee wrote: they don't provide even simple list manipulation functions such as union, intersection, and the like. Not in perl, not in python, not in lisps. Since 2.5 or so, Python has a built-in set type that provides these (which is arguably a better place for them than lists). -- Greg --

Re: Lisp refactoring puzzle

2011-07-12 Thread Roy Smith
In article 4e1cf936.4050...@canterbury.ac.nz, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Xah Lee wrote: they don't provide even simple list manipulation functions such as union, intersection, and the like. Not in perl, not in python, not in lisps. Since 2.5 or so, Python has a

Re: Set run vars with each call

2011-07-12 Thread Gnarlodious
On Jul 12, 6:44 pm, Steven D'Aprano wrote: All the words are in English, but the sentences make no sense :) LOL, impressive powers of mind-reading! Exactly what I needed: import time class Event: epoch=time.time() def doSomething(self, epoch=None): if epoch is None:

Re: Enhanced dir() function

2011-07-12 Thread Chris Angelico
On Wed, Jul 13, 2011 at 7:46 AM, rantingrick rantingr...@gmail.com wrote: [x for x in dir([]) if not x.startswith('_')] ['append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort'] Because we have plenty of room for args in this function... dir(verbose=False)

Re: Lisp refactoring puzzle

2011-07-12 Thread Terry Reedy
On 7/12/2011 2:23 PM, gene heskett wrote: Now, I hate to mention it Terry, but your clock seems to be about 126 months behind the rest of the world. Please do not hate to be helpful. It was a bad malfunction perhaps due to a run-down battery on a machine turned off for two weeks. I will keep

Re: Lisp refactoring puzzle

2011-07-12 Thread rusi
On Jul 13, 9:39 am, Terry Reedy tjre...@udel.edu wrote: On 7/12/2011 2:23 PM, gene heskett wrote: Now, I hate to mention it Terry, but your clock seems to be about 126 months behind the rest of the world. Please do not hate to be helpful. Ha Ha. Cute one. Thanks --

Re: Virtual functions are virtually invisible!

2011-07-12 Thread alex23
rantingrick rantingr...@gmail.com wrote: i cannot force others If only you really understood that. -- http://mail.python.org/mailman/listinfo/python-list

[issue12531] documentation index entries for * and **

2011-07-12 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12531 ___ ___ Python-bugs-list

[issue12522] Implement `os.startfile` under Linux and Mac

2011-07-12 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12522 ___ ___

[issue12539] multiprocessing.Event.wait(n) doesn't time out properly

2011-07-12 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Are you using a 2.6.38 kernel? There was a regression in early 2.6.38 kernels that caused FUTEX_WAIT with a timeout to never return after a suspend-resume, see: https://lkml.org/lkml/2011/4/13/23 It's been fixed by this commit:

[issue12436] Provide reference to detailed installation instructions

2011-07-12 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Nice, I didn't know we have those comprehensive using docs. However, they should be linked from http://docs.python.org/dev/tutorial/interpreter.html (definitely inline and perhaps a see also). --

[issue12535] Chained tracebacks are confusing because the first traceback is minimal

2011-07-12 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The ordering is as it is so that the last line in the displayed traceback corresponds to the exception that was actually caught. That is, the last line remains the same regardless of whether or not there was an earlier exception in the chain.

[issue4376] Nested ctypes 'BigEndianStructure' fails

2011-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Is there a unit test about the actual feature: that the bytes are actually swapped in the structure? For example, with a class T(BigEndianStructure): _fields_ = [(a, c_int), (b, c_int)] cast a pointer to T into a pointer to c_int, and

[issue12539] multiprocessing.Event.wait(n) doesn't time out properly

2011-07-12 Thread mokrates
mokrates mmo...@gmx.net added the comment: Are you using a 2.6.38 kernel? Yes There was a regression in early 2.6.38 kernels that caused FUTEX_WAIT with a timeout to never return after a suspend-resume, see: https://lkml.org/lkml/2011/4/13/23 Ah, thank you, that explains why gajim has

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-12 Thread Peter Caven
New submission from Peter Caven pca...@gmail.com: On Windows Vista (x64) the IDLE Restart Shell command leaves a pythonw.exe process running each time that the command is used. Observed in Python 3.2.1 release and RC2. -- components: IDLE messages: 140179 nosy: Peter.Caven priority:

[issue12485] textwrap.wrap: new argument for more pleasing output

2011-07-12 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12485 ___ ___

[issue12219] tkinter.filedialog.askopenfilename XT dialog on Windows 7

2011-07-12 Thread digi proc
digi proc grant...@gmail.com added the comment: Almost certainly a tkinter bug. A work around is below. First build a DLL from the following C++ source (and add a similar function for the 'save' dlg rather than the 'open' dlg): #include windows.h #include Commdlg.h #include tchar.h extern C{

[issue12219] tkinter.filedialog.askopenfilename XT dialog on Windows 7

2011-07-12 Thread digi proc
digi proc grant...@gmail.com added the comment: By the way, that above C++ function is not re-entrant! I was lazy and just made a static return buffer. To make it re-entrant, you'd need to figure out how to allocate enough space in the DefFile string so the C function could write the selected

[issue8668] Packaging: add a 'develop' command

2011-07-12 Thread higery
higery shoulderhig...@gmail.com added the comment: ** After the package has been installed in-place (using the develop command), how does one identify it as an in development project (or in development mode)? -- Case 3 and 6 touch on this topic (case 3 is a little vague at this time), but

[issue9254] __import__ docstring should recommend importlib.import_module()

2011-07-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The docstring of __import__ was updated to mention importlib in 3d490c3a019e, for #7397. Attached patch edits the docs. -- keywords: +patch versions: -Python 3.1 Added file:

[issue8668] Packaging: add a 'develop' command

2011-07-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file22628/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8668 ___

[issue8668] Packaging: add a 'develop' command

2011-07-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: For now, you should not worry about pkg_resources. Write a simple pure-packaging implementation compatible with packaging; the setuptools and distribute developers will see if they want to add forward compatibility with our system. --

[issue12539] multiprocessing.Event.wait(n) doesn't time out properly

2011-07-12 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Are you using a 2.6.38 kernel? Yes Alright, closing as invalid then. -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker

[issue8668] Packaging: add a 'develop' command

2011-07-12 Thread higery
higery shoulderhig...@gmail.com added the comment: 2011/7/12 Michael Mulich rep...@bugs.python.org Michael Mulich michael.mul...@gmail.com added the comment: The wiki page has been edited to note what the develop command will write to the file system. I'll restate it here as well... The

[issue7559] TestLoader.loadTestsFromName swallows import errors

2011-07-12 Thread Alex Garel
Alex Garel alex.ga...@gmail.com added the comment: May I just add that I also ran into this and give my +1 for any fix :-) -- nosy: +alexgarel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559

[issue8668] Packaging: add a 'develop' command

2011-07-12 Thread higery
Changes by higery shoulderhig...@gmail.com: Removed file: http://bugs.python.org/file22630/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8668 ___

[issue12279] Add build_distinfo command to packaging

2011-07-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: So if we include the RECORD file (point number 2) without the checksum and size (two columns in the RECORD csv format), Well, three columns, the last one being empty. we will still be PEP376 valid (maybe?), but the file verification

[issue3565] array documentation, method names not 3.x-compliant

2011-07-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: It was Antoine in fa8b57f987c5, for #8990. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3565 ___

[issue10968] threading.Timer should be a class so that it can be derived

2011-07-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Attached patch removes the indirection functions; the _Verbose shenanigans are left alone. The test suite passes; I haven’t edited the doc yet. -- keywords: +patch Added file: http://bugs.python.org/file22631/threading-classes.diff

[issue8668] Packaging: add a 'develop' command

2011-07-12 Thread higery
Changes by higery shoulderhig...@gmail.com: Added file: http://bugs.python.org/file22632/2750cd9e2111.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8668 ___

[issue12541] Accepting Badly formed headers in urllib HTTPBasicAuth

2011-07-12 Thread Alex Leon
New submission from Alex Leon ael...@gmail.com: It looks like some servers using basic authentication don't include quotes around the realm (example https://api.connect2field.com) as required by rfc 2617. urllib wont handle these requests and silently fails, but a simple change to the regex

[issue8668] Packaging: add a 'develop' command

2011-07-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file22614/b1b9da3b3d20.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8668 ___

[issue12417] Inappropriate copyright on profile files

2011-07-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The former license was also present in the reST documentation. Attached patch removes it, and also cleans up two lines: it removes a comment that duplicates a docstring, and removes the docstring from profile that you added to pstats :)

[issue12417] Inappropriate copyright on profile files

2011-07-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Added file: http://bugs.python.org/file22633/profile-free-followup.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12417 ___

[issue12542] Remove duplicates of cmp_to_key used in tests

2011-07-12 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: Two test files still use their own CmpToKey after the introduction of functools.cmp_to_key. -- components: Tests files: remove-custom-cmptokey.diff keywords: patch messages: 140193 nosy: eric.araujo, rhettinger priority: normal

[issue12541] Accepting Badly formed headers in urllib HTTPBasicAuth

2011-07-12 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12541 ___

[issue12542] Remove duplicates of cmp_to_key used in tests

2011-07-12 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12542 ___ ___

[issue8668] Packaging: add a 'develop' command

2011-07-12 Thread Michael Mulich
Michael Mulich michael.mul...@gmail.com added the comment: On Tue, Jul 12, 2011 at 9:39 AM, higery rep...@bugs.python.org wrote: The develop command writes three pieces of information to the filesystem:  1. It calls upon the build action(s) to build the package relative to the package's root

[issue8668] Packaging: add a 'develop' command

2011-07-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Oh, I just realized that one thing I insisted on was wrong. I pushed for the modules to be built in the build dir, as well as the dist-info dir, so that the build dir can be added to sys.path to let both import and packaging.database find the

  1   2   >