Op 22-10-2017 om 14:05 schreef Tim Chase:
> I'm not sure what "version control is required" means in this
> context. Is this version-control of the users' answers? Or
> version-control of the source code. If it's the source code, the web
> framework won't help you there, but git, mercurial, or
Hello list,
I would like your recommendation on the choice of a web framework.
The project is completely new, there are no histories to take into
account (current solutions are paper-based). The website involves
questionnaires that will be developed, filled out and stored. Users are
not
Dear all,
Many thanks for your responses. I never realised this difference between
'bytes' and 'string'.
Thanks,
Patrick
---
Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
http://www.avast.com
--
https://mail.python.org/mailman/listinfo/python-list
Hello list,
Let me first wish you all the best in 2015!
Today I was trying to test for occurrence of a byte in a set ...
sys.version
'3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit
(Intel)]'
'b' in 'abc'
True
b'b' in b'abc'
True
'b' in set('abc')
True
b'b' in
Chris Angelico ros...@gmail.com wrote:
On Fri, Nov 1, 2013 at 9:18 PM, Ulrich Goebel m...@fam-goebel.de wrote:
That gives me the solution. What I have, is an iterator object comming as a
SQLite database cursor object. So I could minimize the underliying SELECT
and build index = list(cursor).
Chris Angelico ros...@gmail.com wrote:
On Thu, Oct 31, 2013 at 7:19 AM, Tim Delaney
But yeah. Either git or hg will serve you well, and Bazaar (bzr) also
has its advocates. Getting to know all three (or at least git/hg) to
at least some extent will serve you well - at least be comfortable
Chris Angelico ros...@gmail.com wrote:
On Wed, Oct 30, 2013 at 3:33 PM, Ben Finney ben+pyt...@benfinney.id.au
wrote:
Chris Angelico ros...@gmail.com writes:
*Definitely* use source control.
+1, but prefer to call it a “version control system” which is (a) more
easily searched on the
Hello list,
Python has been a hobby for me since version 1.5.2. Over the years I
accumulated quite a lot of reusable code. It is nicely organised in
modules, directories and subdirectories. With every project, the library
grows and is developed further. I would like to ask your advice for two
John Gordon gor...@panix.com wrote:
In 22b99b0a-598f-4500-9de9-5041c2ce2...@googlegroups.com William Bryant
gogobe...@gmail.com writes:
the word 'def' has squiggily lines but the program works fine. It says:
Syntax Error: expected an indented block. - why?
def restart():
This may be
patrick vrijlandt added the comment:
Dear Eli,
According to the XPath spec, the 'position' as can be used in xpath
expressions, should be positive. However, the current implementation (example
below from 3.3.0) accepts some values that should not be ok.
Therefore, I do not agree
patrick vrijlandt added the comment:
To be complete: an xpath 'above' the start element returns None
Thanks for the patch!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12322
patrick vrijlandt added the comment:
I must admit my usage case is a hack, but the summary is: view a page on one
computer, process it on another computer; like sending the page to a friend,
with friend - self and send - upload.
I found one other victim in python
(https://groups.google.com/d
patrick vrijlandt added the comment:
I would not know how to set the MIME-type of a file during upload. This is
apparently set by the browser based on the filename (extension). Even (or:
especially) if this is a bug in all the current browsers, python should provide
the tools to adapt
New submission from patrick vrijlandt:
quopri.py's functions encodestring and decodestring are documented to handle
strings; and this is clearly suggested by their name. However, these functions
accept and return bytes, not strings. This should be reflected in the
documentation.
Even better
New submission from patrick vrijlandt:
.mht is an archive format created by Microsoft IE 8 when saving a webpage. It
is essentially a mime multipart message.
My problem occurred when I uploaded such a file to a cgi-based server. The
posted data would be fed to cgi.FieldStorage. (I can't post
patrick vrijlandt patrick.vrijla...@gmail.com added the comment:
Good solution. +1 for closing.
Patrick
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13779
New submission from patrick vrijlandt patrick.vrijla...@gmail.com:
(1) The docs say:
xml_declaration controls if an XML declaration should be added to the file. Use
False for never, True for always, None for only if not US-ASCII or UTF-8 or
Unicode (default is None).
The method also accepts
patrick vrijlandt patrick.vrijla...@gmail.com added the comment:
Hi,
Did you look at lxml (http://lxml.de)?
from lxml.builder import E
from lxml import etree
tree = etree.ElementTree(
E.Hello(
Good morning!,
E.World(How do you do, humour = excellent),
Fine
patrick vrijlandt patrick.vrijla...@gmail.com added the comment:
I agree the Element syntax is sometimes awkward.
But how would you represent text or tail attributes within this enhanced
element?
animal name=cat tail=yes comes to mind ...
--
nosy: +patrick.vrijlandt
patrick vrijlandt patrick.vrijla...@gmail.com added the comment:
The documentation of this function is generally ambiguous, because os.walk is a
generator. Thus generate means (1) yielded from a generator and (2) prepared
for later use within the generator. To avoid the ambiguity, generate
New submission from patrick vrijlandt patrick.vrijla...@gmail.com:
Problem:
Locator methods return the location where the event starts, not where it ends.
Locator line numbers start at 1, Locator column numbers can be 0.
Proposal:
Adapt documentation.
From the docs:
Instances of Locator
New submission from patrick vrijlandt patrick.vrijla...@gmail.com:
PythonWin 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on
win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for
further copyright information.
import os
os.makedirs(g:/a/b/c
patrick vrijlandt patrick.vrijla...@gmail.com added the comment:
Somewhere in the code is also/still a seperate check concerning strftime:
PythonWin 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on
win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About
New submission from patrick vrijlandt patrick.vrijla...@gmail.com:
This causes a crash in python 3.2.2 and 3.2, but not in 2.7.2
C:\Python32python
Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on
win32
Type help, copyright, credits or license for more information
patrick vrijlandt patrick.vrijla...@gmail.com added the comment:
Is it relevant that 2.7.2 _does_ throw a correct exception?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13674
patrick vrijlandt patrick.vrijla...@gmail.com added the comment:
[...] Same as getroot().find(match). [...] -
[...] For a relative path, this is equivalent to getroot().find(match).
Additionally, this form accepts an absolute path. [...]
This is easy, but might not be a very good solution
New submission from patrick vrijlandt patrick.vrijla...@gmail.com:
From the python docs for version 3.2:
19.12.3. ElementTree Objects
find(match)
[...] Same as getroot().find(match). [...]
This is not true: tree.find accepts an absolute path (like /*) , whereas
element.find doesn't. Also
New submission from patrick vrijlandt patrick.vrijla...@gmail.com:
Python 3.2 supports ElementPath version 1.3. The relevant documentation is
http://effbot.org/zone/element-xpath.htm. It says:
.. (New in 1.3) Selects the parent element.
However, a CHANGES document says:
The engine also
New submission from patrick vrijlandt patrick.vrijla...@gmail.com:
From http://effbot.org/zone/element-xpath.htm:
[position] (New in 1.3) Selects all elements that are located at the given
position. The position can be either an integer (1 is the first position), the
expression “last
patrick vrijlandt patrick.vrijla...@gmail.com added the comment:
I agree. Please close the ticket.
Thanks,
Patrick
2011/5/3 Raymond Hettinger rep...@bugs.python.org
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
This line should be protected by acquiring
On 2 mei, 20:56, Michel Claveau -
MVPenleverlesx_xx...@xmclavxeaux.com.invalid wrote:
Hi!
On my system, thera are not twain32.dll or twain_32.dll, but twain.dll
@+
--
Michel Claveau
Hi,
I have both. They are correctly installed and working. ctypes gives a
different response if it cannot
New submission from patrick vrijlandt patrick.vrijla...@gmail.com:
Line 154 in standard library's queue.py, in the definition of Queue.put() is:
self.unfinished_tasks += 1
This line should be protected by acquiring the all_tasks_done lock.
Theoretically, the increment could occur somewhere
Hi,
I'm trying to access TWAIN from python 3.2 on Vista, using ctypes. I'm
stuck at line 2:
PythonWin 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit
(Intel)] on win32.
from ctypes import *
windll.twain_32
Traceback (most recent call last):
File interactive input, line 1, in module
Hi,
It seems that space.Folders[DailyGoodEmails] might be a valid expression;
otherwise you might have experiment with
space.GetSharedDefaultFolder()
HTH, Patrick
-Oorspronkelijk bericht-
On Mar 21, 2:15 pm, liam_herron [EMAIL PROTECTED] wrote:
Say I want to open a shared email inbox
34 matches
Mail list logo