Sqlkit 0.9.4

2011-04-13 Thread sandro
ANNOUNCE: sqlkit 0.9.4 April, 11 - 2011 I'm happy to announce release 0.9.4 of sqlkit package for Python. http://sqlkit.argolinux.org/ This release This release adds support for printing from sqlkit using OpenOffice templates

file deleted

2011-04-13 Thread luca72
hello i'm working with eric, running a program eric crash and when i try to open my project again with eric i see that myproject.py is deleted, but my project is still running there is a way to find myprogram.py file aving it in execution? -- http://mail.python.org/mailman/listinfo/python-list

looking for libpython31.a 64bit (missing from python-3.1.3.amd64.msi)

2011-04-13 Thread Nathan Coulson
Well, as the subject says, I am looking to find libpython31.a [win64bit version] for use in a linux to windows 64bit cross compiler [x86_64-w64-mingw32-gcc], but seems to be missing. so far, tried installing it on a real 64bit windows system, cabextract, as well as msiexec /a

Re: Do UART require data structure/format for serial communication?

2011-04-13 Thread VGNU Linux
Actually I am trying to data communication between these 2 chips, but facing troubles in deciding a protocol to do the same. Do UART have any default protocols? For the moment I am trying to do it with Strings but not sure if that's the right solution. Regards, Vivek On Mon, Apr 11, 2011 at

Nested inner classes and inheritance - namespace problem

2011-04-13 Thread Larry Hastings
The problem: if you're currently in a nested class, you can't look up variables in the outer class scope. For example, this code fails in Python 3: class Outer: class Inner: class Worker: pass class InnerSubclass(Inner): class Worker(Inner.Worker):

Re: Nested inner classes and inheritance - namespace problem

2011-04-13 Thread James Mills
On Wed, Apr 13, 2011 at 7:12 PM, Larry Hastings la...@hastings.org wrote: Yes, I could make the problem go away if I didn't have nested inner classes like this.  But I like this structure.  Any idea how I can make it work while preserving the nesting and inheritance? It's probably better to

pyc to py

2011-04-13 Thread luca72
I have pyc file written with python 2.6.5 and i need to return to py file, can you give me some ideas tools script etc. Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: pyc to py

2011-04-13 Thread Chris Rebert
On Wed, Apr 13, 2011 at 2:46 AM, luca72 lucabe...@libero.it wrote: I have pyc file written with python 2.6.5 and i need to return to py file, can you give me some ideas tools script etc. http://www.crazy-compilers.com/decompyle/ Cheers, Chris --

Re: Nested inner classes and inheritance - namespace problem

2011-04-13 Thread Jean-Michel Pichavant
Larry Hastings wrote: The problem: if you're currently in a nested class, you can't look up variables in the outer class scope. For example, this code fails in Python 3: class Outer: class Inner: class Worker: pass class InnerSubclass(Inner): class

Re: file deleted

2011-04-13 Thread Andrea Crotti
luca72 lucabe...@libero.it writes: hello i'm working with eric, running a program eric crash and when i try to open my project again with eric i see that myproject.py is deleted, but my project is still running there is a way to find myprogram.py file aving it in execution? It's more about

Re: Feature suggestion -- return if true

2011-04-13 Thread Teemu Likonen
* 2011-04-12T13:26:48-07:00 * Chris Rebert wrote: I think Ben Yahtzee Croshaw's comments on open-world sandbox video games (of all things) have a lot of applicability to why allowing full-on macros can be a bad idea. IOW, a language is usually better for having such discussions and having a

Help

2011-04-13 Thread Venkatesh Sanganal
Hello Sir, We are using WATSUP(Python) package for MFC GUI automation(developed in Visual Studio 2005), We wanted your suppor, since we are having some issues listed below; 1.How can we get handle of Ultimate grid control (Ultimate tool box 7) in a MFC application so that we can access

Re: How to use optparse without the command line?

2011-04-13 Thread markolopa
On Apr 8, 11:58 pm, Karim karim.liat...@free.fr wrote: On 04/07/2011 10:37 AM, markolopa wrote: Is there support/idioms/suggestions for usingoptparsewithout a commandline? I have a code which used to be called through subprocess. The whole flow of the code is based on what 'options'

Re: How to use optparse without the command line?

2011-04-13 Thread Miki Tebeka
But I find it dumb to encode and decode a dictionary... So I would like to know how I if there is a good way of passing a dictionary to optparse and benefiting from its option management (check, error detection, etc). I don't think you can get away from encoding/decoding the option dictionary.

split string but ignore sep inside double quotes

2011-04-13 Thread Jonno
All, I have the following unicode object: u'3,Some, text,more text' and I want to split it into a list like this: [3,Some, text, more text] In other words I want to split on the comma but not if it's inside a double-quote. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: split string but ignore sep inside double quotes

2011-04-13 Thread Tim Golden
On 13/04/2011 15:59, Jonno wrote: I have the following unicode object: u'3,Some, text,more text' and I want to split it into a list like this: [3,Some, text, more text] In other words I want to split on the comma but not if it's inside a double-quote. You want the csv module which is

Loading Modules

2011-04-13 Thread Cornelius Kölbel
Hello list, I am wondering about loading modules.What is a good way of doing this? In my code I got one single function, where I need some functionality from a built-in module. Is it a better way to load the module only within the function pro: the function will only be hit every now and then

Python Sybase

2011-04-13 Thread Chris M. Bartos
Hi, Are there any database drivers that allows Python to connect to remote Sybase Databases. I tried python-sybase, but somehow couldn't get it to connect remotely, only locally...? Thanks for your help, -- Christopher M. Bartos bartos...@osu.edu 330-324-0018 Systems Developer Arabidopsis

Re: Loading Modules

2011-04-13 Thread Peter Otten
Cornelius Kölbel wrote: I am wondering about loading modules.What is a good way of doing this? In my code I got one single function, where I need some functionality from a built-in module. built-in modules are always imported by definition, so you cannot save space or time by moving the

Re: split string but ignore sep inside double quotes

2011-04-13 Thread Andrea Crotti
Jonno jonnojohn...@gmail.com writes: All, I have the following unicode object: u'3,Some, text,more text' and I want to split it into a list like this: [3,Some, text, more text] In other words I want to split on the comma but not if it's inside a double-quote. Thanks. I'm not sure how

Re: split string but ignore sep inside double quotes

2011-04-13 Thread Andrea Crotti
Andrea Crotti andrea.crott...@gmail.com writes: I'm not sure how but also this seems to work: In[20]: s = '2,some, text,more text' In [21]: re.split(r'(?=),', s) Out[21]: ['2,some, text,more text'] I just wanted to try the lookahead functions, which I never use but sometimes might come

Postmortem on Unladen Swallow

2011-04-13 Thread John Nagle
There's a postmortem on the failure of Unladen Swallow by one of the developers at: http://qinsb.blogspot.com/2011/03/unladen-swallow-retrospective.html John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for libpython31.a 64bit (missing from python-3.1.3.amd64.msi)

2011-04-13 Thread Martin v. Loewis
Am 13.04.2011 10:17, schrieb Nathan Coulson: Well, as the subject says, I am looking to find libpython31.a [win64bit version] for use in a linux to windows 64bit cross compiler [x86_64-w64-mingw32-gcc], but seems to be missing. I wouldn't call it missing, but just not there. I had no

Re: Python Sybase

2011-04-13 Thread Dan Stromberg
http://www.freetds.org/ There's likely also one you could get from your database admin. On Wed, Apr 13, 2011 at 8:40 AM, Chris M. Bartos topher.bar...@gmail.com wrote: Hi, Are there any database drivers that allows Python to connect to remote Sybase Databases. I tried python-sybase, but

Re: Postmortem on Unladen Swallow

2011-04-13 Thread Dan Stromberg
I'm not sure I'd call it a failure. It didn't achieve the speedup they hoped for, but they did successfully get CPython running overtop of LLVM. That is, their intended approach didn't pan out, but they successfully implemented their approach. And just as importantly, Pypy was looking like it'd

virtualenv problem on win32

2011-04-13 Thread Danny Shevitz
Howdy, I'm trying to use virtualenv for the first time and having endless grief. I have upgraded my python distribution to the latest 2.7 distribution and it is completely clean. I have prepended my path environment variable with c:\python27 and c:\python27\scripts. I have installed: setuptools

Re: Forcing absolute package imports in 2.7?

2011-04-13 Thread Aahz
In article mailman.23.1301538403.2990.python-l...@python.org, Michael Parker michael.g.par...@gmail.com wrote: I'm reading Learning Python 4th Edition by Lutz. In the section on relative package imports, he says: In Python 3.0, the `import modname` statement is always absolute, skipping the

Re: Python Sybase

2011-04-13 Thread Ivan
Chris, There are few more, depending which sybase database. More info on this link: http://wiki.python.org/moin/Sybase Cheers, Ivan On Thu, Apr 14, 2011 at 6:36 AM, Dan Stromberg drsali...@gmail.com wrote: http://www.freetds.org/ There's likely also one you could get from your database

Egos, heartlessness, and limitations

2011-04-13 Thread rantingrick
You know Python is the best damn scripting language in the world. However we harbor a collective secret, an elephant sized skeleton in the community closet, a shameful scarlet letter of heartlessness and ego centric-ity. Why is this the case? Why have let it go this far? And most importantly,

Re: Egos, heartlessness, and limitations

2011-04-13 Thread Littlefield, Tyler
RR: I do have to ask, before I feed the troll, where the hell is your spellchecker? And you were talking about people being lazy? The irony is killing me. Now, you've been told you can fork Idol if you so choose, and you've been told to write up information on how you want to replace TKInter

Re: Egos, heartlessness, and limitations

2011-04-13 Thread James Mills
On Thu, Apr 14, 2011 at 10:39 AM, rantingrick rantingr...@gmail.com wrote: You know Python is the best damn scripting language in the world. However we harbor a collective secret,  an elephant sized skeleton in the community closet, a shameful scarlet letter of heartlessness and ego

Re: Egos, heartlessness, and limitations

2011-04-13 Thread rantingrick
On Apr 13, 8:10 pm, James Mills prolo...@shortcircuit.net.au wrote: On Thu, Apr 14, 2011 at 10:39 AM, rantingrick rantingr...@gmail.com wrote: [...] Hello James, Whist your post was a bit abrasive i know you are a good person so that is why i am replying. It would be nice for once to see you

Re: Egos, heartlessness, and limitations

2011-04-13 Thread Ryan Kelly
On Wed, 2011-04-13 at 17:39 -0700, rantingrick wrote: - 1. Poor documentation (or lack thereof): - Everyone knows that dcoumentation is important however at the end of the day laziness is the rule of thumb for

automated pep8 reformatter ?

2011-04-13 Thread James Mills
Does anyone know of a tool that will help with reformatting badly written code to be pep8 compliant ? a 2to3 for pep8 ? cheers James -- -- James Mills -- -- Problems are solved by method -- http://mail.python.org/mailman/listinfo/python-list

Re: Egos, heartlessness, and limitations

2011-04-13 Thread Ethan Furman
James Mills wrote: On Thu, Apr 14, 2011 at 10:39 AM, rantingrick rantingr...@gmail.com wrote: [weapon of mass-snippitude] James, *Please* don't re-post his crap. ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list

Re: automated pep8 reformatter ?

2011-04-13 Thread James Mills
On Thu, Apr 14, 2011 at 11:47 AM, James Mills prolo...@shortcircuit.net.au wrote: Does anyone know of a tool that will help with reformatting badly written code to be pep8 compliant ? a 2to3 for pep8 ? In case there is no such tool (And I don't have the time to write one) I've found this to

Re: looking for libpython31.a 64bit (missing from python-3.1.3.amd64.msi)

2011-04-13 Thread David Cournapeau
On Wed, Apr 13, 2011 at 5:17 PM, Nathan Coulson conat...@gmail.com wrote: Well, as the subject says,  I am looking to find libpython31.a [win64bit version] for use in a linux to windows 64bit cross compiler [x86_64-w64-mingw32-gcc],  but seems to be missing. so far,  tried installing it on a

Re: Egos, heartlessness, and limitations

2011-04-13 Thread Ryan Kelly
On Thu, 2011-04-14 at 11:46 +1000, Chris Angelico wrote: On Thu, Apr 14, 2011 at 11:29 AM, Ryan Kelly r...@rfk.id.au wrote: I weep that your delightful rhetoric is limited to this neglected forum, where the guardians of python core deign not to tread, and hence denied its rightful place

Re: Egos, heartlessness, and limitations

2011-04-13 Thread James Mills
On Thu, Apr 14, 2011 at 11:47 AM, Ethan Furman et...@stoneleaf.us wrote: *Please* don't re-post his crap. Opps sorry :) I have never really known what to do with big-huge-long posts ? :) Won't happen again! cheers James -- -- James Mills -- -- Problems are solved by method --

Re: automated pep8 reformatter ?

2011-04-13 Thread Ben Finney
James Mills prolo...@shortcircuit.net.au writes: Does anyone know of a tool that will help with reformatting badly written code to be pep8 compliant ? A step forward might be the ‘reindent.py’ program included with the Python distribution. Many PEP 8 violations can't be automatically fixed,

Re: Egos, heartlessness, and limitations

2011-04-13 Thread rantingrick
On Apr 13, 8:29 pm, Ryan Kelly r...@rfk.id.au wrote: On Wed, 2011-04-13 at 17:39 -0700, rantingrick wrote: Oh rr, if only the time you spent formulating such eloquent prose could be devoted instead to improving the documentation whose state you bemoan. I would LOVE to improve the doc,

Re: Egos, heartlessness, and limitations

2011-04-13 Thread Westley Martínez
On Wed, 2011-04-13 at 17:39 -0700, rantingrick wrote: You know Python is the best damn scripting language in the world. However we harbor a collective secret, an elephant sized skeleton in the community closet, a shameful scarlet letter of heartlessness and ego centric-ity. Why is this the

Re: looking for libpython31.a 64bit (missing from python-3.1.3.amd64.msi)

2011-04-13 Thread Nathan Coulson
On Wed, Apr 13, 2011 at 7:03 PM, David Cournapeau courn...@gmail.com wrote: On Wed, Apr 13, 2011 at 5:17 PM, Nathan Coulson conat...@gmail.com wrote: Well, as the subject says,  I am looking to find libpython31.a [win64bit version] for use in a linux to windows 64bit cross compiler

Re: Egos, heartlessness, and limitations

2011-04-13 Thread Ben Finney
James Mills prolo...@shortcircuit.net.au writes: On Thu, Apr 14, 2011 at 11:47 AM, Ethan Furman et...@stoneleaf.us wrote: *Please* don't re-post his crap. Opps sorry :) I have never really known what to do with big-huge-long posts ? :) Trim them to a representative sample. Or summarise, if

Re: automated pep8 reformatter ?

2011-04-13 Thread James Mills
On Thu, Apr 14, 2011 at 12:03 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: A step forward might be the ‘reindent.py’ program included with the Python distribution. I have tried to use this tool - but it lacks certain features. Maybe I could use this as a starting point in writing such a

Re: Nested inner classes and inheritance - namespace problem

2011-04-13 Thread Eric Snow
On Wed, Apr 13, 2011 at 3:12 AM, Larry Hastings la...@hastings.org wrote: The problem: if you're currently in a nested class, you can't look up variables in the outer class scope. For example, this code fails in Python 3: class Outer: class Inner: class Worker: pass

Re: looking for libpython31.a 64bit (missing from python-3.1.3.amd64.msi)

2011-04-13 Thread David Cournapeau
On Thu, Apr 14, 2011 at 11:28 AM, Nathan Coulson conat...@gmail.com wrote: actually figured out a neat trick,  mingw-w64 can link directly to the .dll. gcc file.c python31.dll -o file.exe no .a needed. http://www.mingw.org/wiki/sampleDLL (have yet to find out if it actually works yet, but

Re: Egos, heartlessness, and limitations

2011-04-13 Thread Ryan Kelly
On Wed, 2011-04-13 at 19:10 -0700, rantingrick wrote: On Apr 13, 8:29 pm, Ryan Kelly r...@rfk.id.au wrote: On Wed, 2011-04-13 at 17:39 -0700, rantingrick wrote: I would LOVE to improve the doc, however first the student THEN the teacher. However in this forsaken land the teachers do not

Re: automated pep8 reformatter ?

2011-04-13 Thread Ben Finney
James Mills prolo...@shortcircuit.net.au writes: What I really want is to fix up common poor (IHMO) coding styles in code that I have to maintain/review/etc. Things like: * Lines longer than 80 characters * Comments tacked on to the end of statements/expressions * Use of ' vs. * More

Re: Egos, heartlessness, and limitations

2011-04-13 Thread Steven D'Aprano
On Thu, 14 Apr 2011 12:03:15 +1000, Ryan Kelly wrote: On Thu, 2011-04-14 at 11:46 +1000, Chris Angelico wrote: On Thu, Apr 14, 2011 at 11:29 AM, Ryan Kelly r...@rfk.id.au wrote: I weep that your delightful rhetoric is limited to this neglected forum, where the guardians of python core deign

Re: automated pep8 reformatter ?

2011-04-13 Thread James Mills
On Thu, Apr 14, 2011 at 1:06 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Most of those don't have sensible automated responses. There aren't good automatic answers to “where should this line of code be broken to fit within 80 columns?” or “where should this end-line comment go instead?”.

Re: Egos, heartlessness, and limitations

2011-04-13 Thread Ryan Kelly
On Thu, 2011-04-14 at 03:12 +, Steven D'Aprano wrote: On Thu, 14 Apr 2011 12:03:15 +1000, Ryan Kelly wrote: On Thu, 2011-04-14 at 11:46 +1000, Chris Angelico wrote: On Thu, Apr 14, 2011 at 11:29 AM, Ryan Kelly r...@rfk.id.au wrote: I weep that your delightful rhetoric is limited to

Re: Egos, heartlessness, and limitations

2011-04-13 Thread rantingrick
On Apr 13, 10:01 pm, Ryan Kelly r...@rfk.id.au wrote: On Wed, 2011-04-13 at 19:10 -0700, rantingrick wrote: On Apr 13, 8:29 pm, Ryan Kelly r...@rfk.id.au wrote: On Wed, 2011-04-13 at 17:39 -0700, rantingrick wrote: [...] Funny you should bring that up.  The folks on python-dev are

Re: looking for libpython31.a 64bit (missing from python-3.1.3.amd64.msi)

2011-04-13 Thread Nathan Coulson
On Wed, Apr 13, 2011 at 7:53 PM, David Cournapeau courn...@gmail.com wrote: On Thu, Apr 14, 2011 at 11:28 AM, Nathan Coulson conat...@gmail.com wrote: actually figured out a neat trick,  mingw-w64 can link directly to the .dll. gcc file.c python31.dll -o file.exe no .a needed.

Re: Nested inner classes and inheritance - namespace problem

2011-04-13 Thread Larry Hastings
On 04/13/2011 07:37 PM, Eric Snow wrote: I suppose you could try something like this: class Outer: global Inner class Inner: class Worker: pass class InnerSubclass(Inner): class Worker(Inner.Worker): pass However, that pollutes your global namespace. If you are

Re: Egos, heartlessness, and limitations

2011-04-13 Thread James Mills
On Thu, Apr 14, 2011 at 1:26 PM, rantingrick rantingr...@gmail.com wrote: And who pissed in Guido's punch bowl anyway? Why is he such an elitist now? Why can he not come over once and a while and rub shoulders with the little people? He does not have to hang out every day, just drop in once a

Re: Egos, heartlessness, and limitations

2011-04-13 Thread rantingrick
On Apr 13, 10:12 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Personally, I'm glad that most of Python Dev don't hang around here. We are far better off if Python Dev, you know, actually Devs Python, rather than answering (mostly) easy questions and getting stuck in

Re: Egos, heartlessness, and limitations

2011-04-13 Thread rantingrick
On Apr 13, 10:43 pm, James Mills prolo...@shortcircuit.net.au wrote: On Thu, Apr 14, 2011 at 1:26 PM, rantingrick rantingr...@gmail.com wrote: And who pissed in Guido's punch bowl anyway? Why is he such an elitist now? Why can he not come over once and a while and rub shoulders with the

Re: Egos, heartlessness, and limitations

2011-04-13 Thread Littlefield, Tyler
We all have jobs James, and we still find the time to help others out Whose we? Can you point me to a thread within the last 6 months where you actually -helped- someone? I think he has evolved into a complete jerk (if you ask me) 1) We didn't ask you. 2) If he's been under this rock of his and

Re: Egos, heartlessness, and limitations

2011-04-13 Thread alex23
rantingrick rantingr...@gmail.com wrote: We all have jobs James, and we still find the time to help others out on the list. I don't think we has quite the meaning you believe it does. Or help for that matter. Guido is the head of a community. A community that, remember, *he* started! He

Re: Egos, heartlessness, and limitations

2011-04-13 Thread John Ladasky
I may regret wading into a flame-war, but... I got started with Python in 2002. I took one look at TKinter, said yuck!, and went searching for something else. Now, wxPython is a bit clunky for a Python programmer because of its strong ties to C++ -- but that's what I chose, and it has served me

Re: Egos, heartlessness, and limitations

2011-04-13 Thread James Mills
On Thu, Apr 14, 2011 at 3:08 PM, John Ladasky lada...@my-deja.com wrote: I may regret wading into a flame-war, but... As long as we leave it at that! :) I got started with Python in 2002.  I took one look at TKinter, said yuck!, and went searching for something else.  Now, wxPython is a bit

Re: Egos, heartlessness, and limitations

2011-04-13 Thread Terry Reedy
On 4/13/2011 11:12 PM, Steven D'Aprano wrote: Personally, I'm glad that most of Python Dev don't hang around here. We are far better off if Python Dev, you know, actually Devs Python, rather than answering (mostly) easy questions and getting stuck in tar-pits. Since 3.2 was released 45 days

Re: [OT] Free software versus software idea patents

2011-04-13 Thread harrismh777
geremy condra wrote: I'm familiar with the case, and agree with Knuth (and you) that math should not be patentable. I'd also agree that algorithms are mathematics. Critically, algorithms*are not* software. it isn't clear to me that software and computation are synonymous. Lambda calculus

Re: Free software versus software idea patents

2011-04-13 Thread harrismh777
Westley Martínez wrote: I don't even know one person who has Win7 installed, running, and likes it... not even one. Hi, m harris, nice to meet you. Now you do. To the online community: Is there a name for trolling for A by advocating for not-A in a way that discredits

[issue5723] Incomplete json tests

2011-04-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Some tests for py_make_scanner have been added in c3ad883b940b. I agree that having the tested method as an attribute of the class and changing it on a different subclass is the best approach, but it's not currently done by the json

[issue10976] json.loads() throws TypeError on bytes object

2011-04-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Now it's too late for 3.2, should this be done for 3.3? -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10976 ___

[issue9101] reference json format in file formats chapter

2011-04-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The json module is listed in the Internet Data Handling section[0], and the description says: This chapter describes modules which support handling data formats commonly used on the Internet. This seems OK for json. The File Format

[issue11806] Missing 2 hyphens in the docs

2011-04-13 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Georg Brandl, please fix this typos. You would understand. Thank you. -- Added file: http://bugs.python.org/file21643/unnamed ___ Python tracker rep...@bugs.python.org

[issue10332] Multiprocessing maxtasksperchild results in hang

2011-04-13 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: This problem arises because the pool's close method is called before all the tasks have completed. Putting a sleep(1) before pool.close() won't exhibit this lockup. The root cause is that close makes the workers handler thread exit:

[issue9101] reference json format in file formats chapter

2011-04-13 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: JSON is not file format, it is data-interchange format. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9101 ___

[issue4783] document that json.load/dump can’t be used twice on the same stream

2011-04-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Attached patch adds a note about the effects of using dump several times on the same file. -- keywords: +easy, needs review, patch nosy: +ezio.melotti stage: - patch review Added file:

[issue9101] reference json format in file formats chapter

2011-04-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: We don't have a Data-interchange Formats section, so the Internet Data Handling section seems more appropriate than the File Formats one, right? -- ___ Python tracker rep...@bugs.python.org

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2011-04-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file21135/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11489 ___

[issue11489] json.dumps not parsable by json.loads (on Linux only)

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

[issue9101] reference json format in file formats chapter

2011-04-13 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Right. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9101 ___ ___ Python-bugs-list

[issue9101] reference json format in file formats chapter

2011-04-13 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: But having a reference from File Formats will help people find this information easier. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9101

[issue8426] multiprocessing.Queue fails to get() very large objects

2011-04-13 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: It's documented in http://docs.python.org/library/multiprocessing.html#multiprocessing-programming : Joining processes that use queues Bear in mind that a process that has put items in a queue will wait before terminating until all

[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2011-04-13 Thread Darío Suárez Gracia
Darío Suárez Gracia dario.sua...@telefonica.net added the comment: Hello, Trying to share a dictionary of dictionaries of lists with a manager I get the same problem with the patch applied in Python 2.7 (r27:82500, Nov 24 2010, 18:24:29) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2. The

[issue11841] Bug in the verson comparison

2011-04-13 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: The NormalizedVersion class is not correctly sorting rc1: from packaging.version import NormalizedVersion NormalizedVersion('0.7.0') NormalizedVersion('0.7.0rc1') True NormalizedVersion('0.7.0rc1') NormalizedVersion('0.7rc1')

[issue10121] test_multiprocessing stuck in test_make_pool if run in a loop

2011-04-13 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: It's probably a duplicate of http://bugs.python.org/issue8428 It would be nice if you could try to reproduce it with a py3k snapshot though, just to be sure. -- nosy: +neologix ___ Python

[issue9101] reference json format in file formats chapter

2011-04-13 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: And what are these people looking for? json? If so, there's already an entry in the module index. That seems sufficient. -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org

[issue11701] email.parser.BytesParser().parse() closes file argument

2011-04-13 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: This patch fixes the problem. It was introduced in e727cf35. David Murray, i've looked into test_email.py to add tests for this, and i found TestIdempotent(). What i would do is try to split that thing up so that it covers str()

[issue11700] mailbox.py proxy updates

2011-04-13 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Amaury Forgeot d'Arc wrote: mbf.close() should not fail when called twice. The close() method in the io module states that This method has no effect if the file is already closed. But then, is close=False necessary? I see

[issue11806] Missing 2 hyphens in the docs

2011-04-13 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Also, please fix the main title of the argparse section... from 15.4. argparsehttp://docs.python.org/dev/library/argparse.html#module-argparse — Parser for command line options, arguments and sub-commands to 15.4.

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2011-04-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: print(repr(json.loads(json.dumps({umy_key: u'\uda00'}))['my_key'])): - displays u'\uda00' in Python 2.7, 3.2 and 3.3 - raises a ValueError('Invalid \u escape: ...') on loads() in Python 2.6 - raises a ValueError('Unpaired high

[issue11806] Missing 2 hyphens in the docs

2011-04-13 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: On Wed, Apr 13, 2011 at 14:54, Boštjan Mejak rep...@bugs.python.org wrote: BoÅ¡tjan Mejak bostjan.me...@gmail.com added the comment: Also, please fix the main title of the argparse section... from 15.4.

[issue11701] email.parser.BytesParser().parse() closes file argument

2011-04-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: For easy reference, here's a hash for that changeset that roundup will turn into a link: e727cf354720. TestIdempotent is already run for both the bytes and str cases (they are widely separated in the test file...I'll fix that at some

[issue8809] smtplib should support SSL contexts

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

[issue11701] email.parser.BytesParser().parse() closes file argument

2011-04-13 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Wed, Apr 13, 2011 at 01:07:28PM +, R. David Murray wrote: TestIdempotent is already run for both the bytes and str cases (*^.^*) Ouch. Searching is only for the experienced. --

[issue11701] email.parser.BytesParser().parse() closes file argument

2011-04-13 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: So i'll changed the existing message_from_(binary_)?file() tests to also test the file closing. -- Added file: http://bugs.python.org/file21649/11701.2.diff ___ Python tracker

[issue10332] Multiprocessing maxtasksperchild results in hang

2011-04-13 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Note: I noticed that there are some thread-unsafe operations (the cache that can be modified from different threads, and thread states are modified also from different threads). While this isn't an issue with the current cPython

[issue11186] pydoc: HTMLDoc.index() doesn't support PEP 383

2011-04-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The wording “pydoc ignores a module” is confusing to me: I can’t tell whether it is a description of the bug (“pydoc ignored a module”) or the new, correct behavior (“pydoc now ignores a module”). Regarding the problem and fix itself, I’m

[issue11828] startswith and endswith don't accept None as slice index

2011-04-13 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Some comments posted in the review. Could you possibly post a patch for 2.7 too?. Thanks. If any other reviewer agree, I will commit the patch. -- ___ Python tracker rep...@bugs.python.org

[issue11186] pydoc: HTMLDoc.index() doesn't support PEP 383

2011-04-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: If a user unknowingly creates such a module with an unencodable filename, will they understand why pydoc does not display it? It is really a bad idea to choose an *undecodable* name for a module. You will not be able to write its

[issue3051] heapq change breaking compatibility

2011-04-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The global docs index has one entry for “comparison”, which is http://docs.python.org/dev/reference/expressions#not-in This other page says that “in general, __lt__() and __eq__() are sufficient, if you want the conventional meanings of the

[issue10976] json.loads() throws TypeError on bytes object

2011-04-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: If you’re talking about deprecating the obsolete encoding argument (maybe it’s time for a new bug report), +1. -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue11827] mention of list2cmdline() in docs of subprocess.Popen

2011-04-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: LGTM. -- versions: +Python 2.7, Python 3.1, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11827 ___

[issue10496] import site failed when Python can't find home directory (sysconfig._getuserbase)

2011-04-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can someone explain how it can happen that a user has no home directory? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496 ___

[issue10496] import site failed when Python can't find home directory (sysconfig._getuserbase)

2011-04-13 Thread Brian Bi
Brian Bi bbi5...@gmail.com added the comment: I discovered this while I was implementing and testing a sandbox for automatic evaluation of programs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496

  1   2   >