memprof - a memory profiler for Python

2013-06-27 Thread dana . develop
Hello, I'd like to announce memprof, a memory profiler for Python: http://jmdana.github.io/memprof/ memprof logs and plots the memory usage of all the variables during the execution of the decorated methods. The source code is available in GitHub: https://github.com/jmdana/memprof And the

Vulture 0.4

2013-06-27 Thread Jendrik Seipp
vulture - Find dead code vulture finds unused classes, functions and variables in Python code. This helps you cleanup and find errors in your programs. If you run it on both your library and test suite you can find untested code. Due to Python's dynamic nature it is

[ANN] Python Tools for Visual Studio 2.0 Beta

2013-06-27 Thread Dino Viehland
We're pleased to announce the release of Python Tools for Visual Studio 2.0 Beta (https://pytools.codeplex.com/releases/view/103101). Python Tools for Visual Studio (PTVS) is an open-source plug-in for Visual Studio which supports programming with the Python language. PTVS supports a broad

ANN: python-ldap 2.4.13

2013-06-27 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.11 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

[ANN] Training: Python for Non-Programmers, Leipzig, Germany July 9 - 12, 2013

2013-06-27 Thread Mike Müller
Python for Non-Programmers == What: Python for Non-Programmers - Learn programming from scratch When: July 9 - 12, 2013 Where: Python Academy, Leipzig, Germany Instructor: Mike Müller (eight years of Python training experience) Details:

Re: private class attributes

2013-06-27 Thread wgtrey
good question -- http://mail.python.org/mailman/listinfo/python-list

Re: FACTS: WHY THE PYTHON LANGUAGE FAILS.

2013-06-27 Thread Russel Walker
On Thursday, June 27, 2013 6:19:18 AM UTC+2, Thrinaxodon wrote: = MESSAGE FROM COMPUTER GEEK. = THRINAXODON HAS RECENTLY RECEIVED THIS MESSAGE FROM THE PYTHON FOUNDER: Oh my God! It's hard to program with, it`s troubling for so many people!

Re: private class attributes

2013-06-27 Thread Alister
On Wed, 26 Jun 2013 23:28:49 -0700, wgtrey wrote: good question but a very poor reply, you should at least quote SOME of the original post to give context. especially as msg threading in this newsgroup is less than perfect. -- How sharper than a serpent's tooth is a sister's See?

What is the purpose of type() and the types module and what is a type?

2013-06-27 Thread Russel Walker
The type() builtin according to python docs, returns a type object. http://docs.python.org/2/library/types.html And in this module is bunch of what I assume are type objects. Is this correct? http://docs.python.org/2/library/functions.html#type And type(), aside from being used in as an

Re: What is the purpose of type() and the types module and what is a type?

2013-06-27 Thread Steven D'Aprano
On Thu, 27 Jun 2013 01:34:34 -0700, Russel Walker wrote: The type() builtin according to python docs, returns a type object. http://docs.python.org/2/library/types.html And in this module is bunch of what I assume are type objects. Is this correct?

ANN: python-ldap 2.4.13

2013-06-27 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.11 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

Re: FACTS: WHY THE PYTHON LANGUAGE FAILS.

2013-06-27 Thread rusi
On Thursday, June 27, 2013 12:35:14 PM UTC+5:30, Russel Walker wrote: On Thursday, June 27, 2013 6:19:18 AM UTC+2, Thrinaxodon wrote: snipped I was hoping to have a good laugh. :| Although I wouldn't call it hostile. I think the python community is being educated in how to spam and troll at

looking for a linguistical/semiotic quote

2013-06-27 Thread rusi
I am looking for a quote (from Whorf/Sapir/Wittgenstein/Humboldt dunno... that 'school') It goes something like this: What characterizes a language is not what we can say in it but what we must -- like it or not -- say. A demo of this is D Hofstadter's

Re: looking for a linguistical/semiotic quote

2013-06-27 Thread Chris Angelico
On Thu, Jun 27, 2013 at 9:14 PM, rusi rustompm...@gmail.com wrote: I am looking for a quote (from Whorf/Sapir/Wittgenstein/Humboldt dunno... that 'school') It goes something like this: What characterizes a language is not what we can say in it but what we must -- like it or not -- say. I

Re: looking for a linguistical/semiotic quote

2013-06-27 Thread rusi
On Thursday, June 27, 2013 4:49:23 PM UTC+5:30, Chris Angelico wrote: On Thu, Jun 27, 2013 at 9:14 PM, rusi wrote: I am looking for a quote (from Whorf/Sapir/Wittgenstein/Humboldt dunno... that 'school') It goes something like this: What characterizes a language is not what we can

Re: looking for a linguistical/semiotic quote

2013-06-27 Thread Vlastimil Brom
2013/6/27 rusi rustompm...@gmail.com: I am looking for a quote (from Whorf/Sapir/Wittgenstein/Humboldt dunno... that 'school') It goes something like this: What characterizes a language is not what we can say in it but what we must -- like it or not -- say. [...] Hi, I belive, the author

?????? FACTS: WHY THE PYTHON LANGUAGE FAILS.

2013-06-27 Thread jj
If you insist it fails, JUST DO NOT USE IT or you create a better language. don't just bother, it does no good. -- -- ??: Ben Finneyben+pyt...@benfinney.id.au; : 2013??6??27??(??) 1:37 ??: python-listpython-list@python.org;

Re: Don't feed the troll...

2013-06-27 Thread Antoon Pardon
Op 25-06-13 19:25, Ian Kelly schreef: On Mon, Jun 24, 2013 at 7:37 AM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: What do you mean with not a participant in the past? As far as I can see his first appearance was in dec 2011. That is over a year ago. It also seems that he always find

Re: Don't feed the troll...

2013-06-27 Thread Ian Kelly
On Wed, Jun 26, 2013 at 1:46 PM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: But you didn't even go to the trouble of trying to find out what those concerns would be and how strong people feel about them. You just took your assumptions about those concerns for granted and proceeded from

Re: looking for a linguistical/semiotic quote

2013-06-27 Thread rusi
On Thursday, June 27, 2013 5:40:39 PM UTC+5:30, Vlastimil Brom wrote: Hi, I belive, the author is Roman Jakobson, see the respective post about this very question: http://linguistlist.org/issues/9/9-32.html Thanks! There seem to be several variations, Another remarkable linguist

Why is the argparse module so inflexible?

2013-06-27 Thread Andrew Berg
I've begun writing a program with an interactive prompt, and it needs to parse input from the user. I thought the argparse module would be great for this, but unfortunately it insists on calling sys.exit() at any sign of trouble instead of letting its ArgumentError exception propagate so that I

Re: Limit Lines of Output

2013-06-27 Thread Joshua Landau
On 27 June 2013 00:57, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 26 Jun 2013 10:09:13 -0700, rusi wrote: On Wednesday, June 26, 2013 8:54:56 PM UTC+5:30, Joshua Landau wrote: On 25 June 2013 22:48, Gene Heskett wrote: On Tuesday 25 June 2013 17:47:22 Joshua Landau

Re: FACTS: WHY THE PYTHON LANGUAGE FAILS.

2013-06-27 Thread Ian
On 27/06/2013 11:52, rusi wrote: On Thursday, June 27, 2013 12:35:14 PM UTC+5:30, Russel Walker wrote: On Thursday, June 27, 2013 6:19:18 AM UTC+2, Thrinaxodon wrote: snipped I was hoping to have a good laugh. :| Although I wouldn't call it hostile. I think the python community is being

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Joshua Landau
On 27 June 2013 13:54, Andrew Berg robotsondr...@gmail.com wrote: I've begun writing a program with an interactive prompt, and it needs to parse input from the user. I thought the argparse module would be great for this, but unfortunately it insists on calling sys.exit() at any sign of

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Roy Smith
In article mailman.3924.1372337705.3114.python-l...@python.org, Andrew Berg robotsondr...@gmail.com wrote: I've begun writing a program with an interactive prompt, and it needs to parse input from the user. I thought the argparse module would be great for this, but unfortunately it insists

خطاب الرئيس محمد مرسي كاملا يوم 26-6-2013

2013-06-27 Thread 23alagmy
خطاب الرئيس محمد مرسي كاملا يوم 26-6-2013

Re: class factory question

2013-06-27 Thread Joshua Landau
On 26 June 2013 14:09, Tim jtim.arn...@gmail.com wrote: I am extending a parser and need to create many classes that are all subclassed from the same object (defined in an external library). When my module is loaded I need all the classes to be created with a particular name but the

Re: Making a pass form cgi = webpy framework

2013-06-27 Thread Νίκος
Στις 25/6/2013 9:00 μμ, ο/η ru...@yahoo.com έγραψε: On 06/23/2013 07:44 PM, Νίκος wrote: Why use mako's approach which requires 2 files(an html template and the actual python script rendering the data) when i can have simple print statements inside 1 files(my files.py script) ? After all its

Re: class factory question

2013-06-27 Thread Tim
On Thursday, June 27, 2013 9:16:50 AM UTC-4, Joshua Landau wrote: On 26 June 2013 14:09, Tim wrote: I am extending a parser and need to create many classes that are all subclassed from the same object (defined in an external library). When my module is loaded I need all the classes to

How to make a web framework

2013-06-27 Thread gamesbrainiac
I've used web frameworks, but I don't know how they work. Is there anywhere that I can learn how this all works from scratch? -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Andrew Berg
On 2013.06.27 08:08, Roy Smith wrote: Can you give us a concrete example of what you're trying to do? The actual code I've written so far isn't easily condensed into a short simple snippet. I'm trying to use argparse to handle all the little details of parsing and verifying arguments in the

Re: class factory question

2013-06-27 Thread Dave Angel
On 06/27/2013 09:37 AM, Tim wrote: On Thursday, June 27, 2013 9:16:50 AM UTC-4, Joshua Landau wrote: On 26 June 2013 14:09, Tim wrote: I am extending a parser and need to create many classes that are all subclassed from the same object (defined in an external library). When my module is

Devnagari Unicode Conversion Issues

2013-06-27 Thread darpan6aya
How can i convert text of the following type नेपाली into devnagari unicode in Python 2.7? -- http://mail.python.org/mailman/listinfo/python-list

Running programs on mobile phones

2013-06-27 Thread Mok-Kong Shen
Could one write Python codes and have them run on one's own mobile phone? If yes, are there some good literatures? Thanks in advance. M. K. Shen -- http://mail.python.org/mailman/listinfo/python-list

Re: Devnagari Unicode Conversion Issues

2013-06-27 Thread MRAB
On 27/06/2013 16:05, darpan6aya wrote: How can i convert text of the following type नेपाली into devnagari unicode in Python 2.7? Is that a bytestring? In other words, is its type 'str'? If so, you need to decode it. That particular string is UTF-8: print

Re: How to make a web framework

2013-06-27 Thread Fábio Santos
On 27 Jun 2013 14:49, gamesbrain...@gmail.com wrote: I've used web frameworks, but I don't know how they work. Is there anywhere that I can learn how this all works from scratch? Write CGI scripts. It is the most raw way to program for the web. That way you can dig into what frameworks do for

Re: Devnagari Unicode Conversion Issues

2013-06-27 Thread darpan6aya
That worked out. I was trying to encode it the entire time. Now I realise how silly I am. Thanks MRAB. Once Again. :D -- http://mail.python.org/mailman/listinfo/python-list

Re: How to make a web framework

2013-06-27 Thread rusi
On Thursday, June 27, 2013 8:44:36 PM UTC+5:30, Fábio Santos wrote: On 27 Jun 2013 14:49, gamesb...@gmail.com wrote: I've used web frameworks, but I don't know how they work. Is there anywhere that I can learn how this all works from scratch? Write CGI scripts. It is the most raw way to

Re: class factory question

2013-06-27 Thread Irmen de Jong
On 27-6-2013 15:48, Dave Angel wrote: The behavior for these is all the same so they're subclassed from one base class, but they need to have these particular names so the parser knows how to consume them when encountered in the source file. That is, for every custom command the parser

Re: Running programs on mobile phones

2013-06-27 Thread Dave Angel
On 06/27/2013 11:11 AM, Mok-Kong Shen wrote: Could one write Python codes and have them run on one's own mobile phone? If yes, are there some good literatures? Thanks in advance. M. K. Shen I've not tried it, but that's what QPython is supposed to do. http://qpython.com/ -- DaveA --

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Dave Angel
On 06/27/2013 09:49 AM, Andrew Berg wrote: On 2013.06.27 08:08, Roy Smith wrote: Can you give us a concrete example of what you're trying to do? The actual code I've written so far isn't easily condensed into a short simple snippet. I'm trying to use argparse to handle all the little details

Re: Devnagari Unicode Conversion Issues

2013-06-27 Thread Dave Angel
On 06/27/2013 11:39 AM, darpan6aya wrote: That worked out. I was trying to encode it the entire time. Now I realise how silly I am. Thanks MRAB. Once Again. :D you're not silly, it's a complex question. MRAB is good at guessing which part is messing you up. However, when you're writing a

Re: class factory question

2013-06-27 Thread Tim
On Thursday, June 27, 2013 11:56:24 AM UTC-4, Irmen de Jong wrote: On 27-6-2013 15:48, Dave Angel wrote: The behavior for these is all the same so they're subclassed from one base class, but they need to have these particular names so the parser knows how to consume them when

Python ZeldaII sequel - mapeditor

2013-06-27 Thread Turtle Wizard
Hi all, I made a simple map editor for using in pyZeldaII overworld maps, it's fastly written. You can download it here : http://github.com/pygame-pyLevelMaker pyZeldaII can be found here : http://github.com/pygame-pyZeldaII Enjoy, Turtle Wizard -- Time heals. my blog :

Re: Python ZeldaII sequel - mapeditor

2013-06-27 Thread elvish . healer
Scuzzy, the links are : http://github.com/zork9/pygame-pyLevelMaker and http://github.com/zork9/pygame-pyZeldaII You can download them with git. Screenshots of the level editor can be found on my blog, see sig. TW -- http://mail.python.org/mailman/listinfo/python-list

Re: 回复: FACTS: WHY THE PYTHON LANGUAGE FAILS.

2013-06-27 Thread woooee
Any programming language is only as good as the person who is using it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Terry Reedy
On 6/27/2013 8:54 AM, Andrew Berg wrote: I've begun writing a program with an interactive prompt, and it needs to parse input from the user. I thought the argparse module would be great for this, It is outside argparse's intended domain of application -- parsing command line arguments. The

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Dave Angel
On 06/27/2013 02:05 PM, Terry Reedy wrote: On 6/27/2013 8:54 AM, Andrew Berg wrote: I've begun writing a program with an interactive prompt, and it needs to parse input from the user. I thought the argparse module would be great for this, It is outside argparse's intended domain of

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Terry Reedy
On 6/27/2013 2:18 PM, Dave Angel wrote: On 06/27/2013 02:05 PM, Terry Reedy wrote: On 6/27/2013 8:54 AM, Andrew Berg wrote: I've begun writing a program with an interactive prompt, and it needs to parse input from the user. I thought the argparse module would be great for this, It is

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Ethan Furman
On 06/27/2013 11:39 AM, Terry Reedy wrote: On 6/27/2013 2:18 PM, Dave Angel wrote: On 06/27/2013 02:05 PM, Terry Reedy wrote: On 6/27/2013 8:54 AM, Andrew Berg wrote: I've begun writing a program with an interactive prompt, and it needs to parse input from the user. I thought the argparse

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Robert Kern
On 2013-06-27 17:02, Dave Angel wrote: On 06/27/2013 09:49 AM, Andrew Berg wrote: On 2013.06.27 08:08, Roy Smith wrote: Can you give us a concrete example of what you're trying to do? The actual code I've written so far isn't easily condensed into a short simple snippet. I'm trying to use

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Jason Swails
On Thu, Jun 27, 2013 at 2:50 PM, Ethan Furman et...@stoneleaf.us wrote: If the OP is writing an interactive shell, shouldn't `cmd` be used instead of `argparse`? argparse is, after all, intended for argument parsing of command line scripts, not for interactive work. He _is_ using cmd.

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Grant Edwards
On 2013-06-27, Jason Swails jason.swa...@gmail.com wrote: He _is_ using cmd. He's subclassed cmd.Cmd and trying to use argparse to handle argument parsing in the Cmd.precmd method to preprocess the user input. [...] Having subclassed cmd.Cmd myself in one of my programs and written my own

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Chris Angelico
On Fri, Jun 28, 2013 at 8:19 AM, Grant Edwards invalid@invalid.invalid wrote: On 2013-06-27, Jason Swails jason.swa...@gmail.com wrote: He _is_ using cmd. He's subclassed cmd.Cmd and trying to use argparse to handle argument parsing in the Cmd.precmd method to preprocess the user input.

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Steven D'Aprano
On Thu, 27 Jun 2013 12:02:22 -0400, Dave Angel wrote: On 06/27/2013 09:49 AM, Andrew Berg wrote: On 2013.06.27 08:08, Roy Smith wrote: Can you give us a concrete example of what you're trying to do? The actual code I've written so far isn't easily condensed into a short simple snippet. I'm

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Cameron Simpson
On 27Jun2013 11:50, Ethan Furman et...@stoneleaf.us wrote: | If the OP is writing an interactive shell, shouldn't `cmd` be used | instead of `argparse`? argparse is, after all, intended for | argument parsing of command line scripts, not for interactive work. This is specious. I invoke command

Re: Making a pass form cgi = webpy framework

2013-06-27 Thread Cameron Simpson
On 27Jun2013 16:32, Νίκος ni...@superhost.gr wrote: | a) keep my existing Python cgi way that embed print ''' statements | within python code to displays mostly tables? I'd argue against this approach. Like hand constructing SQL, this is rife with opportunity to make syntax errors, either

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Cameron Simpson
On 27Jun2013 22:49, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: | [rant] | I think it is lousy design for a framework like argparse to raise a | custom ArgumentError in one part of the code, only to catch it elsewhere | and call sys.exit. At the very least, that ought to be a

Re: What is the semantics meaning of 'object'?

2013-06-27 Thread alex23
On 26/06/2013 9:19 AM, Mark Janssen wrote: Did you ever hear of the Glass Bead Game? Which was Hesse's condemnation of the pure-academic-understanding-unbound-by-pragmatic-use approach as mental masturbation, _not_ a recommendation for how human knowledge should work. If you think

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Tim Chase
On 2013-06-28 09:02, Cameron Simpson wrote: On 27Jun2013 11:50, Ethan Furman et...@stoneleaf.us wrote: | If the OP is writing an interactive shell, shouldn't `cmd` be used | instead of `argparse`? argparse is, after all, intended for | argument parsing of command line scripts, not for

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Oscar Benjamin
On 27 June 2013 22:30, Jason Swails jason.swa...@gmail.com wrote: An alternative is, of course, to simply subclass ArgumentParser and copy over all of the code that catches an ArgumentError to eliminate the internal exception handling and instead allow them to propagate the call stack. I

Re: Running programs on mobile phones

2013-06-27 Thread alex23
On 28/06/2013 1:11 AM, Mok-Kong Shen wrote: Could one write Python codes and have them run on one's own mobile phone? If yes, are there some good literatures? Thanks in advance. Kivy is a well-documented multi-platform approach to doing this: http://kivy.org/ --

Re: SQL code generation from table-free boolean queries?

2013-06-27 Thread alex23
On 27/06/2013 9:17 AM, Foo Stack wrote: Given string input such as: foo=5 AND a=6 AND date=now OR date='2013/6' AND bar='hello' I am going to implement: - boolean understanding (which operator takes precendence) - spliting off of attributes into my function which computes their table in

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Jason Swails
On Thu, Jun 27, 2013 at 8:22 PM, Tim Chase python.l...@tim.thechases.comwrote: On 2013-06-28 09:02, Cameron Simpson wrote: On 27Jun2013 11:50, Ethan Furman et...@stoneleaf.us wrote: | If the OP is writing an interactive shell, shouldn't `cmd` be used | instead of `argparse`? argparse is,

Re: Making a pass form cgi = webpy framework

2013-06-27 Thread Νίκος
Στις 28/6/2013 2:08 πμ, ο/η Cameron Simpson έγραψε: On 27Jun2013 16:32, Νίκος ni...@superhost.gr wrote: | a) keep my existing Python cgi way that embed print ''' statements | within python code to displays mostly tables? I'd argue against this approach. Like hand constructing SQL, this is rife

Re: FACTS: WHY THE PYTHON LANGUAGE FAILS.

2013-06-27 Thread Jason Friedman
I was hoping to have a good laugh. :| Although I wouldn't call it hostile. I think the python community is being educated in how to spam and troll at the same time. It is possible the OP has a mental disease, which is about as funny as heart disease and cancer and not blameworthy. This

Re: Why is the argparse module so inflexible?

2013-06-27 Thread Andrew Berg
I appreciate the responses from everyone. I knew I couldn't be the only who thought this behavior was unnecessarily limiting. I found a ticket on the bug tracker. A patch was even submitted, but obviously it didn't make it into 3.3. Hopefully, it will make it into 3.4 with some prodding.

[issue9625] argparse: Problem with defaults for variable nargs when using choices

2013-06-27 Thread paul j3
paul j3 added the comment: I've added 2 more tests, one with default='c', which worked before. one with default=['a','b'], which only works with this change. http://bugs.python.org/issue16878 is useful reference, since it documents the differences between nargs=? and nargs=*, and their

[issue18313] In itertools recipes repeatfunc() defines a non-keyword argument as keyword

2013-06-27 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18313 ___ ___ Python-bugs-list mailing list

[issue18312] make distclean deletes files under .hg directory

2013-06-27 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- versions: +Python 3.3 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18312 ___

[issue18312] make distclean deletes files under .hg directory

2013-06-27 Thread STINNER Victor
STINNER Victor added the comment: Extract of GNU standards: # make distclean # Delete all files from the current directory that are created by # configuring or building the program. If you have unpacked the # source and built the program without creating any other files, #

[issue18312] make distclean deletes files under .hg directory

2013-06-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 27.06.2013 09:36, STINNER Victor wrote: STINNER Victor added the comment: Extract of GNU standards: # make distclean # Delete all files from the current directory that are created by # configuring or building the program. If you have

[issue18309] Make python slightly more relocatable

2013-06-27 Thread Mathias Fröhlich
Mathias Fröhlich added the comment: Hi Eric, Thanks for looking at that ticket so fast! Reassigning this to 3.4 is great. In general, yes I can already do what I need more or less. This is the reason why I can be fine with about every python version. The point I bring up this change that I

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2013-06-27 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Thanks for your comments Christian. You don't check ERR_GET_LIB() in some places. Do you have a particular place in mind? About DER. As I understand, currently _ssl only supports PEM. If that is the case, then supporting DER should, IMHO, be a

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2013-06-27 Thread Christian Heimes
Christian Heimes added the comment: I found two places: if (ERR_GET_REASON(err) == X509_R_CERT_ALREADY_IN_HASH_TABLE) { if (ERR_GET_REASON(err) == PEM_R_BAD_BASE64_DECODE) AFAIK the _ssl module only supports PEM certs for loading. On the other hands cert data can only be retrieved as dict

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2013-06-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: It feels a bit strange to treat PEM certs as binary data, especially since the SSL module treats PEM as ASCII unicode. For example DER_cert_to_PEM_cert() accepts bytes and returns str, PEM_cert_to_DER_cert() converts str to bytes. I agree that PEM is

[issue13483] Use VirtualAlloc to allocate memory arenas

2013-06-27 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13483 ___

[issue13483] Use VirtualAlloc to allocate memory arenas

2013-06-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 44f455e6163d by Martin v. Löwis in branch 'default': Issue #13483: Use VirtualAlloc in obmalloc on Windows. http://hg.python.org/cpython/rev/44f455e6163d -- nosy: +python-dev ___ Python tracker

[issue16113] Add SHA-3 (Keccak) support

2013-06-27 Thread Christian Heimes
Christian Heimes added the comment: Hi Aaron, it's a tempting idea but I have to decline. The API is deliberately limited to the NIST interface. Once OpenSSL gains SHA-3 support we are going to use it in favor for the reference implementation. I don't expect OpenSSL to provide the full

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2013-06-27 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ok, thanks. The consistency argument is strong, also Antoine's suggestion to use the return type of read() as a discriminant. also please excuse me because I am not a habitual user of Python 3 and haven't become used to the str/binary dichotomy yet.

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2013-06-27 Thread Christian Heimes
Christian Heimes added the comment: EVE Online is still using Python 2.7? You gotta hurry up or Guido will beat you with Dropbox's 3.x port. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16487

[issue18312] make distclean deletes files under .hg directory

2013-06-27 Thread Eric V. Smith
Eric V. Smith added the comment: My plan is to just fix this issue, right now, by changing the find command to be: find $(srcdir)/[a-zA-Z]* ... That fixes this bug and keeps the current functionality. If someone wants to open another issue about changing what distclean does, I think

[issue18309] Make python slightly more relocatable

2013-06-27 Thread Nick Coghlan
Nick Coghlan added the comment: The way we figure out where to find the standard library is crazy, and creating the infrastructure to start making it less crazy is actually one of the prime motivations for PEP 432 :) -- ___ Python tracker

[issue18314] Have os.unlink remove junction points

2013-06-27 Thread Kim Gräsman
New submission from Kim Gräsman: os.unlink currently raises a WindowsError (Access Denied) if I attempt to unlink an NTFS junction point. It looks trivial to allow Py_DeleteFileW [1] to remove junction points as well as proper symbolic links, as far as I can tell. For example, the

[issue18314] Have os.unlink remove junction points

2013-06-27 Thread Kim Gräsman
Kim Gräsman added the comment: Also, I believe the reason os.unlink raises access denied is because a junction point does not currently qualify as a directory link, so its path is passed directly to DeleteFileW, which in turn refuses to delete a directory. --

[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering

2013-06-27 Thread Łukasz Langa
Łukasz Langa added the comment: The reason why I think it's wrong to special-case ABCs that are explicitly in the MRO is that it's only one of four methods of virtual subclassing: 1. Explicit MRO; 2. Abstract functionality implicitly implemented without any form of registration; 3.

[issue18313] In itertools recipes repeatfunc() defines a non-keyword argument as keyword

2013-06-27 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not sure what you're saying. Given the function definition, the way you're calling it is incorrect, and the error messages explain why. Are you saying that these ways to call repeatfunc() are documented somewhere that needs fixing? I couldn't find that on

[issue18313] In itertools recipes repeatfunc() defines a non-keyword argument as keyword

2013-06-27 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18313 ___ ___

[issue18313] In itertools recipes repeatfunc() defines a non-keyword argument as keyword

2013-06-27 Thread py.user
Changes by py.user bugzilla-mail-...@yandex.ru: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18313 ___ ___

[issue18313] In itertools recipes repeatfunc() defines a non-keyword argument as keyword

2013-06-27 Thread py.user
py.user added the comment: it should be: def repeatfunc(func, times, *args): and None for times described in the docstring -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18313

[issue18313] In itertools recipes repeatfunc() defines a non-keyword argument as keyword

2013-06-27 Thread Eric V. Smith
Eric V. Smith added the comment: I see. You can't call repeatfunc() and specify times with a named argument because of *args. Interesting. I'll let Raymond weigh in. -- status: pending - open ___ Python tracker rep...@bugs.python.org

[issue16251] pickle special methods are looked up on the instance rather than the type

2013-06-27 Thread Eric Snow
Eric Snow added the comment: A backward compatible solution would be to do lookup on the class after trying the instance (and that came back None or isn't callable). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16251

[issue18315] bufsize parameter not documented in 2.7.5

2013-06-27 Thread Terrel Shumway
New submission from Terrel Shumway: for line in fileinput.input(files,inplace,backup,rU): File /usr/lib/python2.7/fileinput.py, line 253, in next line = self.readline() File /usr/lib/python2.7/fileinput.py, line 346, in readline self._buffer = self._file.readlines(self._bufsize)

[issue18315] bufsize parameter not documented in 2.7.5

2013-06-27 Thread Terrel Shumway
Terrel Shumway added the comment: http://hg.python.org/cpython/file/4dbbf322a9df/Lib/fileinput.py In the process, I added an optional bufsize argument to the input() function and the FileInput class. -- ___ Python tracker rep...@bugs.python.org

[issue18315] bufsize parameter not documented in 2.7.5

2013-06-27 Thread R. David Murray
R. David Murray added the comment: A quick look at the VCS history indicates bufsize has been in there for a long time. The sphinx docs are wrong as well. This is correctly documented in python3, apparently as part of the conversion from [] notation to keyword notation in d143eb624cf5.

[issue18315] bufsize parameter not documented in 2.7.5

2013-06-27 Thread Terrel Shumway
Terrel Shumway added the comment: http://hg.python.org/cpython/file/68c776ba5ea5/Lib/fileinput.py This is where the incorrect docstrings get added. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18315

[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering

2013-06-27 Thread Guido van Rossum
Guido van Rossum added the comment: Hm. I interpret explicit is better than implicit very differently. I see a strict priority ordering from better to worse, in cases that would otherwise be ambiguous: 1. explicit base class (ABC or otherwise) 2. ABC explicitly registered 3. ABC implicitly

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2013-06-27 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: 2.7 is the pinnacle of pythonic achievement. Particularly our branch of it :) One day we'll move, I'm sure, when there is an opportune moment. For example, if we were to start supporting a new game, a new platform. But for now, if it ain't broke, we

[issue18315] bufsize parameter not documented in 2.7.5

2013-06-27 Thread Terrel Shumway
Terrel Shumway added the comment: Here is a patch against the 2.7 branch. It will probably also apply to 2.6 if anyone cares. -- keywords: +patch Added file: http://bugs.python.org/file30712/fileinput-document-bufsize.patch ___ Python tracker

[issue18315] bufsize parameter not documented in 2.7.5

2013-06-27 Thread Terrel Shumway
Terrel Shumway added the comment: Oops. I messed up, even on such a tiny fix. #:( -- Added file: http://bugs.python.org/file30713/fileinput-document-bufsize.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18315

  1   2   >