[issue12322] ElementPath 1.3 expressions documentation

2012-10-01 Thread Mike Hoy

Mike Hoy added the comment:

Here is a link to our docs page with the info that needs to be changed:

http://docs.python.org/py3k/library/xml.etree.elementtree.html#supported-xpath-syntax

I was going to work on a patch but in irc we decided to wait to see what people 
had to say about this. Also we think documenting the Error you receive (if any) 
when trying to go above the found element may be a necessary part of the doc 
change.

--
nosy: +mikehoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12322
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9650] format codes in time.strptime docstrings

2012-09-30 Thread Mike Hoy

Mike Hoy added the comment:

Changed docstring for timemodule.c to include format codes listed here: 
http://bugs.python.org/msg169193

--
keywords: +patch
Added file: http://bugs.python.org/file27358/issue9650-format-codes.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9650
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9650] format codes in time.strptime docstrings

2012-09-30 Thread Mike Hoy

Mike Hoy added the comment:

Updated patch as per Ezio's comment.

--
Added file: http://bugs.python.org/file27364/issue9650-format-codes_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9650
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9650] format codes in time.strptime docstrings

2012-09-30 Thread Mike Hoy

Mike Hoy added the comment:

New patch includes time.strptime and the additional changes suggested by Chris 
Rebert.

--
Added file: http://bugs.python.org/file27365/issue9650-format-codes_v3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9650
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9650] format codes in time.strptime docstrings

2012-09-29 Thread Mike Hoy

Mike Hoy added the comment:

If you like my idea we should discuss it on python-ideas and start a new 
tracker entry.

In the meantime I'd like to create a patch that incorporates Alexander's ideas. 
If any objections let me know.

--
nosy: +mikehoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9650
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13440] Explain the status quo wins a stalemate principle in the devguide

2012-09-26 Thread Mike Hoy

Mike Hoy added the comment:

I'd be willing to make a patch for this if you are agreed to just adding a 
couple of links to it (or otherwise).

--
nosy: +mikehoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13440
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12067] Doc: remove errors about mixed-type comparisons.

2012-09-21 Thread Mike Hoy

Mike Hoy added the comment:

http://bugs.python.org/issue15997 is this issue related to what Terry has 
mentioned:

Does 'not supported' mean 'raises TypeError', 'returns NotImplemented', or 
both? If the last, I don't really understand the reason for NotImplemented 
versus TypeError. That point should be clarified in 3.3 also. And 3.3 should be 
referenced in the comparisons section.

I am working on this patch and need confirmation as to whether or not this has 
to be included in my patch. I'm not clear on it so I may just pass on making a 
patch if it is required for this issue.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12067
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12067] Doc: remove errors about mixed-type comparisons.

2012-09-21 Thread Mike Hoy

Mike Hoy added the comment:

I've attempted to incorporate both Terry's and Ezio's suggestions. Here is a 
patch to get started with. There is a section that has been deleted. Patch 
uploaded.

--
keywords: +patch
Added file: http://bugs.python.org/file27256/issue12067-expressions.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12067
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11643] Use |version| instead of X.Y in the doc

2012-09-17 Thread Mike Hoy

Changes by Mike Hoy mho...@gmail.com:


--
nosy: +mikehoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11643
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11643] Use |version| instead of X.Y in the doc

2012-09-17 Thread Mike Hoy

Mike Hoy added the comment:

So we could fix this in reverse? Remove the |version| and replace them with X.Y 
since |version| doesn't expand within :file:?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11643
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



PyCon DE 2012 - Free Barcamp, Sprints and Code Retreat

2012-09-11 Thread Mike Müller
You can now register for the barcamp, our new code retreat and the
sprints at PyCon DE 2012 [1]. Registration is free. Just put your
name on this wiki page [2] and your are registered. Please sign
up as soon as possible that helps us to plan.

The second PyCon DE [3] will be in Leipzig from October 29 through
November 3, 2012. One tutorial day, three days with talks and two
days with a barcamp, code retreat  and sprints will provide different
ways to communicate about Python. There will be social events to give
everybody ample opportunity to network with like-minded Pythonistas.

The registration [4] is open. Don't miss the chances to secure your
ticket.

Follow us on Twitter under @pyconde to stay up-to-date.

Cheers,
Mike

Hallo Python-Freunde,

die Anmeldung für Barcamp/Code-Retreat/Sprints ist eröffnet [1].
Die Teilnahme ist kostenlos. Bitte tragt Euch auf der entsprechenden
Wiki-Seite [2] ein, damit wir planen können.

Die zweite PyCon DE [3] findet vom 29. Oktober bis zum
3. November 2012 in Leipzig statt.

Also gleich anmelden [4], um das größte Treffen der deutschsprachigem
Python-Community nicht zu verpassen.

Wer immer über die PyCon DE auf dem Laufenden bleiben
möchte kann uns auch auf Twitter unter @pyconde folgen.

Viele Grüße
Mike

[1] https://2012.de.pycon.org/programm/barcamp/
[2] http://wiki.python.de/PyConDe/2012/
[3] https://2012.de.pycon.org/
[4] https://2012.de.pycon.org/tickets/
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue12067] Doc: remove errors about mixed-type comparisons.

2012-09-07 Thread Mike Hoy

Changes by Mike Hoy mho...@gmail.com:


--
nosy: +mikehoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12067
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



===== Soft Skills Training In Chennai ======

2012-09-06 Thread mike pittenson
Ayus Technologies offers Dot net training in chennai,java/j2ee training in 
chennai,SEO training in chennai,web designing training in chennai,soft skills 
training in chennai,Software Testing training in chennai.



http://www.ayustechnologies.com/



More Information contact Mr, Jana 9080140107
-- 
http://mail.python.org/mailman/listinfo/python-list


[issue14468] Update cloning guidelines in devguide

2012-09-06 Thread Mike Hoy

Changes by Mike Hoy mho...@gmail.com:


--
nosy:  -mikehoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15820] Add additional info to Resources area on Dev Guide

2012-09-02 Thread Mike Hoy

Mike Hoy added the comment:

 Is the :exc:`KeyboardInterrupt` line supposed to be in there?

Nope. I somehow ended up with that in my index.rst file. I am guessing I was 
pasting lines to use as reference and didn't delete it later. Here's patch #4.

--
Added file: http://bugs.python.org/file27093/devguide-resources-4.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15820
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15825] Typo in OrderedDict docs

2012-08-31 Thread Mike Hoy

Mike Hoy added the comment:

I added two patches one for 2.7 and one for 3.3. Please advise if this is the 
correct way to handle this.

--
keywords: +patch
nosy: +mikehoy
Added file: http://bugs.python.org/file27068/typo-ordered-dict2.7.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15825
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15825] Typo in OrderedDict docs

2012-08-31 Thread Mike Hoy

Changes by Mike Hoy mho...@gmail.com:


Added file: http://bugs.python.org/file27069/typo-ordered-dict3.3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15825
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15829] Threading Lock - Wrong Exception Name

2012-08-31 Thread Mike Hoy

New submission from Mike Hoy:

From the Docs mailing list:

Hi

I found a bug in python docs which can be accessed at links:
http://docs.python.org/library/threading.html#lock-objects
http://docs.python.org/py3k/library/threading.html#lock-objects

Bug is in second paragraph describing threading.Lock. I found that statement:
If an attempt is made to release an unlocked lock, a RuntimeError will be 
raised.
Which is not true, name of exception is wrong it should be (and it relay is) 
ThreadError (from threading module)

Could someone fix it?

-- 
Br,
Slawomir Kuszczynski

--
messages: 169513
nosy: mikehoy
priority: normal
severity: normal
status: open
title: Threading Lock - Wrong Exception Name
versions: Python 2.7, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15829
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15829] Threading Lock - Wrong Exception Name

2012-08-31 Thread Mike Hoy

Mike Hoy added the comment:

Working on a patch now unless there are objections to the OP.

--
nosy: +docs@python

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15829
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15829] Threading Lock - Wrong Exception Name

2012-08-31 Thread Mike Hoy

Mike Hoy added the comment:

I think RuntimeError should be replaced by ThreadingError for _RLock and 
Condition implementations as well as docs need to be updated.

Also I think this patch should be applied to 3.4 only, it is enchacement, 
not bugfix.
About fixing docs for 2.7-3.3: I see nothing wrong if current inconsistency 
will be documented, perhaps as *warning* or *note* block.

I should warn that ThreadError or `ThreadError` has no link. I've tried to find 
a place in the docs I could link to but haven't yet. `ValueError` does have a 
link.

--
type: enhancement - 

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15829
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15829] Threading Lock - Wrong Exception Name

2012-08-31 Thread Mike Hoy

Mike Hoy added the comment:

I think RuntimeError should be replaced by ThreadingError for _RLock and 
Condition implementations as well as docs need to be updated.

Also I think this patch should be applied to 3.4 only, it is enchacement, 
not bugfix.
About fixing docs for 2.7-3.3: I see nothing wrong if current inconsistency 
will be documented, perhaps as *warning* or *note* block.

I should warn that ThreadError or `ThreadError` has no link. I've tried to find 
a place in the docs I could link to but haven't yet. `ValueError` does have a 
link.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15829
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15829] Threading Lock - Wrong Exception Name

2012-08-31 Thread Mike Hoy

Mike Hoy added the comment:

I discussed this in IRC and got the following information from Ezio:

 Taggnostr the doc fix can go in 2.7/3.3, the code fix in 3.4

Plan is to put the definition for ThreadError in threading.rst for both 2.7 and 
3.3

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15829
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15829] Threading Lock - Wrong Exception Name

2012-08-31 Thread Mike Hoy

Mike Hoy added the comment:

3.3 patch

--
keywords: +patch
Added file: http://bugs.python.org/file27071/15829-thread-errror3.3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15829
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15829] Threading Lock - Wrong Exception Name

2012-08-31 Thread Mike Hoy

Mike Hoy added the comment:

2.7 patch.

--
Added file: http://bugs.python.org/file27072/15829-thread-errror2.7.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15829
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15820] Add additional info to Resources area on Dev Guide

2012-08-30 Thread Mike Hoy

Changes by Mike Hoy mho...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file27055/devguide-resources.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15820
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15820] Add additional info to Resources area on Dev Guide

2012-08-30 Thread Mike Hoy

New submission from Mike Hoy:

I wrote a patch which adds more info the devguide under Resources: 
http://docs.python.org/devguide/index.html#resources

--
messages: 169436
nosy: mikehoy
priority: normal
severity: normal
status: open
title: Add additional info to Resources area on Dev Guide
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15820
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15820] Add additional info to Resources area on Dev Guide

2012-08-30 Thread Mike Hoy

Changes by Mike Hoy mho...@gmail.com:


Added file: http://bugs.python.org/file27056/devguide-resources-2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15820
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15820] Add additional info to Resources area on Dev Guide

2012-08-30 Thread Mike Hoy

Mike Hoy added the comment:

I changed the wording a bit and added a few more things. The second one is the 
one I prefer.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15820
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15820] Add additional info to Resources area on Dev Guide

2012-08-30 Thread Mike Hoy

Mike Hoy added the comment:

I'm working on a new patch with Ezio.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15820
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15820] Add additional info to Resources area on Dev Guide

2012-08-30 Thread Mike Hoy

Mike Hoy added the comment:

This patch adds a link from:
http://docs.python.org/devguide/index.html#resources

To:
http://docs.python.org/devguide/docquality.html#helping-with-the-developer-s-guide

--
Added file: http://bugs.python.org/file27057/devguide-resources-3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15820
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15820] Add additional info to Resources area on Dev Guide

2012-08-30 Thread Mike Hoy

Mike Hoy added the comment:

It was determined by Ezio that the previous patches had too much information 
about how to open a browser, or install python-sphynx on a debian system. It 
was just out of scope for the docs (people should know how to use their package 
management systems, etc). We worked out that it was best to just use the 
existing docs for stuff like hg clone... and leave out the sudo apt-get install 
python-sphynx.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15820
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11776] Constructor signatures missing in types module documentation

2012-08-29 Thread Mike Hoy

Mike Hoy added the comment:

This should be all the requested changes. I've gone over the table entries (at 
least the first one, CodeType, with bitdancer on IRC). I've removed the 
descriptive language from below the table and added it to the table. Leaving 
the text below the table to deal with args and some descriptive text that was 
just too large to really fit into the right column of the table.

One question though, do you want:
BuiltinFunctionType
BuiltinMethodType
FrameType
GeneratorType
GetSetDescriptorType
MemberDescriptorType
TracebackType 

To be in the table as well. I'm a bit confused on this part. Just let me know.

--
Added file: 
http://bugs.python.org/file27047/complete-patch-with-table-issue-11776.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11776
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1185124] pydoc doesn't find all module doc strings

2012-08-28 Thread Mike Hoy

Changes by Mike Hoy mho...@gmail.com:


--
nosy: +mikehoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1185124
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14468] Update cloning guidelines in devguide

2012-08-28 Thread Mike Hoy

Changes by Mike Hoy mho...@gmail.com:


--
nosy: +mikehoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15801] Weird string interpolation behaviour

2012-08-28 Thread Mike Graham

Mike Graham added the comment:

Line 13464 of unicodeobject.c is

if (Py_TYPE(args)-tp_as_mapping  !PyTuple_Check(args) 
!PyUnicode_Check(args))

Too lazy to check, but don't user-created types have a tp_as_mapping? If so, I 
think it mistakes Foo() for a dict.

--
nosy: +Mike.Graham

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15801
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11776] Constructor signatures missing in types module documentation

2012-08-25 Thread Mike Hoy

Mike Hoy added the comment:

I've added a completed patch for review. There was some talk on IRC that the 
wording for MappingProxyType should be changed to: Return a read-only view of 
the given mapping.

We decided to leave it to the review process to determine the exact wording.

--
Added file: http://bugs.python.org/file27003/signatures-full-patch.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11776
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11776] Constructor signatures missing in types module documentation

2012-08-25 Thread Mike Hoy

Mike Hoy added the comment:

Ezio Melotti was the one that offered to change the wording on MappingProxyType 
doc

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11776
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11776] Constructor signatures missing in types module documentation

2012-08-24 Thread Mike Hoy

Mike Hoy added the comment:

Lambda Changes patch.

--
Added file: 
http://bugs.python.org/file26982/issue11776-first-easy-part-lambda-.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11776
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11776] Constructor signatures missing in types module documentation

2012-08-23 Thread Mike Hoy

Mike Hoy added the comment:

I used the following for:

CodeType
FunctionType
LambdaType
SimpleNamespace
MethodType



 print(CodeType.__doc__)
code(argcount, kwonlyargcount, nlocals, stacksize, flags, codestring,
  constants, names, varnames, filename, name, firstlineno,
  lnotab[, freevars[, cellvars]])

Create a code object.  Not for the faint of heart.

 print(FunctionType.__doc__)
function(code, globals[, name[, argdefs[, closure]]])

Create a function object from a code object and a dictionary.
The optional name string overrides the name from the code object.
The optional argdefs tuple specifies the default argument values.
The optional closure tuple supplies the bindings for free variables.

 print(LambdaType.__doc__)
function(code, globals[, name[, argdefs[, closure]]])

Create a function object from a code object and a dictionary.
The optional name string overrides the name from the code object.
The optional argdefs tuple specifies the default argument values.
The optional closure tuple supplies the bindings for free variables.

 print(SimpleNamespace.__doc__) 
A simple attribute-based namespace.

namespace(**kwargs)

 print(MethodType.__doc__)
method(function, instance)

Create a bound instance method object.



I left out the [] arguments.

I've stopped here and uploaded a patch for the 

'first easy part'. 

Despite that name I suspect I will have to change quite a few things. Once this 
part is done then I will move on the the 

'second easy part'

--
keywords: +patch
versions:  -Python 2.7, Python 3.2
Added file: http://bugs.python.org/file26969/issue11776-sigs-docs-first.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11776
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12716] Reorganize os docs for files/dirs/fds

2012-08-22 Thread Mike Hoy

Mike Hoy added the comment:

I was attempting to create a patch for this but all I have is moving fchmod() 
below chmod(). I was unable to find fchmodat() in os.rst. And I need further 
clarification on 

Also, symbolic constants should be close to the functions they are used in. 
For example, open() flags shouldn't be in their own section.

--
keywords: +patch
nosy: +mikehoy
Added file: http://bugs.python.org/file26961/issue141820-function-fchmod.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12716
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15742] SQLite3 documentation changes

2012-08-20 Thread Mike Hoy

New submission from Mike Hoy:

In Core-Mentorship we discussed this and decided on the following patch.

--
assignee: docs@python
components: Documentation
files: sqlite3-docs-changes.diff
keywords: patch
messages: 168681
nosy: docs@python, mikehoy, r.david.murray
priority: normal
severity: normal
status: open
title: SQLite3 documentation changes
versions: Python 3.3
Added file: http://bugs.python.org/file26933/sqlite3-docs-changes.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15742
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15742] SQLite3 documentation changes

2012-08-20 Thread Mike Hoy

Mike Hoy added the comment:

Removed print function in this patch.

--
Added file: http://bugs.python.org/file26934/sqlite3-docs-remove-print.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15742
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



ANN: Advanced Python Training at PyCon PL

2012-08-19 Thread Mike Müller
Advanced Python Training at PyCon PL


You have intermediate Python skills and would like learn more about:

* Comprehensions
* Decorators
* Context managers
* Descriptors
* Metaclasses and
* Patterns?

Than you should attend this two-day training that provides a systematic
coverage of these topics. Useful code samples and exercises provide
hands-on learning.

We offered this training at EuroPython 2012 and got very good feedback.
Some of the participant understood much more of the complex topics than
they anticipated.

Date: September 17th and 18th, 2012
Location: PyCon PL venue, Mąchocice, Poland
More information: http://pl.pycon.org/2012/en/training

This is an open course, but PyCon PL attendees will get a considerable
discount.



Open courses 2012 and 2013 (till June)
--


17.09.-18.09.2012 (Mąchocice, Poland) Advanced Python at PyCon PL (English)
http://pl.pycon.org/2012/en/training

15.10.-17.10.2012 (Leipzig) Introduction to Django (English)
http://python-academy.com/courses/django_course_introduction.html

18.10.-20.10.2012 (Leipzig) Advanced Django (English)
http://python-academy.com/courses/django_course_advanced.html

27.10.2012 (Leipzig) SQLAlchemy (English)
http://python-academy.com/courses/specialtopics/python_course_sqlalchemy.html

28.10.2012 (Leipzig) Camelot (English)
http://python-academy.com/courses/specialtopics/python_course_camelot.html

12.-14.11.2012 (Antwerp, Belgium) Python for Programmers (English)
http://python-academy.com/courses/python_course_programmers.htm

15.11.2012 (Antwerp, Belgium) SQLAlchemy (English)
http://python-academy.com/courses/specialtopics/python_course_sqlalchemy.html

16.11.2012 (Antwerp, Belgium) Camelot (English)
http://python-academy.com/courses/specialtopics/python_course_camelot.html

10.12.-12.12.2012 (Leipzig) Python für Programmierer (German)
http://www.python-academy.de/Kurse/python_kurs_programmierer.html

13.12.-15.12.2012 (Leipzig) Python für Wissenschaftler und Ingenieure (German)
http://www.python-academy.de/Kurse/python_kurs_wissenschaftler.html

25.01.-27.01.2013 (Leipzig) Advanced Python (English)
http://python-academy.com/courses/specialtopics/python_course_advanced.html

28.01.-30.01.2013 (Leipzig) High-Performance Computation with Python (English)
http://python-academy.com/courses/python_course_high_performance.html

one day each (can be booked separately)
- Optimizing of Python Programs
  http://python-academy.com/courses/specialtopics/python_optimizing.html

- Python Extensions with Other Languages
  http://python-academy.com/courses/specialtopics/python_extensions.html

- Fast Code with the Cython Compiler
  http://python-academy.com/courses/specialtopics/python_course_cython.html

31.01.-01.02.2013 (Leipzig) High Performance XML with Python (English)
http://python-academy.com/courses/specialtopics/python_course_xml.html

04.03.-08.03.2013 (Chicago, USA) Python for Scientists and Engineers (English)
http://www.dabeaz.com/chicago/science.html

15.04.-17.04.2013 (Leipzig) Python für Programmierer (German)
http://www.python-academy.de/Kurse/python_kurs_programmierer.html


18.04.-20.04.2013 (Leipzig) Python für Wissenschaftler und Ingenieure (German)
http://www.python-academy.de/Kurse/python_kurs_wissenschaftler.html

10.06.-12.06.2013 (Leipzig) Python for Scientists and Engineers (English)
http://python-academy.com/courses/python_course_scientists.html

13.06.2013 (Leipzig) Fast Code with the Cython Compiler (English)
http://python-academy.com/courses/specialtopics/python_course_cython.html

14.06.2013 (Leipzig) Fast NumPy Processing with Cython (English)
http://python-academy.com/courses/specialtopics/python_course_numpy_cython.html
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue12436] Missing items in installation/setup instructions

2012-08-19 Thread Mike Hoy

Mike Hoy added the comment:

Here is a patch for just Notepad++.

--
keywords: +patch
Added file: http://bugs.python.org/file26891/issue12436-notepad_plus_plus.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12436
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15569] Doc doc: incorrect description of some roles as format-only

2012-08-19 Thread Mike Hoy

Mike Hoy added the comment:

I would like to submit a patch for this. Is anyone currently working on one?

--
nosy: +mikehoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15569
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13341] Incorrect documentation for u PyArg_Parse format unit

2012-08-19 Thread Mike Hoy

Changes by Mike Hoy mho...@gmail.com:


--
nosy:  -mikehoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13341
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12436] Missing items in installation/setup instructions

2012-08-19 Thread Mike Hoy

Changes by Mike Hoy mho...@gmail.com:


Added file: http://bugs.python.org/file26902/issue12436-notepad_plus_plus_2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12436
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12436] Missing items in installation/setup instructions

2012-08-19 Thread Mike Hoy

Mike Hoy added the comment:

Wrapped my text columns to 80. Ignore v2.

--
Added file: http://bugs.python.org/file26904/issue12436-notepad_plus_plus_3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12436
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12436] Missing items in installation/setup instructions

2012-08-13 Thread Mike Hoy

Mike Hoy added the comment:

Thanks, I will take all contributions and suggestions and propose one patch.

I am able to start working on this issue again, Eric. If you want to give me 
the status of your patch I can either help you finish it up or I can make one 
this week.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12436
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15453] ctype with packed bitfields does not match native compiler

2012-07-31 Thread Mike Castle

Mike Castle added the comment:

I did read through all of those before posting this one.

As far as I can remember, none of those addressed the use of pack, which is the 
sole problem I'm facing here.

Now maybe when all is said and done and all of these bitfield bugs are worked 
out, this one and that one will both be fixed.  But I wasn't sure if this 
example would clarify or cloud those issues.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15506] configure should use PKG_PROG_PKG_CONFIG

2012-07-30 Thread Mike Frysinger

New submission from Mike Frysinger:

the current configure script open codes the pkg-config look up:
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])

rather than using the standard macro from pkg-config's own pkg.m4:
PKG_PROG_PKG_CONFIG

this causes the build env to not operate exactly like other pkg-config autoconf 
builds :(

simple fix:
-AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
+PKG_PROG_PKG_CONFIG

--
components: Build
messages: 166915
nosy: vapier
priority: normal
severity: normal
status: open
title: configure should use PKG_PROG_PKG_CONFIG
type: compile error

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15506
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15453] ctype with packed bitfields does not match native compiler

2012-07-26 Thread Mike Castle

New submission from Mike Castle dalg...@gmail.com:

On debian/testing with python 2.7.3rc2 and gcc 4.7.1.

I was trying to use ctypeslib to wrap libdvdnav and running into some issues 
porting my test C code to Python, eventually tracking it down to this 
difference between how ctypes and gcc handles bitfields in packed structs 
(i.e., affects real world problems).

Basically, by default, gcc treats 8, 16 and 32 bit types in bit fields as 1 
byte when using __attribute__ ((packed)) , while ctypes treats them each as 1, 
2 and 4 bytes even when using _pack_ = 1.  (and libdvdnav using packed a lot)

Output from the attached programs:

$ ./a.out
1
1
1
$ ./t.py
1
2
4

Removing the packed attribute or building with gcc -mms-bitfields both match 
the ctypes expectations (though -mms-bitfields is probably rarely used in 
Linux).

--
components: ctypes
files: t.py
messages: 166462
nosy: Mike.Castle
priority: normal
severity: normal
status: open
title: ctype with packed bitfields does not match native compiler
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file26521/t.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15453] ctype with packed bitfields does not match native compiler

2012-07-26 Thread Mike Castle

Mike Castle dalg...@gmail.com added the comment:

And the C version

--
Added file: http://bugs.python.org/file26522/t.c

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1062277] Pickle breakage with reduction of recursive structures

2012-07-26 Thread mike bayer

Changes by mike bayer mike...@zzzcomputing.com:


--
nosy: +zzzeek

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1062277
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: adding a simulation mode

2012-07-04 Thread Mike C. Fletcher

On 12-07-04 05:42 AM, andrea crotti wrote:
...

copytree(src, dest) becomes:
if not PRETEND_ONLY:
 copytree(src, dest)

import globalsub, unittest

class MyTest( unittest.TestCase ):
def setUp( self ):
globalsub.subs( shutil.copytree )
def tearDown( self ):
globalsub.restore( shutil.copytree )

You can also pass a function to subs like so:

def setUp( self ):
self.copied_trees = []
def fake_copytree( src, dest ):
assert os.path.exists( src )
self.copied_trees.append( (src, dest ))
return dest # or whatever the thing should return
globalsub.subs( shutil.copytree, fake_copytree )

$ pip install globalsub

HTH,
Mike

--

  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://www.vrplumber.com
  http://blog.vrplumber.com

--
http://mail.python.org/mailman/listinfo/python-list


PyCon DE 2012 - Today, June 15, is Deadline for Proposals

2012-06-15 Thread Mike Müller
Dear Pythonistas,

Only a few hours left.

The deadline to submit a talk or tutorial proposal for
PyCon DE 2012 is June 15, 2012, 23:59 (CEST).

Don't miss this chance to speak at the largest gathering of
the German-speaking Python community.

Talks and tutorials in English are welcome if you are not
comfortable with German.

Please spread the word and let other, interested people know
about this deadline.

Cheers,
Mike


PyCon DE 2012 - Call for Papers
===

The second PyCon DE will be held October 29 - November 3, 2012
in Leipzig Germany. We ask you to submit your proposal for a talk [2].
Details of the call are below in German.

The conference language will be German. However, talks in English by
non-native German speakers will be accepted.


PyCon DE 2012 - Aufruf zur Vorträgen
=

Ab sofort kann jeder, der sich für Python interessiert, einen Vortragsvorschlag
für die PyCon DE 2012 einreichen [1]. Es gibt nur zwei Bedingungen: Das Thema
sollte interessant sein, und es sollte etwas mit Python zu tun haben. Für die
zweite Python-Konferenz sind wir an einer breiten Themenpalette interessiert,
die das ganze Spektrum der Entwicklung, Nutzung und Wirkung von Python zeigt.
Folgende Tracks sind geplant:

Python als Programmiersprache
-

* Fortgeschrittene Programmierung, zum Beispiel Metaprogramming
* CPython
* Python-Kernentwicklung
* Python-Implementierungen (PyPy,  Jython, IronPython)
* Python 3
* Zukünftige Entwicklungen

Webanwendungen mit Python
-

* Web-Frameworks für Python
* Best Practises für die Python-Programmierung
* Kombination von Python und JavaScript
* Contentmanagement mit Python

Anwendungsbereiche
--

* Wissenschaftliche Anwendungen mit Python
* Python für Finanz-Anwendungen
* Lehre mit Python / Python als erste Programmiersprache
* Python im Unternehmensumfeld
* Systemintegration mit Python
* Grafische Nutzerschnittstellen (GUIs)
* Datenbankanwendungen mit Python
* Python für die Hardware-Steuerung

Softwareentwicklung
---

* Testen von Python-Programmen
* Agile Entwicklung mit Python
* Algorithmen mit Python
* Datenstrukturen mit Python
* Design-Patterns mit Python
* Parallele Programmierung mit Python
* Einbetten von Python in andere Anwendungen

Werkzeuge
-

* Packaging von Python-Bibliotheken
* Deployment von Python-Anwendungen
* IDEs für Python
* Plattformen wie GAE, EC2

Python-Community


* Marketing für Python
* Python, Open Source und Entwickler-Gemeinschaft

Mehr ...


Ihr Themenbereich ist nicht aufgelistet, wäre aber aus Ihrer Sicht für die
PyCon DE interessant? Kein Problem. Reichen Sie Ihren Vortragsvorschlag einfach
ein. Auch wir können nicht alle Anwendungsbereiche von Python überschauen.
Vortragstage sind der 30. und 31. Oktober sowie der 1. November 2012.

Es gibt zwei Vortragsformate:

Standard-Vortrag -- 20 Minuten Vortrag + 5 Minuten Diskussion
Lang-Vortrag -- 45 Minuten Vortrag + 10 Minuten Diskussion

Die Vortragszeit wird strikt eingehalten. Bitte testen Sie die Länge Ihres
Vortrags. Lassen Sie gegebenenfalls ein paar Folien weg. Die Vortragssprache ist
Deutsch. In begründeten Ausnahmefällen können Vorträge auch auf Englisch
gehalten werden. Bitte fragen Sie uns dazu. Bitte reichen Sie Ihren Vortrag auf
über die Konferenz-Website [2] ein bis zum 31.05.2012 ein. Wir entscheiden bis
zum 30. Juni 2012 über die Annahme der Vorträge.

[1] http://2012.de.pycon.org/news/2012/05/07/call-for-papers/
[2] http://2012.de.pycon.org/proposals/submit/talk/

PyCon DE 2012 - Call for Tutorials
==

The second PyCon DE will be held October 29 - November 3, 2012
in Leipzig, Germany. We ask you to submit your proposal for a tutorial [1].
Details of the call are below in German.

The conference language will be German. However, tutorials in English by
non-native German speakers will be accepted.


PyCon DE 2012 - Aufruf zu Tutorials
===

Wir rufen alle erfahrenen Python-Nutzer auf, Bewerbungen für Tutorials für die
PyCon DE 2012 einzureichen. Die Tutorials finden am 29. Oktober 2012 im Rahmen
der PyCon DE (http://de.pycon.org) statt. Ein Tutorial soll drei Stunden dauern.

Die Themen der Tutorials können Einführung in Python, fortgeschrittene Themen,
Web-Frameworks oder andere große Python-Bibliotheken sowie typische
Softwareentwicklungsarbeiten wie Testen oder Versionskontrolle mit Python sein.

Bitte reichen Sie Ihren Vorschlag bis zum 31. Mai 2012 über
Konferenz-Website [1] ein.

Der Vorschlag muss Folgendes enthalten:

* Titel
* Kurzbeschreibung des Inhaltes
* Zielgruppe (Anfänger, Fortgeschrittene, Experten)
* stichpunktartige Gliederung des Tutorials mit Zeitangaben zu den einzelnen
  Punkten (die Summe muss 180 Minuten betragen)

Jedes Tutorial umfasst zwei Blöcke mit je 90 Minuten mit einer halbstündigen
Pause. Eine Person kann

[ANN] Leipzig Python User Group - Meeting, June 12 2012, 08:00 p.m.

2012-06-11 Thread Mike Müller
=== Leipzig Python User Group ===

We will meet on Tuesday, June 12 at 8:00 p.m. at the training
center of Python Academy in Leipzig, Germany
( http://www.python-academy.com/center/find.html ).

Everybody who uses Python, plans to do so or is interested in
learning more about the language is encouraged to participate.

While the meeting language will be mainly German, we will provide
English translation if needed.

Food and soft drinks are provided. Please send a short
confirmation mail to i...@python-academy.de, so we can prepare
appropriately.

Current information about the meetings are at
http://www.python-academy.com/user-group .

Mike


== Leipzig Python User Group ===

Wir treffen uns am Dienstag, 12.06.2012 um 20:00 Uhr
im Schulungszentrum der Python Academy in Leipzig
( http://www.python-academy.de/Schulungszentrum/anfahrt.html ).

Willkommen ist jeder, der Interesse an Python hat, die Sprache
bereits nutzt oder nutzen möchte.

Für das leibliche Wohl wird gesorgt. Eine Anmeldung unter
i...@python-academy.de wäre nett, damit wir genug Essen
besorgen können.

Aktuelle Informationen zu den Treffen sind unter
http://www.python-academy.de/User-Group zu finden.

Viele Grüße
Mike
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


PyCon DE 2012 - New Deadline for Proposals is June 15

2012-06-07 Thread Mike Müller
Dear Pythonistas,

You haven't missed it yet.

The new deadline to submit a talk or tutorial proposal for
PyCon DE 2012 is June 15, 2012.

Don't miss this chance to speak at the largest gathering of
the German-speaking Python community.

Talks and tutorials in English are welcome if you are not
comfortable with German.

Please spread the word and let other, interested people know
about this deadline.

Cheers,
Mike


PyCon DE 2012 - Call for Papers
===

The second PyCon DE will be held October 29 - November 3, 2012
in Leipzig Germany. We ask you to submit your proposal for a talk [2].
Details of the call are below in German.

The conference language will be German. However, talks in English by
non-native German speakers will be accepted.


PyCon DE 2012 - Aufruf zur Vorträgen
=

Ab sofort kann jeder, der sich für Python interessiert, einen Vortragsvorschlag
für die PyCon DE 2012 einreichen [1]. Es gibt nur zwei Bedingungen: Das Thema
sollte interessant sein, und es sollte etwas mit Python zu tun haben. Für die
zweite Python-Konferenz sind wir an einer breiten Themenpalette interessiert,
die das ganze Spektrum der Entwicklung, Nutzung und Wirkung von Python zeigt.
Folgende Tracks sind geplant:

Python als Programmiersprache
-

* Fortgeschrittene Programmierung, zum Beispiel Metaprogramming
* CPython
* Python-Kernentwicklung
* Python-Implementierungen (PyPy,  Jython, IronPython)
* Python 3
* Zukünftige Entwicklungen

Webanwendungen mit Python
-

* Web-Frameworks für Python
* Best Practises für die Python-Programmierung
* Kombination von Python und JavaScript
* Contentmanagement mit Python

Anwendungsbereiche
--

* Wissenschaftliche Anwendungen mit Python
* Python für Finanz-Anwendungen
* Lehre mit Python / Python als erste Programmiersprache
* Python im Unternehmensumfeld
* Systemintegration mit Python
* Grafische Nutzerschnittstellen (GUIs)
* Datenbankanwendungen mit Python
* Python für die Hardware-Steuerung

Softwareentwicklung
---

* Testen von Python-Programmen
* Agile Entwicklung mit Python
* Algorithmen mit Python
* Datenstrukturen mit Python
* Design-Patterns mit Python
* Parallele Programmierung mit Python
* Einbetten von Python in andere Anwendungen

Werkzeuge
-

* Packaging von Python-Bibliotheken
* Deployment von Python-Anwendungen
* IDEs für Python
* Plattformen wie GAE, EC2

Python-Community


* Marketing für Python
* Python, Open Source und Entwickler-Gemeinschaft

Mehr ...


Ihr Themenbereich ist nicht aufgelistet, wäre aber aus Ihrer Sicht für die
PyCon DE interessant? Kein Problem. Reichen Sie Ihren Vortragsvorschlag einfach
ein. Auch wir können nicht alle Anwendungsbereiche von Python überschauen.
Vortragstage sind der 30. und 31. Oktober sowie der 1. November 2012.

Es gibt zwei Vortragsformate:

Standard-Vortrag -- 20 Minuten Vortrag + 5 Minuten Diskussion
Lang-Vortrag -- 45 Minuten Vortrag + 10 Minuten Diskussion

Die Vortragszeit wird strikt eingehalten. Bitte testen Sie die Länge Ihres
Vortrags. Lassen Sie gegebenenfalls ein paar Folien weg. Die Vortragssprache ist
Deutsch. In begründeten Ausnahmefällen können Vorträge auch auf Englisch
gehalten werden. Bitte fragen Sie uns dazu. Bitte reichen Sie Ihren Vortrag auf
über die Konferenz-Website [2] ein bis zum 31.05.2012 ein. Wir entscheiden bis
zum 30. Juni 2012 über die Annahme der Vorträge.

[1] http://2012.de.pycon.org/news/2012/05/07/call-for-papers/
[2] http://2012.de.pycon.org/proposals/submit/talk/

PyCon DE 2012 - Call for Tutorials
==

The second PyCon DE will be held October 29 - November 3, 2012
in Leipzig, Germany. We ask you to submit your proposal for a tutorial [1].
Details of the call are below in German.

The conference language will be German. However, tutorials in English by
non-native German speakers will be accepted.


PyCon DE 2012 - Aufruf zu Tutorials
===

Wir rufen alle erfahrenen Python-Nutzer auf, Bewerbungen für Tutorials für die
PyCon DE 2012 einzureichen. Die Tutorials finden am 29. Oktober 2012 im Rahmen
der PyCon DE (http://de.pycon.org) statt. Ein Tutorial soll drei Stunden dauern.

Die Themen der Tutorials können Einführung in Python, fortgeschrittene Themen,
Web-Frameworks oder andere große Python-Bibliotheken sowie typische
Softwareentwicklungsarbeiten wie Testen oder Versionskontrolle mit Python sein.

Bitte reichen Sie Ihren Vorschlag bis zum 31. Mai 2012 über
Konferenz-Website [1] ein.

Der Vorschlag muss Folgendes enthalten:

* Titel
* Kurzbeschreibung des Inhaltes
* Zielgruppe (Anfänger, Fortgeschrittene, Experten)
* stichpunktartige Gliederung des Tutorials mit Zeitangaben zu den einzelnen
  Punkten (die Summe muss 180 Minuten betragen)

Jedes Tutorial umfasst zwei Blöcke mit je 90 Minuten mit einer halbstündigen
Pause. Eine Person kann Vorschläge

[issue15000] _posixsubprocess module broken on x32

2012-06-05 Thread Mike Frysinger

Mike Frysinger vap...@users.sourceforge.net added the comment:

a uint64_t would fix it for x86_64, but break it most 32bit systems as 
sizeof(unsigned long) == 32bit for them

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15000
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15000] posixsubprocess module broken on x32

2012-06-04 Thread Mike Frysinger

New submission from Mike Frysinger vap...@users.sourceforge.net:

the direct call to the getdents syscall is broken on x32.  there, the first two 
args are not unsigned long, but unsigned long long.  patch attached to fix the 
issue.

--
components: Extension Modules
files: python-3.2.3-x32.patch
keywords: patch
messages: 162281
nosy: vapier
priority: normal
severity: normal
status: open
title: posixsubprocess module broken on x32
versions: Python 3.2
Added file: http://bugs.python.org/file25819/python-3.2.3-x32.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15000
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15000] posixsubprocess module broken on x32

2012-06-04 Thread Mike Frysinger

Mike Frysinger vap...@users.sourceforge.net added the comment:

$ echo | gcc -m32 -E -P -dD - | grep LP
nothing
$ echo | gcc -m64 -E -P -dD - | grep LP
#define _LP64 1
#define __LP64__ 1
$ echo | gcc -mx32 -E -P -dD - | grep LP
#define _ILP32 1
#define __ILP32__ 1

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15000
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2012-06-04 Thread Mike Perry

Mike Perry m...@cogsmos.com added the comment:

Looking good in 3.2.3! Tested on Debian Wheezy using packages
python3-tk 3.2.3-1 and idle3 3.2.3~rc1-2.

/*
 * Mike Perry
 * m...@cogscom
 */

On Sun, May 27, 2012 at 4:10 PM, Terry J. Reedy rep...@bugs.python.org wrote:

 Terry J. Reedy tjre...@udel.edu added the comment:

 On Win 7, acntl-space brings up the box on all the latest releases: 2.7.3, 
 3.2.3, and 3.3.0a3. (These all come with recent tk 8.5.x.)

 Mike, please retest with 3.2.3 and specify os and tk version and exactly what 
 you entered if there is still a problem.

 --
 nosy: +terry.reedy
 versions:  -Python 3.1

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue1028
 ___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1028
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



PyCon DE 2012 - Today: Deadline for Talk and Tutorial Proposals

2012-05-31 Thread Mike Müller
Dear Pythonistas,

The last day of May marks the last chance to submit a talk
or tutorial proposal for PyCon DE 2012. Don't miss this chance
to speak at the largest gathering of the German-speaking
Python community.

Talks and tutorials in English are welcome if you are not
comfortable with German.

Please spread the word and let other, interested people know
about this deadline.

Cheers,
Mike


PyCon DE 2012 - Call for Papers
===

The second PyCon DE will be held October 29 - November 3, 2012
in Leipzig Germany. We ask you to submit your proposal for a talk [2].
Details of the call are below in German.

The conference language will be German. However, talks in English by
non-native German speakers will be accepted.


PyCon DE 2012 - Aufruf zur Vorträgen
=

Ab sofort kann jeder, der sich für Python interessiert, einen Vortragsvorschlag
für die PyCon DE 2012 einreichen [1]. Es gibt nur zwei Bedingungen: Das Thema
sollte interessant sein, und es sollte etwas mit Python zu tun haben. Für die
zweite Python-Konferenz sind wir an einer breiten Themenpalette interessiert,
die das ganze Spektrum der Entwicklung, Nutzung und Wirkung von Python zeigt.
Folgende Tracks sind geplant:

Python als Programmiersprache
-

* Fortgeschrittene Programmierung, zum Beispiel Metaprogramming
* CPython
* Python-Kernentwicklung
* Python-Implementierungen (PyPy,  Jython, IronPython)
* Python 3
* Zukünftige Entwicklungen

Webanwendungen mit Python
-

* Web-Frameworks für Python
* Best Practises für die Python-Programmierung
* Kombination von Python und JavaScript
* Contentmanagement mit Python

Anwendungsbereiche
--

* Wissenschaftliche Anwendungen mit Python
* Python für Finanz-Anwendungen
* Lehre mit Python / Python als erste Programmiersprache
* Python im Unternehmensumfeld
* Systemintegration mit Python
* Grafische Nutzerschnittstellen (GUIs)
* Datenbankanwendungen mit Python
* Python für die Hardware-Steuerung

Softwareentwicklung
---

* Testen von Python-Programmen
* Agile Entwicklung mit Python
* Algorithmen mit Python
* Datenstrukturen mit Python
* Design-Patterns mit Python
* Parallele Programmierung mit Python
* Einbetten von Python in andere Anwendungen

Werkzeuge
-

* Packaging von Python-Bibliotheken
* Deployment von Python-Anwendungen
* IDEs für Python
* Plattformen wie GAE, EC2

Python-Community


* Marketing für Python
* Python, Open Source und Entwickler-Gemeinschaft

Mehr ...


Ihr Themenbereich ist nicht aufgelistet, wäre aber aus Ihrer Sicht für die
PyCon DE interessant? Kein Problem. Reichen Sie Ihren Vortragsvorschlag einfach
ein. Auch wir können nicht alle Anwendungsbereiche von Python überschauen.
Vortragstage sind der 30. und 31. Oktober sowie der 1. November 2012.

Es gibt zwei Vortragsformate:

Standard-Vortrag -- 20 Minuten Vortrag + 5 Minuten Diskussion
Lang-Vortrag -- 45 Minuten Vortrag + 10 Minuten Diskussion

Die Vortragszeit wird strikt eingehalten. Bitte testen Sie die Länge Ihres
Vortrags. Lassen Sie gegebenenfalls ein paar Folien weg. Die Vortragssprache ist
Deutsch. In begründeten Ausnahmefällen können Vorträge auch auf Englisch
gehalten werden. Bitte fragen Sie uns dazu. Bitte reichen Sie Ihren Vortrag auf
über die Konferenz-Website [2] ein bis zum 31.05.2012 ein. Wir entscheiden bis
zum 30. Juni 2012 über die Annahme der Vorträge.

[1] http://2012.de.pycon.org/news/2012/05/07/call-for-papers/
[2] http://2012.de.pycon.org/proposals/submit/talk/

PyCon DE 2012 - Call for Tutorials
==

The second PyCon DE will be held October 29 - November 3, 2012
in Leipzig, Germany. We ask you to submit your proposal for a tutorial [1].
Details of the call are below in German.

The conference language will be German. However, tutorials in English by
non-native German speakers will be accepted.


PyCon DE 2012 - Aufruf zu Tutorials
===

Wir rufen alle erfahrenen Python-Nutzer auf, Bewerbungen für Tutorials für die
PyCon DE 2012 einzureichen. Die Tutorials finden am 29. Oktober 2012 im Rahmen
der PyCon DE (http://de.pycon.org) statt. Ein Tutorial soll drei Stunden dauern.

Die Themen der Tutorials können Einführung in Python, fortgeschrittene Themen,
Web-Frameworks oder andere große Python-Bibliotheken sowie typische
Softwareentwicklungsarbeiten wie Testen oder Versionskontrolle mit Python sein.

Bitte reichen Sie Ihren Vorschlag bis zum 31. Mai 2012 über
Konferenz-Website [1] ein.

Der Vorschlag muss Folgendes enthalten:

* Titel
* Kurzbeschreibung des Inhaltes
* Zielgruppe (Anfänger, Fortgeschrittene, Experten)
* stichpunktartige Gliederung des Tutorials mit Zeitangaben zu den einzelnen
  Punkten (die Summe muss 180 Minuten betragen)

Jedes Tutorial umfasst zwei Blöcke mit je 90 Minuten mit einer halbstündigen
Pause. Eine Person kann Vorschläge für zwei Tutorials

PyCon DE 2012 - Registration Open

2012-05-25 Thread Mike Müller
We are glad to announce that the registration for the second
PyCon DE [1] in Leipzig is open. You can now buy tickets [2]
at the early-bird rate until end of June before prices will
go up. Don't miss the opportunity to come the larges meeting
of the German-speaking Python community and secure your ticket
now.

If you plan not only to come but also to contribute, you can
submit a proposal for a talk or a tutorial [3]. A wide variety
of Python-related topics are welcome.

The second PyCon DE will be in Leipzig from October 29 through
November 3, 2012. One tutorial day, three days with talks and
two days with a barcamp, code retreat  and sprints will provide
different ways to communicate about Python. There will be social
events to give everybody ample opportunity to network with
like-minded Pythonistas.

Cheers,
Mike

[1] http://2012.de.pycon.org/
[2] http://2012.de.pycon.org/tickets/
[3] http://2012.de.pycon.org/proposals/submit/
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


Python for Programmers course - still some space

2012-05-25 Thread Mike Müller
There are still a couple of places left in our upcoming Python
course for programmers in the beginning of June.
Three intensive days of training with answers to your questions
about Python.


Python for Programmers
--

You know another programming language and would like to learn Python?
This course teaches you all the basics to write useful Python programs.
It is hands-on with plenty of exercises and also provides sound knowledge
how Python does things.

Date: 05.06.-07.06.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: English
Link: http://www.python-academy.com/courses/python_course_programmers.html


Other courses you might be interested in:


Python for Non-Programmers
--

Introduction to Python for participants without prior programming experience.
You need to know how to use a computer and be willing to learn a new ways to
tell the computer what to do.

Date: 04.06.-07.06.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: English
Link: http://www.python-academy.com/courses/python_course_nonprogrammers.html



Advanced Python
---

You would like to learn more about metaclasses, decorators, descriptors,
context managers, comprehensions, patterns and good Python programming
practices? This courses teaches all this with plenty of hands-on
examples that makes these, admittedly somewhat involved topics, accessibly
to everybody with intermediate Python experience.

Date: 08.06.-10.06.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: English
Link:
http://www.python-academy.com/courses/specialtopics/python_course_advanced.html


HPC with Python
---

High-Performance Computation with Python is the new kid in the
block. This course is designed to give you a solid foundation to
improve the run time of your Python programs and write efficient
algorithms. The ingredients are use of the right data structure
for the problem, extension in other languages, Cython and NumPy.

There five course that can be booked separately. See below for more
details.

Date: 11.06.-15.06.2012
Location: Leipzig, Germany
Trainer: Mike Müller, Stefan Behnel
Course Language: English
Link: http://www.python-academy.com/courses/python_course_high_performance.html


Optimizing of Python Programs
++

Learn how to profile programs, choose the right data structures
and algorithms for the right purpose and get some hands-on
experience in making Python programs faster with comparable
little modifications.

Python Extensions with Other Languages
++

Learn about options to connect Python to other languages starting
form Python's C-API and hand-written extensions the tour looks a
Cython, ctypes, SWIG, Jython, Ironpython, and even f2py to connect
with Fortran.

Fast Code with the Cython Compiler
++

In-depth coverage of Cython with Cython core developer Stefan Behnel.
No question about writing extensions and using external C libraries
with Cython should remain unanswered after this day.

Numerical Calculations with NumPy
+

NumPy is the way to work with multi-dimensional numerical arrays in
Python. It is fast and provides a high-level programmer interface.
This course day teaches you all the basics.

Fast NumPy Processing with Cython
+

Working with NumPy you need to avoid loops over arrays to make your
code fast. While NumPy provides indexing and other techniques to help
you here, some types of algorithms are easier expressed with loops.
Combining NumPy with Cython you can write fast loops.
Another topic is parallel programming with OpenMP to take advantage
of multi-core CPUs that become so common place these days.


Introduction to Django
--

This course is for beginners as well as for programmers who already have some
experience with Django.

You should have experience in an object-oriented programming language. Python
knowledge is ideal but not mandatory to get started. In addition, you should
have basic knowledge in web application development with databases.

Date: 15.10.-17.10.2012
Location: Leipzig, Germany
Trainer: Markus Zapke-Gründemann
Course Language: English
Link: http://www.python-academy.com/courses/django_course_introduction.html


Advanced Django
---

This course helps to deepen your Django knowledge in specific areas. An
existing application will be improved with new features such as an RSS feed or
a web service. In addition, we will look at the deployment of a Django project
in more depth.

Date: 18.10.-20.10.2012
Location: Leipzig, Germany
Trainer: Markus Zapke-Gründemann
Course Language: English
Link: http://www.python-academy.com/courses/django_course_advanced.html

Questions?
--

If you have any questions about the courses, please feel free to ask
me.

Cheers,
Mike
-- 
http://mail.python.org/mailman

Advanced Python Courses in Leipzig and Florence

2012-05-14 Thread Mike Müller
Advanced Python Courses in Leipzig and Florence
===

We offer our Advanced Python course [1] next month in Leipzig.
In addition, there will a one-day version on Saturday, July 7
in Florence [2]. This is just one day after the EuroPython talks.
The course will take place right at the conference venue.


Advanced Python
---

You would like to learn more about metaclasses, decorators, descriptors,
context managers, comprehensions, patterns and good Python programming
practices? This courses teaches all this with plenty of hands-on
examples that makes these, admittedly somewhat involved topics, accessibly
to everybody with intermediate Python experience.

Date: 08.06.-10.06.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: English
Link:
http://www.python-academy.com/courses/specialtopics/python_course_advanced.html

Questions?
--

If you have any questions about the courses, please feel free to ask
me.

Cheers,
Mike

[1] 
http://www.python-academy.com/courses/specialtopics/python_course_advanced.html
[2] https://ep2012.europython.eu/conference/talks/python-academy-training
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


PyCon DE 2012 - Call for Papers

2012-05-10 Thread Mike Müller
PyCon DE 2012 - Call for Papers
===

The second PyCon DE will be held October 29 - November 3, 2012
in Leipzig Germany. We ask you to submit your proposal for a talk [2].
Details of the call are below in German.

The conference language will be German. However, talks in English by
non-native German speakers will be accepted.


PyCon DE 2012 - Aufruf zur Vorträgen
=

Ab sofort kann jeder, der sich für Python interessiert, einen Vortragsvorschlag
für die PyCon DE 2012 einreichen [1]. Es gibt nur zwei Bedingungen: Das Thema
sollte interessant sein, und es sollte etwas mit Python zu tun haben. Für die
zweite Python-Konferenz sind wir an einer breiten Themenpalette interessiert,
die das ganze Spektrum der Entwicklung, Nutzung und Wirkung von Python zeigt.
Folgende Tracks sind geplant:

Python als Programmiersprache
-

* Fortgeschrittene Programmierung, zum Beispiel Metaprogramming
* CPython
* Python-Kernentwicklung
* Python-Implementierungen (PyPy,  Jython, IronPython)
* Python 3
* Zukünftige Entwicklungen

Webanwendungen mit Python
-

* Web-Frameworks für Python
* Best Practises für die Python-Programmierung
* Kombination von Python und JavaScript
* Contentmanagement mit Python

Anwendungsbereiche
--

* Wissenschaftliche Anwendungen mit Python
* Python für Finanz-Anwendungen
* Lehre mit Python / Python als erste Programmiersprache
* Python im Unternehmensumfeld
* Systemintegration mit Python
* Grafische Nutzerschnittstellen (GUIs)
* Datenbankanwendungen mit Python
* Python für die Hardware-Steuerung

Softwareentwicklung
---

* Testen von Python-Programmen
* Agile Entwicklung mit Python
* Algorithmen mit Python
* Datenstrukturen mit Python
* Design-Patterns mit Python
* Parallele Programmierung mit Python
* Einbetten von Python in andere Anwendungen

Werkzeuge
-

* Packaging von Python-Bibliotheken
* Deployment von Python-Anwendungen
* IDEs für Python
* Plattformen wie GAE, EC2

Python-Community


* Marketing für Python
* Python, Open Source und Entwickler-Gemeinschaft

Mehr ...


Ihr Themenbereich ist nicht aufgelistet, wäre aber aus Ihrer Sicht für die
PyCon DE interessant? Kein Problem. Reichen Sie Ihren Vortragsvorschlag einfach
ein. Auch wir können nicht alle Anwendungsbereiche von Python überschauen.
Vortragstage sind der 30. und 31. Oktober sowie der 1. November 2012.

Es gibt zwei Vortragsformate:

Standard-Vortrag -- 20 Minuten Vortrag + 5 Minuten Diskussion
Lang-Vortrag -- 45 Minuten Vortrag + 10 Minuten Diskussion

Die Vortragszeit wird strikt eingehalten. Bitte testen Sie die Länge Ihres
Vortrags. Lassen Sie gegebenenfalls ein paar Folien weg. Die Vortragssprache ist
Deutsch. In begründeten Ausnahmefällen können Vorträge auch auf Englisch
gehalten werden. Bitte fragen Sie uns dazu. Bitte reichen Sie Ihren Vortrag auf
über die Konferenz-Website [2] ein bis zum 31.05.2012 ein. Wir entscheiden bis
zum 30. Juni 2012 über die Annahme der Vorträge.

[1] http://2012.de.pycon.org/news/2012/05/07/call-for-papers/
[2] http://2012.de.pycon.org/proposals/submit/talk/
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[ANN] Leipzig Python User Group - Meeting, May 8, 2012, 08:00 p.m.

2012-05-07 Thread Mike Müller
=== Leipzig Python User Group ===

We will meet on Tuesday, May 8 at 8:00 p.m. at the training
center of Python Academy in Leipzig, Germany
( http://www.python-academy.com/center/find.html ).

Mike Müller (that's me ;)) will talk about matplotlib [1].
This library allows to create  2D Plots of high quality with
only a few lines of Python. The presentation will show the basic
principles with examples and the possibilities to create animations
and videos with matplotlib.

Everybody who uses Python, plans to do so or is interested in
learning more about the language is encouraged to participate.

While the meeting language will be mainly German, we will provide
English translation if needed.

Food and soft drinks are provided. Please send a short
confirmation mail to i...@python-academy.de, so we can prepare
appropriately.

Current information about the meetings are at
http://www.python-academy.com/user-group .

Mike


[1] http://matplotlib.sourceforge.net/

== Leipzig Python User Group ===

Wir treffen uns am Dienstag, 08.05.2012 um 20:00 Uhr
im Schulungszentrum der Python Academy in Leipzig
( http://www.python-academy.de/Schulungszentrum/anfahrt.html ).

Mike Müller (also ich ;) wird matplotlib [1] vorstellen. Mit dieser
Bibliothek lassen sich 2D-Plots in hoher Qualität mit wenigen Zeilen
Python erzeugen. Der Vortrag zeigt die grundlegende Wirkungsweise
mit Beispielen und welche Möglichkeiten matpotlib für Animationen und
Videos bietet.

Willkommen ist jeder, der Interesse an Python hat, die Sprache
bereits nutzt oder nutzen möchte.

Für das leibliche Wohl wird gesorgt. Eine Anmeldung unter
i...@python-academy.de wäre nett, damit wir genug Essen
besorgen können.

Aktuelle Informationen zu den Treffen sind unter
http://www.python-academy.de/User-Group zu finden.

Viele Grüße
Mike

[1] http://matplotlib.sourceforge.net/
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue13697] python RLock implementation unsafe with signals

2012-05-07 Thread Mike Meyer

Mike Meyer m...@mired.org added the comment:

I just ran into this issue in the logging module using 2.7. Here's the TB in
case it sheds any light on the issue

Traceback (most recent call last):
  File ./crawler.py, line 531, in module
main(argv[1:]1:)
  File ./crawler.py, line 522, in main
MCP(config).run()
  File ./crawler.py, line 332, in run
self.reaper()
  File ./crawler.py, line 359, in reaper
logging.debug('MCP process alive: %s', state)
  File /usr/local/lib/python2.7/logging/__init__.py, line 1600, in debug
root.debug(msg, *args, **kwargs)
  File /usr/local/lib/python2.7/logging/__init__.py, line 1120, in debug
self._log(DEBUG, msg, args, **kwargs)
  File /usr/local/lib/python2.7/logging/__init__.py, line 1250, in _log
self.handle(record)
  File /usr/local/lib/python2.7/logging/__init__.py, line 1260, in handle
self.callHandlers(record)
  File /usr/local/lib/python2.7/logging/__init__.py, line 1300, in 
callHandlers
hdlr.handle(record)
  File /usr/local/lib/python2.7/logging/__init__.py, line 746, in handle
self.release()
  File /usr/local/lib/python2.7/logging/__init__.py, line 700, in release
self.lock.release()
  File /usr/local/lib/python2.7/threading.py, line 147, in release
self.__block.release()
thread.error: release unlocked lock

Since I'm not using threads, getting thread errors was a little bit of
a surprise. I guess trying to make the logging module thread safe
added a potential bug.

--
nosy: +Mike.Meyer

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13697
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13032] h2py.py can fail with UnicodeDecodeError

2012-05-02 Thread Mike Gilbert

Changes by Mike Gilbert floppymas...@gmail.com:


--
nosy: +floppymaster

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13032
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12776] argparse: type conversion function should be called only once

2012-05-02 Thread Mike Meyer

Mike Meyer m...@mired.org added the comment:

I've just verified that this patch also fixes 13824 and 11839.
The attached patchfile adds a test to verify that using a non-existent default 
file fails if you don't specify the argument, and succeeds if you do.

Could someone please apply it?

--
nosy: +Mike.Meyer
Added file: http://bugs.python.org/file25438/fopatch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12776
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12776] argparse: type conversion function should be called only once

2012-05-02 Thread Mike Meyer

Mike Meyer m...@mired.org added the comment:

Sorry - got ahead of myself. It doesn't fix 13824. A deeper reading reveals 
that the problem wasn't quite what I thought it on first glance.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12776
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11839] argparse: unexpected behavior of default for FileType('w')

2012-05-02 Thread Mike Meyer

Mike Meyer m...@mired.org added the comment:

Steven - 12776 indeed fixes this issue. I applied the patch from it to a build 
of todays checkout, verified that my simple test script worked, then wrote some 
test cases for test_argparse.

I've uploaded the patch for that test to both issues. I can't close this as a 
duplicate, though.

--
nosy: +Mike.Meyer
Added file: http://bugs.python.org/file25439/fopatch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11839
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14623] Shutdown exception in daemon thread

2012-04-19 Thread Mike Hobbs

New submission from Mike Hobbs mho...@8thbridge.com:

This issue is very similar to the issue original reported in issue1722344, 
except that it occurs in daemon threads. Here's a sample exception:

Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File /usr/local/lib/python2.7/threading.py, line 552, in __bootstrap_inner
  File /usr/local/lib/python2.7/threading.py, line 505, in run
  File /opt/8b/libr8/eb/util/graphite.py, line 86, in run
  File /usr/local/lib/python2.7/Queue.py, line 168, in get
  File /usr/local/lib/python2.7/threading.py, line 237, in wait
type 'exceptions.TypeError': 'NoneType' object is not callable

Investigating line 237 in threading.py shows that RuntimeError must have been 
set to None. The issue appears to be that Py_Finalize wipes all globals while 
there are still daemon threads running. Would it be correct to terminate daemon 
threads prior to wiping the globals, since the threads won't be able to 
accomplish much anyway?

--
components: Interpreter Core
messages: 158746
nosy: mhobbs
priority: normal
severity: normal
status: open
title: Shutdown exception in daemon thread
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14623
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ANN] Leipzig Python User Group - Meeting, April 10, 2012, 08:00 p.m.

2012-04-09 Thread Mike Müller
=== Leipzig Python User Group ===

We will meet on Tuesday, April 10 at 8:00 p.m. at the training
center of Python Academy in Leipzig, Germany
( http://www.python-academy.com/center/find.html ).

Everybody who uses Python, plans to do so or is interested in
learning more about the language is encouraged to participate.

While the meeting language will be mainly German, we will provide
English translation if needed.

Food and soft drinks are provided. Please send a short
confirmation mail to i...@python-academy.de, so we can prepare
appropriately.

Current information about the meetings are at
http://www.python-academy.com/user-group .

Mike


== Leipzig Python User Group ===

Wir treffen uns am Dienstag, 10.04.2012 um 20:00 Uhr
im Schulungszentrum der Python Academy in Leipzig
( http://www.python-academy.de/Schulungszentrum/anfahrt.html ).

Willkommen ist jeder, der Interesse an Python hat, die Sprache
bereits nutzt oder nutzen möchte.


Für das leibliche Wohl wird gesorgt. Eine Anmeldung unter
i...@python-academy.de wäre nett, damit wir genug Essen
besorgen können.

Aktuelle Informationen zu den Treffen sind unter
http://www.python-academy.de/User-Group zu finden.

Viele Grüße
Mike
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[ANN] Leipzig Python User Group - Meeting, March 20, 2012, 08:00 p.m.

2012-03-20 Thread Mike Müller
=== Leipzig Python User Group ===

We will meet on Tuesday, March 20 at 8:00 p.m. at the training
center of Python Academy in Leipzig, Germany
( http://www.python-academy.com/center/find.html ).

Everybody who uses Python, plans to do so or is interested in
learning more about the language is encouraged to participate.

We will continue to work on our project Python macht Schule [1]
creating Python teaching material for kids.

While the meeting language will be mainly German, we will provide
English translation if needed.

Food and soft drinks are provided. Please send a short
confirmation mail to i...@python-academy.de, so we can prepare
appropriately.

Current information about the meetings are at
http://www.python-academy.com/user-group .

Mike

[1] https://bitbucket.org/PySV/python_macht_schule


== Leipzig Python User Group ===

Wir treffen uns am Dienstag, 20.03.2012 um 20:00 Uhr
im Schulungszentrum der Python Academy in Leipzig
( http://www.python-academy.de/Schulungszentrum/anfahrt.html ).

Willkommen ist jeder, der Interesse an Python hat, die Sprache
bereits nutzt oder nutzen möchte.

Wir werden weiter an unserem Projekt Python macht Schule [1]
arbeiten. Dabei geht es darum Materialien für Kinder zum Erlernen
von Python zu erarbeiten.

Für das leibliche Wohl wird gesorgt. Eine Anmeldung unter
i...@python-academy.de wäre nett, damit wir genug Essen
besorgen können.

Aktuelle Informationen zu den Treffen sind unter
http://www.python-academy.de/User-Group zu finden.

Viele Grüße
Mike

[1] https://bitbucket.org/PySV/python_macht_schule
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue3754] cross-compilation support for python build

2012-03-15 Thread Mike Frysinger

Changes by Mike Frysinger vap...@users.sourceforge.net:


--
nosy: +vapier

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3754
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Python for Non-Programmers

2012-03-06 Thread Mike Müller
Python for Non-Programmers
==

Python is well suited as a programming languages for people who
haven't used any other programming language before. Since there
are fewer things to worry about compared to a languages like C,
C++ or Java, you get things done faster and learning how to program
with Python is much more rewarding.

We offer two new Python courses, one in German and one in English,
for non-programmers:

Python für Nicht-Programmierer, 15.04.-18.04.2012, Leipzig
Python for Non-Programmers, 04.06.-07.06.2012, Leipzig

See below for course details.

Python für Nicht-Programmierer
--

The German version of our Python course explicitly designed for
participants without any programming background.

Date: 15.04.-18.04.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: German
Link: http://www.python-academy.de/Kurse/python_kurs_nichtprogrammierer.html

Python für Programmierer


The German version of our Python introduction for people who
know programming. Learn how to write pythonic programs from day one.

Date: 16.04.-18.04.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: German
Link: http://www.python-academy.de/Kurse/python_kurs_programmierer.html


Python für Wissenschaftler und Ingenieure
-

German engineers do use Python to construct cars, for example.
In this course they can learn how to leverage import Python
libraries for this.

Date: 19.04.-21.04.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: German
Link: http://www.python-academy.de/Kurse/python_kurs_wissenschaftler.html


Einstieg in Django
--

Learn Django, the famous Python web framework. This course starts at the
beginning; no prior Django knowlegde required.

Date: 23.04.-25.04.2012
Location: Leipzig, Germany
Trainer: Markus Zapke-Gründemann
Course Language: German
Link: http://www.python-academy.de/Kurse/django_kurs_einstieg.html


Django für Fortgeschrittene
---

You would like to get deeper into Django? This course provides advanced
concepts. Ask the Django expert your specific questions.

Date: 26.04.-27.04.2012
Location: Leipzig, Germany
Trainer: Markus Zapke-Gründemann
Course Language: German
Link: http://www.python-academy.de/Kurse/django_kurs_fortgeschrittene.html



Python for Non-Programmers
--

Introduction to Python for participants without prior programming experience.
You need to know how to use a computer and be willing to learn a new ways to
tell the computer what to do.

Date: 04.06.-07.06.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: English
Link: http://www.python-academy.com/courses/python_course_nonprogrammers.html

Python for Programmers
--

You know another programming language and would like to learn Python?
This course teaches you all the basics to write useful Python programs.
It is hands-on with plenty of exercises and also provides sound knowledge
how Python does things.

Date: 05.06.-07.06.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: English
Link: http://www.python-academy.com/courses/python_course_programmers.html


Advanced Python
---

You would like to learn more about metaclasses, decorators, descriptors,
context managers, comprehensions, patterns and good Python programming
practices? This courses teaches all this with plenty of hands-on
examples that makes these, admittedly somewhat involved topics, accessibly
to everybody with intermediate Python experience.

Date: 08.06.-10.06.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: English
Link:
http://www.python-academy.com/courses/specialtopics/python_course_advanced.html


HPC with Python
---

High-Performance Computation with Python is the new kid in the
block. This course is designed to give you a solid foundation to
improve the run time of your Python programs and write efficient
algorithms. The ingredients are use of the right data structure
for the problem, extension in other languages, Cython and NumPy.

There five course that can be booked separately. See below for more
details.

Date: 11.06.-15.06.2012
Location: Leipzig, Germany
Trainer: Mike Müller, Stefan Behnel
Course Language: English
Link: http://www.python-academy.com/courses/python_course_high_performance.html


Optimizing of Python Programs
++

Learn how to profile programs, choose the right data structures
and algorithms for the right purpose and get some hands-on
experience in making Python programs faster with comparable
little modifications.

Python Extensions with Other Languages
++

Learn about options to connect Python to other languages starting
form Python's C-API and hand-written extensions the tour looks a
Cython, ctypes, SWIG, Jython, Ironpython, and even f2py

PyCon DE 2012 - October 29 - November 3, 2012 in Leipzig

2012-02-17 Thread Mike Müller
Hi everybody,

The second PyCon DE [1] will be in Leipzig again. We will have six days packed
with Python topics from October 29 through November 3, 2012. One tutorial day,
three days with talks and two days with a barcamp and sprints will provide a
variety of types to communicate about Python. There will be social events to
give everybody ample opportunity to network with like-minded Pythonistas.

PyCon DE 2011 [2] in Leipzig was a great success. Virtually everybody of the
200 participants was enthusiastic about the conference. We strive to keep up
the good work and to improve on a few points we got in the feedback.

Mark your calendars. More details will be available soon.

The event is intended to bring the German speaking Python users together.
However, talks in English can be submitted by people who's native language is
not German.


-- 
Mike Müller on behave of the PyCon DE organizing teams


[1] http://2012.de.pycon.org/
[2] http://2011.de.pycon.org/
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[ANN] Leipzig Python User Group - Meeting, February 14, 2012, 08:00 p.m.

2012-02-13 Thread Mike Müller
=== Leipzig Python User Group ===

We will meet on Tuesday, February 14 at 8:00 p.m. at the training
center of Python Academy in Leipzig, Germany
( http://www.python-academy.com/center/find.html ).

Everybody who uses Python, plans to do so or is interested in
learning more about the language is encouraged to participate.

While the meeting language will be mainly German, we will provide
English translation if needed.

Food and soft drinks are provided. Please send a short
confirmation mail to i...@python-academy.de, so we can prepare
appropriately.

Current information about the meetings are at
http://www.python-academy.com/user-group .

Mike

== Leipzig Python User Group ===

Wir treffen uns am Dienstag, 14.02.2012 um 20:00 Uhr
im Schulungszentrum der Python Academy in Leipzig
( http://www.python-academy.de/Schulungszentrum/anfahrt.html ).

Willkommen ist jeder, der Interesse an Python hat, die Sprache
bereits nutzt oder nutzen möchte.

Für das leibliche Wohl wird gesorgt. Eine Anmeldung unter
i...@python-academy.de wäre nett, damit wir genug Essen
besorgen können.

Aktuelle Informationen zu den Treffen sind unter
http://www.python-academy.de/User-Group zu finden.

Viele Grüße
Mike

















-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


Re: XSLT to Python script conversion?

2012-02-13 Thread Mike C. Fletcher

On 12-02-13 06:20 AM, Matej Cepl wrote:

Hi,

I am getting more and more discouraged from using XSLT for a 
transformation from one XML scheme to another one. Does anybody could 
share any experience with porting moderately complicated XSLT 
stylesheet 
(https://gitorious.org/sword/czekms-csp_bible/blobs/master/CEP2OSIS.xsl) 
into a Python script using ElementTree's interparse or perhaps xml.sax?


Any tools for this? Speed differences (currently I am using xsltproc)? 
Any thoughts?


Thank you,

Matěj
I wound up rewriting the Docbook to XSL transformation for PyOpenGL's 
docs in Python using lxml.etree and Kid (now reworked to use Genshi).  
However, that was a fairly direct translation, it has only a handful of 
strategies for transforming nodes from docbook to xhtml.  That said, it 
took our processing time down from 
so-long-I-just-didn't-want-to-work-on-the-docs down to 
regenerate-whenever-I-make-a-trivial-change.


http://bazaar.launchpad.net/~mcfletch/pyopengl/directdocs/files 
http://bazaar.launchpad.net/%7Emcfletch/pyopengl/directdocs/files


Is the repository where the project lives.  It *also* does a lot of 
other processing, but the generate.py, model.py and 
templates/section.kid files are all you need to look at to understand 
the docbook processing.


HTH,
Mike

--

  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://www.vrplumber.com
  http://blog.vrplumber.com

--
http://mail.python.org/mailman/listinfo/python-list


[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2012-02-12 Thread Mike Perry

Mike Perry m...@cogsmos.com added the comment:

Hello,

I am still able to reproduce this issue with Python 3.2.2. It seems as if this 
bug was closed with a the note:

r70039 3.1 forward ported  3.2  default.  Will be in 3.2.1.

This leads me to believe that either 3.2.2 has a regression or the patch never 
made it into 3.2.1. 

Can anyone chime in with some more details?

Thanks,

Mike

--
nosy: +Mike.Perry

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1028
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2012-02-12 Thread Mike Perry

Mike Perry m...@cogsmos.com added the comment:

Figured I should capture the exception. See below.

3.2.2+ (default, Jan  8 2012, 07:22:26) 
[GCC 4.6.2]

Traceback (most recent call last):
  File /usr/bin/idle3, line 5, in module
main()
  File /usr/lib/python3.2/idlelib/PyShell.py, line 1429, in main
root.mainloop()
  File /usr/lib/python3.2/tkinter/__init__.py, line 1012, in mainloop
self.tk.mainloop(n)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc0 in position 0: invalid 
start byte

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1028
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13198] Remove duplicate definition of write_record_file

2012-02-10 Thread Mike Hoy

Mike Hoy mho...@gmail.com added the comment:

I am unable to work on this issue at this time.

On Thu, Feb 9, 2012 at 8:57 PM, Éric Araujo rep...@bugs.python.org wrote:


 Éric Araujo mer...@netwok.org added the comment:

 Mike, if you don’t have the time to finish this shortly, I will do it, as
 I need this fixed for another bug.  Just let me know if you’d like to do it.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue13198
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13198
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Matplotlib and optimization tutorials at PyCon US

2012-01-25 Thread Mike Müller
Hi,

I will be giving a matplotlib and a optimization tutorial
at PyCon in March.

The first tutorial is a compact introduction to matplotlib.

The optimization tutorial gives an overview over this topic.

BTW, the early bird deadline is today.

Mike



Plotting with matplotlib


Instructor: Mike Müller
Type:Tutorial
Audience level:Novice
Category:Useful libraries
March 8th 9 a.m. – 12:20 p.m.
https://us.pycon.org/2012/schedule/presentation/238/

When it comes to plotting with Python many people think about matplotlib. It is
widely used and provides a simple interface for creating a wide variety of
plots from very simple diagrams to sophisticated animations. This tutorial is a
hands-on introduction that teaches the basics of matplotlib. Students will
learn how to create publication-ready plots with just a few lines of Python.



Faster Python Programs through Optimization
---

Instructor: Mike Müller
Type:Tutorial
Audience level:Experienced
Category:Best Practices/Patterns
March 7th 9 a.m. – 12:20 p.m.
https://us.pycon.org/2012/schedule/presentation/245/

This tutorial provides an overview of techniques to improve the performance of
Python programs. The focus is on concepts such as profiling, difference of data
structures and algorithms as well as a selection of tools and libraries that
help to speed up Python.
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


Course Python for Scientists and Engineers in Chicago

2012-01-24 Thread Mike Müller
Course Python for Scientists and Engineers in Chicago
===

There will be a comprehensive Python course for scientists and engineers
in Chicago end of February / beginning of March 2012. It consists of a 3-day
intro and a 2-day advanced section. Both sections can be taken separately
or combined.

More details below and here: http://www.dabeaz.com/chicago/science.html

Please let friends or colleagues who might be interested in such a
course know about it.


3-Day Intro Section
---

- Overview of Scientific and Technical Libraries for Python.
- Numerical Calculations with NumPy
- Storage and Processing of Large Amounts of Data
- Graphical Presentation of Scientific Data with matplotlib
- Object Oriented Programming for Scientific and Technical Projects
- Open Time for Problem Solving


2-Day Advanced Section
--

- Extending Python with Other Languages
- Unit Testing
- Version Control with Mercurial


The Details
---

The course is hosted by David Beazley (http://www.dabeaz.com).

Date: Feb 27 - Mar 2, 2012
Location: Chicago, IL, USA
Trainer: Mike Müller
Course Language: English
Link: http://www.dabeaz.com/chicago/science.html
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


Re: subprocess module and long-lived subprocesses

2012-01-20 Thread Mike C. Fletcher
On 12-01-20 09:42 AM, s...@pobox.com wrote:
 I'm converting some os.popen calls to use subprocess.Popen.  I had
 previously been ignoring stdout and stderr when using os.popen.  The primary
 motivation to switch to subprocess.Popen now is that I now want to check
 stderr, so would have to make code changes to use os.popen[34] anyway.
 Might as well go whole hog and switch to the new API.

 The library documentation doesn't talk a lot about long-lived subprocesses
 other than the possibility of deadlock when using Popen.wait().  Ideally, I
 would write to the subprocess's stdin, check for output on stdout and
 stderr, then lather, rinse, repeat.  Is it safe to assume that if the stdout
 and/or stderr pipes have nothing for me the reads on those file objects (I'm
 using PIPE for all three std* files) will return immediately with an empty
 string for output?  They won't block, will they?  Will a broken pipe IOError
 get raised as for os.popen() or do I have to call Popen.poll() even in error
 situations?

 Thanks,

Definitely *will* block, you have to explicitly set them non-blocking to
have non-blocking behaviour:

def set_nb( fh ):
Set non-blocking flag on given file handle
if isinstance( fh, int ) or hasattr( fh, 'fileno' ):
flags = fcntl.fcntl(fh, fcntl.F_GETFL)
fcntl.fcntl(fh, fcntl.F_SETFL, flags| os.O_NONBLOCK)

on each of the 3 buffers, then you need to attempt read/write on each of
them periodically, catching the EWOULDBLOCK errors, to prevent deadlocks
where the buffers have filled up (e.g. because the subprocess is
printing out errors on stderr, or because it is generating output, or
because for some reason the process isn't reading your input fast
enough).  I think everyone winds up with their own wrapper around
subprocess after they use it for more than a short period...

HTH,
Mike

-- 

  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://www.vrplumber.com
  http://blog.vrplumber.com

-- 
http://mail.python.org/mailman/listinfo/python-list


[issue9631] Python 2.7 installation issue for Linux gcc-4.1.0-3 (Fedora Core 5?)

2012-01-19 Thread mike

mike mikaelpetters...@gmail.com added the comment:

Hi,

I downloaded source and did the following instructions.


We use Red Hat Enterprise Linux Server release 5.5.

./configure --prefix=/home/mike/python_rh_32
make
make install

I also changed the line in site.py

from:

s = os.path.join(os.path.dirname(sys.path.pop()), s)

to:

s = os.path.join(os.path.dirname(sys.path[-1]), s)

but I still get:

/usr/bin/install -c -m 644 ./LICENSE 
/home/mike/python_rh_32/lib/python2.7/LICENSE.txt
PYTHONPATH=/home/mike/python_rh_32/lib/python2.7   \
./python -Wi -tt 
/home/mike/python_rh_32/lib/python2.7/compileall.py \
-d /home/mike/python_rh_32/lib/python2.7 -f \
-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
/home/mike/python_rh_32/lib/python2.7
Traceback (most recent call last):
  File /home/mike/python_rh_32/lib/python2.7/compileall.py, line 16, in 
module
import struct
  File /home/mike/python_rh_32/lib/python2.7/struct.py, line 1, in module
from _struct import *
ImportError: No module named _struct
make: *** [libinstall] Error 1


Did anyone slove this problem?

--
nosy: +eraonel

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9631
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



SQLAlchemy and Camelot Trainings in Germany

2012-01-13 Thread Mike Müller
Get up to Speed with SQLAlchemy and More


SQLAlchemy is a great library that combines the power of
Python with the well-establish world of relational databases
in a powerful manner.

If you would like to learn more about SQLAlchemy, you might be
interested in our course in Germany.
This course is followed by a Camelot course. Camelot uses
SQLAlchemy for building rich desktop applications.

If you would like to improve your Python knowledge before taking
these courses, we recommend our Python for Programmers course
that you can attend just before the SQLAlchemy course.

All three courses can be booked separately or combined.

See below for details.

Mike



SQLAlchemy Course
-

One-day in-depth SQLAlchemy training with guest trainer Erik Janssens.

Date: 09.02.2012
Location: Leipzig, Germany
Trainer: Erik Janssens
Course Language: English
Link:
http://www.python-academy.com/courses/specialtopics/python_course_sqlalchemy.html


Camelot Course
--

Camelot (http://www.python-camelot.com/) is an open source RAD framework
for rich desktop applications. Basic ingredients are Python, SQLAlchemy
and Qt. This course is best combined with the SQLAlchemy course just the
day before (see above). The course is presented by guest trainer and
Camelot expert Erik Janssens.

Date: 10.02.2012
Location: Leipzig, Germany
Trainer: Erik Janssens
Course Language: English
Link:
http://www.python-academy.com/courses/specialtopics/python_course_camelot.html


Python for Programmers
--

You know another programming language and would like to learn Python?
This course teaches you all the basics to write useful Python programs.
It is hands-on with plenty of exercises and also provides sound knowledge
how Python does things.

Date: 06.02.-08.02.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: English
Link: http://www.python-academy.com/courses/python_course_programmers.html
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


Re: ERROR:root:code for hash md5 was not found

2012-01-13 Thread mike
On Jan 13, 5:41 am, alex23 wuwe...@gmail.com wrote:
 On Jan 13, 1:34 pm, Steven D'Aprano steve

 +comp.lang.pyt...@pearwood.info wrote:
  What is pysibelius? I can't find it on the web. Does it have anything to
  do with Sibelius the music composition software?

 Yes, please provide more information about the pysibelius package,
 especially if this is the case.

 The few tenuous Python/Sibelius links I found didn't have anything on
 pysibelius, unfortunately.

Hi,

pysibelius is a lib that we use.

I am not sure that is the problem since the python program works on
SuSE but not on RH server. And AFAIK
the only difference ( well that I can see) is the OpenSSL version.

According to code it uses openssl:

built-in function openssl_md5

So I need to find a way to convince the linux sys admin to install
same version of openssl on both servers.

Thanks a lot for your valuable time.

//mike
-- 
http://mail.python.org/mailman/listinfo/python-list


ERROR:root:code for hash md5 was not found

2012-01-11 Thread mike
Hi,

We are running are running Python program on Redhat 5.5.

When executing our program we get the following error ( see below).

Any ideas what this is due to?

br,

//mike

/pysibelius/lib/common/
DataTypes.py
Overwriten ...
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File /python/lib/python2.7/hashlib.py, line 139, in module
globals()[__func_name] = __get_hash(__func_name)
  File /python/lib/python2.7/hashlib.py, line 91, in
__get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ERROR:root:code for hash md5 was not found

2012-01-11 Thread mike
On Jan 12, 12:28 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
 On Wed, 11 Jan 2012 05:54:29 -0800, mike wrote:
  I did some more digging and found that our class imports a yacc.py
  that uses

  import re, types, sys, cStringIO, hashlib, os.path

  so it has hashlib.

  yacc.py seems to be an old version 1.3 ( I found 2.3 --).

  Reading about hashlib it seems to be dependent on os installation of
  OpenSSL but I cannot find out how.

 It shouldn't be. It will use OpenSSL if available, otherwise it will fall
 back on its own code.

  br,

  //mike

  yacc.py
  ===

 #-
  # ply: yacc.py

 [snip over TWO THOUSAND lines of code]

 Mike, what lead you to believe that an error in hashlib could be solved
 by posting the ENTIRE two thousand lines of yacc.py? Please do not post
 such huge chunks of code unless asked. It is unnecessary and annoying.

 Try this. Open a terminal window and enter python at the prompt to
 start a clean interactive session. Then enter the following commands:

 import sys
 print(sys.version)
 import hashlib
 print(hashlib.__file__)
 print(hashlib.md5)
 import _md5
 print(_md5.__file__)

 and copy and paste (do not retype) the full output of these commands.

 Thank you.

 --
 Steven

Hi,

Sorry for posting huge file. I added your copy-paste snippet.

esekilx5030 [7:09am] [roamFroBl/pysibelius/bin] - python
Python 2.7.2 (default, Jun 16 2011, 15:05:49)
[GCC 4.5.0] on linux2
Type help, copyright, credits or license for more information.
 import sys
print(sys.version)
import hashlib
print(hashlib.__file__)
print(hashlib.md5)
import _md5
print(_md5.__file__)  2.7.2 (default, Jun 16 2011, 15:05:49)
[GCC 4.5.0]
 ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
hashlib.py, line 139, in module
globals()[__func_name] = __get_hash(__func_name)
  File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
hashlib.py, line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
  File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
hashlib.py, line 139, in module
globals()[__func_name] = __get_hash(__func_name)
  File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
hashlib.py, line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
  File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
hashlib.py, line 139, in module
globals()[__func_name] = __get_hash(__func_name)
  File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
hashlib.py, line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
  File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
hashlib.py, line 139, in module
globals()[__func_name] = __get_hash(__func_name)
  File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
hashlib.py, line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
  File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
hashlib.py, line 139, in module
globals()[__func_name] = __get_hash(__func_name)
  File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
hashlib.py, line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
  File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
hashlib.py, line 139, in module
globals()[__func_name] = __get_hash(__func_name)
  File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
hashlib.py, line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha512
 /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/hashlib.pyc
 Traceback (most recent call last):
  File stdin, line 1, in module
AttributeError: 'module' object has no attribute 'md5'
 Traceback (most recent call last):
  File stdin, line 1, in module
ImportError: No module named _md5

Thanks for support!

//mike
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ERROR:root:code for hash md5 was not found

2012-01-11 Thread mike
On Jan 12, 7:13 am, mike mikaelpetters...@gmail.com wrote:
 On Jan 12, 12:28 am, Steven D'Aprano steve









 +comp.lang.pyt...@pearwood.info wrote:
  On Wed, 11 Jan 2012 05:54:29 -0800, mike wrote:
   I did some more digging and found that our class imports a yacc.py
   that uses

   import re, types, sys, cStringIO, hashlib, os.path

   so it has hashlib.

   yacc.py seems to be an old version 1.3 ( I found 2.3 --).

   Reading about hashlib it seems to be dependent on os installation of
   OpenSSL but I cannot find out how.

  It shouldn't be. It will use OpenSSL if available, otherwise it will fall
  back on its own code.

   br,

   //mike

   yacc.py
   ===

  #-
   # ply: yacc.py

  [snip over TWO THOUSAND lines of code]

  Mike, what lead you to believe that an error in hashlib could be solved
  by posting the ENTIRE two thousand lines of yacc.py? Please do not post
  such huge chunks of code unless asked. It is unnecessary and annoying.

  Try this. Open a terminal window and enter python at the prompt to
  start a clean interactive session. Then enter the following commands:

  import sys
  print(sys.version)
  import hashlib
  print(hashlib.__file__)
  print(hashlib.md5)
  import _md5
  print(_md5.__file__)

  and copy and paste (do not retype) the full output of these commands.

  Thank you.

  --
  Steven

 Hi,

 Sorry for posting huge file. I added your copy-paste snippet.

 esekilx5030 [7:09am] [roamFroBl/pysibelius/bin] - python
 Python 2.7.2 (default, Jun 16 2011, 15:05:49)
 [GCC 4.5.0] on linux2
 Type help, copyright, credits or license for more information. 
 import sys

 print(sys.version)
 import hashlib
 print(hashlib.__file__)
 print(hashlib.md5)
 import _md5
 print(_md5.__file__)  2.7.2 (default, Jun 16 2011, 15:05:49)
 [GCC 4.5.0] ERROR:root:code for hash md5 was not found.

 Traceback (most recent call last):
   File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
 hashlib.py, line 139, in module
     globals()[__func_name] = __get_hash(__func_name)
   File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
 hashlib.py, line 91, in __get_builtin_constructor
     raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type md5
 ERROR:root:code for hash sha1 was not found.
 Traceback (most recent call last):
   File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
 hashlib.py, line 139, in module
     globals()[__func_name] = __get_hash(__func_name)
   File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
 hashlib.py, line 91, in __get_builtin_constructor
     raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type sha1
 ERROR:root:code for hash sha224 was not found.
 Traceback (most recent call last):
   File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
 hashlib.py, line 139, in module
     globals()[__func_name] = __get_hash(__func_name)
   File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
 hashlib.py, line 91, in __get_builtin_constructor
     raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type sha224
 ERROR:root:code for hash sha256 was not found.
 Traceback (most recent call last):
   File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
 hashlib.py, line 139, in module
     globals()[__func_name] = __get_hash(__func_name)
   File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
 hashlib.py, line 91, in __get_builtin_constructor
     raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type sha256
 ERROR:root:code for hash sha384 was not found.
 Traceback (most recent call last):
   File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
 hashlib.py, line 139, in module
     globals()[__func_name] = __get_hash(__func_name)
   File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
 hashlib.py, line 91, in __get_builtin_constructor
     raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type sha384
 ERROR:root:code for hash sha512 was not found.
 Traceback (most recent call last):
   File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
 hashlib.py, line 139, in module
     globals()[__func_name] = __get_hash(__func_name)
   File /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/
 hashlib.py, line 91, in __get_builtin_constructor
     raise ValueError('unsupported hash type %s' % name)
 ValueError: unsupported hash type sha512 
 /vobs/rnc/rrt/roam1/roamSs/roamFroBl/python/lib/python2.7/hashlib.pyc
  Traceback (most recent call last):

   File stdin, line 1, in module
 AttributeError: 'module' object has no attribute 'md5' Traceback (most 
 recent call last):

   File stdin, line 1, in module
 ImportError: No module named _md5

 Thanks for support!

 //mike

Hi,

I did some more testing.

The python 2.7.2 lib is stored

[ANN] Leipzig Python User Group - Meeting, January 10, 2012, 08:00pm

2012-01-09 Thread Mike Müller
=== Leipzig Python User Group ===

We will meet on Tuesday, January 10 at 8:00 pm at the training
center of Python Academy in Leipzig, Germany
( http://www.python-academy.com/center/find.html ).

Everybody who uses Python, plans to do so or is interested in
learning more about the language is encouraged to participate.

While the meeting language will be mainly German, we will provide
English translation if needed.

Food and soft drinks are provided. Please send a short
confirmation mail to i...@python-academy.de, so we can prepare
appropriately.

Current information about the meetings are at
http://www.python-academy.com/user-group .

Mike

== Leipzig Python User Group ===

Wir treffen uns am Dienstag, 10.01.2012 um 20:00 Uhr
im Schulungszentrum der Python Academy in Leipzig
( http://www.python-academy.de/Schulungszentrum/anfahrt.html ).

Willkommen ist jeder, der Interesse an Python hat, die Sprache
bereits nutzt oder nutzen möchte.

Für das leibliche Wohl wird gesorgt. Eine Anmeldung unter
i...@python-academy.de wäre nett, damit wir genug Essen
besorgen können.

Aktuelle Informationen zu den Treffen sind unter
http://www.python-academy.de/User-Group zu finden.

Viele Grüße
Mike

















-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


Python Courses by Python Academy till April 2012

2012-01-06 Thread Mike Müller
10 Python Courses till April


There are ten Python courses within the first four months of this year.
Lets have a look at the variety we offer:


Python for Non-Programmers
--

Never programmed before? Than this is your chance to get started with Python.
A gentle introduction to programming.

Date: 16.01.-18.01.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: English
Link: http://www.python-academy.com/course/python_course_nonprogrammers.html


Python for Scientists and Engineers
---

A three-day course covering all the basic tools scientists and engineers need.
This course requires basic Python knowledge.

Date: 19.01.-21.01.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: English
Link: http://www.python-academy.com/courses/python_course_scientists.html


Python for Programmers
--

You know another programming language and would like to learn Python?
This course teaches you all the basics to write useful Python programs.
It is hands-on with plenty of exercises and also provides sound knowledge
how Python does things.

Date: 06.02.-08.02.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: English
Link: http://www.python-academy.com/courses/python_course_programmers.html


SQLAlchemy Course
-

One-day in-depth SQLAlchemy training with guest trainer Erik Janssens.

Date: 09.02.2012
Location: Leipzig, Germany
Trainer: Erik Janssens
Course Language: English
Link:
http://www.python-academy.com/courses/specialtopics/python_course_sqlalchemy.html


Camelot Course
--

Camelot (http://www.python-camelot.com/) is an open source RAD framework
for rich desktop applications. Basic ingredients are Python, SQLAlchemy
and Qt. This course is best combined with the SQLAlchemy course just the
day before (see above). The course is presented by guest trainer and
Camelot expert Erik Janssens.

Date: 10.02.2012
Location: Leipzig, Germany
Trainer: Erik Janssens
Course Language: English
Link:
http://www.python-academy.com/courses/specialtopics/python_course_camelot.html


Python for Scientists and Engineers (USA)
-

This is an extend version of our well-received course for
scientists and engineers. Five days of intensive training
will give you a solid basis for using Python for scientific
an technical problems.

The course is hosted by David Beazley (http://www.dabeaz.com).

Date: 27.02.-02.03.2012
Location: Chicago, IL, USA
Trainer: Mike Müller
Course Language: English
Link: http://www.dabeaz.com/chicago/science.html


Python für Programmierer


The German version of our Python introduction for people who
know programming. Learn how to write pythonic programs from day one.

Date: 16.04.-18.04.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: German
Link: http://www.python-academy.de/Kurse/python_kurs_programmierer.html


Python für Wissenschaftler und Ingenieure
-

German engineers do use Python to construct cars, for example.
In this course they can learn how to leverage import Python
libraries for this.

Date: 19.04.-21.04.2012
Location: Leipzig, Germany
Trainer: Mike Müller
Course Language: German
Link: http://www.python-academy.de/Kurse/python_kurs_wissenschaftler.html


Einstieg in Django
--

Learn Django, the famous Python web framework. This course starts at the
beginning; no prior Django knowlegde required.

Date: 23.04.-25.04.2012
Location: Leipzig, Germany
Trainer: Markus Zapke-Gründemann
Course Language: German
Link: http://www.python-academy.de/Kurse/django_kurs_einstieg.html


Django für Fortgeschrittene
---

You would like to get deeper into Django? This course provides advanced
concepts. Ask the Django expert your specific questions.

Date: 26.04.-27.04.2012
Location: Leipzig, Germany
Trainer: Markus Zapke-Gründemann
Course Language: German
Link: http://www.python-academy.de/Kurse/django_kurs_fortgeschrittene.html


Questions?
--

If you have any questions about the courses, please feel free to ask
me.

Cheers,
Mike
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c

New submission from mike c coolbutusel...@gmail.com:

Could a test be added to ./Lib/test/test_defaultdict.py to test for TypeError 
being thrown when the the first argument to collections.defaultdict is not 
callable?  

pypy does not behave the same way as CPython 2.7.2 as the problem is not 
covered in the testcases.

e.g.
def test_callable_arg:
d1 = defaultdict({})
self.assertRaises(TypeError)  # TypeError: first argument must be callable

--
components: Tests
messages: 148868
nosy: mike.c
priority: normal
severity: normal
status: open
title: add test for defaultdict with non-callable first argument
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13531
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c

mike c coolbutusel...@gmail.com added the comment:

Cloning repo. Reading the devguide.  Patch forthcoming.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13531
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c

mike c coolbutusel...@gmail.com added the comment:

Patch to add a defaultdict test which checks that if the first argument is not 
callable, then a TypeError is thrown.

--
keywords: +patch
Added file: http://bugs.python.org/file23855/defaultdict_callable_test.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13531
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c

mike c coolbutusel...@gmail.com added the comment:

patch v2. Now with assertRaises()!

--
Added file: http://bugs.python.org/file23856/defaultdict_callable_test_v2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13531
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: memory leaks - tools and docs

2011-11-24 Thread Mike C. Fletcher
On 11-11-24 10:00 PM, Aljosa Mohorovic wrote:
 i've been trying to find memory leaks in a wsgi application using
 gunicorn to run it and after a lot of time invested in research and
 testing tools i did find a lot of useful information (most really old)
 but i'm left with a feeling that this should be easier, better
 documented and with tools that generate better data.

 if anybody can share some tips, links, docs or better tools with
 better reports i would really appreciate it.
 i'm not against paying for a good tool so any recommendation is
 appreciated.

 i mostly used http://guppy-pe.sourceforge.net/#Heapy but found
 http://pysizer.8325.org/ and http://code.google.com/p/pympler/ also
 interesting.

 Aljosa
Meliae is a similar tool wrt collecting memory-usage information.

RunSnakeRun can process Meliae dumps to produce visualizations of the
memory used in the process.

HTH,
Mike

https://launchpad.net/meliae
http://www.vrplumber.com/programming/runsnakerun/

-- 

  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://www.vrplumber.com
  http://blog.vrplumber.com

-- 
http://mail.python.org/mailman/listinfo/python-list


<    2   3   4   5   6   7   8   9   10   11   >