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
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
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
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
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
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
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.
--
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
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
--
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
Hi,
Is there any module for automated testing in python?
Pls help me frns..
From
Gopi
--
http://mail.python.org/mailman/listinfo/python-list
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
--
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
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
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
--
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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.
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,
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 =
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.
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.)
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
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
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
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
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 =
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)
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 =
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,
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
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
Thank you all!
--
http://mail.python.org/mailman/listinfo/python-list
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)
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
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
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.
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
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
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
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
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():
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
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
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
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
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
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
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
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.
--
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
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
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
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
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
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
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
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
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
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
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
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.
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 =
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
___
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
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
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
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
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:
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
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: -
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
nosy: +ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10107
___
___
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
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
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.
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:
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
Changes by Paul Bolle pebo...@tiscali.nl:
--
nosy: +pebolle
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8340
___
___
Python-bugs-list mailing
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:
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
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?
--
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
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
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8293
___
___
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
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 - 100 of 210 matches
Mail list logo