[ANN] Leipzig Python User Group - Meeting, June 14, 2011, 08:00pm

2011-06-11 Thread Mike Müller
=== Leipzig Python User Group === We will meet on Tuesday, June 14 at 8:00 pm at the training center of Python Academy in Leipzig, Germany ( http://www.python-academy.com/center/find.html ). Andreas Bunkahle will give a talk about OpenCV and Python. OpenCV (CV = Computer Vision) and Python

ANN: cssutils 0.9.8a2

2011-06-11 Thread Christof
what is it -- A Python package to parse and build CSS Cascading Style Sheets. (Not a renderer though!) about this release -- 0.9.8a2 is a bugfix release. Compatibility to Python 3.x is currently in development. At the same time Python 2.4 and Python 2.5 compatibility

Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-11 Thread Xah Lee
(a lil weekend distraction from comp lang!) in recent years, there came this Colemak layout. The guy who created it, Colemak, has a site, and aggressively market his layout. It's in linuxes distro by default, and has become somewhat popular. I remember first discovering it perhaps in 2007. Me,

Re: (*args **kwargs) how do I use' em?

2011-06-11 Thread FELD Boris
A good tutorial will surely help : http://www.saltycrane.com/blog/2008/01/how-to-use-args-and-kwargs-in-python/ The idea between *args and *kwargs is to create function (callables) which accepts an arbitrary number of anonymous and/or keyword arguments. It's useful when you want to create a

Re: (*args **kwargs) how do I use' em?

2011-06-11 Thread OliDa
On 11 juin, 07:01, TheSaint nob...@nowhere.net.no wrote: Hello, I'm seldomly writng python code, nothing but a beginner code. I wrote these lines = _log_in= mhandler.ConnectHandler(lmbox, _logger, accs) multhr=

Square bracket and dot notations?

2011-06-11 Thread Asen Bozhilov
Hi all, I am beginner in Python. What is interesting for me is that Python interpreter treats in different way dot and square bracket notations. I am coming from JavaScript where both notations lead prototype chain lookup. In Python it seems square bracket and dot notations lead lookup in

Overcharged

2011-06-11 Thread Ethan
I mad a call last night and never even talked to anybody, I knew I was being charged to just look and I'm ok with that amount u was charged. There was another charge though of I think 26 dollers witch I was not told or warned about at all, I need to know who I can call and talk to about this

Re: Square bracket and dot notations?

2011-06-11 Thread Andrew Berg
On 2011.06.11 04:41 AM, Asen Bozhilov wrote: Hi all, I am beginner in Python. What is interesting for me is that Python interpreter treats in different way dot and square bracket notations. I am coming from JavaScript where both notations lead prototype chain lookup. In Python it seems

Re: Square bracket and dot notations?

2011-06-11 Thread Ben Finney
Asen Bozhilov asen.bozhi...@gmail.com writes: I am beginner in Python. What is interesting for me is that Python interpreter treats in different way dot and square bracket notations. I am coming from JavaScript where both notations lead prototype chain lookup. Run, don't walk, to the Python

Re: Overcharged

2011-06-11 Thread Paul Rubin
Ethan eman77...@gmail.com writes: I mad a call last night and never even talked to anybody, Sent from my Samsung Epic™ 4G Your Epic 4G must not have been programmed in Python. -- http://mail.python.org/mailman/listinfo/python-list

Re: Square bracket and dot notations?

2011-06-11 Thread Francesco Bochicchio
On 11 Giu, 11:41, Asen Bozhilov asen.bozhi...@gmail.com wrote: Hi all, I am beginner in Python. What is interesting for me is that Python interpreter treats in different way dot and square bracket notations. I am coming from JavaScript where both notations lead prototype chain lookup. In

Re: (*args **kwargs) how do I use' em?

2011-06-11 Thread TheSaint
OliDa wrote: maybe some clarification about kwargs... http://stackoverflow.com/questions/1098549/proper-way-to-use-kwargs-in- python Great point. Now it's clearer :) I think I'll share the dictionary which contains the configuration loaded form a file. -- goto /dev/null --

Re: Recursion error in metaclass

2011-06-11 Thread Steven D'Aprano
On Sat, 11 Jun 2011 01:33:25 -0400, Terry Reedy wrote: On 6/10/2011 11:34 PM, Steven D'Aprano wrote: I have a metaclass in Python 3.1: class MC1(type): @staticmethod def get_mro(bases): print('get_mro called') return type('K', bases, {}).__mro__[1:] The call

Re: uhmm... your chance to spit on me

2011-06-11 Thread rusi
On Jun 11, 5:36 am, Jim Burton j...@sdf-eu.org wrote: Xah Lee xah...@gmail.com writes: Dear lisp comrades, it's Friday! The answers to your question give poor coverage of the possible responses to your writing. I myself enjoy reading what you write, most of the time, but become bored

Python Card alternatives?

2011-06-11 Thread rzed
Desktop apps don't seem to be the wave of the future, but they still serve a useful purpose today. They can be ideal for a quick database table management screen, or a data entry front end for a program with a bunch of parameters. It's not easy enough to build a quick utility with a GUI front

Re: Square bracket and dot notations?

2011-06-11 Thread Asen Bozhilov
Francesco Bochicchio wrote: User classes - that is the ones you define with the class statement - can implement support for the squared bracket and dot notations: -  the expression myinstance[index] is sort of translated into  of myinstance.__getitem__(index) -   the expression

Re: parallel computations: subprocess.Popen(...).communicate()[0] does not work with multiprocessing.Pool

2011-06-11 Thread Miki Tebeka
Greetings, cmd1 = /usr/local/bin/matlab ... myMatlab.1.m subprocess.Popen([cmd1], shell=True, stdout=subprocess.PIPE).communicate()[0] Try a list of arguments as the command to run. subprocess.Popen([/usr/local/bin/matlab, ... myMatlab.l.m] ...) If you can switch to 2.7, you'll be to

Re: Python Card alternatives?

2011-06-11 Thread Luis M . González
As you said, desktop apps are losing appeal. I suggest looking for a web based solution. Perhaps python + silverlight? (I haven't tried it though). Unfortunately, the client-side (browser) is the domain of javascript. What I'm doing is polishing my html/css skills coupled with jquery. I have lost

Re: Python Card alternatives?

2011-06-11 Thread python
Luis, Not the OP, but thank you for passing on the CoffeeScript recommendation - looks very interesting!! http://jashkenas.github.com/coffee-script/ Regards, Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Card alternatives?

2011-06-11 Thread Tim Johnson
* rzed rzan...@gmail.com [110611 05:14]: Desktop apps don't seem to be the wave of the future, but they still serve a useful purpose today. They can be ideal for a quick database table management screen, or a data entry front end for a program with a bunch of parameters. It's not easy

How to avoid () when writing a decorator accepting optional arguments?

2011-06-11 Thread Giampaolo Rodolà
I've written this decorator to deprecate a function and (optionally) provide a callable as replacement def deprecated(repfun=None): A decorator which can be used to mark functions as deprecated. Optional repfun is a callable that will be called with the same args as

Re: Recursion error in metaclass

2011-06-11 Thread Terry Reedy
On 6/11/2011 7:38 AM, Steven D'Aprano wrote: On Sat, 11 Jun 2011 01:33:25 -0400, Terry Reedy wrote: On 6/10/2011 11:34 PM, Steven D'Aprano wrote: I have a metaclass in Python 3.1: class MC1(type): @staticmethod def get_mro(bases): print('get_mro called')

Re: Square bracket and dot notations?

2011-06-11 Thread Terry Reedy
On 6/11/2011 10:40 AM, Asen Bozhilov wrote: It is exactly what I wanted to know. Thank you. I have not examined classes in Python yet, but when I do it I will understand some new things. One of the most interesting is, can an object inherit items trough the parent class? By items I mean items

Re: How to avoid () when writing a decorator accepting optional arguments?

2011-06-11 Thread Ian Kelly
On Sat, Jun 11, 2011 at 1:27 PM, Giampaolo Rodolà g.rod...@gmail.com wrote:    @deprecated()    def foo():        return 0 This is equivalent to: foo = deprecated()(foo)    @deprecated(some_function)    def foo():        return 0 foo = deprecated(some_function)(foo)    @deprecated    

Re: How to avoid () when writing a decorator accepting optional arguments?

2011-06-11 Thread Terry Reedy
On 6/11/2011 3:27 PM, Giampaolo Rodolà wrote: I've written this decorator to deprecate a function and (optionally) provide a callable as replacement def deprecated(repfun=None): A decorator which can be used to mark functions as deprecated. Optional repfun is a callable

Emacs Python indention

2011-06-11 Thread Bastian Ballmann
Hi Emacs / Python coders, moving a region of python code for more than one indention in Emacs is quite annoying, cause the python-shift-left and -right functions always loose the mark and one has to reactivate it with \C-x \C-x or guess how many indentions one want to make and do a \C-u nr \C-c

Re: Square bracket and dot notations?

2011-06-11 Thread Asen Bozhilov
Terry Reedy wrote: Right. d.items is a dict method. d['items'] is whatever you assign. Named tuples in the collections modules, which allow access to fields through .name as well as [index], have the name class problem. All the methods are therefore given leading underscore names to avoid

Re: Recursion error in metaclass

2011-06-11 Thread Daniel Urban
On Sat, Jun 11, 2011 at 21:39, Terry Reedy tjre...@udel.edu wrote: What may not be obvious from the docs is that the metaclass calculation described in the doc section on class statements is carried out within type.__new__ (or after a possible patch, called from within that), so that type

__dict__ is neato torpedo!

2011-06-11 Thread Andrew Berg
I'm pretty happy that I can copy variables and their value from one object's namespace to another object's namespace with the same variable names automatically: class simpleObject(): pass a = simpleObject() b = simpleObject() a.val1 = 1 a.val2 = 2 b.__dict__.update(a.__dict__) a.val1 = 'a'

Re: __dict__ is neato torpedo!

2011-06-11 Thread Terry Reedy
On 6/11/2011 9:32 PM, Andrew Berg wrote: I'm pretty happy that I can copy variables and their value from one You are copying names and their associations, but not the objects or thier values. object's namespace to another object's namespace with the same variable names automatically:

Re: __dict__ is neato torpedo!

2011-06-11 Thread Steven D'Aprano
On Sat, 11 Jun 2011 20:32:37 -0500, Andrew Berg wrote: I'm pretty happy that I can copy variables and their value from one object's namespace to another object's namespace with the same variable names automatically: class simpleObject(): pass a = simpleObject() b = simpleObject()

Re: __dict__ is neato torpedo!

2011-06-11 Thread Andrew Berg
On 2011.06.11 09:12 PM, Terry Reedy wrote: On 6/11/2011 9:32 PM, Andrew Berg wrote: I'm pretty happy that I can copy variables and their value from one You are copying names and their associations, but not the objects or thier values. Associations? The update() method copies the values;

Re: __dict__ is neato torpedo!

2011-06-11 Thread Andrew Berg
On 2011.06.11 09:13 PM, Steven D'Aprano wrote: So never update from a random object you don't know well. Of course. In the project I'm working on, this will be used in the __init__() method of a class that accepts a pair of dictionaries or possibly **kwargs (for flexibility and to avoid the very

Re: __dict__ is neato torpedo!

2011-06-11 Thread Ian Kelly
On Sat, Jun 11, 2011 at 8:21 PM, Andrew Berg bahamutzero8...@gmail.com wrote: On 2011.06.11 09:12 PM, Terry Reedy wrote: On 6/11/2011 9:32 PM, Andrew Berg wrote: I'm pretty happy that I can copy variables and their value from one You are copying names and their associations, but not the

Re: __dict__ is neato torpedo!

2011-06-11 Thread Andrew Berg
On 2011.06.11 10:08 PM, Ian Kelly wrote: For immutable objects such as ints, this doesn't matter. For mutable objects such as lists, it can: Well, that's confusing. How would I make actual copies? -- http://mail.python.org/mailman/listinfo/python-list

Re: __dict__ is neato torpedo!

2011-06-11 Thread Ben Finney
Andrew Berg bahamutzero8...@gmail.com writes: On 2011.06.11 10:08 PM, Ian Kelly wrote: For immutable objects such as ints, this doesn't matter. For mutable objects such as lists, it can: Well, that's confusing. It's exactly the same as with an ordinary assignment (‘a = b’) in Python. You

which threading libraries to use?

2011-06-11 Thread Dennis
Hi, Are there any reasons besides personal preference to use one particular threading library over the other? Eventlet, Twisted, and Python's native Threading class, or are there even others? Are there any licensing or redistribution restrictions that I should be worried about? Which ones do

Re: __dict__ is neato torpedo!

2011-06-11 Thread Andrew Berg
On 2011.06.11 10:40 PM, Ben Finney wrote: It's exactly the same as with an ordinary assignment (‘a = b’) in Python. Fair enough. How would I make actual copies? At what level? Level? I just want to be able to create an object b with values from dictionary a, and not have changes to a reflect

Re: which threading libraries to use?

2011-06-11 Thread Chris Angelico
On Sun, Jun 12, 2011 at 2:10 PM, Dennis daoden...@gmail.com wrote: Hi, Are there any reasons besides personal preference to use one particular threading library over the other?  Eventlet, Twisted, and Python's native Threading class, or are there even others?  Are there any licensing or

Re: __dict__ is neato torpedo!

2011-06-11 Thread Ian Kelly
On Sat, Jun 11, 2011 at 10:32 PM, Andrew Berg bahamutzero8...@gmail.com wrote: On 2011.06.11 10:40 PM, Ben Finney wrote: It's exactly the same as with an ordinary assignment (‘a = b’) in Python. Fair enough. How would I make actual copies? At what level? Level? I just want to be able to

[issue11610] Improved support for abstract base classes with descriptors

2011-06-11 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: It doesn't work with staticmethod: import abc class C(metaclass=abc.ABCMeta): ... @staticmethod ... @abc.abstractmethod ... def foo(x): ... raise NotImplementedError() ... class D(C): ... @staticmethod ...

[issue11610] Improved support for abstract base classes with descriptors

2011-06-11 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: On Sat, Jun 11, 2011 at 3:11 AM, Daniel Urban rep...@bugs.python.org wrote: Daniel Urban urban.dani...@gmail.com added the comment: It doesn't work with staticmethod: import abc class C(metaclass=abc.ABCMeta): ...     @staticmethod ...  

[issue12310] Segfault in test_multiprocessing

2011-06-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I think it might be related to Issue #6721. Using a mutex/condition variable after fork (from the child process) is unsafe: it can lead to deadlocks, and on OS-X, it seems like it can lead to segfaults. Normally, Queue's

[issue11553] Docs for: import, packages, site.py, .pth files

2011-06-11 Thread Graham Wideman
Graham Wideman initcont...@grahamwideman.com added the comment: Hi Eric, Thanks for starting to review this, and your responses are encouraging. Some comments inline below. FWIW, along the way I accumulated my own notes on this topic, on some pages here: grahamwideman.wikispaces.com (Left

[issue11610] Improved support for abstract base classes with descriptors

2011-06-11 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: [...] Traceback (most recent call last):  File stdin, line 1, in module TypeError: Can't instantiate abstract class D with abstract methods foo.__func__ You still need to use @abc.abstractstaticmethod. Thinking about this some more, I

[issue11553] Docs for: import, packages, site.py, .pth files

2011-06-11 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Thanks for getting started with such a detailed review on this Graham. We've known the documentation in this area has been flawed for a long time, but actually *fixing* seemed like such a big task that it has tended to get pushed to the

[issue11610] Improved support for abstract base classes with descriptors

2011-06-11 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: inspect.getattr_static has the necessary logic to search for descriptors without invoking them. However, it may be better to revert to the idea of pushing this functionality back onto the individual descriptors and have the problematic

[issue11610] Improved support for abstract base classes with descriptors

2011-06-11 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: On Sat, Jun 11, 2011 at 8:55 AM, Nick Coghlan rep...@bugs.python.org wrote: Nick Coghlan ncogh...@gmail.com added the comment: inspect.getattr_static has the necessary logic to search for descriptors without invoking them. Unfortunately,

[issue11553] Docs for: import, packages, site.py, .pth files

2011-06-11 Thread Greg Słodkowicz
Changes by Greg Słodkowicz jerg...@gmail.com: -- nosy: +Greg.Slodkowicz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11553 ___ ___

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-11 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Patch is now in my public sandbox on hg.python.org. -- hgrepos: +26 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___

[issue11553] Docs for: import, packages, site.py, .pth files

2011-06-11 Thread Graham Wideman
Graham Wideman initcont...@grahamwideman.com added the comment: Hi Nick: Thanks for your additional points. Comments inline: __all__ only affects import *, and may also affect documentation tools (e.g. pydoc will respect __all__ when deciding what to display). It has no effect on attribute

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-11 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: For some reason, Create Patch is failing with a [Errno 2] No such file or directory: '/home/roundup/trackers/tracker/cpython/Doc/Makefile' I've logged an issue on the meta tracker: http://psf.upfronthosting.co.za/roundup/meta/issue405

[issue12310] Segfault in test_multiprocessing

2011-06-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Less disruptive approach: old_process = _current_process _current_process = self try: util._finalizer_registry.clear() util._run_after_forkers() finally: del old_process This

[issue10115] Support accept4() for atomic setting of flags at socket creation

2011-06-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: No one seems to object, and since this approach has been suggested by Martin and is consistent with the posix module's policy (i.e. a thin wrapper around the underlying syscall), I guess you can go ahead. --

[issue12287] ossaudiodev: stack corruption with FD = FD_SETSIZE

2011-06-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: For oss_check_closed.diff, should I apply it to default only or to every branch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12287

[issue12287] ossaudiodev: stack corruption with FD = FD_SETSIZE

2011-06-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: For oss_check_closed.diff, should I apply it to default only or to every branch? Only default I'd say. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12287

[issue10897] UNIX mmap unnecessarily dup() file descriptor

2011-06-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Perhaps by adding some new argument to the mmap constructor? (dup_fd = True) I don't really like the idea of exposing the FD duplication to the user, because: - it's an implementation detail - it doesn't reflect any argument of the

[issue12315] Improve http.client.HTTPResponse.read documentation

2011-06-11 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12315 ___ ___

[issue12310] Segfault in test_multiprocessing

2011-06-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Yes, I also tried this. This fixed the test_multiprocessing failure, but I think it triggered a failure in test_concurrent_futures (didin't look in more detail). Would it be possible to try this on the buildbot to see if it fixes the

[issue11610] Improved support for abstract base classes with descriptors

2011-06-11 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: [...] This wouldn't allow for the prettier error messages, but it's much cleaner than having ABCMeta trawling through class attribute dir() lists. I think there is another reason to do it this way. Suppose I have a custom descriptor

[issue12287] ossaudiodev: stack corruption with FD = FD_SETSIZE

2011-06-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset d0952a2fb7bd by Charles-François Natali in branch 'default': Issue #12287: In ossaudiodev, check that the device isn't closed in several http://hg.python.org/cpython/rev/d0952a2fb7bd -- nosy: +python-dev

[issue9098] MSYS build fails with `S_IXGRP' undeclared

2011-06-11 Thread Yuri
Yuri y...@tsoft.com added the comment: I fixed all build problems on the current MinGW32. python.exe builds ok, but build fails since python.exe can't find some modules after this. Not sure why. -- keywords: +patch nosy: +yurivict Added file:

[issue11595] Miscellaneous bugs in cfg_to_args() utility function

2011-06-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 303e3693d634 by Éric Araujo in branch 'default': Move useful function to packaging.util. http://hg.python.org/cpython/rev/303e3693d634 New changeset 06670bd0e59e by Éric Araujo in branch 'default': Fix assorted bugs in

[issue11599] Useless error message when distutils fails compiling

2011-06-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 3ba34c03f2fc by Éric Araujo in branch 'default': Adjust logging in packaging.util.spawn (related to #11599) http://hg.python.org/cpython/rev/3ba34c03f2fc -- nosy: +python-dev ___ Python

[issue12240] Allow multiple setup_hooks

2011-06-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 5f0cd4844061 by Éric Araujo in branch 'default': Allow multiple setup hooks in packaging’s setup.cfg files (#12240). http://hg.python.org/cpython/rev/5f0cd4844061 -- nosy: +python-dev ___

[issue12313] make install misses packaging module

2011-06-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Also you may want to add some of the packaging test directories to those excluded in the calls to compileall.py a little further down in the libinstall target. Ah, good one. I guess doing this could have prevented

[issue828450] sdist generates bad MANIFEST on Windows

2011-06-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I just recreated this patch against version 2.7, so I'm not sure it can be applied to all the listed versions. It’s okay, distutils in 2.7 and 3.x is very similar, I can port. Note: there still are two pathes, one for sdist.py and another for

[issue11595] Miscellaneous bugs in cfg_to_args() utility function

2011-06-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks again! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11595

[issue11599] Useless error message when distutils fails compiling

2011-06-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I intend to ask on distutils-sig whether doing the change in distutils would break code. -- assignee: tarek - eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11599

[issue12279] Add build_distinfo command to packaging

2011-06-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I forgot one thing: setuptools’ egg_info command does write a list of paths, so we can look at how it solved the problem with the RECORD and RESOURCES files. Higery: Michael is willing to work with you on this bug. --

[issue12240] Allow multiple setup_hooks

2011-06-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Done. -- assignee: tarek - eric.araujo resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12240

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2011-06-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hmm, in http://bugs.python.org/issue7511#msg106420 Tarek appeared to be supportive of the patch. I believe Martin has more knowledge about Windows. -- ___ Python tracker rep...@bugs.python.org

[issue12317] inspect.getabsfile() is not documented

2011-06-11 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- assignee: giampaolo.rodola nosy: giampaolo.rodola priority: normal severity: normal status: open title: inspect.getabsfile() is not documented versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-06-11 Thread John Edmonds
John Edmonds pocketcooki...@gmail.com added the comment: Here is the patch, re-written for the packaging module. -- Added file: http://bugs.python.org/file22330/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12169

[issue9284] inspect.findsource() cannot find source for doctest code

2011-06-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 527c40add91d by Benjamin Peterson in branch '2.7': allow fake filenames in findsource (closes #9284) http://hg.python.org/cpython/rev/527c40add91d New changeset 6cc4579dca02 by Benjamin Peterson in branch '3.2': allow fake filenames

[issue12206] Documentation Std. Library 15.7.5 LogRecord objects: Parameters: level(currently wrong) - levelno (correct)

2011-06-11 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Attached is a simple patch clarifying that the level argument in the constructor maps to the two LogRecord attributes, levelno and levelname, -- keywords: +patch Added file: http://bugs.python.org/file22331/patch12206.diff

[issue12318] list + tuple inconsistency

2011-06-11 Thread Filip Gruszczyński
New submission from Filip Gruszczyński grusz...@gmail.com: You can do this: [1] + (1,) Traceback (most recent call last): File stdin, line 1, in module TypeError: can only concatenate list (not tuple) to list But you can do this: result = [1] result += (1,) result [1, 1] Is it the

[issue12318] list + tuple inconsistency

2011-06-11 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Obviously first sentence should be You can't do this:. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12318 ___

[issue12206] Documentation Std. Library 15.7.5 LogRecord objects: Parameters: level(currently wrong) - levelno (correct)

2011-06-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset bb6fe43191c0 by Vinay Sajip in branch '3.2': Issue #12206: documentation for LogRecord constructor updated re. the level argument. http://hg.python.org/cpython/rev/bb6fe43191c0 New changeset 596adf14914c by Vinay Sajip in branch

[issue12206] Documentation Std. Library 15.7.5 LogRecord objects: Parameters: level(currently wrong) - levelno (correct)

2011-06-11 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: docs@python - vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12206 ___ ___

[issue12318] list + tuple inconsistency

2011-06-11 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Yes, this is the expected behavior and yes, it is inconsistent. It's been that way for a long while and Guido said he wouldn't do it again (it's in his list of regrets). However, we're not going to break code by changing it

[issue11610] Improved support for abstract base classes with descriptors

2011-06-11 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Perhaps rather than changing ABCMeta, provide a base descriptor class that has __isabstractmethod__ implemented to calculate the abstractness. Then property could use that, as could any of the other relevant descriptors we have around.

[issue12310] Segfault in test_multiprocessing

2011-06-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Would it be possible to try this on the buildbot to see if it fixes the segfaults? You can fork cpython, modify the code, and run a custom buildbot on your clone. -- ___ Python tracker

[issue11553] Docs for: import, packages, site.py, .pth files

2011-06-11 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Public name is a term that describes a convention, not anything enforced by the interpreter. Names starting with underscores typically aren't public either (unless documented otherwise), but that has no effect on the ability to retrieve them

[issue11610] Improved support for abstract base classes with descriptors

2011-06-11 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Remember the goal here is *not* to completely eliminate the need to test that objects implement an ABC correctly. It's to make it easier to declare the expected interface in a way that helps readers of the ABC definition to figure out what is

[issue12239] msilib VT_EMPTY SummaryInformation properties raise an error (suggest returning None)

2011-06-11 Thread Mark Mc Mahon
Changes by Mark Mc Mahon mtnbikingm...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file22332/support_vt_empty_in_summary_getproperty.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12239

[issue11553] Docs for: import, packages, site.py, .pth files

2011-06-11 Thread Graham Wideman
Graham Wideman initcont...@grahamwideman.com added the comment: Public name is a term that describes a convention, not anything enforced by the interpreter. And I guess that's really the main point. In other languages Public means accessible, and Private means not so. In Python, Public

[issue828450] sdist generates bad MANIFEST on Windows

2011-06-11 Thread higery
higery shoulderhig...@gmail.com added the comment: OK. I recreated a full version patch. I'll remove old patches. -- Added file: http://bugs.python.org/file22333/change_path_separator_fullversion.patch ___ Python tracker rep...@bugs.python.org

[issue828450] sdist generates bad MANIFEST on Windows

2011-06-11 Thread higery
Changes by higery shoulderhig...@gmail.com: Removed file: http://bugs.python.org/file21713/change_path_separator_in_MANIFEST.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue828450 ___

[issue828450] sdist generates bad MANIFEST on Windows

2011-06-11 Thread higery
Changes by higery shoulderhig...@gmail.com: Removed file: http://bugs.python.org/file22328/test_manifest_reading_sdist.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue828450 ___

[issue11610] Improved support for abstract base classes with descriptors

2011-06-11 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Didn't mean to sidetrack. :) I really appreciate the effort Darren has put into this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11610

[issue12279] Add build_distinfo command to packaging

2011-06-11 Thread higery
higery shoulderhig...@gmail.com added the comment: Higery: Michael is willing to work with you on this bug. OK. :) -- Added file: http://bugs.python.org/file22334/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12279

[issue12279] Add build_distinfo command to packaging

2011-06-11 Thread higery
Changes by higery shoulderhig...@gmail.com: Removed file: http://bugs.python.org/file22334/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12279 ___

[issue9035] os.path.ismount on windows doesn't support windows mount points

2011-06-11 Thread Mark Mc Mahon
Mark Mc Mahon mtnbikingm...@gmail.com added the comment: I was looking at this - and see that (at least as far as GetFileAttributes is concerned) that a mount and a linked directory are seen the same... Here are some tests using ctypes # mounted drive

[issue9035] os.path.ismount on windows doesn't support windows mount points

2011-06-11 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9035 ___ ___ Python-bugs-list