PyCon Singapore 2013 Call for Proposals

2013-02-08 Thread George Goh
Hi, On behalf of the organizing committee of PyCon SG 2013, we are inviting for Proposals for Presentations and Tutorials for the 2013 PyCon Singapore Conference, to be held in Singapore from June 13 to 15, 2013. Presentation and Tutorial Submission detail can be found at

Karlsruhe (Germany) Python User Group, February 15th 2013, 7pm

2013-02-08 Thread Jürgen A . Erhard
The Karlsruhe Python User Group (KaPy) meets again. Friday, 2013-02-15 (February 15th) at 19:00 (7pm) in the rooms of Entropia eV (the local affiliate of the CCC). See http://entropia.de/wiki/Anfahrt on how to get there. For your calendars: meetings are held monthly, on the 3rd Friday. There's

Updated Cygwin Package: python-2.7.3-1

2013-02-08 Thread Jason Tishler
New News: === *** Cygwin has migrating from Python 2.6 to 2.7. *** I have updated the version of Python to 2.7.3-1. The tarballs should be available on a Cygwin mirror near you shortly. The following is the only change since the previous release: o promote from experimental

Re: Curious to see alternate approach on a search/replace via regex

2013-02-08 Thread Ian Kelly
On Thu, Feb 7, 2013 at 10:57 PM, rh richard_hubb...@lavabit.com wrote: On Thu, 7 Feb 2013 18:08:00 -0700 Ian Kelly ian.g.ke...@gmail.com wrote: Which is approximately 30 times slower, so clearly the regular expression *is* being cached. I think what we're seeing here is that the time needed

Re: Curious to see alternate approach on a search/replace via regex

2013-02-08 Thread Nick Mellor
Hi RH, It's essential to know about regex, of course, but often there's a better, easier-to-read way to do things in Python. One of Python's aims is clarity and ease of reading. Regex is complex, potentially inefficient and hard to read (as well as being the only reasonable way to do things

Re: which situations should we use thread. join() ?

2013-02-08 Thread Ulrich Eckhardt
Am 08.02.2013 07:29, schrieb Chris Angelico: On Fri, Feb 8, 2013 at 3:32 PM, iMath redstone-c...@163.com wrote: which situations should we use thread. join() ? http://bpaste.net/show/yBDGfrlU7BDDpvEZEHmo/ why do we not put thread. join() in this code ? I've no idea why you don't put

Re: Curious to see alternate approach on a search/replace via regex

2013-02-08 Thread Peter Otten
Serhiy Storchaka wrote: On 07.02.13 11:49, Peter Otten wrote: ILLEGAL = -:./?= try: TRANS = string.maketrans(ILLEGAL, _ * len(ILLEGAL)) except AttributeError: # python 3 TRANS = dict.fromkeys(map(ord, ILLEGAL), _) str.maketrans() D'oh. ILLEGAL = -:./?= try:

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Mark Lawrence
On 08/02/2013 06:15, Chris Angelico wrote: On Fri, Feb 8, 2013 at 4:53 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: And which Univeristy would you recommend for studying the intricacies of gobbledygook? ;-) Dunno, where'd you get your degree in logic? From the University of

Re: Moving mouse, Python3 and PyObjc

2013-02-08 Thread Oneill
On Thursday, 7 February 2013 23:22:01 UTC, Oneill wrote: import objc def clickMouse(x, y, button): bndl = objc.loadBundle('CoreGraphics', globals(), '/System/Library/Frameworks/ApplicationServices.framework') objc.loadBundleFunctions(bndl, globals(), [('CGPostMouseEvent',

Re: Moving mouse, Python3 and PyObjc

2013-02-08 Thread Oneill
import objc def clickMouse(x, y, button): bndl = objc.loadBundle('CoreGraphics', globals(), '/System/Library/Frameworks/ApplicationServices.framework') objc.loadBundleFunctions(bndl, globals(), [('CGPostMouseEvent', 'v{CGPoint=ff}III')])

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Thomas Rachel
Am 08.02.2013 07:29 schrieb Rick Johnson: Consider this: if connect(my:db) as db: do something No need to make a call and then test for the validity of the call when you can do both simultaneously AND intuitively. Would be great, but can be emulated with def ifiter(x):

Re: PyWart: Namespace asinitiy and the folly of the global statement

2013-02-08 Thread Steven D'Aprano
Chris Angelico wrote: On Fri, Feb 8, 2013 at 3:30 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: It is my strong opinion that all unqualified variables must be local to the containing block, func/meth, class, or module. To access any variable outside of the local scope a programmer

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Steven D'Aprano
Rick Johnson wrote: On Monday, July 16, 2012 7:43:47 PM UTC-5, Steven D'Aprano wrote: Really Rick? Digging out a post from nearly seven months ago? You must really be bored silly. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: PyWart: Namespace asinitiy and the folly of the global statement

2013-02-08 Thread Chris Angelico
On Fri, Feb 8, 2013 at 10:29 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Chris Angelico wrote: On Fri, Feb 8, 2013 at 3:30 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: It is my strong opinion that all unqualified variables must be local to the containing block,

Re: Curious to see alternate approach on a search/replace via regex

2013-02-08 Thread Steven D'Aprano
Ian Kelly wrote: On Thu, Feb 7, 2013 at 10:57 PM, rh richard_hubb...@lavabit.com wrote: On Thu, 7 Feb 2013 18:08:00 -0700 Ian Kelly ian.g.ke...@gmail.com wrote: Which is approximately 30 times slower, so clearly the regular expression *is* being cached. I think what we're seeing here is

Re: PyWart: Namespace asinitiy and the folly of the global statement

2013-02-08 Thread Steven D'Aprano
Rick Johnson wrote: When reading over some source code we really have no idea in which namespace a variable lives. Consider the following: count = 0 class Blah: def meth(): for x in range(100): count = x Where is count living? Of course in this simplistic

children process

2013-02-08 Thread Rita
hi, I currently have a bash wrapper which executes a program, something like this #!/usr/bin/env bash export LD_LIBRARY_PATH=/foo:$LD_LIBRARY_PATH exec $@ I would like to have a python process which will do process accounting for all children, so if a process starts, I would like to get all the

Re: Is Python programming language?

2013-02-08 Thread Stephane Wirtel
* gmspro gms...@yahoo.com [2013-02-08 05:03:51 -0800]: Hello all, One said, Python is not programming language, rather scripting language, is that true? Thanks. -- http://mail.python.org/mailman/listinfo/python-list What's the difference ? http://openerp.com OpenERP is written

Re: Is Python programming language?

2013-02-08 Thread Stefan Behnel
gmspro, 08.02.2013 14:03: One said, Python is not programming language, rather scripting language, is that true? Apples and oranges. It's a bit like asking if C is an embedded systems language or if JavaScript is a 3D graphics language. Well, no, but you can use them for that if you want. That

Re: Is Python programming language?

2013-02-08 Thread rusi
On Feb 8, 6:03 pm, gmspro gms...@yahoo.com wrote: Hello all, One said, Python is not programming language, rather scripting language, is that true? Thanks. One said: English is the language spoken in England. Another One said: English is the language internationally used for commerce,

pxssh sendline() cmd

2013-02-08 Thread rajesh kumar
Hi I need help in pxssh. Steps : 1) I was login into remote machine usning pxssh and the prompt is '$'. 2) After successful login running some command and the prompt is ''. 3) Here onwards I want to execute cli commands by using sendline(). My requirement: I need to pass arguments to

Re: Is Python programming language?

2013-02-08 Thread Ulrich Eckhardt
Am 08.02.2013 14:03, schrieb gmspro: One said, Python is not programming language, rather scripting language, is that true? That depends on your definition of scripting language and programming language. Python's not a language but an animal. Uli --

Re: Moving mouse, Python3 and PyObjc

2013-02-08 Thread Dave Angel
On 02/08/2013 05:32 AM, Oneill wrote: Your emails are very hard to read, since your mailer doublespaces nearly everything you quote. snip What's the objc module got to do with the mouse? http://packages.python.org/pyobjc/api/module-objc.html Perhaps you meant some other

Re: Is Python programming language?

2013-02-08 Thread Steven D'Aprano
gmspro wrote: Hello all, One said, Python is not programming language, rather scripting language, is that true? Python is a high-level, object-oriented, strongly-typed programming language with garbage collection, byte-code compilation, dynamic types, and syntax that includes OOP,

Re: Is Python programming language?

2013-02-08 Thread Steven D'Aprano
gmspro wrote: One said, Python is not programming language, rather scripting language, is that true? I forgot to mention, there is a FAQ about this: http://docs.python.org/2/faq/general.html#what-is-python-good-for -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: memoryview (was len() on mutables vs. immutables)

2013-02-08 Thread Oscar Benjamin
On 8 February 2013 06:24, Demian Brecht demianbre...@gmail.com wrote: On 2013-02-07 8:30 PM, Terry Reedy tjre...@udel.edu wrote: If a memoryview (3+) is representing a non-continuguous block of memory ( 1 ndim), will len(obj) not return incorrect results? It seems to be reporting the shape

Re: Is Python programming language?

2013-02-08 Thread Albert Hopkins
On Fri, Feb 8, 2013, at 08:03 AM, gmspro wrote: Hello all, One said, Python is not programming language, rather scripting language, is that true? According to Wikipedia[1] a scripting languages are a subset of programming languages so it goes that any scripting language is, be

Re: Is Python programming language?

2013-02-08 Thread Chris Angelico
On Sat, Feb 9, 2013 at 2:28 AM, Albert Hopkins mar...@letterboxes.org wrote: ... one could say that C++ is a scripting language if one were to use a C++ interpreter. And if one is sufficiently sadistic to actually use C++ in that way. ChrisA --

Re: Is Python programming language?

2013-02-08 Thread Kwpolska
On Fri, Feb 8, 2013 at 4:40 PM, Chris Angelico ros...@gmail.com wrote: On Sat, Feb 9, 2013 at 2:28 AM, Albert Hopkins mar...@letterboxes.org wrote: ... one could say that C++ is a scripting language if one were to use a C++ interpreter. And if one is sufficiently sadistic to actually use C++

Re: memoryview (was len() on mutables vs. immutables)

2013-02-08 Thread Demian Brecht
This helped clarify, thanks. I also went through PEP 3118 in detail (as I should have in the first place) which also helped. Thanks, Demian Brecht http://demianbrecht.github.com On 2013-02-08 6:50 AM, Oscar Benjamin oscar.j.benja...@gmail.com wrote: This is in keeping with the way that

Re: Is Python programming language?

2013-02-08 Thread Dave Angel
On 02/08/2013 10:46 AM, Kwpolska wrote: On Fri, Feb 8, 2013 at 4:40 PM, Chris Angelico ros...@gmail.com wrote: On Sat, Feb 9, 2013 at 2:28 AM, Albert Hopkins mar...@letterboxes.org wrote: ... one could say that C++ is a scripting language if one were to use a C++ interpreter. And if one is

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Steven D'Aprano
Rick Johnson wrote: GvR has always been reluctant to incorporate full OOP machinery for some reason. Python is a fully object oriented language. It is *more* object oriented than, say, Java. - everything in Python is an object, there is no distinction between boxed and unboxed variables; -

Re: Is Python programming language?

2013-02-08 Thread Chris Angelico
On Sat, Feb 9, 2013 at 2:58 AM, Dave Angel da...@davea.name wrote: On 02/08/2013 10:46 AM, Kwpolska wrote: On Fri, Feb 8, 2013 at 4:40 PM, Chris Angelico ros...@gmail.com wrote: On Sat, Feb 9, 2013 at 2:28 AM, Albert Hopkins mar...@letterboxes.org wrote: ... one could say that C++ is a

Re: Curious to see alternate approach on a search/replace via regex

2013-02-08 Thread Ian Kelly
On Fri, Feb 8, 2013 at 4:43 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Ian Kelly wrote: Surely that depends on the size of the pattern, and the size of the data being worked on. Natually. Compiling the pattern s[ai]t doesn't take that much work, it's only six characters

Re: Monitoring updating directory for image for GUI

2013-02-08 Thread ciscorucinski
Who/what are you responding to here? You haven't included any context from what you're replying to. Sorry, never really used Google Groups, or anything like this before. That I was responding to only Chris Angelico with his question of how real-time it needed to be...since it takes some

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread MRAB
On 2013-02-08 07:22, Steven D'Aprano wrote: Rick Johnson wrote: Why even have a damn bool function if you're never going to use it? bool is for converting arbitrary objects into a canonical True or False flag. E.g. one use-case is if you wish to record in permanent storage a flag, and don't

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Rick Johnson
On Friday, February 8, 2013 9:16:42 AM UTC-6, Steven D'Aprano wrote: Rick Johnson wrote: GvR has always been reluctant to incorporate full OOP machinery for some reason. Python is a fully object oriented language. It is *more* object oriented than, say, Java. Oh really? *chuckles* -

Jinja2 installation help

2013-02-08 Thread Robert Iulian
Hello, I recently started learning Python. Just finished learning the basis of it, and now I think I'm ready to start working on a simple website but I am having some difficulties installing Jinja2. Can anyone post a dummy guide on how to install it, and what to do step by step? I am using the

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Roy Smith
In article ee71b775-b527-4bb3-a080-12aad962b...@googlegroups.com, Rick Johnson rantingrickjohn...@gmail.com wrote: The best way to describe Python is as promiscuous language who secretly longs to be 100% OOP, and to fulfill this fantasy it cross-dresses in OOP lingerie on the weekends.

Re: Is Python programming language?

2013-02-08 Thread Grant Edwards
On 2013-02-08, Stephane Wirtel steph...@wirtel.be wrote: * gmspro gms...@yahoo.com [2013-02-08 05:03:51 -0800]: Hello all, One said, Python is not programming language, rather scripting language, is that true? Thanks. -- http://mail.python.org/mailman/listinfo/python-list What's

Re: Is Python programming language?

2013-02-08 Thread Mark Lawrence
On 08/02/2013 13:38, rusi wrote: On Feb 8, 6:03 pm, gmspro gms...@yahoo.com wrote: Hello all, One said, Python is not programming language, rather scripting language, is that true? Thanks. One said: English is the language spoken in England. Wrong, English is spoken in some parts of

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Rick Johnson
On Friday, February 8, 2013 11:48:43 AM UTC-6, Rick Johnson wrote: [...] So using a /real/ OOP paridigm we would do the following: ## START TRUE OOP PARIDIGM ## [...snip naive example...] Actually my example API is littered with artifacts of a python global function architecture. In

Re: Improve reduce functions of SQLite3 request

2013-02-08 Thread Steffen Mutter
Dennis Lee Bieber wrote: If you use separate tables you make it more difficult to generate the SQL (as you have to create the SQL with the season specific table name, instead of just using a where clause to restrict data), and lose the potential to produce reports covering multiple

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Steven D'Aprano
MRAB wrote: On 2013-02-08 07:22, Steven D'Aprano wrote: Prior to Python 3, the special method __bool__ was spelled __nonempty__, which demonstrates Python's philosophy towards duck-typing bools. Incorrect, it was spelled __nonzero__. Oops, so it was. Sorry for the brain-fart. __nonzero__

Glade + GTK.Builder() | Missing Handlers | Handler for multiple objects

2013-02-08 Thread ciscorucinski
Here is my code in PasteBin... http://pastebin.com/ZubyV8RT If you go to the very bottom of the paste, you will see the error messages that I get, but here it is again. --- Warning (from warnings module): File

Re: pxssh sendline() cmd

2013-02-08 Thread Piet van Oostrum
rajesh kumar chinna...@gmail.com writes: Hi I need help in pxssh. Steps : 1) I was login into remote machine usning pxssh and the prompt is '$'. 2) After successful login running some command and the prompt is ''. 3) Here onwards I want to execute cli commands by using sendline(). My

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Chris Angelico
On Sat, Feb 9, 2013 at 6:58 AM, Rick Johnson rantingrickjohn...@gmail.com wrote: I'm a bit unnerved by the sum function. Summing a sequence only makes sense if the sequence in question contains /only/ numeric types. For that reason i decided to create a special type for holding Numerics. This

Re: Opinion on best practice...

2013-02-08 Thread Chris Angelico
On Sat, Feb 9, 2013 at 5:29 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: If you want the real nightmare -- look into the IBM queue scheme (not many REXX implementations except on IBM mainframes support that). One can push lines onto the queue, such that when the script exits, the

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Rick Johnson
On Friday, February 8, 2013 6:05:54 PM UTC-6, Chris Angelico wrote: The sum builtin works happily on any sequence of objects that can be added together. It works as an excellent flatten() method: nested_list = [[q], [w,e], [r,t,u], [i,o,p]] sum(nested_list,[]) ['q', 'w', 'e', 'r', 't',

Re: Monitoring updating directory for image for GUI

2013-02-08 Thread Oscar Benjamin
On 8 February 2013 17:09, ciscorucin...@gmail.com wrote: So you have a thread that updates the image and then checks the stack to see if a new image is available? Can you not just have it only try to load the newest image? That is what I am trying to figure out how to do. I have a counter

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Ian Kelly
On Fri, Feb 8, 2013 at 12:58 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: I'm a bit unnerved by the sum function. Summing a sequence only makes sense if the sequence in question contains /only/ numeric types. For that reason i decided to create a special type for holding Numerics.

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Chris Angelico
On Sat, Feb 9, 2013 at 11:49 AM, Rick Johnson rantingrickjohn...@gmail.com wrote: On Friday, February 8, 2013 6:05:54 PM UTC-6, Chris Angelico wrote: The sum builtin works happily on any sequence of objects that can be added together. It works as an excellent flatten() method: nested_list =

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Ian Kelly
On Fri, Feb 8, 2013 at 5:49 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: On Friday, February 8, 2013 6:05:54 PM UTC-6, Chris Angelico wrote: The sum builtin works happily on any sequence of objects that can be added together. It works as an excellent flatten() method: nested_list =

LangWart: Method congestion from mutate multiplicty

2013-02-08 Thread Rick Johnson
DISCLAIMER: This post covers a universal programming language design flaw using both Python and Ruby code examples to showcase the issue. I really don't like to read docs when learning a language, especially a so-called high level language. I prefer to learn the language by interactive

Re: Jinja2 installation help

2013-02-08 Thread Wayne Werner
On Fri, 8 Feb 2013, Robert Iulian wrote: Hello, I recently started learning Python. Just finished learning the basis of it, and now I think I'm ready to start working on a simple website but I am having some difficulties installing Jinja2. Can anyone post a dummy guide on how to install it,

Re: Opinion on best practice...

2013-02-08 Thread John Ladasky
On Tuesday, February 5, 2013 5:55:50 PM UTC-8, Steven D'Aprano wrote: To do anything meaningful in bash, you need to be an expert on passing work off to other programs... [snip] If you took the Zen of Python, and pretty much reversed everything, you might have the Zen of Bash: I have to

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Steven D'Aprano
Rick Johnson wrote: On Friday, February 8, 2013 9:16:42 AM UTC-6, Steven D'Aprano wrote: Rick Johnson wrote: GvR has always been reluctant to incorporate full OOP machinery for some reason. Python is a fully object oriented language. It is *more* object oriented than, say, Java. Oh

Re: LangWart: Method congestion from mutate multiplicty

2013-02-08 Thread Steven D'Aprano
Rick Johnson wrote: The solution is simple. Do not offer the copy-mutate methods and force all mutation to happen in-place: py l = [1,2,3] py l.reverse py l [3,2,1] If the user wants a mutated copy he should explicitly create a new object and then apply the correct mutator method:

Re: PyWart: Namespace asinitiy and the folly of the global statement

2013-02-08 Thread Michael Torrie
On 02/08/2013 04:45 AM, Steven D'Aprano wrote: Rick Johnson wrote: Of course in this simplistic example we can see that count is @ module level But it isn't. It is a local variable. Rick, I appreciate your honesty in telling us that you have no idea how to read Python code and recognise

Re: LangWart: Method congestion from mutate multiplicty

2013-02-08 Thread Chris Angelico
On Sat, Feb 9, 2013 at 12:50 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: I really don't like to read docs when learning a language, especially a so-called high level language. I prefer to learn the language by interactive sessions and object introspection. Then, when i have exhausted

Re: best way to share an instance of a class among modules?

2013-02-08 Thread Michael Torrie
On 02/07/2013 07:14 PM, Rick Johnson wrote: So if you want to use global variables , (bka: Module level variables), then simply declare them with a None value like this: globalVariable = None This is a nice convention, but at best it's just a helpful notation that helps a programmer know

Re: Implicit conversion to boolean in if and while statements

2013-02-08 Thread Chris Angelico
On Sat, Feb 9, 2013 at 12:29 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Fri, Feb 8, 2013 at 5:49 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: What the hell? Oh yeah, you must be using pike again. No, if it were pike the list would look like this: ({({q}), ({w,e}), ({r,t,u}),

Spawn a process, then exit, whilst leaving process running?

2013-02-08 Thread Victor Hooi
Hi, I have a Python script that I'd like to spawn a separate process (SSH client, in this case), and then have the script exit whilst the process continues to run. I looked at Subprocess, however, that leaves the script running, and it's more for spawning processes and then dealing with their

[issue17128] OS X system openssl deprecated - installer should build local libssl

2013-02-08 Thread Ned Deily
Ned Deily added the comment: After spending some time on this, I'm downgrading this from release blocker status. First, no one has yet identified any immediate need for openssl 1.0.x features to support possible PyPI enhancements, which was my original concern. Second, since the openssl

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file28992/pygettext.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17156 ___

[issue4331] Can't use _functools.partial() created function as method

2013-02-08 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- versions: +Python 3.3, Python 3.4 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4331 ___

[issue17128] OS X system openssl deprecated - installer should build local libssl

2013-02-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: See also: issue 15740 A version of OpenSSL as included in some versions of OSX can be downloaded from http://opensource.apple.com/tarballs/OpenSSL098/, as mentioned in issue 15740 the versions as included in the most recent OS updates doesn't seem to be

[issue11448] docs for HTTPConnection.set_tunnel are ambiguous

2013-02-08 Thread Michael Stahn
Michael Stahn added the comment: I thought the same as Ryan when reading the API. The best way would have been to call set_tunnel - set_proxy and to implement the behaviour you expect on this: setting a proxy. There are some more places at this code which are not quite clear eg: def

[issue17153] tarfile extract fails when Unicode in pathname

2013-02-08 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17153 ___ ___ Python-bugs-list mailing list

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17156 ___

[issue17149] random.vonmisesvariate() results range is inconsistent for small and not small kappa

2013-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I was wrong. I missed that z is in range -1..1. Original report is invalid, random.vonmisesvariate() always returns a value on the full circle. However there is some inconsistency. For small kappa (= 1e-6) result range is 0 to 2pi, for other kappa it

[issue14516] test_tools assumes BUILDDIR=SRCDIR

2013-02-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've closed the issue because I can no longer reproduce the issue, the changesets mentioned by Ned have fixed the problem. -- status: pending - closed ___ Python tracker rep...@bugs.python.org

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for 3.x, which correctly detects input file encoding and correctly escapes non-ascii output files if -E specified (and only if it specified). For 2.7 we should just negate an argument for make_escapes. -- components: +Unicode nosy:

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for 2.7. pygettext doesn't try to detect input encoding and transparently works with bytes, but it no longer escapes non-ascii bytes if -E is not specified. -- versions: +Python 2.7 Added file:

[issue17116] xml.parsers.expat.(errors|model) don't set the __loader__ attribute

2013-02-08 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- dependencies: +__loader__ = None should be fine ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17116 ___

[issue17157] issubclass should accept iterables

2013-02-08 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- nosy: kushou, ramchandra.apte priority: normal severity: normal status: open title: issubclass should accept iterables type: enhancement versions: Python 3.3, Python 3.4 ___ Python tracker

[issue17157] issubclass should accept iterables

2013-02-08 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- components: +Interpreter Core ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17157 ___ ___

[issue17157] issubclass should accept iterables

2013-02-08 Thread Ramchandra Apte
New submission from Ramchandra Apte: kushou pointed this out on #python-dev -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17157 ___ ___

[issue17157] issubclass() should accept iterables in 2nd arg

2013-02-08 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- title: issubclass should accept iterables - issubclass() should accept iterables in 2nd arg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17157

[issue17157] issubclass() should accept iterables in 2nd arg

2013-02-08 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- status: open - languishing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17157 ___ ___

[issue17157] issubclass() should accept iterables in 2nd arg

2013-02-08 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- status: languishing - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17157 ___ ___

[issue17158] help() module searcher text improvement

2013-02-08 Thread Ramchandra Apte
New submission from Ramchandra Apte: help(modules spam) prints out Here is a list of matching modules. Enter any module name to get more help. before it has even found the modules. This gives the impression that it has found the modules yet it hasn't printed the modules yet. I would suggest

[issue17158] help() module searcher text is misleading

2013-02-08 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- title: help() module searcher text improvement - help() module searcher text is misleading ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17158

[issue17157] issubclass() should accept iterables in 2nd arg

2013-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: What's the use case for this? issubclass already accept tuples, just like isinstance: issubclass(bool, (int, float)) True -- nosy: +mark.dickinson versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue17149] random.vonmisesvariate() results range is inconsistent for small and not small kappa

2013-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: Agreed that this seems inconsistent. The current normalization for non-small kappa is a little odd: e.g, if mu is small and negative (-0.01, say), then we get a range that goes roughly from pi to 3*pi, when a range from -pi to pi would have made more sense.

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2013-02-08 Thread Stefan Behnel
New submission from Stefan Behnel: I can't see a reason why Signature.from_function() should explicitly check the type of the object being passed in. As long as the object has all required attributes, it should be accepted. This is specifically an issue with Cython compiled functions, which

[issue15580] fix True/False/None reST markup

2013-02-08 Thread Zearin
Zearin added the comment: I agree that globally linking all occurrences of True/False/None is overkill. Perhaps linking the first occurrence per webpage would be a good standard? However, I *strongly* believe that: 1. The words be capitalized 2. The words should be marked up as

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2013-02-08 Thread Stefan Behnel
Stefan Behnel added the comment: This patch removes the type check from Signature.from_function() and cleans up the type tests in signature() to use whatever the inspect module defines as isfunction() and isbuiltin(), so that it becomes properly monkey-patchable. It also adds a test that

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2013-02-08 Thread Éric Araujo
Éric Araujo added the comment: Patch looks good, but I’m worried about the change from TypeError to AttributeError in a stable version. Could you also make clear that all function-like objects are accepted in the doc? -- nosy: +eric.araujo ___

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2013-02-08 Thread Stefan Behnel
Stefan Behnel added the comment: The method doesn't seem to be documented, and I'm not sure if the docstring really benefits from this lengthy addition. Anyway, here's a patch that includes the docstring update. The exception could be kept the same if we catch an AttributeError and

[issue4483] Error to build _dbm module during make

2013-02-08 Thread ddve...@ucar.edu
ddve...@ucar.edu added the comment: This is still an issue in Python 2.7.3 but there is a quick manual workaround. I know it's trivial and one can easily develop it from what is said in the thread or maybe looking at the patches, but for reference this is a nice recipe as oppose to digging

[issue15580] fix True/False/None reST markup

2013-02-08 Thread R. David Murray
R. David Murray added the comment: They should be capitalized and marked up as code if they refer to the objects. If they refer only to (to use bad english) the truthiness or falsiness of the value in question, then they should be lower case and not marked up as code. Quickly scanning the

[issue17047] Fix double double words words

2013-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I cannot find python-gdb.py. This is a copy of Tools/gdb/libpython.py. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17047 ___

[issue17160] test_urllib2net fails

2013-02-08 Thread ddve...@ucar.edu
New submission from ddve...@ucar.edu: test_urllib2net fails as follows. Looking at test_urllib2net.py line 165 does not reveal anything interesting to me ./python Lib/test/regrtest.py -uall -v test_urllib2net == CPython 2.7.3 (default, Feb 8 2013, 08:28:21) [GCC 4.7.2] ==

[issue17160] test_urllib2net fails

2013-02-08 Thread R. David Murray
R. David Murray added the comment: It passes on all our buildbots, and for me locally. Is it possible there is a proxy server between you and python.org that is changing the url returned? -- nosy: +r.david.murray ___ Python tracker

[issue17161] make install misses the man and the static library

2013-02-08 Thread ddve...@ucar.edu
New submission from ddve...@ucar.edu: This is for python 2.7.3 built with 0) ./configure --enable-shared --with-system-expat 1) I need both static and shared object, however libpython2.7.a is not copied in the installation target lib. Is this on purpose, or am I missing a flag in configure?

[issue17160] test_urllib2net fails

2013-02-08 Thread ddve...@ucar.edu
ddve...@ucar.edu added the comment: Yes, it is possible, do you want me to investigate more with my network people? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17160 ___

[issue17161] make install misses the man and the static library

2013-02-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17161 ___ ___ Python-bugs-list

[issue17160] test_urllib2net fails

2013-02-08 Thread R. David Murray
R. David Murray added the comment: I think only if you want to. As far as we are concerned the test is correct and passing. (And this kind of thing is the reason that that test set is only run when -uall is specified.) I'm going to close the issue. If you do investigate, and feel that

[issue17108] import silently prefers package over module when both available

2013-02-08 Thread Éric Araujo
Éric Araujo added the comment: I knew that a package would win over a module, but an initless package does not? Yuck :( -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17108

  1   2   >