New submission from mike bayer :
demo:
import re
inner = 'VARCHAR(30) COLLATE "en_US"'
result = re.sub(
r'((?: COLLATE.*)?)$',
r'FOO\1',
inner
)
print(inner)
print(result)
in all Python versions prior to 3.7:
VARCHAR(30) COLLATE &
mike bayer added the comment:
correction, that's fedora 26, not 27
--
___
Python tracker
<https://bugs.python.org/issue32998>
___
___
Python-bugs-list m
mike bayer added the comment:
can you point me to the documentation?
--
___
Python tracker
<https://bugs.python.org/issue32998>
___
___
Python-bugs-list mailin
mike bayer added the comment:
also, removing the "?" is not an option for me. I need the brackets to be
placed prior to the "COLLATE" subsection, but unconditionally even if the
"COLLATE" section is not present. Looking at the change the behavior seems
wr
mike bayer added the comment:
for now the quickest solution is to add "count=1" so that it only replaces once.
--
___
Python tracker
<https://bugs.python.o
mike bayer added the comment:
for those watching this would be the findall() case which is consistent between
pythons:
import re
for reg in [
'VARCHAR(30) COLLATE "en_US"',
'VARCHAR(30)'
]:
print(re.findall(r'(?: COLLATE.*)?$', reg))
Mike Edmunds added the comment:
Here's a workaround for Python 2.7:
```
class HeaderBugWorkaround(email.header.Header):
def encode(self, splitchars=' ', **kwargs): # only split on spaces, rather
than splitchars=';, '
return email.header.Header.encode(s
New submission from Mike Gilbert :
When testing for ptheads support in the compiler, configure includes the CFLAGS
value from the environment.
If CFLAGS contains -pthread, or an option which implies -pthread (like
-fopenmp), this will cause configure to not include -pthread in the CC
Change by Mike Gilbert :
Added file: https://bugs.python.org/file47215/configure.log
___
Python tracker
<https://bugs.python.org/issue31769>
___
___
Python-bugs-list m
Change by Mike Gilbert :
Added file: https://bugs.python.org/file47216/build.log
___
Python tracker
<https://bugs.python.org/issue31769>
___
___
Python-bugs-list mailin
Mike Gilbert added the comment:
To resolve this, I suggest clearing CFLAGS/CXXFLAGS before performing the
ptheads check, and restoring them afterward.
--
___
Python tracker
<https://bugs.python.org/issue31
Change by Mike Gilbert :
--
title: configure includes user CFLAGS testing detecting pthreads support ->
configure includes user CFLAGS when detecting pthreads support
___
Python tracker
<https://bugs.python.org/issu
Mike Frysinger added the comment:
specifically, the docs for these classes:
https://docs.python.org/2/library/urlparse.html#results-of-urlparse-and-urlsplit
https://docs.python.org/3/library/urllib.parse.html#urlparse-result-object
> The result objects from the urlparse() and urlsp
New submission from Mike Gilbert :
The nis extension module fails to build against glibc-2.26 with the
"obsolete-rpc" option disabled.
Downstream bug report: https://bugs.gentoo.org/631488
glibc-2.26 release notes:
https://sourceware.org/ml/libc-alpha/2017-08/msg00010.html
The nis
Mike Nerone added the comment:
This was fixed in Python 3.6. See https://github.com/python/asyncio/issues/429
--
nosy: +Manganeez
___
Python tracker
<https://bugs.python.org/issue25
Mike Thompson added the comment:
I am a teacher, and this feature would really help me teach Python to my
students. Especially when I am teaching the course remotely.
--
nosy: +mthompsonwhs
___
Python tracker
<https://bugs.python.org/issue17
New submission from Mike Gleen :
strptime correctly parses single digit day-of-month values (at least in the
case of "%d %b %Y") which is the behavior I want. However, the documentation
seems to say that the field must be two digits with a leading zero if
necessary. So I hope th
Mike Gleen added the comment:
Sorry for the omission. This refers to datetime.datetime.strptime. The
documentation I referenced is: https://docs.python.org/3/library/datetime.html;
I did not test 2.7.
--
___
Python tracker
<ht
Mike Gleen added the comment:
Thanks for the quick response. I would be happy to write a pull request for
the doc change. I've never done this before so it'll take a little while to
get my head around the process, but the "Helping with Documentation"
chapter seems good.
Mike Frysinger added the comment:
it does seem like the patch was never applied to any python 3 branch :/
--
___
Python tracker
<https://bugs.python.org/issue24
Mike Frysinger added the comment:
that's highlighting the SemLock._make_name func which doesn't have retry logic
in it. did you mean to highlight SemLock.__init__ which has a retry loop that
looks similar to the C code ?
https://github.com/python/cp
Changes by Mike Gilbert :
--
nosy: +floppymaster
___
Python tracker
<http://bugs.python.org/issue16809>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Mike Hobbs :
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
Changes by Mike Gilbert :
--
nosy: +floppymaster
___
Python tracker
<http://bugs.python.org/issue13032>
___
___
Python-bugs-list mailing list
Unsubscribe:
Mike Meyer 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?
-
Mike Meyer 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
<http://bugs.python.o
Mike Meyer 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
Mike Meyer 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
main(argv[1:]1:)
File "./crawler.py", line 52
New submission from Mike Frysinger :
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
Mike Frysinger added the comment:
$ echo | gcc -m32 -E -P -dD - | grep LP
$ 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
Mike Perry 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 wrote:
>
> Terry J. Reedy added the comment:
>
> On Win
Mike Frysinger 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
<http://bugs.python.org/issue15
New submission from Mike Castle :
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
Mike Castle added the comment:
And the C version
--
Added file: http://bugs.python.org/file26522/t.c
___
Python tracker
<http://bugs.python.org/issue15
Changes by mike bayer :
--
nosy: +zzzeek
___
Python tracker
<http://bugs.python.org/issue1062277>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 othe
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, thi
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 w
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
<http://bugs.python.org/issue12
Mike Hoy added the comment:
I would like to submit a patch for this. Is anyone currently working on one?
--
nosy: +mikehoy
___
Python tracker
<http://bugs.python.org/issue15
Changes by Mike Hoy :
--
nosy: -mikehoy
___
Python tracker
<http://bugs.python.org/issue13341>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Mike Hoy :
Added file: http://bugs.python.org/file26902/issue12436-notepad_plus_plus_2.diff
___
Python tracker
<http://bugs.python.org/issue12436>
___
___
Pytho
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
<http://bugs.python.org/issue12
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
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
<http://bugs.python.org/issue15
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 >&g
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,
con
Mike Hoy added the comment:
Lambda Changes patch.
--
Added file:
http://bugs.python.org/file26982/issue11776-first-easy-part-lambda-.diff
___
Python tracker
<http://bugs.python.org/issue11
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 th
Mike Hoy added the comment:
Ezio Melotti was the one that offered to change the wording on MappingProxyType
doc
--
___
Python tracker
<http://bugs.python.org/issue11
Changes by Mike Hoy :
--
nosy: +mikehoy
___
Python tracker
<http://bugs.python.org/issue1185124>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Mike Hoy :
--
nosy: +mikehoy
___
Python tracker
<http://bugs.python.org/issue14468>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
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
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
Changes by Mike Hoy :
--
keywords: +patch
Added file: http://bugs.python.org/file27055/devguide-resources.diff
___
Python tracker
<http://bugs.python.org/issue15
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
Changes by Mike Hoy :
Added file: http://bugs.python.org/file27056/devguide-resources-2.diff
___
Python tracker
<http://bugs.python.org/issue15820>
___
___
Python-bug
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
<http://bugs.python.org/issue15
Mike Hoy added the comment:
I'm working on a new patch with Ezio.
--
___
Python tracker
<http://bugs.python.org/issue15820>
___
___
Python-bugs-list m
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
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
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
Changes by Mike Hoy :
Added file: http://bugs.python.org/file27069/typo-ordered-dict3.3.diff
___
Python tracker
<http://bugs.python.org/issue15825>
___
___
Python-bug
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 pa
Mike Hoy added the comment:
Working on a patch now unless there are objections to the OP.
--
nosy: +docs@python
___
Python tracker
<http://bugs.python.org/issue15
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,
>&
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,
>&
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 an
Mike Hoy added the comment:
3.3 patch
--
keywords: +patch
Added file: http://bugs.python.org/file27071/15829-thread-errror3.3.diff
___
Python tracker
<http://bugs.python.org/issue15
Mike Hoy added the comment:
2.7 patch.
--
Added file: http://bugs.python.org/file27072/15829-thread-errror2.7.diff
___
Python tracker
<http://bugs.python.org/issue15
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.
--
Changes by Mike Hoy :
--
nosy: -mikehoy
___
Python tracker
<http://bugs.python.org/issue14468>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Mike Hoy :
--
nosy: -mikehoy
___
Python tracker
<http://bugs.python.org/issue1185124>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Mike Hoy :
--
nosy: +mikehoy
___
Python tracker
<http://bugs.python.org/issue12067>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by Mike Hoy :
--
nosy: +mikehoy
___
Python tracker
<http://bugs.python.org/issue11643>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
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
<http://bugs.python.org/is
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 NotImplem
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-e
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
<http://bugs.python.org/is
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.
-
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
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
<http://bugs.python.org/i
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
<http://bugs.python.org/issue9
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
Changes by Mike Hoy :
--
nosy: +mikehoy
___
Python tracker
<http://bugs.python.org/issue15104>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by Mike Putnam :
--
nosy: +mikeputnam
___
Python tracker
<http://bugs.python.org/issue14574>
___
___
Python-bugs-list mailing list
Unsubscribe:
Mike Hoy added the comment:
Changed patch to include suggestions by Chris Jerdonek.
http://bugs.python.org/issue12067#msg170953
--
hgrepos: +153
Added file: http://bugs.python.org/file27442/issue12067-expressions_v2.diff
___
Python tracker
<h
Changes by Mike Hoy :
--
hgrepos: -153
___
Python tracker
<http://bugs.python.org/issue12067>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Mike Hoy added the comment:
Here is a patch after talking with Ezio on irc tonight. The rules I (attempted)
to follow are:
Within a :file: you should have {X.Y}
In a text/paragraph area you can use |version|
Within anything else just leave it as X.Y
As stated by Éric I ignored install and
Changes by Mike Hoy :
--
keywords: +patch
Added file: http://bugs.python.org/file27446/issue11643-xy_v1.diff
___
Python tracker
<http://bugs.python.org/issue11
Changes by Mike Hoy :
--
nosy: +mikehoy
___
Python tracker
<http://bugs.python.org/issue13691>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Mike Hoy added the comment:
I imported this patch on 3.4 and it worked as expected on my system.
help('help') brings up info about help()
help(object) prints the docstring
help() invokes the help
--
___
Python tracker
<http://bu
Mike Hoy added the comment:
>> What about "pydoc help"?
$ ./python -m pydoc help
Help on built-in function help:
help(...)
Invoke the built-in help system.
help()
The interactive help system starts on the interpreter
console.
help(string)
The string is
Mike Hoy added the comment:
It doesn't look like there are any errors to document. I'm attaching a patch
that Patrick suggested.
--
keywords: +patch
Added file: http://bugs.python.org/file27481/issue12322_v1.diff
___
Python trac
Mike Hoy added the comment:
In response to patrick vrijlandt last comment here's a patch. I also found a
few None keywords that didn't have `` around them.
--
Added file: http://bugs.python.org/file27500/issue12322_v2.diff
___
Python trac
Mike Hoy added the comment:
>> Mike - a note for the future: when you create an updated patch, create it
>> anew vs. a clean repo. Don't "compound" patches.
No problem, thanks for committing the patch. Wasn't aware that compo
Mike Hoy added the comment:
>>> Cool! Can you add tests?
Nope, I can't add tests.
--
___
Python tracker
<http://bugs.python.org/issue13691>
___
Mike Hoy added the comment:
Would this be the appropriate place for the links to the two essays:
http://docs.python.org/devguide/#proposing-changes-to-python-itself
--
___
Python tracker
<http://bugs.python.org/issue13
New submission from Mike Hoy:
Typo in: http://docs.python.org/devguide/stdlibchanges.html#adding-to-the-stdlib
Reads:
This document it meant to explain...
Should read:
This document is meant to explain...
--
components: Devguide
messages: 172640
nosy: ezio.melotti, mikehoy
priority
Mike Hoy added the comment:
Patch affects faq.rst/index.rst. In faq I put the two links along with some
text as Chris suggested. In index I changed resources to Additional Resources
and split up the old 'Resources' into 'Additional Resources/Essential Reading'.
Feedbac
301 - 400 of 613 matches
Mail list logo