=== Leipzig Python User Group ===
We will meet on Tuesday, December, 14th, 8:00 pm at the
training center of Python Academy in Leipzig, Germany
( http://www.python-academy.com/center/find.html ).
Food and soft drinks are provided. Please send a short
confirmation mail to i...@python-academy.de,
what is it
--
A Python package to parse and build CSS Cascading Style Sheets.
(Not a renderer though!)
about this release
--
0.9.8a1 is an early alpha release. Please note the *major* changes in
the css value API.
main changes
+ **API CHANGE (major)**
Harishankar v.harishan...@gmail.com writes:
The advantage of a proper newsreader [program] is that it quotes
correctly (i.e. quote at top, reply below).
That's a function of the person typing into it, not of the program.
Placing the cursor at the top of the message allows the person to trim
On Sun, 12 Dec 2010 19:18:52 +1100, Ben Finney wrote:
That's a function of the person typing into it, not of the program.
I was talking about the default program behaviour. Yes, you can move the
cursor up or down, but I was talking about the way regular e-mail clients
generally handle quoted
Peter C., 11.12.2010 23:41:
Hello, I am looking at the possibility of making a program in C++. The
catch is it will require the ability to work with binding for use with
scripting in both Python 2.x and 3.x for various tool plugins.
Do I read this right that you want your program to be written
Hi,
I'd like to have a reference to an instance attribute as
default argument in a method. It doesn't work because
self is not defined at the time the method signature is
evaluated. For example:
class C(object):
def __init__(self):
self.foo = 5
def m(self, val=self.foo):
On Sun, Dec 12, 2010 at 3:35 AM, ernest nfdi...@gmail.com wrote:
Hi,
I'd like to have a reference to an instance attribute as
default argument in a method. It doesn't work because
self is not defined at the time the method signature is
evaluated. For example:
class C(object):
def
Great careers in Management work. Institutional careers in Management
http://topcareer.webs.com/humanresourcemgmt.htm
http://rojgars.webs.com/bankingjobs.htm
Full ranges of Banking and insurance banking jobs, railway jobs
opportunities to make career.
http://rojgars.webs.com/bankingjobs.htm
--
On Dec 8, 11:24 pm, Adam Tauno Williams awill...@whitemice.org
wrote:
On Wed, 2010-12-08 at 13:18 +0530, Rustom Mody wrote:
If I have a medium to large python code base to browse/study, what are
the class browsers available?
Monodevelop has good Python support which includes a working
I've no opinion.
I'm just struggling with BeautifulSoup myself, finding it one of the
toughest libs I've seen ;-)
Really? While I'm by no means an expert, I find it very easy to work with.
It's very well
structured IMHO.
I think the cause lies in the documentation.
The PySide documentation
I have a routine in Python which is extracting information from a
website. This information is read and inserted into objects.
I currently have all the validations and checks implemented in the
routines which are reading the HTML and creating the objects. It is
however also possible to move all
On Dec 1, 7:15 am, Tim Harig user...@ilthio.net wrote:
On 2010-12-01, javivd javiervan...@gmail.com wrote:
On Nov 30, 11:43 pm, Tim Harig user...@ilthio.net wrote:
On 2010-11-30, javivd javiervan...@gmail.com wrote:
I have a case now in wich anotherfilehas been provided (besides
I'm sure this has been brought up many times, but a quick Googling didn't yield
the decisive results I was hoping for, so I apologize if this has already been
addressed in great detail somewhere else.
I am wondering what the rationale is behind preferring while True over while 1?
For me, it
Am 12.12.2010 15:14, schrieb Max Countryman:
I'm sure this has been brought up many times, but a quick Googling didn't
yield the decisive results I was hoping for, so I apologize if this has
already been addressed in great detail somewhere else.
I am wondering what the rationale is behind
On Sun, Dec 12, 2010 at 3:14 PM, Max Countryman m...@me.com wrote:
I'm sure this has been brought up many times, but a quick Googling didn't
yield the decisive results I was hoping for, so I apologize if this has
already been addressed in great detail somewhere else.
I am wondering what the
On 12 Gru, 15:28, pyt...@lists.fastmail.net wrote:
I have a routine in Python which is extracting information from a
website. This information is read and inserted into objects.
I currently have all the validations and checks implemented in the
routines which are reading the HTML and creating
On 12/10/2010 10:02 PM Darshak Bavishi said...
snip
Pexpect is intended for UNIX-like operating systems.)
snip
Can we use pexpect from windows host machine ?!
I expect not...
Emile
--
http://mail.python.org/mailman/listinfo/python-list
On 12/12/2010 2:07 AM Harishankar said...
On Sun, 12 Dec 2010 19:18:52 +1100, Ben Finney wrote:
That's a function of the person typing into it, not of the program.
I was talking about the default program behaviour. Yes, you can move the
cursor up or down, but I was talking about the way
On 12.12.2010 17:06, Emile van Sebille wrote:
On 12/10/2010 10:02 PM Darshak Bavishi said...
snip
Pexpect is intended for UNIX-like operating systems.)
snip
Can we use pexpect from windows host machine ?!
I expect not...
Emile
According to [1] you might get it working with the Cygwin
On 12/12/2010 10:30 AM, Christian Heimes wrote:
Am 12.12.2010 15:14, schrieb Max Countryman:
I'm sure this has been brought up many times, but a quick Googling didn't
yield the decisive results I was hoping for, so I apologize if this has
already been addressed in great detail somewhere
On 2010-12-12, javivd javiervan...@gmail.com wrote:
On Dec 1, 7:15 am, Tim Harig user...@ilthio.net wrote:
On 2010-12-01, javivd javiervan...@gmail.com wrote:
On Nov 30, 11:43 pm, Tim Harig user...@ilthio.net wrote:
encodings and how you mark line endings. Frankly, the use of the
world
So far, the only situation I can find where method names necessarily
overlap is for the basics like __init__(), close(), flush(), and
save() where multiple parents need to have their own initialization
and finalization.
One other possibility is subclasses of the JSONEncoder class. For
example
On 2010-12-12, Tim Harig user...@ilthio.net wrote:
I used .seek() in this manner, but is not working.
It is working the way it is supposed to.
If you want the absolute position in a column:
f = open('somefile.txt', 'r').read().splitlines()
for column in f:
Am 12.12.2010 19:31, schrieb Steve Holden:
Would you care to quantify how much CPU time that optimization will
typically save for a loop of fair magnitude (say, a billion iterations)?
The difference is minimal but measurable for very tight loops.
$ python -m timeit -n20 -- i = 0 while 1:
Hello,
On Wed, Dec 08, 2010 at 04:24:02PM +, MRAB wrote:
Interestingly, that webpage says that:
(a x 10) =~ /^(ab?)*$/
caused Perl to segfault. I tried it and it didn't segfault, but it
didn't match either
It doesn't segfault but produces a warning with
-w:
xr...@xrgtn-q40:~$
Python is designed to provide readable code. Writing
while True:
...
is much more legible than its pre-True couterpart
while 1:
...
No argue with that!
I actually want to argue with that: I find while 1 more legible.
That's probably because
a) I'm use to it,
Snapshot in time, hey look at that; someone used Python as THE example
of what a programming language is on Wikipedia.
http://en.wikipedia.org/wiki/Programming_language
--
http://mail.python.org/mailman/listinfo/python-list
On 12 Gru, 22:21, DevPlayer devpla...@gmail.com wrote:
Snapshot in time, hey look at that; someone used Python as THE example
of what a programming language is on
Wikipedia.http://en.wikipedia.org/wiki/Programming_language
aand? what is the catch?
--
Hello
I've encountered several times, when dealing with adaptation of function
signatures, the need for explicitly resolving complex argument sets into
a simple variable mapping. Explanations.
Consider that function:
def foo(a1, a2, *args, **kwargs):
pass
calling foo(1, a2=2, a3=3)
On Sun, 12 Dec 2010 16:33:41 +0100, Krister Svanlund wrote:
On Sun, Dec 12, 2010 at 3:14 PM, Max Countryman m...@me.com wrote:
I'm sure this has been brought up many times, but a quick Googling
didn't yield the decisive results I was hoping for, so I apologize if
this has already been
Attached below is a Tkinter script that demonstrates polling, that is,
performing a long-running process in parallel with the GUI. The
script asks for an input file name and an output file name and copies
the input file to the output file. The copy operation is done in a
child process managed
On 12/12/2010 4:38 PM, pakalk wrote:
On 12 Gru, 22:21, DevPlayerdevpla...@gmail.com wrote:
Snapshot in time, hey look at that; someone used Python as THE example
of what a programming language is on
Wikipedia.http://en.wikipedia.org/wiki/Programming_language
aand? what is the
Pascal Chambon wrote:
I've encountered several times, when dealing with adaptation of function
signatures, the need for explicitly resolving complex argument sets into
a simple variable mapping. Explanations.
Consider that function:
def foo(a1, a2, *args, **kwargs):
pass
Yeah, I noticed that a while back too. Kinda cool.
--Bill
On Sun, Dec 12, 2010 at 3:21 PM, DevPlayer devpla...@gmail.com wrote:
Snapshot in time, hey look at that; someone used Python as THE example
of what a programming language is on Wikipedia.
On 12/12/2010 2:32 PM, Christian Heimes wrote:
Am 12.12.2010 19:31, schrieb Steve Holden:
Would you care to quantify how much CPU time that optimization will
typically save for a loop of fair magnitude (say, a billion iterations)?
The difference is minimal but measurable for very tight
Hi Experts,
I need to know that is there any way to SSH (From Windows Host) to Unix
machine ?!
If Yes than How ?
Because when i use telenet it not showing the no result !! As earlier it was
suggested that i should try with exit first and than read_all()
but still issue persist and getting hang
On Sun, Dec 12, 2010 at 9:03 PM, Darshak Bavishi
bavishi.dars...@gmail.com wrote:
Hi Experts,
I need to know that is there any way to SSH (From Windows Host) to Unix
machine ?!
If Yes than How ?
http://www.lag.net/paramiko/
Did you try googling ssh python?
Cheers,
Chris
--
i am trying from last week but no luck !!
one thing only found that pexpect it not useful in windows
pls help out of this
On Mon, Dec 13, 2010 at 10:39 AM, Chris Rebert c...@rebertia.com wrote:
On Sun, Dec 12, 2010 at 9:03 PM, Darshak Bavishi
bavishi.dars...@gmail.com wrote:
Hi Experts,
I
On Sun, 12 Dec 2010 23:20:40 -0500, Steve Holden wrote:
On 12/12/2010 2:32 PM, Christian Heimes wrote:
[...]
No argue with that! I was merely making a point that while 1 executes
different byte code than while True. Readability is important but
sometimes speed is of the essence. while 1 is
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes:
I'm actually quite fond of the look of while 1:, and sometimes use it,
not because it's faster, but just because I like it.
for v in itertools.repeat(True):
...
;-)
--
Martin v. Löwis mar...@v.loewis.de added the comment:
The problem is different: there is a stray in pythoncore\getbuildinfo.o.
Kristjan, this is your change: can you take a look?
--
nosy: +krisvale, loewis
___
Python tracker rep...@bugs.python.org
Ned Deily n...@acm.org added the comment:
Update 31 backport patch to reflect revert of unittest method names prior to
3.1.3 release.
--
Added file: http://bugs.python.org/file20023/issue9922-31-rev1.patch
___
Python tracker rep...@bugs.python.org
Changes by Ned Deily n...@acm.org:
Removed file: http://bugs.python.org/file18972/issue9922-31.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9922
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
fd_status.py:
+try:
+_MAXFD = os.sysconf(SC_OPEN_MAX)
+except:
+_MAXFD = 256
It looks like this code (256 constant) comes from subprocess.py. Is that a good
value? On Linux, SC_OPEN_MAX is usually 1024, and it can be 4096.
New submission from harish nsharish@gmail.com:
Shutil.move method deletes a file/folder when the file/folder is renamed to
same name but different case.
eg.
shutil.move('folder','Folder')
--
components: Windows
messages: 123833
nosy: harish
priority: normal
severity: normal
status:
Changes by Nick Coghlan ncogh...@gmail.com:
--
stage: needs patch - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9232
___
___
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Attached is a patch (against the latest revision, 87178) which adds the
functionality to the posix module as well as adds a testcase for it.
I haven't added it to the os module, I'm not sure if that should be done.
I tested it on Linux
Lars Gustäbel l...@gustaebel.de added the comment:
There is no trivial or backwards-compatible solution to this problem. The way
it is now, there is no alternative to storing all TarInfo objects: there is no
central table of contents in an archive we could use, so we must create our
own. In
New submission from Rusi rustompm...@gmail.com:
When running trace, I get a a lot of lines like:
filename: /usr/lib/python2.7/cmd.py, modulename: cmd, funcname: Cmd
That is to say system modules are shown in the trace whereas I only want to see
the code I am working on
Ive tried
python2.7 -m
Milko Krachounov pyt...@milko.3mhz.net added the comment:
For the Python implementation, the GIL is not enough to
ensure the atomicity of a process creation. That's why
_posixsubprocess was created. I suppose that other parts
of subprocess are not atomic and a lock is required to
ensure
Nick Coghlan ncogh...@gmail.com added the comment:
Tidy ups committed in r87182. Shutdown problems now result in a slightly more
meaningful message on stderr, a ResourceWarning is triggered when an implicit
teardown occurs and the chances of an AttributeError due to an exception in
__init__
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10682
___
___
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +brian.curtin, tarek, tim.golden
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10684
___
R. David Murray rdmur...@bitdance.com added the comment:
The tests are failing on windows:
http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/3770/steps/test/logs/stdio
==
ERROR: test_mkdtemp_failure
R. David Murray rdmur...@bitdance.com added the comment:
There's also a typo in the issue number in your commit message (10888 instead
of 10188).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10188
Changes by R. David Murray rdmur...@bitdance.com:
--
priority: - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10367
___
___
Changes by R. David Murray rdmur...@bitdance.com:
--
priority: - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4391
___
___
R. David Murray rdmur...@bitdance.com added the comment:
On balance I think this would be a backward incompatible change that has
insufficient benefit to be worth doing. People who have working code will be
depending on the existing defaults of the two methods, and changing this out
from
New submission from R. David Murray rdmur...@bitdance.com:
This is a followon to Issue 4661. The fix for that issue introduced a way to
parse messages containing 8bit bytes. When Generator is called on a model
containing 8 bit bytes, it converts it to 7bit clean. There is, however, a bug
R. David Murray rdmur...@bitdance.com added the comment:
I've opened a issue 10686 to address improving the RFC conformance by using
unknown-8bit encoded words for 8bit bytes in headers.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
R. David Murray rdmur...@bitdance.com added the comment:
The wording was clarified for 3.2 as part of the fix for issue 4661. This does
not help the 3.1 docs, so if someone wants to suggest a patch for the 3.1 docs
we can reopen the issue.
--
resolution: postponed - fixed
stage: -
New submission from Arfrever Frehtes Taifersar Arahesis
arfrever@gmail.com:
$ make DESTDIR=/var/tmp/portage/dev-lang/python-3.2_pre20101212/image/
altinstall
Creating directory /usr/bin
Creating directory /usr/lib64
/usr/bin/install -c python
Martin v. Löwis mar...@v.loewis.de added the comment:
So, Martin, are you then arguing that this should in fact be
considered a bug in ZipFile? The documentation for the constructor
says Open a ZIP file, where file can be either a path to a file (a
string) or a file-like object. Reading
Changes by Eric Pruitt eric.pru...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10634
___
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
The current behavior for function definitions is beneficial because a trailing
comma in the argument list is likely to signal a real error (omitted variable).
In contrast, the trailing comma for lists is useful because
Brett Cannon br...@python.org added the comment:
I'm with Raymond; this is unneeded consistency. I honestly would rather see
what little support there is for a trailing comma to go away, but w/o looking
at the grammar I am willing to bet that would be a pain to get right and not be
worth the
R. David Murray rdmur...@bitdance.com added the comment:
Committed a simpler fix in r87196, backported to 3.1 in r87195, and 2.7 in
r87196.
--
resolution: - fixed
stage: unit test needed - committed/rejected
status: open - closed
___
Python tracker
Martin v. Löwis mar...@v.loewis.de added the comment:
Ok, so closing as rejected.
--
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10682
___
Martin v. Löwis mar...@v.loewis.de added the comment:
In #10682, several committers indicated that they would prefer not to change
this. So I'm closing this as rejected. Per convention, it would probably
require a PEP to modify Python in this aspect (as there is no clear consensus).
Brett Cannon br...@python.org added the comment:
So I just looked at the syntax file linked by Antoine and that is definitely
*not* what he meant to link to; probably meant
http://www.vim.org/scripts/script.php?script_id=790 . As for the indentation
file, it's out-of-date and so doesn't
New submission from CZ hua...@qualcomm.com:
when pydoc is run with python -m (e.g., python -m pydoc map),
you will receive an error message: No module named tempfile.
The reason is pydoc removes 'C:\Python26\lib' (in my case) from sys.path.
But you can run it as python full path to pydoc.py
R. David Murray rdmur...@bitdance.com added the comment:
This is a duplicate of issue 2029.
--
nosy: +r.david.murray
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - python -m pydoc -g fails
___
Python
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Yes, I have VC2010 so I'll see what happens...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10683
___
R. David Murray rdmur...@bitdance.com added the comment:
OK, I've studied this more, and it looks to me like the legacy address format
allows multiple atoms separated by white space in the local part of the
address. This means that the correct parse would be
('', 'merwok w...@rusty.com')
New submission from Pierre Vinet v...@globetrotter.net:
From Python 2.7 http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tar.bz2
released on November 27th, 2010.
At compile time :
$ ../Python-2.7.1/configure --enable-framework
$ make
we obtain within standard output:
building
Adrian Sampson asamp...@cs.washington.edu added the comment:
Thanks for the pointer, Éric. Here's a quick patch that integrates the same
functionality into the existing subparser class.
--
keywords: +patch
Added file: http://bugs.python.org/file20026/argparse-aliases.patch
New submission from David mapstonsis...@yahoo.com:
Hello,
Python version 2.7.1 x64
Mac OS X 10.6.5 x86_64
Tk/Tcl version 8.5/4
Python will crash when saving/running/checking a module, i tried googling for a
few hours to come up to NOTHING for a solution. Hopefully we can both get this
Nick Coghlan ncogh...@gmail.com added the comment:
Sorry, I realised after I had logged off and gone to bed that I hadn't finished
the last test. Fixed in r87204 with an approach that should exercise the
relevant behaviour regardless of platform.
The commit message has also been updated to
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Ok the problem is this line in the pre-link step, that must have gotten changed
during the conversion:
$(SolutionDir)make_buildinfo.exe Debug $(IntDir)
should be
$(SolutionDir)make_buildinfo.exe Debug $(IntDir)\
This is because
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Implemented the trailing quote removal defensive programming strategy in
revision 87205.
Others that autoconvert the solution will not be hit by this problem.
--
resolution: - fixed
status: open - closed
Gregory P. Smith g...@krypto.org added the comment:
The close_fds default has been fixed in r87206 to remove the DeprecationWarning
and remain False on Windows. It changes to True on POSIX.
--
___
Python tracker rep...@bugs.python.org
81 matches
Mail list logo