SQLObject 0.13.1

2010-10-15 Thread Oleg Broytman
Hello! I'm pleased to announce version 0.13.1, a minor bugfix release of branch 0.13 of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be

SQLObject 0.14.1

2010-10-15 Thread Oleg Broytman
Hello! I'm pleased to announce version 0.14.1, a minor bugfix release of branch 0.14 of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be

ANNOUNCE: Gaphor 0.16.0 / Gaphas 0.7.0

2010-10-15 Thread Arjan Molenaar
Gaphor 0.16.0 = Gaphor is a UML modeling tool written in Python. The code is stable for a while now, so it's about time we make a new release. Since the last version some nice new functionality has been added. Most notably: - Guides support from Gaphas 0.7.0 - hand written drawing

Re: Boolean value of generators

2010-10-15 Thread Arnaud Delobelle
Paul Rubin no.em...@nospam.invalid writes: Steven D'Aprano st...@remove-this-cybersource.com.au writes: (4) Expensive generators. The beauty of generators is that they produce values on demand. Making all generators cache their first value means that you pay that cost even if you end up

Re: what happens to Popen()'s parent-side file descriptors?

2010-10-15 Thread Nobody
On Thu, 14 Oct 2010 08:48:45 -0700, Roger Davis wrote: On a related point here, I have one case where I need to replace the shell construct externalprog somefile otherfile I suppose I could just use os.system() here but I'd rather keep the Unix shell completely out of the picture

Re: what happens to Popen()'s parent-side file descriptors?

2010-10-15 Thread Lawrence D'Oliveiro
In message i968f501...@news6.newsguy.com, Chris Torek wrote: Running the above code fragment in a different implementation, in which garbage collection is deferred, would *not* close the file descriptor, and the system would potentially run out (depending on when a gc occurred, and/or whether

Re: what happens to Popen()'s parent-side file descriptors?

2010-10-15 Thread Lawrence D'Oliveiro
In message 8bec27dd-b1da-4aa3-81e8-9665db040...@n40g2000vbb.googlegroups.com, Roger Davis wrote: Documentation on python.org states that GC can be postponed or omitted altogether ... Yes, but no sensible Python implementation would do that, as it’s a recipe for resource bloat. --

Re: Weird try-except vs if behavior

2010-10-15 Thread Ryan Kelly
On Thu, 2010-10-14 at 22:43 -0700, James Matthews wrote: Hi, I have this code http://gist.github.com/627687 (I don't like pasting code into the mailing list). Yes, but it makes it harder to discuss the ode and makes the archive that much more useless. It's only a couple of lines, here ya

Re: PyCharm

2010-10-15 Thread Kai Diefenbach
On 2010-10-13 23:36:31 +0200, Robert H said: Since the new IDE from Jetbrains is out I was wondering if you are using it and what you think about it. It sucks. http://regebro.wordpress.com/2010/10/14/python-ide-code-completion-test Kai --

Re: optparser: how to register callback to display binary's help

2010-10-15 Thread hiral
On Oct 13, 6:03 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: hiral wrote: Hi, I want to display help message of python script and then display help message from the binary file (which also supports -h option): Assumptions: 1) 'mybinary' - is linux executable file which

Is there any module for automated testing in python?

2010-10-15 Thread gopi krishna
Hi, Is there any module for automated testing in python? Pls help me frns.. From Gopi -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there any module for automated testing in python?

2010-10-15 Thread James Mills
On Fri, Oct 15, 2010 at 8:19 PM, gopi krishna dasarathulag...@gmail.com wrote: Hi, Is there any module for automated testing in python? Pls help me frns.. py.test is quite nice and I use it for my own project(s). The company I work for also uses it to test their software. cheers James --

Re: processing input from multiple files

2010-10-15 Thread Christopher Steele
Thanks, The issue with the times is now sorted, however I'm running into a problem towards the end of the script: File sortoutsynop2.py, line 131, in module newline = message_type+c+str(station_id)+c+newtime+c+lat+c+lon+c+c+-+c+ 002 +c+-+c+-+c+str(pressure)+c TypeError: cannot

Re: Is there any module for automated testing in python?

2010-10-15 Thread Stefan Behnel
gopi krishna, 15.10.2010 12:19: Is there any module for automated testing in python? What kind of automated testing do you mean? Generating test cases? Generating test runs from test data? Running unit tests automatically as part of a build? Running tests repeatedly to report changes in test

How to display unicode char in Windows

2010-10-15 Thread hiral
Hi, I tried... code # coding: latin-1 print ** oo = ö print char=%s % oo print ** /code but it is not printing ö char; any idea? Thank you. -Hiral --

Re: How to display unicode char in Windows

2010-10-15 Thread Michel Claveau - MVP
Hi! 1) the good syntax is: # -*- coding: latin-1 -*- print ** oo = ö print char=%s % oo print ** 2) in the console (commandLine), use this command: CHCP 1252

SQLObject 0.13.1

2010-10-15 Thread Oleg Broytman
Hello! I'm pleased to announce version 0.13.1, a minor bugfix release of branch 0.13 of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be

SQLObject 0.14.1

2010-10-15 Thread Oleg Broytman
Hello! I'm pleased to announce version 0.14.1, a minor bugfix release of branch 0.14 of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Steven D'Aprano
On Fri, 15 Oct 2010 17:30:20 +1300, Lawrence D'Oliveiro wrote: In message op.vkfl1i1na8n...@gnudebst, Rhodri James wrote: ... frankly putting arbitrary binary into a literal string is rather asking for something like this to come and bite you. It normally works fine on sensible OSes.

Re: PyCharm

2010-10-15 Thread Jean-Michel Pichavant
Kai Diefenbach wrote: On 2010-10-13 23:36:31 +0200, Robert H said: Since the new IDE from Jetbrains is out I was wondering if you are using it and what you think about it. It sucks. http://regebro.wordpress.com/2010/10/14/python-ide-code-completion-test Kai You're not serious, this

Re: Does everyone keep getting recruiting emails from google?

2010-10-15 Thread Grant Edwards
On 2010-10-15, Philip Semanchuk phi...@semanchuk.com wrote: On Oct 14, 2010, at 11:49 AM, Daniel Fetchinson wrote: I keep getting recruiting emails from charlesngu...@google.com about working for google as an engineer. [...] FWIW, I got one email from Charles Nguyen and answered with a

Re: Boolean value of generators

2010-10-15 Thread Grant Edwards
On 2010-10-14, Paul Rubin no.em...@nospam.invalid wrote: Carl Banks pavlovevide...@gmail.com writes: In general, the only way to test if a generator is empty is to try to consume an item. (It's possible to write an iterator that consumes an item and caches it to be returned on the next

Re: Boolean value of generators

2010-10-15 Thread Albert Hopkins
On Fri, 2010-10-15 at 14:54 +, Grant Edwards wrote: so you could test for emptiness, look ahead at the next item without consuming it, etc. And what happens when the generator is doing things like executing database transactions? You should also add prediction to the caching. This

Re: processing input from multiple files

2010-10-15 Thread John Posner
On 10/15/2010 6:59 AM, Christopher Steele wrote: Thanks, The issue with the times is now sorted, however I'm running into a problem towards the end of the script: File sortoutsynop2.py, line 131, in module newline = message_type+c+str(station_id)+c+newtime+c+lat+c+lon+c+c+-+c+ 002

open() throws permission error and I don't get why

2010-10-15 Thread Andy Theuninck
I'm trying to write a script to read e-mail over stdin, extract attachments, and distribute them around the file system based on the incoming e-mail address. Everything works until I actually try writing interesting file system locations. I've established, through logging, that postfix runs my

Re: Boolean value of generators

2010-10-15 Thread Grant Edwards
On 2010-10-15, Albert Hopkins mar...@letterboxes.org wrote: On Fri, 2010-10-15 at 14:54 +, Grant Edwards wrote: so you could test for emptiness, look ahead at the next item without consuming it, etc. And what happens when the generator is doing things like executing database

Re: Boolean value of generators

2010-10-15 Thread John Nagle
On 10/14/2010 2:21 PM, Cameron Simpson wrote: On 14Oct2010 14:13, Tim Chasepython.l...@tim.thechases.com wrote: | On 10/14/10 12:53, Paul Rubin wrote: |Carl Bankspavlovevide...@gmail.com writes: |In general, the only way to test if a generator is empty is to try to |consume an item. (It's

Re: open() throws permission error and I don't get why

2010-10-15 Thread Nobody
On Fri, 15 Oct 2010 10:52:53 -0500, Andy Theuninck wrote: I'm trying to write a script to read e-mail over stdin, extract attachments, and distribute them around the file system based on the incoming e-mail address. Everything works until I actually try writing interesting file system

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Ian
On Oct 14, 10:30 pm, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message op.vkfl1i1na8n...@gnudebst, Rhodri James wrote: ... frankly putting arbitrary binary into a literal string is rather asking for something like this to come and bite you. It normally works fine on

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Grant Edwards
On 2010-10-15, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: In the Unix world, which includes OS X, text tools tend to have difficulty with tabs. Or try naming a file with a newline or carriage return in the file name, or a NULL byte. How do you create a file with a name that

Re: open() throws permission error and I don't get why

2010-10-15 Thread Andy Theuninck
I suspect that postfix is only setting the UID and the (primary) GID, but not the supplementary GIDs. In which case, it doesn't matter whether nobody is a member of the group. That does seem like a good explanation. I guess I'll have to re-think my approach a bit. sg sounds like it would give

Re: Weird try-except vs if behavior

2010-10-15 Thread Terry Reedy
On 10/15/2010 3:11 AM, Ryan Kelly wrote: On Thu, 2010-10-14 at 22:43 -0700, James Matthews wrote: Hi, I have this code http://gist.github.com/627687 (I don't like pasting code into the mailing list). Yes, but it makes it harder to discuss the ode and makes the archive that much more useless.

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Martin Gregorie
On Fri, 15 Oct 2010 17:02:07 +, Grant Edwards wrote: On 2010-10-15, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: In the Unix world, which includes OS X, text tools tend to have difficulty with tabs. Or try naming a file with a newline or carriage return in the file name,

parse xml

2010-10-15 Thread kostia
I have xml file: ?xml version=1.1 encoding=UTF-8? root n5/n /root I want to get the value of n (= 5) inside my python program, I'm doing this: import xml.dom.minidom from xml.dom.minidom import Node doc = xml.dom.minidom.parseString(boolean_width.xml) n =

Re: How to display unicode char in Windows

2010-10-15 Thread John Nagle
On 10/15/2010 4:57 AM, hiral wrote: Hi, I tried... code # coding: latin-1 print ** oo = ö print char=%s % oo print ** /code but it is not printing ö char; any idea? Thank you.

Re: PyCharm

2010-10-15 Thread Robert H
On Oct 14, 8:49 pm, alex23 wuwe...@gmail.com wrote: Jeffrey Gaynor jgay...@ncsa.uiuc.edu wrote: Certainly give it a shot. The only other IDE I found that was remotely close to it was Komodo which costs a lot more (Jetbrains is offering a 50% off coupon as a promotional offer for a while.)

Re: PyCharm

2010-10-15 Thread Robert H
On Oct 14, 4:16 pm, Jeffrey Gaynor jgay...@ncsa.uiuc.edu wrote: Yip. I'm using it and for the most part like it. But... I used their Java IDE for years (it totally rocks, highly recommended), so I it is very comfortable to use PyCharm. One thing that bugs me in refactoring though is that

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Grant Edwards
On 2010-10-15, Martin Gregorie mar...@address-in-sig.invalid wrote: On Fri, 15 Oct 2010 17:02:07 +, Grant Edwards wrote: On 2010-10-15, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: In the Unix world, which includes OS X, text tools tend to have difficulty with tabs. Or

Re: How to display unicode char in Windows

2010-10-15 Thread Mark Tolonen
hiral hiralsmaill...@gmail.com wrote in message news:90b62600-a0a4-47d5-bb6f-a3ae14cf6...@9g2000prn.googlegroups.com... Hi, I tried... code # coding: latin-1 print ** oo = ö print char=%s % oo print

Re: parse xml

2010-10-15 Thread Andreas Waldenburger
On Fri, 15 Oct 2010 10:49:18 -0700 (PDT) kostia kostya.demc...@gmail.com wrote: I have xml file: ?xml version=1.1 encoding=UTF-8? root n5/n /root I want to get the value of n (= 5) inside my python program, I'm doing this: import xml.dom.minidom from xml.dom.minidom

Re: parse xml

2010-10-15 Thread Sudheer Satyanarayana
On 10/15/2010 11:19 PM, kostia wrote: I have xml file: ?xml version=1.1 encoding=UTF-8? root n5/n /root I want to get the value of n (= 5) inside my python program, I'm doing this: import xml.dom.minidom from xml.dom.minidom import Node doc =

Re: parse xml

2010-10-15 Thread Nitin Pawar
this is wrong xml.dom.minidom.parseString(boolean_width.xml) ... if u r parsing from String use string variable as argument or use parse only if parsing from file On Sat, Oct 16, 2010 at 12:07 AM, Andreas Waldenburger use...@geekmail.invalid wrote: On Fri, 15 Oct 2010 10:49:18 -0700 (PDT)

Re: parse xml

2010-10-15 Thread MRAB
On 15/10/2010 18:49, kostia wrote: I have xml file: ?xml version=1.1 encoding=UTF-8? root n5/n /root I want to get the value of n (= 5) inside my python program, I'm doing this: import xml.dom.minidom from xml.dom.minidom import Node doc =

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Seebs
On 2010-10-15, Grant Edwards inva...@invalid.invalid wrote: On 2010-10-15, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: In the Unix world, which includes OS X, text tools tend to have difficulty with tabs. Or try naming a file with a newline or carriage return in the file name,

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Grant Edwards
On 2010-10-15, Seebs usenet-nos...@seebs.net wrote: On 2010-10-15, Grant Edwards inva...@invalid.invalid wrote: On 2010-10-15, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: In the Unix world, which includes OS X, text tools tend to have difficulty with tabs. Or try naming a file

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Martin Gregorie
On Fri, 15 Oct 2010 18:14:13 +, Grant Edwards wrote: On 2010-10-15, Martin Gregorie mar...@address-in-sig.invalid wrote: On Fri, 15 Oct 2010 17:02:07 +, Grant Edwards wrote: On 2010-10-15, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: In the Unix world, which

Re: parse xml

2010-10-15 Thread kostia
Thank you all! -- http://mail.python.org/mailman/listinfo/python-list

Windows binary stdin goes EOF after \x1a character

2010-10-15 Thread Dan
I am writing a Windows program in Python 3.1.2 that reads binary data from stdin. Whenever it hits a \x1a character, stdin goes EOF and no more data can be read. A short program that exhibits this problem is: #listing of main.pyw import sys def go(): bb=sys.stdin.buffer.raw.read(1)

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Seebs
On 2010-10-15, Grant Edwards inva...@invalid.invalid wrote: Yes, all of the Unix syscalls use NULL-terminated path parameters (AKA C strings). What I don't know is whether the underlying filesystem code also uses NULL-terminated strings for filenames or if they have explicit lengths. If the

Re: Does everyone keep getting recruiting emails from google?

2010-10-15 Thread Ralph Malph
My understanding is that Google headhunters are contractors and not regular Google employees. This hired gun approach to recruiting may lead to the use of unusual methods in order to meet their requirements. -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows binary stdin goes EOF after \x1a character

2010-10-15 Thread Neil Cerutti
On 2010-10-15, Dan daniel.goert...@gmail.com wrote: I am writing a Windows program in Python 3.1.2 that reads binary data from stdin. Whenever it hits a \x1a character, stdin goes EOF and no more data can be read. A short program that exhibits this problem is: stdin is not in binary mode.

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Chris Torek
On 2010-10-15, Grant Edwards inva...@invalid.invalid wrote: How do you create a [Unix] file with a name that contains a NULL byte? On 2010-10-15, Seebs usenet-nos...@seebs.net wrote: So far as I know, in canonical Unix, you don't -- the syscalls all work with something like C strings under

Re: Windows binary stdin goes EOF after \x1a character

2010-10-15 Thread Dan
On Oct 15, 2:42 pm, Neil Cerutti ne...@norwich.edu wrote: On 2010-10-15, Dan daniel.goert...@gmail.com wrote: I am writing a Windows program in Python 3.1.2 that reads binary data from stdin.  Whenever it hits a \x1a character, stdin goes EOF and no more data can be read.  A short program

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Grant Edwards
On 2010-10-15, Martin Gregorie mar...@address-in-sig.invalid wrote: On 2010-10-15, Martin Gregorie mar...@address-in-sig.invalid wrote: On Fri, 15 Oct 2010 17:02:07 +, Grant Edwards wrote: On 2010-10-15, Steven D'Aprano st...@remove-this-cybersource.com.au: In the Unix world, which

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Grant Edwards
On 2010-10-15, Seebs usenet-nos...@seebs.net wrote: On 2010-10-15, Grant Edwards inva...@invalid.invalid wrote: Yes, all of the Unix syscalls use NULL-terminated path parameters (AKA C strings). What I don't know is whether the underlying filesystem code also uses NULL-terminated strings for

Re: Windows binary stdin goes EOF after \x1a character

2010-10-15 Thread MRAB
On 15/10/2010 20:28, Dan wrote: I am writing a Windows program in Python 3.1.2 that reads binary data from stdin. Whenever it hits a \x1a character, stdin goes EOF and no more data can be read. A short program that exhibits this problem is: #listing of main.pyw import sys def go():

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Grant Edwards
On 2010-10-15, Chris Torek nos...@torek.net wrote: On 2010-10-15, Grant Edwards inva...@invalid.invalid wrote: How do you create a [Unix] file with a name that contains a NULL byte? On 2010-10-15, Seebs usenet-nos...@seebs.net wrote: So far as I know, in canonical Unix, you don't -- the

Re: Windows binary stdin goes EOF after \x1a character

2010-10-15 Thread Neil Cerutti
On 2010-10-15, MRAB pyt...@mrabarnett.plus.com wrote: I wrote an equivalent program in C++ using the win32 ReadFile() call, and it read all 255 bytes just fine. What am I doing wrong with the python code? I am using Erlang to launch the Python program as a subprocess. The Erlang fragment

PEP 380 - the 'yield from' proposal

2010-10-15 Thread Hallvard B Furuseth
Regarding http://www.python.org/dev/peps/pep-0380/, Syntax for Delegating to a Subgenerator: The first call can only be .next(), there's no way to provide an initial value to .send(). That matches common use, but an initial .send() is possible if .next() was called before yield from. So I

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Martin Gregorie
On Fri, 15 Oct 2010 19:59:13 +, Grant Edwards wrote: We're talking about Unix. We're not talking about CP/M, DOS, RSX-11m, Apple-SOS, etc. That's just your assumption. Track back up the thread and you'll see that the OP didn't mention an OS. He merely said that he was using zlib, and

Re: Class-level variables - a scoping issue

2010-10-15 Thread Gregory Ewing
Lawrence D'Oliveiro wrote: “Dynamically” is when that “future” becomes the present, so you can see it right in front of you, here, now. But raising an UnboundAttributeError when attempting to read a class attribute that *could*, but hasn't yet, been shadowed by an instance attribute requires

Re: what happens to Popen()'s parent-side file descriptors?

2010-10-15 Thread Lawrence D'Oliveiro
In message pan.2010.10.15.06.27.02.360...@nowhere.com, Nobody wrote: Another gotcha regarding pipes: the reader only sees EOF once there are no writers, i.e. when the *last* writer closes their end. Been there, been bitten by that. -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 249 (database api) -- executemany() with iterable?

2010-10-15 Thread Lawrence D'Oliveiro
In message ecdbf6b3-3f99-4b59-b7f8-85bd22f97...@w9g2000prc.googlegroups.com, Steve Howell wrote: On Oct 13, 8:32 pm, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message d2451907-c0d2-4571-b3e1-1e4d4f66a...@a7g2000prb.googlegroups.com, Steve Howell wrote: Bulk-load

Re: PyCharm

2010-10-15 Thread Lawrence D'Oliveiro
In message mailman.1755.1287150954.29448.python-l...@python.org, Jean- Michel Pichavant wrote: Who want's to be bothered by windows popping everytime you type a letter anyway ? Apparently the Java and Visual Studio crowd are big on this sort of thing. --

Re: PyCharm

2010-10-15 Thread Lawrence D'Oliveiro
In message mailman.1737.1287096167.29448.python-l...@python.org, Jeffrey Gaynor wrote: One thing that bugs me in refactoring though is that renaming a method or variable does not necessarily work. It's supposed to track down all references and correctly change them, but it tends to be hit or

Re: what happens to Popen()'s parent-side file descriptors?

2010-10-15 Thread Chris Torek
In message pan.2010.10.15.06.27.02.360...@nowhere.com, Nobody wrote: Another gotcha regarding pipes: the reader only sees EOF once there are no writers, i.e. when the *last* writer closes their end. In article i9atra$j4...@lust.ihug.co.nz Lawrence D'Oliveiro l...@geek-central.gen.new_zealand

Re: Scheme as a virtual machine?

2010-10-15 Thread Ertugrul Söylemez
namekuseijin namekusei...@gmail.com wrote: On 14 out, 00:26, Ertugrul Söylemez e...@ertes.de wrote: BTW, you mentioned symbols ('$', '.' and '='), which are not syntactic sugar at all.  They are just normal functions, for which it makes sense to be infix.  The fact that you sold them as

Re: parse xml

2010-10-15 Thread Hidura
First every element represents a node so you have to use value=n.childNodes[0].nodeValue with that you'll have the 5000 2010/10/15, kostia kostya.demc...@gmail.com: I have xml file: ?xml version=1.1 encoding=UTF-8? root n5/n /root I want to get the value of n (= 5) inside

Re: EOF while scanning triple-quoted string literal

2010-10-15 Thread Grant Edwards
On 2010-10-15, Martin Gregorie mar...@address-in-sig.invalid wrote: On Fri, 15 Oct 2010 19:59:13 +, Grant Edwards wrote: We're talking about Unix. We're not talking about CP/M, DOS, RSX-11m, Apple-SOS, etc. That's just your assumption. If you go back and look at my original posting in

[issue10076] Regex objects became uncopyable in 2.5

2010-10-15 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: The patch looks reasonable to me. I was trying to find out why they got disabled after 2.5, but I don't see any reason. (There was an issue open and it was closed for no reason). So, I think, this should move forward, unless there is any

[issue10111] Minor problems with PyFileObject documentation (Doc/c-api/file.rst)

2010-10-15 Thread Paul Bolle
New submission from Paul Bolle pebo...@tiscali.nl: 0) I ran into some (small) problems with the documentation added by revision 62195 (see issue 815646 for background). 1) A small patch that addresses two problems with the Python 2.7 documentation should be attached: - link three occurrences

[issue10100] fromfd is now available on all platforms

2010-10-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: You already changed the test in r84449! The doc still needs updating. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10100

[issue815646] thread unsafe file objects cause crash

2010-10-15 Thread Paul Bolle
Paul Bolle pebo...@tiscali.nl added the comment: please open a new issue and attach your patch(s) there Issue 10111 now tracks the documentation problems. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue815646

[issue10089] Add support for arbitrary -X options

2010-10-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Why wouldn't they? A standard way to extend the command line options seems useful in all environments. Now the interpretation of these options are subject to variations of course... -- nosy: +amaury.forgeotdarc

Re: [issue10089] Add support for arbitrary -X options

2010-10-15 Thread Senthil Kumaran
On Wed, Oct 13, 2010 at 07:01:40PM +, Antoine Pitrou wrote: $ ./python -Xa,b=c,d -Xe,f=g=h -c import sys; print(sys.xoptions) {'a': True, 'b': 'c', 'e': True, 'd': True, 'f': 'g=h'} Docs should be updated too. I see that the values could either be True or a string? Would this be perceived

[issue10098] intermittent failure in test_os

2010-10-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: _kill_with_event() does not wait for the subprocess to be ready. It seems to me that the following test is wrong: if m[0] == 0: It should be if m[0] == 1, since we want to check that the subprocess updated the shared memory.

[issue10089] Add support for arbitrary -X options

2010-10-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Well, the syntax allows to pass either a string value (because it's a substring of the command line), or nothing. When no value is passed, True seems better than None, because this allows the usage of the get() method:: x =

[issue10110] Queue doesn't recognize it is full after shrinking maxsize

2010-10-15 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +rhettinger stage: - patch review versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10110 ___

[issue10019] json.dumps with indent = 0 not adding newlines

2010-10-15 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: +1 to merge simplejson 2.1+ before 3.2 beta 1 (mid-november) -- nosy: +flox resolution: - accepted stage: - patch review type: - behavior versions: +Python 3.1, Python 3.2 ___ Python

[issue10099] socket.fromfd() documentation problem

2010-10-15 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I think, the original docs *is* pretty intuitive. It says Duplicate the file descriptor fd and build a socket object. No one will think that the this method will close the original fd. Person using this method might of course, explicitly

[issue10100] fromfd is now available on all platforms

2010-10-15 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Docs changed committed in revision 85514. -- nosy: +orsenthil resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10089] Add support for arbitrary -X options

2010-10-15 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I suggest using sys._xoptions to make it clearer that this is for CPython specific internal implementation runtime tweaks. We're putting it in sys so *we* can get at it, not applications. (It also makes it clear that other implementations

[issue10106] missing packages

2010-10-15 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I would suggest to OP, to take it with python-help for the problem to be fixed. It's raised on python26 as well. Highly unlikely that anything is wrong with Python installation here. Marking it invalid and closing it. -- nosy:

[issue10099] socket.fromfd() documentation problem

2010-10-15 Thread Gergely Kálmán
Gergely Kálmán kalman.gerg...@duodecad.hu added the comment: You are perfectly right, the docs are pretty clear. Although fromfd means (or at least to me) to attach object to fd and not duplicate then attach to the duplicate. If someone forgets this particular behaviour and thinks that the

[issue10099] socket.fromfd() documentation problem

2010-10-15 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: So, I assume that we just leave it as such and close the issue. I was thinking if anything needs to be updated for function __doc__ but even there 'the duplicate' word is explained. -- resolution: - invalid stage: -

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-15 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10107 ___ ___

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2010-10-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +kbk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10079 ___ ___ Python-bugs-list mailing list

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2010-10-15 Thread Jan Kratochvil
New submission from Jan Kratochvil jan.kratoch...@redhat.com: FSF GDB (and future Fedora GDBs) became 250KB smaller than before. Python recently disabled this GDB build optimization so GDB is 250KB larger again. -rwxr-xr-x 1 4524488 gdb-7.1-19.fc13.x86_64/usr/bin/gdb -rwxr-xr-x 1 4266728

[issue10089] Add support for arbitrary -X options

2010-10-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (It also makes it clear that other implementations aren't obliged to implement *any* particular interface to the -X options. Requiring that would go against the whole spirit of -X) Agreed. I'll update the patch to use sys._xoptions.

[issue10113] UnicodeDecodeError in mimetypes.guess_type on Windows

2010-10-15 Thread Vladimir Dmitriev
Changes by Vladimir Dmitriev vld...@gmail.com: -- components: Library (Lib), Windows files: mime content types.reg nosy: vldmit priority: normal severity: normal status: open title: UnicodeDecodeError in mimetypes.guess_type on Windows type: behavior versions: Python 2.7 Added file:

[issue10113] UnicodeDecodeError in mimetypes.guess_type on Windows

2010-10-15 Thread Vladimir Dmitriev
New submission from Vladimir Dmitriev vld...@gmail.com: Windows 7, Python 2.7 Some windows applications (QuickTime) add content-types to Windows registry with non-ascii names. mimetypes in unaware of that and fails with UnicodeDecodeError: mimetypes.guess_type('test.js') Traceback (most

[issue8340] bytearray undocumented on trunk

2010-10-15 Thread Paul Bolle
Changes by Paul Bolle pebo...@tiscali.nl: -- nosy: +pebolle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8340 ___ ___ Python-bugs-list mailing

[issue10093] Warn when files are not explicitly closed

2010-10-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Please add a similar warning in PC/_subprocess.c::sp_handle_dealloc() I just got caught by this in PyPy because some pipe handle relies on reference counting to be closed. This ad-hoc fix would suppress the warning:

[issue9980] str(float) failure

2010-10-15 Thread Kiriakos Vlahos
Kiriakos Vlahos pyscrip...@gmail.com added the comment: I would like to say that these are two separate issues. One is about the precision flag and the second about the exception masking flags of the FPU control words. Both issues affect a wider number of users than Python embedders using

[issue10093] Warn when files are not explicitly closed

2010-10-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Please add a similar warning in PC/_subprocess.c::sp_handle_dealloc() I just got caught by this in PyPy because some pipe handle relies on reference counting to be closed. Do you want to provide a patch? --

[issue10114] compile() doesn't support the PEP 383 (surrogates)

2010-10-15 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Example: $ ./python Python 3.2a3+ (py3k, Oct 15 2010, 14:31:59) compile('', 'abc\uDC80', 'exec') ... UnicodeEncodeError: 'utf-8' codec can't encode character '\udc80' in position 3: surrogates not allowed Attached patch

[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-10-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: If I'm reading this thread correctly, this bug should be closed and a new one opened about SSL socket close. Antoine, does that sound correct? -- nosy: +r.david.murray ___ Python tracker

[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-10-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8293 ___ ___

[issue10113] UnicodeDecodeError in mimetypes.guess_type on Windows

2010-10-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is a duplicate of #9291. -- nosy: +r.david.murray resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - mimetypes initialization fails on Windows because of non-Latin characters in

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-10-15 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +vldmit ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9291 ___ ___ Python-bugs-list

  1   2   3   >