[issue17135] imp doc should direct to importlib

2013-04-06 Thread Kristian

Kristian added the comment:

Here is the patch for this bug... Enjoy! I would be happy to work on this 
further if there are any problems or questions! Thanks!

--
keywords: +patch
nosy: +ktran13
Added file: http://bugs.python.org/file29697/patch.diff

___
Python tracker 
<http://bugs.python.org/issue17135>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8623] Aliasing warnings in socketmodule.c

2011-06-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

I can't reproduce both these cases with gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 
4.5.2 on i386 using the current default branch (70943:024827a9db64).

--
nosy: +Kristian.Vlaardingerbroek

___
Python tracker 
<http://bugs.python.org/issue8623>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10845] test_multiprocessing failure under Windows

2011-06-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

This has been committed a while ago, can this issue be closed?

--
nosy: +Kristian.Vlaardingerbroek

___
Python tracker 
<http://bugs.python.org/issue10845>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

Attached patch for Python 2.7. 

Since Issue10268 has not been applied to Python 2.7 the sentence "you must 
modify setup.py and and remove the line that sets SQLITE_OMIT_LOAD_EXTENSION" 
still applies.

--
keywords: +patch
nosy: +Kristian.Vlaardingerbroek
Added file: http://bugs.python.org/file22458/issue10020-python27.patch

___
Python tracker 
<http://bugs.python.org/issue10020>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10583] Encoding issue with chm help in 2.7.1

2011-06-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

I can reproduce the issue with Python 2.7.2 and Python 3.2 on Windows 7 
Enterprise SP 1 64-bit.

--
nosy: +Kristian.Vlaardingerbroek

___
Python tracker 
<http://bugs.python.org/issue10583>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10583] Encoding issue with chm help in 2.7.1

2011-06-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

I've looked at the output from make html and make htmlhelp and taking the 
library/json.html as example the text between   is exactly the 
same.

Chrome renders both fine:

18.2. json — JSON encoder and decoder — Python v2.7.2 
documentation

But when looking at the file in the HTML Help Workshop it looks like this:

 18.2. json — JSON encoder and decoder

Which is what you see when doing the search.

--

___
Python tracker 
<http://bugs.python.org/issue10583>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10583] Encoding issue with chm help in 2.7.1

2011-06-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

This might be non-fixable:

http://support.microsoft.com/kb/269766/

HTML Help 1.x does not compile the Unicode characters. Meaning that in the 
search and index views you'll get garbage. For the rest of the rendering IE is 
used which does render the correct characters.

There is support in HTML Help 2.x but as far as I can see that is only 
available as a component in Visual Studio and not included with a default 
Windows installation.

--

___
Python tracker 
<http://bugs.python.org/issue10583>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-25 Thread Kristian Vlaardingerbroek

Changes by Kristian Vlaardingerbroek :


Removed file: http://bugs.python.org/file22458/issue10020-python27.patch

___
Python tracker 
<http://bugs.python.org/issue10020>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

Fixed typo (double and).

--
Added file: http://bugs.python.org/file22464/issue10020-python27.patch

___
Python tracker 
<http://bugs.python.org/issue10020>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9955] multiprocessing.Pipe segmentation fault when recv of unpicklable object

2011-06-26 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

On Python 2.7.2 this can not be reproduced. Instead of the segmentation fault 
an AssertionError is raised:

AssertionError: invalid Element proxy at 39359432

In Python 3.2 the p1.send(n) step in the example raises a PicklingError when 
trying to pass an unpickable object.

Recommend closing this ticket.

--
nosy: +Kristian.Vlaardingerbroek

___
Python tracker 
<http://bugs.python.org/issue9955>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Kristian Vlaardingerbroek

Changes by Kristian Vlaardingerbroek :


--
nosy: +Kristian.Vlaardingerbroek

___
Python tracker 
<http://bugs.python.org/issue10990>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10992] tests failing when run under coverage

2011-01-24 Thread Kristian Vlaardingerbroek

Changes by Kristian Vlaardingerbroek :


--
nosy: +Kristian.Vlaardingerbroek

___
Python tracker 
<http://bugs.python.org/issue10992>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-24 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

test_pickle and test_pickletools both call test_bad_getattr in 
pickletester.py:1005

This results in a RuntimeError which leads to the same result as test_exceptions

--

___
Python tracker 
<http://bugs.python.org/issue10990>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

Following tests in test_descr.py fail with both methods:

test_iter_items
test_iter_keys
test_iter_values

regrtest -T causes the following test to fail aswell:

test_slots

The test_iter_* tests fail because __locals__ gets added to the namespace of 
the class it is testing when tracing is enabled.

test_slots fails on line 1031 in a section marked "Test lookup leaks [SF bug 
572567]"

--

___
Python tracker 
<http://bugs.python.org/issue10992>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

Following tests in test_descr.py fail:

test_collect_generations (line 261)
test_frame (line 183)
test_get_count (line 249)

These tests count the number of allocations and a trace function can mess this 
up.

--

___
Python tracker 
<http://bugs.python.org/issue10992>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

test_metaclass has some doctests failing because of the added __locals__.

--

___
Python tracker 
<http://bugs.python.org/issue10992>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

msg127022 applies to test_gc and not test_descr

--

___
Python tracker 
<http://bugs.python.org/issue10992>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

test_trace can be added to this list, each call to runfunc does a sys.settrace()

121:self.tracer.runfunc(traced_func_loop, 2, 3)
133:self.tracer.runfunc(traced_func_importing, 2, 5)
145:self.tracer.runfunc(traced_func_calling_generator)
160:self.tracer.runfunc(traced_caller_list_comprehension)
183:tracer.runfunc(method, 20)
225:self.tracer.runfunc(traced_func_simple_caller, 1)
234:self.tracer.runfunc(traced_func_importing_caller, 1)
248:self.tracer.runfunc(obj.inst_method_calling, 1)
266:self.tracer.runfunc(traced_func_importing_caller, 1)

--

___
Python tracker 
<http://bugs.python.org/issue10990>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-27 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek  added the 
comment:

Cleaned up patch file. Removed non-related diffs and redundant updates.

refcount_test decorator is still in there.

--
Added file: http://bugs.python.org/file20561/issue10990.diff

___
Python tracker 
<http://bugs.python.org/issue10990>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2708] IDLE subprocess error

2008-04-28 Thread Kristian Lauridsen

New submission from Kristian Lauridsen <[EMAIL PROTECTED]>:

Hi all.
I'w been looking for an answer to this. 
If I use IDLE for som "just fore fun" programming and then exit, I have 
to "kill" IDLE, dispite theres nothin "running" persay, then when i 
start IDLE again I get too error messages popping up:

1: Socket Error: Connection refused
2: IDLE's subprocess didn't make connection. Either IDLE can't start a 
subprocess or personal firewall is blocking the connection.

The code written in IDLE that triggers the problem can be something 
simple like:
>>> a = 'hello world'
>>> print a

I have to reboot to get past the error.
I'm only getting the error when running vista and xp theres no problom 
in any of the other systems i'v tried (mainly linux)
I should mention that the error dosn't come every time I "kill" IDLE, I 
would say about every 3rd run, or there about.
I'v tried removeing/killing windows owen firewall and then running IDLE 
but with the same result.
Like I said, i been look around fore a "fix" fore this but havent found 
any...
If I have made a "double post" please let me know and remove this 
post

--
components: IDLE
messages: 65918
nosy: Kris
severity: normal
status: open
title: IDLE subprocess error
type: crash
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2708>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2708] IDLE subprocess error

2008-05-05 Thread Kristian Lauridsen

Kristian Lauridsen <[EMAIL PROTECTED]> added the comment:

Python 2.5.2 IDLE 1.2.2
It dosnt matter how i try to "end" IDLE: red cross, close(alt+F4), exit
(Ctrl+Q) or writing exit(), it will ask me to kill the program. 
I dont think it's IDLE im "killing" but the program im writing.

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2708>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37585] Comparing PyDictValues does not give expected results

2019-07-13 Thread Kristian Klette


New submission from Kristian Klette :

As a user, I expect to be able to compare the different parts a `dict`
in the same manner.

Currently, `PyDictValues` does not implement the `dictview_richcompare`, 
causing the `__eq__` to always return false, even if the values are identical.


```
my_dict = {'foo': 'bar'}
dict_copy = my_dict.copy()
other_dict = {'foo': 'bar', 'bar': 1234}

assert my_dict.keys() == my_dict.keys()
assert my_dict.keys() == dict_copy.keys()
assert my_dict.keys() != other_dict.keys()

assert my_dict.items() == my_dict.items()
assert my_dict.items() == dict_copy.items()
assert my_dict.items() != other_dict.items()

assert my_dict.values() == my_dict.values()
assert my_dict.values() == dict_copy.values()
assert my_dict.values() != other_dict.values()

```

--
components: Library (Lib)
messages: 347806
nosy: Kristian Klette
priority: normal
severity: normal
status: open
title: Comparing PyDictValues does not give expected results
type: behavior

___
Python tracker 
<https://bugs.python.org/issue37585>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21509] json.load fails to read UTF-8 file with (BOM) Byte Order Marks

2014-05-14 Thread Kristian Benoit

New submission from Kristian Benoit:

I'm trying to parse a json and keep getting ValueError. File reports the file 
as being "UTF-8 Unicode (with BOM) text", vim reports it as UTF-8, ...

json.load docs says it support UTF-8 out of the box.

Here's a link to the file : 
http://donnees.ville.sherbrooke.qc.ca/storage/f/2014-03-10T17%3A45%3A18.959Z/matieres-residuelles.json

--
files: matieres.json
messages: 218573
nosy: Kristian.Benoit
priority: normal
severity: normal
status: open
title: json.load fails to read UTF-8 file with (BOM) Byte Order Marks
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file35254/matieres.json

___
Python tracker 
<http://bugs.python.org/issue21509>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21509] json.load fails to read UTF-8 file with (BOM) Byte Order Marks

2014-05-17 Thread Kristian Benoit

Kristian Benoit added the comment:

I added code to skip the bom if present when encoding is either None or 
"utf-8". The problem I have with Victor's solution is that users don't know 
these files are not plain UTF-8. Most text editor says it's utf-8 encoded, how 
can a user figure out there 3 hidden bytes at the start of the file ?

Kristian

--
keywords: +patch
Added file: http://bugs.python.org/file35269/json.patch

___
Python tracker 
<http://bugs.python.org/issue21509>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21509] json.load fails to read UTF-8 file with (BOM) Byte Order Marks

2014-05-17 Thread Kristian Benoit

Changes by Kristian Benoit :


Added file: http://bugs.python.org/file35270/json.v2.patch

___
Python tracker 
<http://bugs.python.org/issue21509>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22535] headerregistry.Address introduces extra quotes without addr_spec parameter

2014-10-01 Thread Kristian Rother

New submission from Kristian Rother:

I am trying to create an email address as in the Python doc example 
https://docs.python.org/3/library/email-examples.html

The example does not work as given on the page.

I tried Python 3.4rc1 and the 3.5 compiled from source on Ubuntu 12.

I found two possible reasons:

1) Python bug in headerregistry.py
The string resulting from the command below contains extra quotes:

str(Address('Foo Example', 'f...@example.com'))
--> 'Foo Example <"f...@example.com">'


2) Documentation bug

The documentation of headerregistry.Address states:

"username and domain may be specified together by using 
the addr_spec keyword *instead of* the username and domain keywords"

However, this is inconsistent with example 19.1.14.1. on
https://docs.python.org/3/library/email-examples.html

Attached are two tests that reproduce the situation.
The first test below fails but the second passes.

Conclusion:
In my opinion, it is more intuitive if the following would work as well:
Address('Foo Example', 'f...@example.com')

--
components: email
files: test_email_address_with_quotes.py
messages: 228128
nosy: barry, krother, r.david.murray
priority: normal
severity: normal
status: open
title: headerregistry.Address introduces extra quotes without addr_spec 
parameter
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file36769/test_email_address_with_quotes.py

___
Python tracker 
<http://bugs.python.org/issue22535>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30563] [Cygwin] multiprocessing module with pool object issue

2018-08-13 Thread Niels Kristian Jensen


Niels Kristian Jensen  added the comment:

I ran the same test on Windows 10, works fine, but Windows Server 2012 bails 
out with no message, no abnormal exit code.

@Antoine Pitrou - if Cygwin and Python3 are non-compatible, I suggest that 
someone in the Python3 community writes a note about this, for reference.

In fact, the Python package should probably be removed from Cygwin?

--
nosy: +nkjensen

___
Python tracker 
<https://bugs.python.org/issue30563>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com